Author Topic: Soldier stat editor?  (Read 23101 times)

Offline johniemi

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Soldier stat editor?
« on: June 25, 2014, 07:32:03 am »
I started the game with too high difficulty (for me) so is there a soldier stat editor somewhere? I tried a few old ones made for vanilla x-com but they didn't work. Looks like the savegame directory is missing some files the original game has? My save directories only have on file called "DUM.bin" so no wonder the vanilla x-com editors don't work :D

Offline the_third_curry

  • Colonel
  • ****
  • Posts: 147
    • View Profile
Re: Soldier stat editor?
« Reply #1 on: June 25, 2014, 09:08:51 am »
There's a pretty easy way to change the stats of incoming soldiers without a mod; you can easily edit the ruleset to get better soldiers. Just look for this section here in the ruleset:

soldiers:
  - type: XCOM
    minStats:
      tu: 50
      stamina: 40
      health: 25
      bravery: 10
      reactions: 30
      firing: 40
      throwing: 50
      strength: 20
      psiStrength: 0
      psiSkill: 0
      melee: 20
    maxStats:
      tu: 60
      stamina: 70
      health: 40
      bravery: 60
      reactions: 60
      firing: 70
      throwing: 80
      strength: 40
      psiStrength: 100
      psiSkill: 16
      melee: 40
    statCaps:
      tu: 80
      stamina: 100
      health: 60
      bravery: 100
      reactions: 100
      firing: 120
      throwing: 120
      strength: 70
      psiStrength: 100
      psiSkill: 100
      melee: 120
    armor: STR_NONE_UC
    standHeight: 22
    kneelHeight: 14
    genderRatio: [3, 1]


While it won't change soldiers you already have, you can easily raise the minimums and maximums for the stats for rookies coming in and set the caps for each stat.

Offline johniemi

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: Soldier stat editor?
« Reply #2 on: June 25, 2014, 09:23:18 am »
Thanks! That should help.

What are the maximum caps for each stat? I'm tempted to upping those as well to maybe get some super soldiers in the future (if I get them to stay alive...)

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Soldier stat editor?
« Reply #3 on: June 25, 2014, 11:50:39 am »
if you open your save with a text editor (make a backup) you can find a line like this
difficulty: 4
lower the value to lower your difficulty and save the file

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Soldier stat editor?
« Reply #4 on: June 25, 2014, 01:04:22 pm »
yeah, openxcom saves in plain text format, the only tool you need to edit your existing soldiers is notepad. check /my documents/openxcom/ for the files in question.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11722
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Soldier stat editor?
« Reply #5 on: June 25, 2014, 02:47:58 pm »
Thanks! That should help.

What are the maximum caps for each stat? I'm tempted to upping those as well to maybe get some super soldiers in the future (if I get them to stay alive...)

You should be safe if you don't go completely bananas. I haven't tried that, but I think setting the cap to 1000 will not break the game. Nor will 100 000.

Offline johniemi

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: Soldier stat editor?
« Reply #6 on: June 25, 2014, 05:50:32 pm »
So much for not breaking my save :( don't know what I did wrong but now the game freezes on the next terror mission on the UFO turn. I get hidden movement and no matter how long I wait the game just stays in hidden movement and the "next turn" text never pops up.

I got new nice soldiers (changed the values up a little bit about +30 or so), went on a single mission (small ufo) - everything fine, and now the next terror mission and I get this freeze up.

Damn I wish someone made a "super soldier mod" or something. Don't understand what happened.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Soldier stat editor?
« Reply #7 on: June 25, 2014, 05:54:08 pm »
Damn I wish someone made a "super soldier mod" or something. Don't understand what happened.
here https://openxcom.org/forum/index.php?topic=2055.msg19923#msg19923 is a mod called "Cheat_Supersoldiers" - all soldiers have 200 in all stats

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11722
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Soldier stat editor?
« Reply #8 on: June 25, 2014, 10:31:10 pm »
So much for not breaking my save :( don't know what I did wrong but now the game freezes on the next terror mission on the UFO turn. I get hidden movement and no matter how long I wait the game just stays in hidden movement and the "next turn" text never pops up.

Are you using nightlies? Is it a terror mission with Floaters?
If so, download the latest nightly. There was a bug with Reapers in one recent nightly build, which is now fixed.
« Last Edit: June 26, 2014, 12:13:57 am by Warboy1982 »

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: Soldier stat editor?
« Reply #9 on: June 26, 2014, 02:36:15 am »
If you'd rather have an actual record control and soldier entry, I could see about coding one up...