Helix0623 Posted July 13, 2016 Share Posted July 13, 2016 Guys I'm making a custom character mod, I have some really cool ideas but I'm pretty idiotic when it comes to coding and I think that what I wanna do is going to take some above average coding, I'd really appreciate it if I could ask some questions and maybe get some help, this might be helpful to other users as well. Link to comment https://forums.kleientertainment.com/forums/topic/68843-coding-help-mod-making/ Share on other sites More sharing options...
Helix0623 Posted July 14, 2016 Author Share Posted July 14, 2016 (edited) Okey so I got a character mod that a friend gave me (he said it's a mod similar to what I'm trying to do) and I want to change it to what I want now, but it makes little sense to me sometimes and I don't even know if I would want/need to change it. First question: At the bottom of my modmain.lua file there's this. Can someone please tell me what this does and/or means? Edited July 14, 2016 by Helix0623 wanted to correct some errors Link to comment https://forums.kleientertainment.com/forums/topic/68843-coding-help-mod-making/#findComment-792573 Share on other sites More sharing options...
Mobbstar Posted July 14, 2016 Share Posted July 14, 2016 31 minutes ago, Helix0623 said: First question: At the bottom of my modmain.lua file This changes the "lootdropper" component, the code that lets thing drop loot. Most of the function is just a copy of the original. The only differences are the implementation of a "lootsetupfn" check, presumably to allow for a perk, as well as line 48 using a different function to get a potentially existing recipe. You should be able to leave the code as is, if you aren't sure if you need it, but if there is any issue with it, then it is almost certainly the recipe line. Link to comment https://forums.kleientertainment.com/forums/topic/68843-coding-help-mod-making/#findComment-792578 Share on other sites More sharing options...
Helix0623 Posted July 15, 2016 Author Share Posted July 15, 2016 (edited) Thanks a lot for the reply Mobbstar. Second question: I just went along and edited the file prefabs.lua for a minion/pet that I would want my character to create and control, As far as my knowledge goes it can grow larger over time, regenerate health, gives sanity when I'm near it and it cannot set off traps, just like I wanted. However I found that 1. The size it can grow to is a bit bigger than i want it to be. 2. Although I want it to not set off traps it does not get slowed by spider webbing on the floor and I sorda want it to be slowed by it. and 3. I'm not sure if my tinkering in the file might have made it unusable. It would be nice if someone with experience or just a better understanding of code could go over it for me. (I know it's probably stupid little changes but I feel like this could be some of the stuff that allows me to make and edit the mod into my own) Edited July 15, 2016 by Helix0623 posted frong file >_< Link to comment https://forums.kleientertainment.com/forums/topic/68843-coding-help-mod-making/#findComment-793158 Share on other sites More sharing options...
Mobbstar Posted July 16, 2016 Share Posted July 16, 2016 This is the DS modding forum, you are modding for DST exclusively. Sadly I could not see what your concerns 1 and 2 are caused by. The locomotor is not told to ignore webbing and there is no growable component or alike. Perhaps you should choose a more unique name than "minion1" to avoid mods clashing. Link to comment https://forums.kleientertainment.com/forums/topic/68843-coding-help-mod-making/#findComment-793499 Share on other sites More sharing options...
Helix0623 Posted July 16, 2016 Author Share Posted July 16, 2016 Quote This is the DS modding forum, you are modding for DST exclusively. Damit I entered wrong forum sorry... Quote Perhaps you should choose a more unique name than "minion1" to avoid mods clashing. I already ran into that problem I fixed it as soon as i saw, but thx for the help. Third question: Is there any way that I can move this forum to the DTS Modding forum? Or would you be willing to continue helping me? Link to comment https://forums.kleientertainment.com/forums/topic/68843-coding-help-mod-making/#findComment-793561 Share on other sites More sharing options...
Mobbstar Posted July 16, 2016 Share Posted July 16, 2016 You could just wait for a moderator like @ImDaMisterL to move the topic. As said, I didn't find what I expected to be the cause of said behaviour, so I'm stumped as well. Link to comment https://forums.kleientertainment.com/forums/topic/68843-coding-help-mod-making/#findComment-793566 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