Author Topic: [Question] Modify current monthly score in a saved game  (Read 6517 times)

niculinux

  • Guest
[Question] Modify current monthly score in a saved game
« on: August 03, 2018, 03:42:21 pm »
Sccording to thread title, is there a way to change player score in a .sav file? Useful if next month would be a catastrophe :'(
« Last Edit: August 18, 2018, 05:16:51 pm by niculinux »

Offline ivandogovich

  • Commander
  • *****
  • Posts: 2381
  • X-Com Afficionado
    • View Profile
    • Ivan Dogovich Youtube
Re: [Question] Modify current monthly score in a saved game
« Reply #1 on: August 03, 2018, 04:53:38 pm »
open a save with a text editor and do a search to find "score"  ??

niculinux

  • Guest
Re: [Question] Modify current monthly score in a saved game
« Reply #2 on: August 03, 2018, 04:56:53 pm »
Already done that, there are 63 entries with the word "score" words, which one am i supposed to edit? sorry maybe i had to make a more detailed question :)

edit: sorry i meant to refer at pireatez extended..maybe someone may move the thread in the proper forum ?
« Last Edit: August 03, 2018, 05:42:03 pm by niculinux »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11731
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Question] Modify current monthly score in a saved game
« Reply #3 on: August 03, 2018, 09:06:41 pm »
No need to move the thread, it's a general question.

niculinux

  • Guest
Re: [Question] Modify current monthly score in a saved game
« Reply #4 on: August 15, 2018, 01:00:17 pm »
Already done that, there are 63 entries with the word "score" words, which one am i supposed to edit? sorry maybe i had to make a more detailed question :)

Bump. How do we accomplish that?

Offline Starving Poet

  • Colonel
  • ****
  • Posts: 265
    • View Profile
Re: [Question] Modify current monthly score in a saved game
« Reply #5 on: August 15, 2018, 05:15:27 pm »
You will have a score entry for every country.  Just pick a country and edit the bottom-most score entry in the array.

Offline R1dO

  • Colonel
  • ****
  • Posts: 442
    • View Profile
Re: [Question] Modify current monthly score in a saved game
« Reply #6 on: August 15, 2018, 08:03:25 pm »
Since the OP is relating to a catastrophic month. I kinda believe niculinux is asking for the following cheat:
Code: [Select]
warned: false

niculinux

  • Guest
Re: [Question] Modify current monthly score in a saved game
« Reply #7 on: August 15, 2018, 08:35:45 pm »
Since the OP is relating to a catastrophic month. I kinda believe niculinux is asking for the following cheat:
Code: [Select]
warned: false

Thanks, but i was reffering to score. Oh i thought there was an overall score, not one for every country. While we are here, how the game does proceed to provide the final monthly score? Some weird math science?  :)

Offline R1dO

  • Colonel
  • ****
  • Posts: 442
    • View Profile
Re: [Question] Modify current monthly score in a saved game
« Reply #8 on: August 15, 2018, 10:59:27 pm »
I'd assume summing each individual region score. Where each region score is probably: {activityXcom - activityAlien}. Possibly amended with researchScore after  the summation.

I'm not sure if county score is already part of the region score for the purpose of determining the final score

note:
  Based on contents of save file, not on code knowledge. One of the main devs can enlighten us (or you can do a code dive).

Offline Starving Poet

  • Colonel
  • ****
  • Posts: 265
    • View Profile
Re: [Question] Modify current monthly score in a saved game
« Reply #9 on: August 17, 2018, 11:02:53 pm »
I don't know why they are stored differently, but they should add up.  Maybe it's just done that way to make the graphs faster.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: [Question] Modify current monthly score in a saved game
« Reply #10 on: August 17, 2018, 11:56:00 pm »
Your score is just the sum of region (xcom - alien) activity and research scores. Country activity (which is naturally a subset of region) is only used for weighting their individual opinions of you.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: [Question] Modify current monthly score in a saved game
« Reply #11 on: August 20, 2018, 03:30:45 am »
Quick hack to get some score:

Make a new research project (put it in a mod), with the following data:
Code: [Select]
  - name: STR_FREE_POINTS
    cost: 1
    points: X
where X is the number of points you want.

You can research this overnight with only one scientist applied to the project.