-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jass parser cannot find config function in map script #64
Comments
Be careful, on a Linux based system the "Folder" data source is often messed up because it is case sensitive. This can easily make it that your Reforged override of the Blizzard.j is not found, such as if the game requests |
You are correct. I had to rename it into "Scripts". Now the map loading screen is shown but then it crashes with:
It seems to pass null here:
for a Computer player which has an open slot and hence has no race? From my understanding you set the local player index here:
it is set to 0 which is the red player but red has no default race (selectable). Note it is a Reforged map so maybe the player format is different? This is the part of my map script generated by the WE:
I made a temporary fix with this line:
but I think it should set a random race or a fixed one from the ini. I know I could specify races in the ini as well. After fixing this issue I know get this one:
which I had to fix with an if:
Now I get this which makes sense since I have no Reforged CASC archives:
However, it could still work even without loading certain textures. Just show them green like Warcraft III does. You could add some check here when loading minimap textures to avoid this:
Maybe check in
if the file can be found and return something empty instead or if it can handle null just return null after checking. |
I get this error in my error log:
The map script should be this: https://raw.githubusercontent.com/tdauth/wowr/refs/heads/master/wowr.w3x/war3map.j
It has no syntax errors with pjass. The map contains a custom Scripts/common.j and Scripts/common.ai.
There is a config function:
I have no idea why it is not found.
I tried to read my file in JassTest.main and although dataSource.getResourceAsStream("war3map.j") gives me my full code file and I can write it as output, smashJassParser.scanAndParse does not produce anything. The number of errors is 0 and there is no exception.
Now I found the issue in the .jass.log
so I have to change the Blizzard.j
After adding a new folder with scripts/Blizzard.j it still does not use the new file. I placed the folder as first entry but maybe it has to be the last entry.
The problem for me is the lack of documentation in the ini file which entry has a higher priority. Placing it at first entry does not load my Blizzard.j and placing it last doesn't either.
The log files should also be documented in the README, so it is clear for everyone where you can find errors and JASS parsing errors.
It would be helpful to have every file loading + it's data source in the log like:
The text was updated successfully, but these errors were encountered: