Jump to content
Sign in to follow this  
McArcher

Maybe I'm an idiot, but this works very strangely!

Recommended Posts

Maybe I am an idiot, but I completely don't understand why this shit is happening. Please read this and help me, if you can.

I made a very simple mission (to make sure that this element causes bugs).

1. In editor created 3 playable units: RU_player_1, RU_player_2 and RU_player_3, standing close to each other. Also I created UAZ_1 about 100m from them. Then I have a very simple init.sqf:

waituntil {!isnil "bis_fnc_init"};
enableSaving [false, false];
waitUntil {time>0.1};

players = [RU_player_1, RU_player_2, RU_player_3];
RU_player_1 setPos (position UAZ_1);
RU_player_2 setPos (position UAZ_1);
RU_player_3 setPos (position UAZ_1);
group_1 = createGroup east;
players joinSilent group_1;
group_1 selectLeader RU_player_1;

2. so, when I run this on dedicated server which is persistent, I start in RU_player_1's slot. Game starts, I am teleported to UAZ, we all 3 are killed, then respawn the same place we died. I see that I'm a leader of a group, I see icons of group members. The group has 3 members and I see 3 soldiers - me and 2 other guys. Then I decide to leave the server completely (to servers list). Then I join again my server and then select not 1st but 2nd slot this time.

3. What do I see... (shit begins here) 4 soldiers including me standing near UAZ_1, not three!!! and .rpt has errors:

Client: Object 2:26 (type Type_144) not found.

Client: Object 2:2 (type Type_121) not found.

Client: Object 2:0 (type Type_121) not found.

Client: Object 2:1 (type Type_121) not found.

Client: Object 3:3 (type Type_121) not found.

Group O 1-1-F (0x6097c18) - network ID 2:31

- no main subgroup

Network simulation, time = 0.256

Group O 1-1-F (0x6097c18) - network ID 2:31

- no main subgroup

Group O 1-1-F (0x6097c18) - network ID 2:31

- no main subgroup

Group O 1-1-F (0x6097c18) - network ID 2:31

- no main subgroup

Group O 1-1-F (0x6097c18) - network ID 2:31

- no main subgroup

Group O 1-1-F (0x6097c18) - network ID 2:31

- no main subgroup

Group O 1-1-F (0x6097c18) - network ID 2:31

- no main subgroup

Wrong unit index 0 (unit is not in the slot)

Tell me please, how to get rid of this bug and what is it caused by?

Edited by McArcher

Share this post


Link to post
Share on other sites

Maybe the problem (maybe bug) is when you add killed units to the group (the same position sometimes causes deaths of units).

Maybe try first add units to the group and then setPos

Share this post


Link to post
Share on other sites

ok, I changed positions for units:

waituntil {!isnil "bis_fnc_init"};
enableSaving [false, false];
waitUntil {time>1};

players = [RU_player_1, RU_player_2, RU_player_3];
_posX = (position UAZ_1) select 0;
_posY = (position UAZ_1) select 1;
RU_player_1 setPos [_posX + 0, _posY];
RU_player_2 setPos [_posX + 2, _posY];
RU_player_3 setPos [_posX + 4, _posY];
sleep 1;
group_1 = createGroup east;
players joinSilent group_1;
group_1 selectLeader RU_player_1;

Now, we don't die after teleportation, but I still see 4 men including me, though before disconnect there were 3. And errors. I disconnected 2nd time, and joined with 3rd slot and see 5 units including me !!!! and errors:

Creating debriefing

Client: Object 2:26 (type Type_144) not found.

Client: Object 2:4 (type Type_121) not found.

Client: Object 2:30 (type Type_121) not found.

Wrong unit index 0 (unit is not in the slot)

---------- Post added at 01:38 ---------- Previous post was at 01:32 ----------

and groupping before setting positions

waituntil {!isnil "bis_fnc_init"};

enableSaving [false, false];

waitUntil {time>1};

players = [RU_player_1, RU_player_2, RU_player_3];

group_1 = createGroup east;

players joinSilent group_1;

group_1 selectLeader RU_player_1;

_posX = (position UAZ_1) select 0;

_posY = (position UAZ_1) select 1;

RU_player_1 setPos [_posX + 0, _posY];

RU_player_2 setPos [_posX + 2, _posY];

RU_player_3 setPos [_posX + 4, _posY];

sleep 1;

leads to

Client: Object 2:26 (type Type_144) not found.

Client: Object 2:2 (type Type_121) not found.

Client: Object 2:0 (type Type_121) not found.

Client: Object 2:1 (type Type_121) not found.

Group O 1-1-E (0x5c3e918) - network ID 2:31

- no main subgroup

Network simulation, time = 0.216

Group O 1-1-E (0x5c3e918) - network ID 2:31

- no main subgroup

Group O 1-1-E (0x5c3e918) - network ID 2:31

- no main subgroup

Group O 1-1-E (0x5c3e918) - network ID 2:31

- no main subgroup

Group O 1-1-E (0x5c3e918) - network ID 2:31

- no main subgroup

Group O 1-1-E (0x5c3e918) - network ID 2:31

- no main subgroup

Group O 1-1-E (0x5c3e918) - network ID 2:31

- no main subgroup

Wrong unit index 0 (unit is not in the slot)

and same +1 man each next slot

Share this post


Link to post
Share on other sites

Try do disable AI players, I think that when you left the server an AI took your place.

Share this post


Link to post
Share on other sites

It's in description.txt file (disabledAI=1), if you do not fill all start slots with human players, the remaining slots will be automatically filled with AI. I'm not sure very it's this but it worth checking first.

Share this post


Link to post
Share on other sites

no, I meant another thing.... I need AI to be enabled as they are already are, i.e. I don't want to disable. I thought you ment to disable one of AIs , but I need them all.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×