- Joined
- Jul 10, 2007
- Messages
- 6,306
I was wondering if anyone was pretty good with the Lua API. I'm staring at some of this stuff and I am just absolutely clueless as to what it means.
For example, here is a game event ->
As to what that actually does, I have no idea. I guess it keeps players from getting addicted to toast.
I saw a few functions for reading all of the contents from a file to a string and writing a string to a file, but saw nothing to synchronize that data. I assume that it's not synchronous, because that would be bad.
If you don't yet have the Dota 2 tools, here is how to get them
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/Getting_Started
engine events
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/Built-In_Engine_Events
API
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/API
and file structure
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Addon_Overview/File_Structure
as well as creating an addon
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Addon_Overview/Addon_Creation
publishing it
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Addon_Overview/Publishing_Addons
and playing it
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Addon_Overview/Playing_Addons
So, are there any experts around at the moment that can tell me about some of these functions? There is certainly a lot to cover
. I'm curious about synchronization, packet events (I saw it), dedicated servers, file size limitations (I see nothing about it), setting data of ability (does the text file need to be modified, and is that text file only ever interpreted once?), and some other things too.
With the new Dota 2 map editor out as well as the Source 2 engine, I think that we can say farewell to Warcraft 3 and Starcraft 2, lol.
To end with, if you don't know Lua and would like to learn it, I recommend Programming in Lua 2nd Edition and the Lua 5.1 API. Dota 2 was verified by me to use Lua 5.1.
For example, here is a game event ->
- antiaddiction_toast
As to what that actually does, I have no idea. I guess it keeps players from getting addicted to toast.
I saw a few functions for reading all of the contents from a file to a string and writing a string to a file, but saw nothing to synchronize that data. I assume that it's not synchronous, because that would be bad.
If you don't yet have the Dota 2 tools, here is how to get them
Here is how to get to steam settings
- In your Steam Settings under Account you must opt into Steam Beta Updateparticipation.
- Right-click on Dota 2 in Steam and select View Downloadable Content.
- Check the box in the Install column next to Dota 2 Workshop Tools DLC.
- Click Close. The required content will begin downloading.
- In Steam, go to the Library menu and click on Tools and install the Dota 2 Workshop Tools Alpha.
- Once the download is complete, the launcher is found in Steam under the Library menu under the Tools category. Double-click Dota 2 Workshop Tools to start.
Here is getting started for Lua scriptingClick the Steam icon in your dock. On the very top of the screen, there will be an Apple logo and then Steam in bold right next to it on the right. Click on Steam and then click on Preferences.
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/Getting_Started
engine events
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/Built-In_Engine_Events
API
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/API
and file structure
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Addon_Overview/File_Structure
as well as creating an addon
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Addon_Overview/Addon_Creation
publishing it
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Addon_Overview/Publishing_Addons
and playing it
https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Addon_Overview/Playing_Addons
So, are there any experts around at the moment that can tell me about some of these functions? There is certainly a lot to cover
With the new Dota 2 map editor out as well as the Source 2 engine, I think that we can say farewell to Warcraft 3 and Starcraft 2, lol.
To end with, if you don't know Lua and would like to learn it, I recommend Programming in Lua 2nd Edition and the Lua 5.1 API. Dota 2 was verified by me to use Lua 5.1.
Last edited: