goaman Posted July 23, 2014 Share Posted July 23, 2014 Hello everyone, Sorry for the typo, I'm not native.I read the source code of other mods and some topics suggested here to get started modding.I'm feeling that I'm missing something. Where is the references API ? Has nobody done that ? Even a tiny one ?Where can I see the basic explained ? I tried to see into the source code but as I saw, there is some code writen outside LUA.For exemple, I see "GLOBAL.GetPlayer()" or "TheSim:FindEntities".Where does "GLOBAL" or TheSim" is defined, how can I find documentation about the meaning or behavior of these.I don't feel confortable to copy/past the code without understanding it. Most of the code aren't documented, is this intentional to make the modding experience as difficult as playing the game ? lol Link to comment Share on other sites More sharing options...
Mobbstar Posted July 24, 2014 Share Posted July 24, 2014 Hello everyone, Sorry for the typo, I'm not native.I read the source code of other mods and some topics suggested here to get started modding.I'm feeling that I'm missing something. Where is the references API ? Has nobody done that ? Even a tiny one ?Where can I see the basic explained ? I tried to see into the source code but as I saw, there is some code writen outside LUA.For exemple, I see "GLOBAL.GetPlayer()" or "TheSim:FindEntities".Where does "GLOBAL" or TheSim" is defined, how can I find documentation about the meaning or behavior of these.I don't feel confortable to copy/past the code without understanding it. Most of the code aren't documented, is this intentional to make the modding experience as difficult as playing the game ? lol Idk TheSim, that is like a ghost to me, but GLOBAL. is used as some "kind of prefix" when in modmain.lua, in order to access the global enviroment. There is a list of what is already in the modding enviroment in mods.lua. GetPlayer() is a function that returns the player instance, allowing you to interact with it. (for example: GetPlayer().components.health:DoDelta(somevalues, idkthesyntac, lookitupifyouwant)) You seem to know more or less what you're doing, great way to introduce oneself! Usually modders introduce themselves with "I wanna do this'n'that", rather than learning how to do it. I'm excited to see what you can do Oh, and one last thing: Just FYI, no offense Link to comment Share on other sites More sharing options...
goaman Posted July 25, 2014 Author Share Posted July 25, 2014 Okay, thank's Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.