• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

lua

  1. Aleksandr

    luaimport does not work

    Hello all. I'm trying to include external script to the map but it throws some unexpected error: I'm using following code: //! luaimport "c:\Game\x.lua" What could be wrong ? Or it should be included using another statement ? Attached map here...
  2. Drake53

    [Lua] Basic lua functions

    I checked all functions for lua 5.3 by comparing them to nil. You can see the result in the image below. Functions highlighted red cannot be used. You can find the list of functions and see their documentation here.
  3. seeYouInHell

    Lua to bytecode -- is it possible?

    I have feeling that I heard protected map now can contain just bytecode of Lua script, so there is no need in source code obfuscation: source code can be removed. But now I'm not sure about that: does WC3 support Lua bytecode in the MPQ or it compiles it every time on the loading screen like in...
  4. Rhobox

    Lua string formatting and decimal places

    Hello! Has anyone found a good way to print or set tooltips (or any other numbers) to only a certain number of decimal places in Lua yet? The string.format() option always just returns the minimum number it seems to be able to. Integer math doesn't work super well either as it is prone to...
  5. AtheosTG

    Are LUA apis identical to Jass?

    I'm trying to run the following code: function SpawnerActions() print "I am a test string." CreateNUnitsAtLoc(1, "hfoo", Player(0), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING ) end onTriggerInit(function () Spawner = CreateTrigger()...
  6. AtheosTG

    Does jasshelper now ship with standard warcraft 3?

    I can't seem to be able to remove Jasshelper. I want to use lua and i think JH is giving me trouble. However simply deleting the folder only results in it re-downloading. Anything i should know?
  7. JsonDalao

    Lua does not seem to automate garbage collection in 1.31

    Instances of Lua are created every second and used memory is exported, without notice that the memory is reduced and is freed by calling "collectgarbage("collect")
  8. Tasyen

    Variable Debugger

    This is a Lua UI resource that allows to inspect values of any global and table data during the game. But not no hashtable Data directly, for hashtables it uses an resource that replaces hashtables with Lua tables. One is also capable to Change number, string and boolean data. Such changes done...
  9. Uncle

    Issues with creating a Dialog (Lua)

    So the issue is weird. This code works as it should: function Test() DialogTest = DialogCreate() DialogAddButtonBJ(DialogTest, "TEST") DialogDisplayBJ(true, DialogTest, Player(0)) end It creates the Dialog and everything works fine. However, the problem occurs when trying to run...
  10. Uncle

    Imprecision of timers and working around it (Lua)

    The problem is that the Reals aren't precise. Here's a simple code I made in Lua: local duration = 5.00 TimerStart(SomeTimer, 0.05, true, function() duration = duration - 0.05 print("Duration = ", duration) if duration <= 0 then --End the timer end end end) When I...
  11. The_Spellweaver

    [UI] Lua (Wow) Talent system

    So, I've been busy last few couple of days and made this little thing that I need for a map and I thought it would be nice if I made it usable by other people. I'm mostly posting this for people to check out/use or note bugs. (1-2 I already know of) What I would also appreciate is ideas of how...
  12. strange_loop

    [Lua] Unit ID string to integer

    I'm new around here and I just recently started getting into W3 scripting now that Lua is a thing! I came up with a function that might be useful. If it's not, please just archive this thread and carry on :gg: Functions like native CreateUnit takes player id, integer unitid, real x, real y...
  13. Uncle

    Creating global variables in Lua (and some other Lua questions)

    Edit: I figured out my problem and managed to get the global variables and multi-dimensional array to work. However, this brings up a new question. Is there a way to set the default values of these Arrays to be 0 instead of having to manually set every single one to 0 like I do below? I don't...
  14. Yui Moe

    [Leak] Lua Scripting & Memory Leak

    Hello guys, Since now editor officially support Lua scripting and we all know Lua is a quite common and widely used language, I wonder will it avoid all or part of memory leak problems by using Lua instead of JASS? Actually the biggest blocker prevent me to create custom games is it forced me...
  15. Trokkin

    LUA tests and benchmarks

    I've been asked to check several statements about LUA, so here's a bunch of tests and benchmarks from me. This compilation might be supplemented should any questions appear. Ask any! I'm using Trokkin/CeresStdLib for utility. [/SPOILER] [/SPOILER]
  16. Aleksandr

    [General] Wold Editor team development experience

    Hello everyone. Recently I wanted to do with something using World Editor. Also there were guys who wanted to help me in parallel. But only one person can do some work on the map at the some moment. => we have couple of huge disadvantages: It's not convinient to exchange the map. We need to...
  17. D

    A Warcraft III map development tool set of Lua for vscode

    warcraft-vscode This extension is a Warcraft III map development tool set of Lua. Install warcraft-vscode Features Compile script for Debug Pack map Run map Open world editor Add libraries Usage Press F1 in vscode Input warcraft create and Press Enter to create a Warcraft III map project...
  18. Grimhollow

    [Crash] Trigger Merger / File Exporter do not work

    So I'm trying to merge triggers from map to map but it shows up 'Plugin Error: Warcraft mpqs could not be opened.' Any fixes? I cant copy triggers one by one bros. Thanks
  19. Flux

    [General] [Object Merger] Pure coded Object Editor Data

    Is it possible to create an Object Editor Spells/Units/Destructables/etc. through Object Merger without appearing in Object Editor? The goal is not to flood Object Editor with these generated objects.
Back
Top