retupmoc258
New Member
- Reaction score
- 1
It's very odd, and I have had the problem a few times, but there are a few custom functions I have made that for whatever reason seem to be elusive. Sometimes I can get my map to save and compile right so that it recognizes these three functions, but even then it usually doesn't work.
I have a trigger that runs on initialization and it only runs one function called RegisterUnit. It has a unit variable that has already been assigned to use and work with (a unit that the game gave me that represented the unit). But when I compile the map, Jasshelper always says that it can't find the function. I can look for it and find it. I can move the function around in my triggers, and it still can't see it. The compilation that shows up also has everything out of order from where it is in my trigger organization (I don't know if that makes a big difference).
Then there's another function called SetAllStats, and that also seems to have problems whenever RegisterUnit does. They're virtually unrelated, other than I made them at the same time.
Sometimes I can just randomly do something and save it and they're found again (such as now when I reloaded the map and resaved it), and one time I exported the trigger data and reimported it (and that fixed it) and then it came back in both cases. It definitely sounds like there's something else wrong, but I am wondering what the problem is. Does anyone know what may be causing it? I am not a programming expert, so I imagine there might be a reason I just don't know. When everything does save and I run my game, the two triggers perform beautifully, doing exactly what they're supposed to do and run smooth as can be (don't even know if there's any noticeable lags).
The only other connection I can think of is that I created a new TimerUtils function that also sometimes doesn't register (but that tends to happen when the other two DO register).
So I am not sure what I can do, other than just ignore it and fix it once in a while so I can test my map. Any suggestions?
I have a trigger that runs on initialization and it only runs one function called RegisterUnit. It has a unit variable that has already been assigned to use and work with (a unit that the game gave me that represented the unit). But when I compile the map, Jasshelper always says that it can't find the function. I can look for it and find it. I can move the function around in my triggers, and it still can't see it. The compilation that shows up also has everything out of order from where it is in my trigger organization (I don't know if that makes a big difference).
Then there's another function called SetAllStats, and that also seems to have problems whenever RegisterUnit does. They're virtually unrelated, other than I made them at the same time.
Sometimes I can just randomly do something and save it and they're found again (such as now when I reloaded the map and resaved it), and one time I exported the trigger data and reimported it (and that fixed it) and then it came back in both cases. It definitely sounds like there's something else wrong, but I am wondering what the problem is. Does anyone know what may be causing it? I am not a programming expert, so I imagine there might be a reason I just don't know. When everything does save and I run my game, the two triggers perform beautifully, doing exactly what they're supposed to do and run smooth as can be (don't even know if there's any noticeable lags).
The only other connection I can think of is that I created a new TimerUtils function that also sometimes doesn't register (but that tends to happen when the other two DO register).
So I am not sure what I can do, other than just ignore it and fix it once in a while so I can test my map. Any suggestions?