| 11-27-2006, 09:06 AM | #1 |
I've been getting kind of odd errors, This time I have the preprocessors in the order you told me too, but now when I'm adding structs everything works fine until I've added about 6 structs, now everytime I save it it gives me a different error on a random line, but they seem to have this in similar. 1. Random spot in script is where the error comes up(also every about 5 times it seems to save ok, and the map is runnable) 2. Error is Unrecognized character in line <random line>: š (ASCII -<random number>) and then in the sytax checker window it will show perfect JASS code until you get to a certain point and it just has an odd character that just ends it such as this was an error with Unrecognized character in line 702: š (ASCII -102) JASS:return i endfunction function DestroyPair takes integer id returns nothing if (id>=8189) then call FlushStoredInteger(cs_cache,"pairx",I2S(id)) call FlushStoredInteger(cs_cache,"pairy",I2S(id)) else set cs_freepairs[0]=cs_freepairs[0]+1 set cs_freepairs[cs_freepairs[0]] = id endif endfunction š // error is for this symbol, and the unrecognized character is not always this symbol //also some letter T thing that won't paste on this site, probably irrelevant Also before when I was getting errors, it was for doing the same thing but I can't create the results again, but the error I was getting instead was something about invalid pointers, and other times about invalid pointers and something about JassHelper.dll Oh and, the less structs I have the better chance it has to just save without errors, so I can still add structs(I just create copies of others to test) and everyonce in awhile it randomly saves without error(note: I'm not forgetting to just close the syntax window, I know it doesn't make the noise when you do) and with like 4 structs it saves everytime. and i just have no idea what it is about your tools and how I seem to use them wrong, sorry about that. |
| 11-27-2006, 03:08 PM | #2 |
should be a bug with the compiler, I guess I didn't try with a lot of lines. will try to reproduce the bug and come up with a fix. |
| 11-27-2006, 03:14 PM | #3 |
I added some structs to a map and nothing is wrong, just a question, are you using the latest WEHelper? Cause it could be some of the pre 1.6 problems |
| 11-27-2006, 03:16 PM | #4 |
I could reproduce it, seems CSCache is needed for it to happen. |
| 11-27-2006, 03:17 PM | #5 |
It is odd, I cannot reproduce it outside WEHelper (grimoire's unreleased compiler) this could be a WEHelper problem afterall. Edit: Now I am unable to reproduce it on WEHelper as well, arg I hate random bugs |
| 11-28-2006, 06:18 AM | #6 |
Yeah I didn't realize that I needed 1.6 of WE Helper, but for some reason 1.6 didn't work for me so I used 1.5.3 instead but since the reason 1.6 didn't work was because it could not find SFmpq.dll and I checked the folder after installing 1.6 and it was not there. but then I noticed grimoires had a file named that so I thought, what the heck and just copied that into my 1.6 folder even though it is for grimoires and not for WE Helper, but then I tested the same map and no problem, the same when I add alot more structs. *edit* ok so don't try that, I learned very fast that it wasn't working right for me(after I noticed an obvious syntax error that it just saved instead of reporting to me) So apparently it just wont report any errors by that means. *edit*Grimoire's seems to be working fine with the same map. I have tested it up to 16 structs. |
| 11-28-2006, 02:59 PM | #7 |
Well in grimoire it could have had a lesser chance to have the bugs but they were still there I can asure that. I just fixed them in 0.9.2, thread closed since issue is solved. |
