OpenXcom Forum

Modding => Help => Topic started by: niculinux on August 03, 2018, 03:42:21 pm

Title: [Question] Modify current monthly score in a saved game
Post by: niculinux 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 :'(
Title: Re: [Question] Modify current monthly score in a saved game
Post by: ivandogovich on August 03, 2018, 04:53:38 pm
open a save with a text editor and do a search to find "score"  ??
Title: Re: [Question] Modify current monthly score in a saved game
Post by: niculinux 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 ?
Title: Re: [Question] Modify current monthly score in a saved game
Post by: Solarius Scorch on August 03, 2018, 09:06:41 pm
No need to move the thread, it's a general question.
Title: Re: [Question] Modify current monthly score in a saved game
Post by: niculinux 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?
Title: Re: [Question] Modify current monthly score in a saved game
Post by: Starving Poet 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.
Title: Re: [Question] Modify current monthly score in a saved game
Post by: R1dO 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
Title: Re: [Question] Modify current monthly score in a saved game
Post by: niculinux 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?  :)
Title: Re: [Question] Modify current monthly score in a saved game
Post by: R1dO 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).
Title: Re: [Question] Modify current monthly score in a saved game
Post by: Starving Poet 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.
Title: Re: [Question] Modify current monthly score in a saved game
Post by: SupSuper 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.
Title: Re: [Question] Modify current monthly score in a saved game
Post by: The Reaver of Darkness 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.