Jump to content
  • 0

1.0.6.1 WAI error I found


Blestda86ta

Question

here is the error in the rpt log, some crates are not spawning in and sometimes nothing at all except for landmines. I'm running WAI mission system-

21:15:10 "WAI: [Mission:[Hero] Armed Vehicle]: Starting... [6754.22,9368.83,0]"
21:15:10 Warning Message: Bad vehicle type DZ_Czech_Vest_Puch
21:15:11 "WAI: Spawned a group of 4 AI (Bandit) at [6754.22,9368.83,0]"
21:15:11 Error in expression <n {
for "_i" from 1 to _mags do {
_unit addMagazine _magazine;
};
_unit addweapo>
21:15:11   Error position: <addMagazine _magazine;
};
_unit addweapo>
21:15:11   Error addmagazine: Type Bool, expected Array,String
21:15:11 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 141
21:15:15 "SERVER FPS: 48  PLAYERS: 2"
21:15:16 Server: Object 4:44 not found (message 70)

and here is the lines closest to the error which is in line (141)

139 - if (!_unarmed) then {
140 -             for "_i" from 1 to _mags do {
141 -                 _unit addMagazine _magazine;
142 -             };
 143 -            _unit addweapon _weapon;
     144 -        _unit selectWeapon _weapon;

Any help with this would be greatly appreciated!

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0
30 minutes ago, Blestda86ta said:

here is the error in the rpt log, some crates are not spawning in and sometimes nothing at all except for landmines. I'm running WAI mission system-

21:15:10 "WAI: [Mission:[Hero] Armed Vehicle]: Starting... [6754.22,9368.83,0]"
21:15:10 Warning Message: Bad vehicle type DZ_Czech_Vest_Puch
21:15:11 "WAI: Spawned a group of 4 AI (Bandit) at [6754.22,9368.83,0]"
21:15:11 Error in expression <n {
for "_i" from 1 to _mags do {
_unit addMagazine _magazine;
};
_unit addweapo>
21:15:11   Error position: <addMagazine _magazine;
};
_unit addweapo>
21:15:11   Error addmagazine: Type Bool, expected Array,String
21:15:11 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 141
21:15:15 "SERVER FPS: 48  PLAYERS: 2"
21:15:16 Server: Object 4:44 not found (message 70)

and here is the lines closest to the error which is in line (141)

139 - if (!_unarmed) then {
140 -             for "_i" from 1 to _mags do {
141 -                 _unit addMagazine _magazine;
142 -             };
 143 -            _unit addweapon _weapon;
     144 -        _unit selectWeapon _weapon;

Any help with this would be greatly appreciated!

Hey man.

If you have edited the weapons in WAI, you might have added a weapon with no ammo (i.e Mosin_BR_DZ)

WAI uses a function called "find_suitable_ammunition" I have noticed in my testing (I added all weapons to a script for WAI) that it returned false for the ammo type instead of an ammo string (i.e "125x50 Overpowered Ammo")

Check that you haven't added a wrong named class name for your weapons

Link to comment
Share on other sites

  • 0

Please forgive my ignorance. When I follow your link it shows a bunch of files that look like they need to be switched out, I assume that green replaces red. Is there a place to download this all finished and ready to go in 1.0.6.1 or do I need to go through each file and make changes. Again, I apologize for my ignorance. I am a novice.

Link to comment
Share on other sites

  • 0
7 minutes ago, Birgitte said:

Please forgive my ignorance. When I follow your link it shows a bunch of files that look like they need to be switched out, I assume that green replaces red. Is there a place to download this all finished and ready to go in 1.0.6.1 or do I need to go through each file and make changes. Again, I apologize for my ignorance. I am a novice.

https://github.com/ebayShopper/WICKED-AI/archive/master.zip

 

Link to comment
Share on other sites

  • 0
2 minutes ago, Neurok_ said:

I just reinstalled my server and installed wai everything is working as intended except for one thing. The doctor ai skins have a trader menu option. Was wondering if anyone else had this issue.

I would assume that the specific doctor skin is set as trader in your server_trader.sqf.

Remove it from there, but make sure you dont need it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...