Morox AI - Sycosis Simple AI mod

This MOD does not work on AI created in Mission Editor it only handles AI created using the _aispawn line in the init.sqf, and at the moment the waypoints are randomly generated from the start position/radius/and waypoint numbers you enter. I am working on code now to setup specific paths like you would in the editor.
 
Are you using the OP files, or did you also grab the edit I made for Samirocks? Did you make any mods to the files? If so can you post your init.sqf and add_unit_server.sqf?
 
I am using the files that I got here when you first made this thread. Did you change any of them?
 

Attachments

  • init.sqf
    4.4 KB · Views: 15
  • add_unit_server.sqf
    16.5 KB · Views: 9
Your init.sqf has two lines

Code:
_aispawn = [[6785.0,2525.00,1],600,300,1,4,1,3,10,2,900] execVM "Scripts\add_unit_server.sqf"; // Cherno
_aispawn = [[10363.0,2244.0,1],600,300,1,4,1,3,10,3,900] execVM "Scripts\add_unit_server.sqf"; // Elektro

Which are using gearsets that are not defined in the add_unit_server.sqf 2 and 3 are not defined ,you shoud use 0 or 1 or add the gearsets if you want them to have different ones
 
Can you upload your rpt file, I just used your exact files and had no issues, maybe there is something with some of the other mods you are running, can you package your pbo, or zip your missions folder so I can test your exact loadout.
 
Sure..

Only other mods are Auto Refuel and Salvage Parts from cars.
 

Attachments

  • dayz_1.chernarus.pbo
    350.8 KB · Views: 6
Everything seems to work fine, are there any specific errors in your RPT - there is an entry when an NPC dies and when and where they should respawn, also the note "Global Faciion is #" means the spawn script ran.

My rpt using your pbo shows this: I set the respawn time to 10 seconds on your first line, spawned in next to them and killed them and this is what I saw.

"NPC dead! Respawning in 10"
"NPC dead! Respawning in 10"
"NPC dead! Respawning in 10"

"Respawning NPC at [6875.03,11163.8,0.00140381]"
"globalFaction is 0"
"Respawning NPC at [6877.06,11165.7,0.00119019]"
"globalFaction is 0"
"NPC dead! Respawning in 10"
"Respawning NPC at [6870.37,11155.7,0.00131226]"
"globalFaction is 0"

I would recommend lowering your respawn time to test this out.
 
I have a bunch of weird errors in my rpt.
It shows them respawning, but i can not find them at all.
And I have 3 groups spawning at NWAF but can only find 1 group of them.
Not sure wth is going on. :(
 
I wiped the RPT file and did a fresh restart of the server.
This is showing just after I joined the server.



Code:
13:40:31 "NPC dead! Respawning in 900"
13:40:41 bin\config.bin/CfgMovesZombie/States/AmovPercMrunSnonWnonDfr.InterpolateTo: item count not multiple of 2 (is 17)
13:40:41  bin\config.bin/CfgMovesZombie/States/AmovPercMrunSnonWnonDfr.InterpolateTo: Bad move
13:40:41 bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDl.InterpolateTo: item count not multiple of 2 (is 9)
13:40:41  bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDl.InterpolateTo: Bad move
13:40:41 bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDb.InterpolateTo: item count not multiple of 2 (is 9)
13:40:41  bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDb.InterpolateTo: Bad move
13:40:41 bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDbr.InterpolateTo: item count not multiple of 2 (is 9)
13:40:41  bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDbr.InterpolateTo: Bad move
13:40:41 bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDfr.InterpolateTo: item count not multiple of 2 (is 11)
13:40:41  bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDfr.InterpolateTo: Bad move
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medicEnd
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic0S
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic0
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic1
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic2
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic3
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic3
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic4
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic5
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic4
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic5
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic0S
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic0
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic1
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic2
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.InterpolateTo: Bad move AinvPknlMstpSnonWnonDnon_medic0S
13:40:41  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.InterpolateTo: Bad move AinvPknlMstpSnonWnonDr_medic0S

Shows that one spawned in dead for sure.
I did a CTRL+F and that's the only "NPC" in the entire RPT file.

Not sure what all these other errors are.
 
Ir seems there an issue somewhere, so couple of questions you running this on a dedicated server or on a hosting provider? Do you see globalFaction is # anywhere in the RPT? I'll write some debugs into the scripts and pack them in a PBO for you and we can see where it may be breaking.
 
This is a dedicated server I am running on a local box.

Yeah, shows it a few times.



Code:
13:39:43 Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon
13:39:43 Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 1)! MoveName: amovpercmrunsnonwbindf_rfl
13:39:45 "globalFaction is 1"
13:39:45 Warning: z\addons\dayz_communityassets\models\compass.p3d:0 Error while trying to generate ST for points: 863, 853, 852
13:39:46 "globalFaction is 0"
13:39:46 "globalFaction is 0"
13:39:46 "globalFaction is 0"
13:39:46 "globalFaction is 1"
13:39:46 "globalFaction is 0"
13:39:47 "globalFaction is 0"
13:39:47 "globalFaction is 0"
13:39:47 "SERVER: VERSION: CC 5.9.0.0"
13:39:47 "SERVER: WORLD: "chernarus""
13:39:47 "SERVER: INSTANCE: 1"
13:39:47 "HIVE: Starting ..."
13:39:47 "HIVE: Fetching objects ..."
13:39:48 "HIVE: Fetched 457 objects!"


Then it spawns the vehicles..
 
if you remove all the _aispawn lines do you still get all the errors still that you have in the RPT?
 
Hi,

Thanks for this script all seems to work fine but I am also having the same type of issue as dEf.

My Init.sqf I have only spawned one for testing

spawncnt = 0;
_aispawn = [[7179.02,3216.82,0.001],100,4,1,2,1,3,6,1,120] execVM "scripts\add_unit_server.sqf";

the RPT FIle

12:59:29 "NPC dead! Respawning in 120"
SOME LINES
12:59:33 "HIVE: WRITE: "CHILD:306:"357":[["palivo",0.086]]:0.001:""
13:01:29 "Respawning NPC at [7180,3218.81,0.00143862]"
13:01:29 "globalFaction is 1"
13:01:45 Server: Object 3:71 not found (message 94)
13:02:23 "DEBUG FPS : 50"

The only MOD i have done is to add the % chance for the body to hide. However I did also test before this and could not see the guy respawning but the log showed the same.
 
Dwarfer,

As a quick test can you change the Wpradius and wpnum to 1,1 and the respawn to 10

_aispawn = [[7179.02,3216.82,0.001],1,1,1,2,1,3,6,1,10] execVM "scripts\add_unit_server.sqf";

This will lock them in place so they can't move around and they should respawn right where they are locked.

And see if they respawn.
 
Hi,

Yeah this worked.. oddly if I increase the time and set the radius to 10,2 in an open field I do not see him.. Hmm..
 
Back
Top