Origins Server?

i used the fsm editor from bohemia.
here is the code i´m using so far (whole server_cleanup.fsm)

just replace it in the dayz_server.pbo

unpack , rename server_cleanup.fsm, generate new one, paste code from http://pastebin.com/9UdtgUcn and repack the folder. I´m not yet shure about the gracecross and dead zombie/animal "despawning" fix i made. Lott is working so far.

Thank you Sharkking. Going to test this now-- epic job.

Full moon is default in origins, correct? How do you do 4h/2h day/night bychance?
 
you have to set the prefix to z\addons\dayz_server

Sorry if I'm sounding dumb, how/where do I set the prefix?

I'm extremely new to all this, I assume that the "z\" part points to a root directory of sorts. Is this what you mean by the prefix?

EDIT: Changed the \z\ to the full directory path of the unpacked file. Now get an error at 50% loading after the 60sec countdown.

"Something went wrong, could not verify player data"

Wish I hadn't changed anything now, server is borked.
 
Got it working but without using your files

ArmA2OA%202013-06-07%2018-06-37-88.jpg


ArmA2OA%202013-06-07%2018-06-31-27.jpg
Just been looking at that, did you have to rewrite it.
 
Sorry if I'm sounding dumb, how/where do I set the prefix?

I'm extremely new to all this, I assume that the "z\" part points to a root directory of sorts. Is this what you mean by the prefix?

EDIT: Changed the \z\ to the full directory path of the unpacked file. Now get an error at 50% loading after the 60sec countdown.

"Something went wrong, could not verify player data"

Wish I hadn't changed anything now, server is borked.
if you pack your pbo with BinPBO Personal Edition for example you cen set under options a prefix...
there you need to insert z\addons\dayz_server
not more not less
and then pack it up...
 
I found the bug in server_cleanup.fsm

Code:
        to="cleanup_objects";
          precondition =
/*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
          condition=/*%FSM<CONDITION""">*/"((time - _lastItemCheck) > 65)"/*%FSM</CONDITION""">*/;
          action=/*%FSM<ACTION""">*/"_lastDeadCheck = time;"/*%FSM</ACTION""">*/;

time - _lastitemcheck is the condition but the time value is never set (lastDeadCheck there instead of lastItemCheck) , therefore the right version should be

Code:
        to="cleanup_objects";
          precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
          condition=/*%FSM<CONDITION""">*/"((time - _lastItemCheck) > 65)"/*%FSM</CONDITION""">*/;
          action=/*%FSM<ACTION""">*/"_lastItemCheck = time;"/*%FSM</ACTION""">*/;

other than this there is a missing check for nearby players in the body cleanup part. It will delete zombies even if a player is nearby. Ill test the fix now..

Well spotted, genius..!

origins_grave.jpg


Interestingly, before applying that change I could spawn vehicles in (using my ingame admin spawn menu). After applying it, however, the hacker check code started to work, which explains the burning chopper and grave here..
 
yea before the server had a loop back >.< causing it to run the loot check twice and only those 2 sections of the code.

you could just remove the code in the section for hacker check.
 
Look cleanup needs to get fixed, it is totaly broken.


If someone has a good cleanup file to share, put a pull up on git our link a download to it.
I have tried uploading the old one, but git won't accept it or reverts back to the old one with the additions.

I downloaded from Cortez's site and just copied it over, but I don't think it's the correct one that's getting uploaded.
Unless he added the edits and extra files.
 
Hero kills should have been added with the newest debug that i committed, let me know if its not working. As for zombie kills its not hard to add in if u would like it ill paste the code here later.

As for the FSM, it seems to run everyone second >.<


Heros killed is appearing with last update.
 
So far i can say it works.

RTP flood is away, server keeps fps
Loot behavior: when in radius of 200m loot isnt deleted, outside 200m loot gets deleted and respawns new if close enough (i doubt 190m) .

Code:
17:13:49 "DEBUG FPS : 15.311 AND "_countAllObjM: 567"Players: 1_zombies:0_zombiesA:0_loot:23_lootL:23_dayz_zombiesLocal:0_dead:0_numDeadL:0Animal=0"
17:16:56 "DEBUG FPS : 46.6472 AND "_countAllObjM: 687"Players: 1_zombies:21_zombiesA:5_loot:83_lootL:23_dayz_zombiesLocal:0_dead:16_numDeadL:0Animal=1"
17:19:58 "DEBUG FPS : 48.4848 AND "_countAllObjM: 687"Players: 1_zombies:21_zombiesA:5_loot:82_lootL:23_dayz_zombiesLocal:0_dead:16_numDeadL:0Animal=1"
17:22:59 "DEBUG FPS : 43.4783 AND "_countAllObjM: 666"Players: 1_zombies:4_zombiesA:4_loot:85_lootL:23_dayz_zombiesLocal:0_dead:0_numDeadL:0Animal=0"
17:26:01 "DEBUG FPS : 48.048 AND "_countAllObjM: 628"Players: 1_zombies:4_zombiesA:4_loot:58_lootL:23_dayz_zombiesLocal:0_dead:0_numDeadL:0Animal=1"
17:29:02 "DEBUG FPS : 47.4777 AND "_countAllObjM: 626"Players: 1_zombies:4_zombiesA:4_loot:58_lootL:23_dayz_zombiesLocal:0_dead:0_numDeadL:0Animal=0"
17:32:01 "DEBUG: Player Sharkking [108966470] added to botPlayers: ["108966470"]"17:32:01 "DEBUG: START _doLoop 0,_isDead=false"
17:32:04 "DEBUG FPS : 45.7143 AND "_countAllObjM: 624"Players: 0_zombies:0_zombiesA:0_loot:64_lootL:64_dayz_zombiesLocal:0_dead:0_numDeadL:0Animal=0"
17:32:41 "DEBUG: END _doLoop 40, _isDead=false"
17:32:41 "DEBUG: Player Sharkking [108966470] removed from botPlayers: []"17:35:06

from the logs i would even say the gravecross is now working (not confimed)

Code:
17:36:59 "CLEANUP: PERFORMING BODY CLEANUP ON BODIES, Time=1380.51"
17:36:59 "Replaced Body (TavianaGuardg14g1)-(19 items, at [22929.3,19469.2,0]), _backpackType="
17:36:59 "Replaced Body (TavianaGuardg14g2)-(4 items, at [22932,19471.1,0]), _backpackType="
17:36:59 "Replaced Body (TavianaGuardg14g3)-(4 items, at [22933.6,19472.7,0]), _backpackType="
17:36:59 "Total Replaced 3 Bodys"


You want to share your complete file.
Or even better the entire .pbo.
 
Thank you Sharkking. Going to test this now-- epic job.

Full moon is default in origins, correct? How do you do 4h/2h day/night bychance?


[3,true,true,3] execFSM "core_time.fsm";
This would have to edited, but not 100% the correct values.
3 means 3 mins for every minute.
1st number is day value, last number is night.
Possibly you want [3,true,true,6] execFSM "core_time.fsm";

Here the instructions if you want to look into it.
http://forums.bistudio.com/showthread.php?137061-MP-Fast-time-FSM-JIP-Compatible
 
Back
Top