Ludeon Forums

Ludeon Forums

  • November 21, 2019, 12:10:38 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: More modding help needed  (Read 1365 times)

Jakub k.

  • Colonist
  • ***
  • Posts: 188
  • Colonist
    • View Profile
More modding help needed
« on: April 12, 2016, 02:45:18 PM »

well,i've been creating a mod that adds a new bionic leg to the game,almost everything works.i can apply it to a colonist with out any trouble,but it doesnt actually display the option to actually operate on the colonist and installing the arm....yeah i know its weird.
like everything else works such as description,spawning with debug options and basicly i cant install it onto the colonist using the surgical options
ALL help appreciated
Logged

skullywag

  • Global Moderator
  • Transcendent
  • ***
  • Posts: 5857
  • Engineer
    • View Profile
Re: More modding help needed
« Reply #1 on: April 12, 2016, 02:46:17 PM »

did you add a recipe?
Logged
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Jakub k.

  • Colonist
  • ***
  • Posts: 188
  • Colonist
    • View Profile
Re: More modding help needed
« Reply #2 on: April 12, 2016, 03:04:33 PM »

yes,its almost identical to the prosthetic leg one :|
Logged

skullywag

  • Global Moderator
  • Transcendent
  • ***
  • Posts: 5857
  • Engineer
    • View Profile
Re: More modding help needed
« Reply #3 on: April 12, 2016, 04:00:10 PM »

if you have <workerClass>Recipe_InstallArtificialBodyPart</workerClass> it should work. Have you started a new game since enabling the mod?
Logged
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Jakub k.

  • Colonist
  • ***
  • Posts: 188
  • Colonist
    • View Profile
Re: More modding help needed
« Reply #4 on: April 12, 2016, 04:29:09 PM »

yes i have used that code,and yes i have restarted the game. to farther help me,maybe you'll need the mod folder?
if yes,then here it is: http://www.mediafire.com/download/lo4vboucs97cn7t/jakubmod.rar

my second part of the mod isn't loading textures,so don't worry about the errors

ps: by mod folder i mean my mod,not the entire folder
« Last Edit: April 12, 2016, 04:31:56 PM by jcube »
Logged

skullywag

  • Global Moderator
  • Transcendent
  • ***
  • Posts: 5857
  • Engineer
    • View Profile
Re: More modding help needed
« Reply #5 on: April 12, 2016, 04:36:18 PM »

you may want to add <workSkill>Medicine</workSkill> to the recipe so you get some xp, while i figure this out.
Logged
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Jakub k.

  • Colonist
  • ***
  • Posts: 188
  • Colonist
    • View Profile
Re: More modding help needed
« Reply #6 on: April 12, 2016, 04:38:11 PM »

skullywag you're the man! (or woman idk)
thanks for the help!


(also is there some kind of variable that controls a pawns age? just asking.)
« Last Edit: April 12, 2016, 04:54:10 PM by jcube »
Logged

skullywag

  • Global Moderator
  • Transcendent
  • ***
  • Posts: 5857
  • Engineer
    • View Profile
Re: More modding help needed
« Reply #7 on: April 12, 2016, 04:53:43 PM »

man, and ive figured it out, you were missing:

<recipeUsers>
      <li>Human</li>
    </recipeUsers>

from the recipe.

However ive also spotted some other issues, when a "parent" is defined on a def in a mod you have to define that somewhere in your mod or it wont use it, it doesnt use the core one. You only have to add it once and it can be referenced from other files but must exist in the mod. Ive tidied all that up for you, see attached.

[attachment deleted by admin - too old]
Logged
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?