Jump to content

Search the Community

Showing results for tags 'traits experienceeffects'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
    • Welcome Aboard
  • Kerbal Space Program 1
    • KSP1 Discussion
    • KSP1 Suggestions & Development Discussion
    • KSP1 Challenges & Mission ideas
    • KSP1 The Spacecraft Exchange
    • KSP1 Mission Reports
    • KSP1 Gameplay and Technical Support
    • KSP1 Mods
    • KSP1 Expansions
  • Kerbal Space Program 2
    • KSP2 Dev Updates
    • KSP2 Discussion
    • KSP2 Suggestions and Development Discussion
    • Challenges & Mission Ideas
    • The KSP2 Spacecraft Exchange
    • Mission Reports
    • KSP2 Prelaunch Archive
  • Kerbal Space Program 2 Gameplay & Technical Support
    • KSP2 Gameplay Questions and Tutorials
    • KSP2 Technical Support (PC, unmodded installs)
    • KSP2 Technical Support (PC, modded installs)
  • Kerbal Space Program 2 Mods
    • KSP2 Mod Discussions
    • KSP2 Mod Releases
    • KSP2 Mod Development
  • Community
    • Science & Spaceflight
    • Kerbal Network
    • The Lounge
    • KSP Fan Works
  • International
    • International

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Twitter


About me


Location


Interests

Found 1 result

  1. Hello all! I'm currently working on a mod similar to RabidNinjaWombat's Civilian Population. In his mod, he used civilians as a resource, similar to liquid rocket fuel, mono prop. I believe that was because originally there were no tourists and that was his workaround. However, now we have different classes of Kerbals (crew/tourist). Ideally, my class would be uncontrollable directly by the player (similar to a tourist), but would have attributes that I could modify (such as being a geologist, or accountant) which would be able to interact with parts of the game (mining speed and income over time, respectively). In addition, it would not spawn naturally, but only if the player chooses to spawn it within the station. Though if it is impossible to do otherwise, I would be OK with allowing them to spawn in the roster. Looking through @rabidninjawombat's code, I noticed that ProtoCrewMember.KerbalType assigns the type of Kerbal as crew when the Kerbal is generated . However, since it is an enum, I don't believe it can be modified at runtime. Is that correct? Alternatively, I noticed in [KSP Path]/GameData/Squad/Experience, there is Traits.cfg which I believe belongs to ProtoCrewMember.KerbalType.Crew (again, from @rabidninjawombat's code). This looks like it stores the different types of Kerbal crews (Scientist/Engineer/Pilot) as well as the different effects. However, I cannot find details about this in the API documentation. Is the Scientist/Pilot/Engineer also an enum and therefore unable to be modified? Or is there a class that is called at some point that looks at all of the classes available? Or would I be better served in keeping the civilian/contractor Kerbals as a resource and converting them through that?
×
×
  • Create New...