Ludeon Forums

RimWorld => General Discussion => Topic started by: Teiwaz on November 06, 2013, 10:45:25 PM

Title: Any way to change AI director mid game?
Post by: Teiwaz on November 06, 2013, 10:45:25 PM
I'm finding the classic AI director's constant swarms of raiders unfun, but the friendly director is just a bore. Has anyone found a way to change the AI director, by editing the savegame, or something? I'd love to build an established colony in friendly and then sic swarms of raiders on it with a classic-hard director.
Title: Re: Any way to change AI director mid game?
Post by: Tynan on November 06, 2013, 11:06:11 PM
Yes. Just start a game with the storyteller you want. Save it. Look for the "Storyteller" XML block. Copy it over the one from the savegame you want to modify.
Title: Re: Any way to change AI director mid game?
Post by: Teiwaz on November 06, 2013, 11:35:17 PM
Thanks.

For other people trying this, the savegames are in a bit of a funny place. Took me a little while to locate them. They're in:
\users\<username>\appdata\LocalLow\LudeonStudios
File extension is .rim
Title: Re: Any way to change AI director mid game?
Post by: chaotix14 on November 07, 2013, 03:07:14 AM
Nice. Now I'll just duplicate my save and change the storyteller to randy one one of the saves. I wanna see how long it'll last.
Title: Re: Any way to change AI director mid game?
Post by: Reaver41 on November 07, 2013, 07:33:34 AM
Quote from: Tynan on November 06, 2013, 11:06:11 PM
Yes. Just start a game with the storyteller you want. Save it. Look for the "Storyteller" XML block. Copy it over the one from the savegame you want to modify.

will you ever add the way to change a ai director  mid-game in the menu?
Title: Re: Any way to change AI director mid game?
Post by: Tynan on November 07, 2013, 11:52:45 AM
Quote from: Reaver41 on November 07, 2013, 07:33:34 AM
Quote from: Tynan on November 06, 2013, 11:06:11 PM
Yes. Just start a game with the storyteller you want. Save it. Look for the "Storyteller" XML block. Copy it over the one from the savegame you want to modify.

will you ever add the way to change a ai director  mid-game in the menu?

Probably yes.
Title: Re: Any way to change AI director mid game?
Post by: Wgl on November 07, 2013, 02:27:55 PM
Quote from: Tynan on November 07, 2013, 11:52:45 AM
Quote from: Reaver41 on November 07, 2013, 07:33:34 AM
Quote from: Tynan on November 06, 2013, 11:06:11 PM
Yes. Just start a game with the storyteller you want. Save it. Look for the "Storyteller" XML block. Copy it over the one from the savegame you want to modify.

will you ever add the way to change a ai director  mid-game in the menu?

Probably yes.

If I may, I think this is a bad idea.

In the future the AI Storyteller may need backward story references. Now the AI Storytellers are basics but (I hope) they will evolve using real AI features. And changing the Storyteller in the middle of a game would corrupt a whole game experience.
Title: Re: Any way to change AI director mid game?
Post by: Galileus on November 07, 2013, 02:37:05 PM
What difficulty player wants to play on is up to player. And I don't think there would be a problem with the switch - the AI "evolution" would need to be saved in the files all the same, there is no problem with directing the same variables to a new one.

The only exception to this is any kind of "hardcore" or "ironman" mode, where you're forbidden to save and game saves automatically, preventing you to "play the dice" or changing established events. But this - again - is due to player's wish to be punished for bad choices while he knows he would be too tempted to try and alter that result.
Title: Re: Any way to change AI director mid game?
Post by: Teiwaz on November 07, 2013, 03:24:23 PM
Having done the swap manually, what appears to happen is that changing out the storyteller effectively resets the storyteller. When I changed my big, friendly mode game over to Cassandra classic, the first raid I got was one dude with a pistol. The second raid was like 20 guys including the dreaded snipers. So saved variables don't come into it, it's just like starting a new game except you have a lot more colonists and buildings already.
Title: Re: Any way to change AI director mid game?
Post by: Tynan on November 07, 2013, 03:51:57 PM
Quote from: Teiwaz on November 07, 2013, 03:24:23 PM
Having done the swap manually, what appears to happen is that changing out the storyteller effectively resets the storyteller. When I changed my big, friendly mode game over to Cassandra classic, the first raid I got was one dude with a pistol. The second raid was like 20 guys including the dreaded snipers. So saved variables don't come into it, it's just like starting a new game except you have a lot more colonists and buildings already.

Ah yes, that makes sense. Cassandra has a bit of a ramp-up she'll remember. This could be solved if you swapped in a Cassandra from at least 15 days into the game.
Title: Re: Any way to change AI director mid game?
Post by: nnescio on November 09, 2013, 08:17:35 PM
Quote from: Tynan on November 07, 2013, 03:51:57 PM
Quote from: Teiwaz on November 07, 2013, 03:24:23 PM
Having done the swap manually, what appears to happen is that changing out the storyteller effectively resets the storyteller. When I changed my big, friendly mode game over to Cassandra classic, the first raid I got was one dude with a pistol. The second raid was like 20 guys including the dreaded snipers. So saved variables don't come into it, it's just like starting a new game except you have a lot more colonists and buildings already.

Ah yes, that makes sense. Cassandra has a bit of a ramp-up she'll remember. This could be solved if you swapped in a Cassandra from at least 15 days into the game.

Hmm...

Quote<StoryState>
         <LastThreatQueueTime>691270</LastThreatQueueTime>
         <NumThreatsQueued>7</NumThreatsQueued>
         <LastQueueTicks>
            <KeyList>
               <Int32>2768</Int32>
               <Int32>1551</Int32>
               <Int32>56138</Int32>
               <Int32>20668</Int32>
               <Int32>56342</Int32>
               <Int32>5412</Int32>
               <Int32>22116</Int32>
               <Int32>71453</Int32>
               <Int32>871047</Int32>
               <Int32>512318</Int32>
            </KeyList>
            <ValueList>
               <Int32>497026</Int32>
               <Int32>602524</Int32>
               <Int32>657617</Int32>
               <Int32>670344</Int32>
               <Int32>680804</Int32>
               <Int32>691270</Int32>
               <Int32>462164</Int32>
               <Int32>287770</Int32>
               <Int32>438612</Int32>
               <Int32>665487</Int32>
            </ValueList>
         </LastQueueTicks>
      </StoryState>

What do the Keylist and ValueList affect? Is it possible to edit the game files to force a huge raider wave regardless of the current number of colonists and turrets, to test defenses and stuff?

Also, can I just change <Storyteller Class="Parameter"> without changing the rest of entries under the storyteller block? Or is it a bad idea?

Title: Re: Any way to change AI director mid game?
Post by: XToxicBarfX on November 25, 2013, 01:13:12 AM
What program should i use for this?
Title: Re: Any way to change AI director mid game?
Post by: Semmy on November 25, 2013, 01:14:48 AM
Quote from: XToxicBarfX on November 25, 2013, 01:13:12 AM
What program should i use for this?

You can chance the file with notepad if i am not mistaking.
Title: Re: Any way to change AI director mid game?
Post by: XToxicBarfX on November 25, 2013, 01:17:16 AM
Quote from: Semmy on November 25, 2013, 01:14:48 AM
Quote from: XToxicBarfX on November 25, 2013, 01:13:12 AM
What program should i use for this?

You can chance the file with notepad if i am not mistaking.
aaaa good old note pad
Title: Re: Any way to change AI director mid game?
Post by: Semmy on November 25, 2013, 04:33:59 AM
Quote from: XToxicBarfX on November 25, 2013, 01:17:16 AM
Quote from: Semmy on November 25, 2013, 01:14:48 AM
Quote from: XToxicBarfX on November 25, 2013, 01:13:12 AM
What program should i use for this?

You can chance the file with notepad if i am not mistaking.
aaaa good old note pad

Yes the solution is sometimes to easy to think about i know the problem happens to me alot.
Have fun.
Title: Re: Any way to change AI director mid game?
Post by: Galileus on November 25, 2013, 05:21:55 AM
Use notepad++

You can chance syntax highlighting to xml and viola! It gets one hell of a lot easier.
Title: Re: Any way to change AI director mid game?
Post by: Thracian on November 25, 2013, 03:10:53 PM
i cant find the savegame... lol help me how to change it pls
Title: Re: Any way to change AI director mid game?
Post by: British on November 26, 2013, 03:55:26 AM
Quote from: Thracian on November 25, 2013, 03:10:53 PM
i cant find the savegame... lol help me how to change it pls
Make sure your Windows Explorer is configured to show hidden files, and then go to %USERPROFILE%\AppData\LocalLow\Ludeon Studios\RimWorld
Title: Re: Any way to change AI director mid game?
Post by: Thracian on November 26, 2013, 09:33:37 AM
Quote from: British on November 26, 2013, 03:55:26 AM
Quote from: Thracian on November 25, 2013, 03:10:53 PM
i cant find the savegame... lol help me how to change it pls
Make sure your Windows Explorer is configured to show hidden files, and then go to %USERPROFILE%\AppData\LocalLow\Ludeon Studios\RimWorld
yaye i did it thank you ! :D
Title: Re: Any way to change AI director mid game?
Post by: Semmy on November 26, 2013, 09:46:44 AM
explorer
than organize
than map and search options

it should be in there
Title: Re: Any way to change AI director mid game?
Post by: Thracian on November 26, 2013, 09:54:07 AM
wait a little, now i have a ather problem.... where can i find in that enormous world file, i opened it in notepad, where  can i find how to change the gamemode? lel
Title: Re: Any way to change AI director mid game?
Post by: PombeGeek on November 26, 2013, 12:01:53 PM
Quote from: Thracian on November 26, 2013, 09:54:07 AM
wait a little, now i have a ather problem.... where can i find in that enormous world file, i opened it in notepad, where  can i find how to change the gamemode? lel

Open the file and search for "storyteller" then the only parameter you need to change is the storyteller id. For example, you would find the string that says <Storyteller Class="Storyteller_ClassicEasy"> and change it to something like <Storyteller Class="Storyteller_ClassicHard">
Title: Re: Any way to change AI director mid game?
Post by: Thracian on November 26, 2013, 01:56:49 PM
Quote from: PombeGeek on November 26, 2013, 12:01:53 PM
Quote from: Thracian on November 26, 2013, 09:54:07 AM
wait a little, now i have a ather problem.... where can i find in that enormous world file, i opened it in notepad, where  can i find how to change the gamemode? lel

Open the file and search for "storyteller" then the only parameter you need to change is the storyteller id. For example, you would find the string that says <Storyteller Class="Storyteller_ClassicEasy"> and change it to something like <Storyteller Class="Storyteller_ClassicHard">
how to search for storyteller? its enormous i would do like 6 hours about it! jees how to
Title: Re: Any way to change AI director mid game?
Post by: Semmy on November 26, 2013, 01:58:57 PM
ctrl+f is search in most windows enviroments/programs
Title: Re: Any way to change AI director mid game?
Post by: Thracian on November 26, 2013, 02:34:02 PM
Ok... it say "Friendy" what can i change about it? can i but in Random? or Classic? what to put there to get it harder? just put in "Hard"?? god i am a noob good that i wanna work in the militairy there are atleast things who i know..... За Россия!
Title: Re: Any way to change AI director mid game?
Post by: Semmy on November 26, 2013, 02:35:30 PM
Make a savegame with the storyteller you want to chance to.
Copy that storyteller line into the savegame you want to chance.
Title: Re: Any way to change AI director mid game?
Post by: Thracian on November 26, 2013, 03:26:26 PM
Thank you. You helped me out a lot. Thanks you are the best. -A Russian