• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Crash] [HELP] internal error in the LUA transpiler

Level 4
Joined
Apr 20, 2023
Messages
43
i have a bug, it's make me confuse long time, my script is write by lua. (have not one line jass code).
but when i use RestartGame() API to restart game, sometimes, it will random crashing. (About 1 in 10 probability) 。 below is the war3 error log. can someone guys help me ?


5/8 02:49:35.974 Map contains invalid Jass scripts that couldn't be compiled by war3, file: <internal> @ 0, error: internal error in the LUA transpiler
5/8 02:49:36.171 Played (null)

@Eikonium @Tasyen

here is my 3rd common lib
WechatIMG126.png


@Bribe

@Uncle
 
i have a bug, it's make me confuse long time, my script is write by lua. (have not one line jass code).
but when i use RestartGame() API to restart game, sometimes, it will random crashing. (About 1 in 10 probability) 。 below is the war3 error log. can someone guys help me ?


5/8 02:49:35.974 Map contains invalid Jass scripts that couldn't be compiled by war3, file: <internal> @ 0, error: internal error in the LUA transpiler
5/8 02:49:36.171 Played (null)
That is wierd it fails to display the filename. it should display file: war3map.lua, error:
Like in the example below:

5/10 12:04:41.771 Map contains invalid Jass scripts that couldn't be compiled by war3, file: war3map.lua, error: attempt to call a nil value (global 'SuperTest')

file: <internal> @ 0

You have Lua code in the root that touches warcraft 3 stuff?
 
Level 4
Joined
Apr 20, 2023
Messages
43
no, in
That is wierd it fails to display the filename. it should display file: war3map.lua, error:
Like in the example below:

5/10 12:04:41.771 Map contains invalid Jass scripts that couldn't be compiled by war3, file: war3map.lua, error: attempt to call a nil value (global 'SuperTest')



You have Lua code in the root that touches warcraft 3 stuff?
thanks guys, no wc3 object in root reference.
just some constant value in root
 
Level 4
Joined
Apr 20, 2023
Messages
43
That sounds fine.
As far I know when the log displays invalid jass script. Then something goes wrong while reading the file war3map.lua. All the Lua code in the root runs during that reading.
good luck
thank you, i will rebuild all my code in oninit function . and test again
 
Top