- Joined
- Jan 16, 2009
- Messages
- 716
I have encountered a very strange bug that seems to make my jasshelper crash when trying to compile my map.
This is the error given :
I am using Cohadar's Jasshelper and I can't switch to Vexorian's because I am using a lot of the features of the Cohadar's one. My script is very long
Trying to understand where came the issue, I found that I was able to compile the map when I removed parts of some code. At first I thought it was that specific code that was prompting this issue but as I have found the code was 100% clean. I must not see something, right ?
So I started to rewrite this part of the code line by line and compiling each time I added a new line. All was fine until it crashed again. So then I thought I found the line that was causing the issue but it seemed fine. Then I erased the line but left it empty and compiled again. It crashed again ! Then I removed the empty line and compiled... It compiled fine ! Then I thought that maybe my code was so long that any new line made it crash.
I verified this last theory by adding random empty lines anywhere in the code and trying to compile. Without the empty lines, the code would compile, when I added only one more empty line anywhere in the code it crashed with at all time the same error.
I am not sure that I have reached the maximum numbers of lines because I have only (by checking the war3map.j with an MPQ editor) 93810 lines of code and I have heard of bigger projects. Though the war3map produced by JNGP and found in its folder is 133044 lines long (though with tones of empty lines).
TL;DR : adding one more line of code anywhere in the script makes my map crash when previously it would compile fine.
Can somebody help me with this issue ? Maybe find a fix ? Maybe find the real reason (because I don't think there is even a maximum number of lines, and if there is it must be much higher than that...) ?
This is the error given :
I am using Cohadar's Jasshelper and I can't switch to Vexorian's because I am using a lot of the features of the Cohadar's one. My script is very long
Trying to understand where came the issue, I found that I was able to compile the map when I removed parts of some code. At first I thought it was that specific code that was prompting this issue but as I have found the code was 100% clean. I must not see something, right ?
So I started to rewrite this part of the code line by line and compiling each time I added a new line. All was fine until it crashed again. So then I thought I found the line that was causing the issue but it seemed fine. Then I erased the line but left it empty and compiled again. It crashed again ! Then I removed the empty line and compiled... It compiled fine ! Then I thought that maybe my code was so long that any new line made it crash.
I verified this last theory by adding random empty lines anywhere in the code and trying to compile. Without the empty lines, the code would compile, when I added only one more empty line anywhere in the code it crashed with at all time the same error.
I am not sure that I have reached the maximum numbers of lines because I have only (by checking the war3map.j with an MPQ editor) 93810 lines of code and I have heard of bigger projects. Though the war3map produced by JNGP and found in its folder is 133044 lines long (though with tones of empty lines).
TL;DR : adding one more line of code anywhere in the script makes my map crash when previously it would compile fine.
Can somebody help me with this issue ? Maybe find a fix ? Maybe find the real reason (because I don't think there is even a maximum number of lines, and if there is it must be much higher than that...) ?