For a while now I’ve had several questions about my experience with trigger editor, but I felt too newb to ask about it. But it’s probably better to ask than to sit with your suspicions thinking you understand it. So please bear with my complete incompetence in the field of inner-workings of the editor, I’ll try to get better :D
One question is what matters when you do triggering? Besides keeping your code flexible and understandable to yourself.
When I go to overview manager and look up "Triggers" I see 2.05 MB compressed size. Does this number have any significance? I know that you can't go over 2MB script limit but compressed trigger size and script size are different things, right? (my script size is 887 kb now)
I understand that there is memory limit. Triggers/Actions take up space(for local variables and stuff) when they're called (and give it back when they're finished?), same with functions, global variables are constantly in memory, and data tables are saved somewhere elsewhere?(where?). (Right/wrong, what else is there to add?)
Now, my weird experiences:
Create way too many variables for dialog items and notice that player group variables won’t hold players anymore. (I checked it, remove few random global variables from anywhere, player groups work fine, add them back -> player groups break again)
I have a record with 4 arrays in it (int[30][30]). I add another int[30][30] array and trigger action "Create explosion at a point" stop working (doesn't create anything, and there are no errors displayed). Now his is just weird, because if I add array of same size to any other record, nothing breaks. I can copy-paste that global record and that action will still work. It's just that record seem to be bugging everything.
Another problem with record, if I move it (move record + its variable higher or lower in GUI triggerlist), game can't seem to find it any more.
1st example was a year ago, 2nd and 3rd are recent. Can someone explain what/why is it happening?
For a while now I’ve had several questions about my experience with trigger editor, but I felt too newb to ask about it. But it’s probably better to ask than to sit with your suspicions thinking you understand it. So please bear with my complete incompetence in the field of inner-workings of the editor, I’ll try to get better :D
One question is what matters when you do triggering? Besides keeping your code flexible and understandable to yourself.
When I go to overview manager and look up "Triggers" I see 2.05 MB compressed size. Does this number have any significance? I know that you can't go over 2MB script limit but compressed trigger size and script size are different things, right? (my script size is 887 kb now)
I understand that there is memory limit. Triggers/Actions take up space(for local variables and stuff) when they're called (and give it back when they're finished?), same with functions, global variables are constantly in memory, and data tables are saved somewhere elsewhere?(where?). (Right/wrong, what else is there to add?)
Now, my weird experiences:
1st example was a year ago, 2nd and 3rd are recent. Can someone explain what/why is it happening?