• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Lua] Displays message but won't run rest of the script?

Status
Not open for further replies.

Wrda

Spell Reviewer
Level 26
Joined
Nov 18, 2012
Messages
1,895
Things to note: Don't do stuff like InitHashtable on lua root (the engulfment with "do end", not being called inside a function). Most natives don't work on lua root and you risk of wasting time figuring out why you are kicked out to main menu when testing your map (FourCC is fine);
Debug Utils is insanely useful to track bugs and errors that ocurr at run time. [Lua] - Debug Utils (Ingame Console etc.)
Also, I would like to present you Eikonium's insane guide to lua, it might be helpful in certain aspects you're still not aware of.


1664810415823.png

1664810493624.png

This is what it appears to be the problem. I imported Debug Utils to the map by the way.
 

Attachments

  • 1664810085001.png
    1664810085001.png
    1.8 MB · Views: 5
  • DungeonGenerator lua_edit.w3x
    438.5 KB · Views: 3
Last edited:

Wrda

Spell Reviewer
Level 26
Joined
Nov 18, 2012
Messages
1,895
You can also try to use this method.
The desperate method should definetely work (whatever it means :D).
 
Status
Not open for further replies.
Top