- Joined
- Mar 24, 2008
- Messages
- 184
Hi,
i had started a thread on the 3rd party tools because i thought i had a problem with Newgenpack, just today i realized the problem wasn't newgen but i've discovered the problem relies on the fact i can't add more variables, if i do, it screws up triggers and they don't work anymore, here i'm posting the relevant parts of that thread, i hope someone can solve my problem...I mean, what i want to know is if there's a limit to variables or there's something not working on my map.
The most important part is the last part, in case you want to download the map and check yourself, you can donwload it from the thread http://www.hiveworkshop.com/forums/f277/jassnewgenpack-triggers-not-working-anymore-108780/ (delete the "Timers" and "Availabletimers" array to make it work, and try adding a new array to the map, at this point it doesn't work anymore)
i had started a thread on the 3rd party tools because i thought i had a problem with Newgenpack, just today i realized the problem wasn't newgen but i've discovered the problem relies on the fact i can't add more variables, if i do, it screws up triggers and they don't work anymore, here i'm posting the relevant parts of that thread, i hope someone can solve my problem...I mean, what i want to know is if there's a limit to variables or there's something not working on my map.
The most important part is the last part, in case you want to download the map and check yourself, you can donwload it from the thread http://www.hiveworkshop.com/forums/f277/jassnewgenpack-triggers-not-working-anymore-108780/ (delete the "Timers" and "Availabletimers" array to make it work, and try adding a new array to the map, at this point it doesn't work anymore)
Hi,
Not sure if i'm posting in the right place but...
I was working on a map (writing stuff in a non active trigger actually) with newgenpack when i wanted to test the map for something else. So, when i clicked on test War3 started loading the map but just before it completed loading it crashed with the usual error "memory couldn't be on read etc...", then, after several attempts to discover what happened, i decided to make a copy of the map, delete all the Jass and vJass stuff, and open it with the normal world editor.
This time the map loaded, but no trigger was working (most of the map i'm working at is in GUI, there were just 3 triggers in Jass and 1 in vJass). I checked the triggers with the normal world editor, and they were still there, just not working wthen he map is loaded...
Now, what could've caused the problem? (the vJass script already existed, though it was disabled, the only thing i added was a library in the "Custom Script" part of the trigger editor) how can i fix that? In a Fast and Painless way if possible
when i open it through the normal World editor, the map loads but no trigger works (though they are visible on the map editor). The problem is not war3 or Newgenpack itself, but the fact Newgen screwed up this map in some way i don't understand and i want to fix it (that's why i said maybe i wrote in the wrong section).
Maybe it would be easier if i post the maps so you can see the error by yourself
EDIT:
So, i ran the map with newgen disabling war3err and Start war3 with Grimoire. Atm i have 2 maps, one with vJass triggers (disabled) and a copy of that map without. If i run thoose maps with war3err and Grimoire they don't work, if i run without, they start but no trigger works (not even GUI ones)
just today i was thinking what else i could've done other than writing Vjass code, and i reminded i made 2 global arrays. Tried deleting them and the map works again!
I made several tests and it went out that i cannot make more arrays...is there any limit to the number of variables you can do in a map? I have (with the working map) 79 variables and 3 arrays, at least global ones. If i make other variables it's all fine, but as soon as i make an array, triggers stop working...
Last edited: