When in the editor go to the preferences, then Test Document, then make sure to have the Debug window checked. When you will encounter an error, the game will pause and allow you to check what is wrong and go to that specefic line in the debug window.
The errors are pretty self explanatory. One of them is an array out of bounds error (index larger or less than array size). The other is a random point in region failure (region null, 0 dimensioned or too complex so a point cannot be found).
Random point in region works by getting a random point in the bounding region and then testing if it is inside the region repeating at most 32 times before failure. For very complex regions with huge bounding boxes and proportionately very small valid area then there is a very small chance of success. For anything but the most simple primitive regions I recommend having a fall back point in case of failure.
As Scbroodsc2 mentioned, use the Trigger Debugger to analyse what is going wrong. Be aware that it works completely in Galaxy script (what GUI compiles to) so some programming experience is recommended. If you have any C or C++ experience understanding Galaxy script should be no problem.
array access cannot be found is not good can't be solved
It says it is trying to access an element past end of array and not that anything cannot be found. Arrays in Galaxy are finite in size, with size specified as part of the type during declaration.
If you cannot understand how to use the trigger debugger you may have to post the map and explain what you want the triggers to do.
ty yea it is super cool. hammincourt will launch the 4 drone sets next to have their lasers dodged. but applying the secret laser dodging formula is proving difficult and only the corner values will respond... so he is jumping rope until the values can be found.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
how to look at a specific line in trigger? i am looking to find line 3805.edit: am so close to the big solve just need to debug one!
When in the editor go to the preferences, then Test Document, then make sure to have the Debug window checked. When you will encounter an error, the game will pause and allow you to check what is wrong and go to that specefic line in the debug window.
Working on projects:
The errors are pretty self explanatory. One of them is an array out of bounds error (index larger or less than array size). The other is a random point in region failure (region null, 0 dimensioned or too complex so a point cannot be found).
Random point in region works by getting a random point in the bounding region and then testing if it is inside the region repeating at most 32 times before failure. For very complex regions with huge bounding boxes and proportionately very small valid area then there is a very small chance of success. For anything but the most simple primitive regions I recommend having a fall back point in case of failure.
As Scbroodsc2 mentioned, use the Trigger Debugger to analyse what is going wrong. Be aware that it works completely in Galaxy script (what GUI compiles to) so some programming experience is recommended. If you have any C or C++ experience understanding Galaxy script should be no problem.
no @@ the random point does not matter b/c the region is just circle subtract circle. array access cannot be found is not good can't be solved
actually i am getting farther away and the unit cannot walk in a straight line =[[
It says it is trying to access an element past end of array and not that anything cannot be found. Arrays in Galaxy are finite in size, with size specified as part of the type during declaration.
If you cannot understand how to use the trigger debugger you may have to post the map and explain what you want the triggers to do.
apparently it is just spawning > 1,000 units... mebbe it will work soon i have changed the array
yaya it is working!
Whoa, wtf is that lol. Looks somewhat complicated but pretty cool too. In a smaller scale it could be used as a laser dodging game.
Working on projects:
ty yea it is super cool. hammincourt will launch the 4 drone sets next to have their lasers dodged. but applying the secret laser dodging formula is proving difficult and only the corner values will respond... so he is jumping rope until the values can be found.