Parameters out of bounds in sUnits create (value: -1, min 0, max 15?)

Maarten

New Member
Reaction score
0
Hi everyone,

I got the following error. Parameters out of bounds in sUnits create (value: -1, min 0, max 15?)

Please see the uploaded image for my triggers. I check the Debug trigger function with testing and its caused by some integers are having the value -1. So its creating units for players who doesnt exsist. For now, I just can't see what I'm doing wrong or whatsoever is causing that value.

Someone have any idea what would cause this and how I can solve this issue?

Thanks in advance.
 

Attachments

  • start structure.png
    start structure.png
    67.4 KB · Views: 467

Maarten

New Member
Reaction score
0
I have add a condition

Status of player Players [x] = Active

So it probely doesnt try to get players who doesnt exsist.. But further I hope this trigger will work now .. Only cannot test unless I publish it and find some players to test it.. so it seems :(

Someone got any other suggestions how I can test this witouth publishing it?:D
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
Please open your trigger, select all text with ctrl+a and then right click it and copy as text(ctrl+shift+c).

Paste the code between [wc3][/wc3] tags.
 

Dave312

Censored for your safe viewing
Reaction score
269
I have add a condition

Status of player Players [x] = Active

So it probely doesnt try to get players who doesnt exsist..
I think that was most likely the issue. If you do a local test (i.e just press the Test Map button) then it should test the map for when players 2 and 3 don't exist. If you wan't to test it for other cases then you will need to publish it. It is impossible to completely debug a multiplayer map without publishing it.
 

Maarten

New Member
Reaction score
0
I think that was most likely the issue. If you do a local test (i.e just press the Test Map button) then it should test the map for when players 2 and 3 don't exist. If you wan't to test it for other cases then you will need to publish it. It is impossible to completely debug a multiplayer map without publishing it.


Yes, it was the issue. I tested it online and it works fine. The error is also gone now. I thought the trigger would return False if it can't find any players to it. So I woudnt exspect this. Well, now I've learned. Thanks for the help anywayz!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top