aliens

Author Topic: Implemented: Psionic Training  (Read 5770 times)

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Implemented: Psionic Training
« on: November 18, 2012, 09:01:40 pm »
got another savegame breaker for you guys!

this one adds the missing psi-lab training screens, and proper psi-training that's exactly as it was in vanilla, minus the bug that allowed skills to go over 100.

 - screens will pop-up at month's end after the funding screen
 - soldiers will gain skill at the end of each month, based on their current skill level if they were assigned training in the previous month.
 - transferring a soldier ends his training for that month
 - psi labs cannot be destroyed if they are in use
 - psi lab capacity correctly changed to 10 (was 50)
 - training state will be saved, this will break savedgames, add "psiTraining: false" (or true ;)) to each soldier in your saved game to make it compatible.
 - soldiers who have been screened will have their appropriate stats shown on the unit info screens.

as usual, here's a pre-compiled test build for you guys to mess around with (win32)

HERE

and the fork on github so you can see what i've done.

HERE

if you find any bugs, or if you think i left something out or got something wrong, please let me know so i can fix it asap.

Offline LCSand

  • Captain
  • ***
  • Posts: 73
    • View Profile
Re: Implemented: Psionic Training
« Reply #1 on: November 18, 2012, 09:07:30 pm »
Nice work.
But can't you assign some default value for new stuff?
Like when there is no value in the save file then assume it is the default value?

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Implemented: Psionic Training
« Reply #2 on: November 18, 2012, 09:13:06 pm »
honestly, i'm not sure. it's not even something i've looked into.
i guess i could spend the afternoon looking at the savegame code and see what i come up with, but that'll be an entirely different feature addition.
besides which, i'm pretty sure people better at this than me are already looking into it.