Fnull Posted December 25, 2021 Share Posted December 25, 2021 I browsed the forum and found that I can’t find the API documentation or the download way of the development tools. Link to comment https://forums.kleientertainment.com/forums/topic/136505-how-to-get-developer-tools/ Share on other sites More sharing options...
CarlZalph Posted December 25, 2021 Share Posted December 25, 2021 @Fnull The "API" is all in the LUA files accessible in: Steam/steamapps/common/Don't Starve Together/data/databundles/scripts.zip Extract 'em out of the zip and you'll be on your way to getting started with reading over what's what. As for what's available in the modmain.lua file for your mod, check out scripts/mods.lua and scripts/modutil.lua. You can use modding as a launch pad into learning LUA by reading over the game's prefabs/components/etc and seeing how it's structured. Or looking at other mods, though be weary about copy-pasting from other mods and then reuploading to the workshop; copyright is a thing. 1 1 Link to comment https://forums.kleientertainment.com/forums/topic/136505-how-to-get-developer-tools/#findComment-1528228 Share on other sites More sharing options...
Fnull Posted December 26, 2021 Author Share Posted December 26, 2021 9 hours ago, CarlZalph said: @Fnull The "API" is all in the LUA files accessible in: Steam/steamapps/common/Don't Starve Together/data/databundles/scripts.zip Extract 'em out of the zip and you'll be on your way to getting started with reading over what's what. As for what's available in the modmain.lua file for your mod, check out scripts/mods.lua and scripts/modutil.lua. You can use modding as a launch pad into learning LUA by reading over the game's prefabs/components/etc and seeing how it's structured. Or looking at other mods, though be weary about copy-pasting from other mods and then reuploading to the workshop; copyright is a thing. thanks answer Link to comment https://forums.kleientertainment.com/forums/topic/136505-how-to-get-developer-tools/#findComment-1528289 Share on other sites More sharing options...
Fnull Posted December 26, 2021 Author Share Posted December 26, 2021 I have seen the code, but did not find the relevant API documentation, such as a specific introduction to the role of a function and the meaning of its parameters Link to comment https://forums.kleientertainment.com/forums/topic/136505-how-to-get-developer-tools/#findComment-1528297 Share on other sites More sharing options...
Wonderlarr Posted December 26, 2021 Share Posted December 26, 2021 1 hour ago, Fnull said: I have seen the code, but did not find the relevant API documentation, such as a specific introduction to the role of a function and the meaning of its parameters There isn't any official API, the best we get is the scripts the game runs on and the forums here. Link to comment https://forums.kleientertainment.com/forums/topic/136505-how-to-get-developer-tools/#findComment-1528310 Share on other sites More sharing options...
Fnull Posted December 26, 2021 Author Share Posted December 26, 2021 15 minutes ago, TheSkylarr said: 没有任何官方 API,我们得到的最好的是运行游戏的脚本和这里的论坛。 Ohhh,NO 1 Link to comment https://forums.kleientertainment.com/forums/topic/136505-how-to-get-developer-tools/#findComment-1528314 Share on other sites More sharing options...
CarlZalph Posted December 26, 2021 Share Posted December 26, 2021 2 hours ago, Fnull said: Ohhh,NO Yeah, the functions the game runs on doesn't have any official API reference to look over. The barrier to entry for modding is a bit higher in that you'll need to know or learn LUA and then figure out the systems in place. There's been some attempts in the past to create an auto-generated API before but they all tended to stop being updated or didn't provide enough information to make them useful. Depending on what you want to do with the game there's so many possible solutions to going about getting it done, feel free to ask questions here. Link to comment https://forums.kleientertainment.com/forums/topic/136505-how-to-get-developer-tools/#findComment-1528326 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now