samp-streamer-plugin icon indicating copy to clipboard operation
samp-streamer-plugin copied to clipboard

v2.9.5 doesn't create Actors anymore

Open Jedrzej94 opened this issue 3 years ago • 5 comments

No idea what should I add here, specify what would you like to dive into within my code and I will provide.

v2.9.4 creates actors all right, while v2.9.5 simply doesn't. At releases page I noticed there are some actors changes (provided by ziggi), so I would probably look deeper into that.

Let me know what you need from my side to know.

hook OnGameModeInit()
{
    for(new i = 1; i != sizeof(eActorsData); i++)
    {
        CreateDynamicActor(
            eActorsData[i][e_iActorModelId], 
            eActorsData[i][e_fActorX], 
            eActorsData[i][e_fActorY], 
            eActorsData[i][e_fActorZ], 
            eActorsData[i][e_fActorAng],
            .streamdistance = (STREAMER_ACTOR_SD / 2.0),
            .priority = eActorsData[i][e_iPriority]
        );

        eActorInfo[i][e_iChatBubbleLabelId] = INVALID_3DTEXT_ID;
    }
    return 1;
}

Jedrzej94 avatar May 16 '21 12:05 Jedrzej94

You need to assign them virtual world in order to show them... It's probably bug, they should be visible in all virtual worlds if you don't assign them specific one.

djacicd avatar May 25 '21 23:05 djacicd

Weirdly enough, that worked. Leaving the issue open, might be worth investigating further, since the param is optional by default.

Jedrzej94 avatar May 26 '21 09:05 Jedrzej94

Even worse. 2.9.5 doesn't detect NPCs entering dynamic areas anymore. I have to roll back to 2.9.4 - seems like the latest version wasn't tested that much?

Jedrzej94 avatar Jul 24 '21 10:07 Jedrzej94

Yes, ziggi's changes were meant to address the problems with actors and pickups in #316, but apparently setting the virtual world to -1 no longer works, if I'm understanding this issue correctly. Can anyone confirm if this is limited to actors, or if pickups are affected as well?

samp-incognito avatar Aug 06 '21 17:08 samp-incognito

Actors with -1 as virtual world is not working because SA-MP isn't support this. But pickups supports it and works well (tested on production). But I think what CreateDynamicActor should use virtual world 0 by default.

ziggi avatar Sep 18 '21 20:09 ziggi