RimWorld

RimWorld

Star Wars - The Force [Deprecated]
Traveler 2 Jun, 2017 @ 1:38am
Solution for the "Multiple, duplicate force power" issue with recent update
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!=====WARNING====!!!!!!!!!!!!!!!!!!!!!!!!!!!


THIS FIX IS TO REMOVE THE DUPLICATED POWERS.
THIS DOES NOT FIX WHATEVER THAT IS CAUSING THE DUPLICATION.
Therefore this is only one time fix. What you can do is to fix the save file and load the said save file. But this error will occur again with current state. This is one time solution.

THIS MAY PROLONG YOUR SAVE FILE FROM EXPLODING BUT I HAVE NO CONFIRMATION OF SUCH THINGS HAPPENING.

YOU HAVE BEEN WARNED.


END OF WARNING.

Greetings, fair players of rimworld. No doubt that you have been plagued by the recent bug that adds duplicate power with new patch. I too had this issue, but luckly I have a solution, if you are willing to go out of your way to fix it yourself.

Probable cause of the issue(I am just guessing at this point): Removal of the assembly file(?)
assembly file moved from The force into jactools duped your force abilities in your save files. Maybe.


But who cares why it is here when you can have the solution? Please continue reading.


First, get a good text editor. I recommend notepad++, but any editor with search functionality will do.

Second. Find a colonist in your save file.
Your save file is in:
"C:\Users\"USERNAMEUSERNAMEUSERNAMEUSERNAME"\AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Saves"

Do not forget to actually put username in the username slot.

You now have to search where your colonist is declared. Start the search(control+f for notepad++) FROM THE BOTTOM OF THE FILE and set search direction to UP.

It should look approcimately like this:

(location of interest has been bolded)

SAVE FILE LOCATION 1
(above is force power information)
...

<temporaryWeaponPowers />
<Powers>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceDefense_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingOther_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingSelf_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingSelf_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingOther_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceDefense_Apprentice</powerdef>
</li>
</Powers>
<TicksToCast>-1</TicksToCast>
<TicksToCastMax>100</TicksToCastMax>
<IsInitialized>True</IsInitialized>
<kindDef>Colonist</kindDef>
<name Class="NameTriple">
<first>Ronin</first>
<nick>Shield</nick>
<last>Lawless</last>

</name>
<mindState>
<lastJobGiverKey>16927496</lastJobGiverKey>
<meleeThreat>null</meleeThreat>
<enemyTarget>null</enemyTarget>
...

(Below is pawn information details)


You are now VERY close! Go up further to find character force information itself!

SAVE FILE LOCATION 2(prior to fix)

<def>Human</def>
<id>Human280348</id>
<map>0</map>
<pos>(110, 0, 230)</pos>
<rot>1</rot>
<faction>Faction_19</faction>
<allPowers>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceDefense_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingOther_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingSelf_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingSelf_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingOther_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceDefense_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingSelf_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingOther_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceDefense_Apprentice</powerdef>
</li>
</allPowers>
<temporaryApparelPowers />
<temporaryWeaponPowers />
<Powers>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceDefense_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingOther_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingSelf_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingSelf_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingOther_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceDefense_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingSelf_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceHealingOther_Apprentice</powerdef>
</li>
<li>
<pawn>Thing_Human280348</pawn>
<powerdef>PJ_ForceDefense_Apprentice</powerdef>
</li>
</Powers>
<TicksToCast>-1</TicksToCast>
<TicksToCastMax>100</TicksToCastMax>
<IsInitialized>True</IsInitialized>
<alignmentValue>0.55</alignmentValue>
<forceUserLevel>16</forceUserLevel>
<forceUserXP>10013</forceUserXP>
<forcePowersInitialized>True</forcePowersInitialized>
<abilityPoints>13</abilityPoints>

<forcePowersDark>
<li>
<abilityDefs>
<li>PJ_ForceRage_Apprentice</li>
<li>PJ_ForceRage_Adept</li>
<li>PJ_ForceRage_Master</li>
</abilityDefs>
</li>
<li>
<abilityDefs>
<li>PJ_ForceChoke_Apprentice</li>
<li>PJ_ForceChoke_Adept</li>
<li>PJ_ForceChoke_Master</li>
</abilityDefs>
</li>
(Save file location 1 below somewhere)


In layman's terms, above organized as
- human pawn x has
- Powers 1,2,3
- Force power and exp.

What you need to do here now is to delete all powers given in this area. you can actually see the duplicated powers given to your colonists.

DELETE ALL INPUTS BETWEEN

<allPowers>
</allPowers>

AND

<Powers>
</Powers>

for the above quotation.


End result is:

SAVE FILE LOCATION 2(After the fix)

<def>Human</def>
<id>Human280348</id>
<map>0</map>
<pos>(110, 0, 230)</pos>
<rot>1</rot>
<faction>Faction_19</faction>
<allPowers>
</allPowers>
<temporaryApparelPowers />
<temporaryWeaponPowers />
<Powers>
</Powers>
<TicksToCast>-1</TicksToCast>
<TicksToCastMax>100</TicksToCastMax>
<IsInitialized>True</IsInitialized>
<alignmentValue>0.55</alignmentValue>
<forceUserLevel>16</forceUserLevel>
<forceUserXP>10013</forceUserXP>
<forcePowersInitialized>True</forcePowersInitialized>
<abilityPoints>13</abilityPoints>

<forcePowersDark>
<li>
<abilityDefs>
<li>PJ_ForceRage_Apprentice</li>
<li>PJ_ForceRage_Adept</li>
<li>PJ_ForceRage_Master</li>
</abilityDefs>
</li>
<li>
<abilityDefs>
<li>PJ_ForceChoke_Apprentice</li>
<li>PJ_ForceChoke_Adept</li>
<li>PJ_ForceChoke_Master</li>
</abilityDefs>
</li>
(Save file location 1 below somewhere)

This has to be done for the all colonists.(colonists who do not have any force power to begin with of course does not require this fix)

Reload the saved game to see issue has been fixed.(if you screw something up nothing will change)
Last edited by Traveler; 2 Jun, 2017 @ 11:42am
< >
Showing 1-5 of 5 comments
Ryoma  [developer] 2 Jun, 2017 @ 7:15am 
Thank you so much for this short tutorial. I apologize for the inconvenience.
Traveler 2 Jun, 2017 @ 11:32am 
After further testing, this issue is almost certainly with the mod itself and this is only bandaid solution.

Once you "SAVE" the game, it will add all the powers again. Thereby duplicating powers again, undoing all the work you did for fixing the save.

Furthermore this duplication does not stop with single copy. it will write powers over and over and over and over again. I assume that, this may breaks your pawns with enough time.

I will revert back to the old force powers(no workshop) til this issue is fixed.
Last edited by Traveler; 2 Jun, 2017 @ 11:38am
Ryoma  [developer] 3 Jun, 2017 @ 2:58am 
Originally posted by Lord of Change:
After further testing, this issue is almost certainly with the mod itself and this is only bandaid solution.

Once you "SAVE" the game, it will add all the powers again. Thereby duplicating powers again, undoing all the work you did for fixing the save.

Furthermore this duplication does not stop with single copy. it will write powers over and over and over and over again. I assume that, this may breaks your pawns with enough time.

I will revert back to the old force powers(no workshop) til this issue is fixed.

I apologize, but I cannot replicate this problem in the current build. Saving and loading produces no issues on our end (using the latest Steam build as well).
Lo Victor 3 Jun, 2017 @ 7:07am 
While attemting this fix, i found it was unsuccessful.

BUT, i found a second set of
<allPowers>
</allPowers>
<Powers>
</Powers>
a bit above the point described by OP.

once i deleted everything written between those tags too, the probelem was fully fixed, once i loaded the game, all the powers had one copy, and learning new power levels didnt add a new copy but replaced the old one.

I dont know if the problem will come back, but it seems to work well for now
Ryoma  [developer] 5 Jun, 2017 @ 7:16pm 
I delved deeper into the code and made an effort to clear and reload the powers on each load. So hopefully all the duplicate powers should be cleaned up.
Bless
< >
Showing 1-5 of 5 comments
Per page: 1530 50