• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen 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 28
Joined
Nov 18, 2012
Messages
2,007
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: 6
  • DungeonGenerator lua_edit.w3x
    438.5 KB · Views: 3
Last edited:

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
2,007
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