Jump to content

Recommended Posts

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
https://forums.kleientertainment.com/forums/topic/38850-where-to-start/
Share on other sites

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 :grin:

Oh, and one last thing: Just FYI, no offense :eagerness:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...