The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: paulo francis da silva on December 16, 2013, 11:57:56 PM

Title: Has the option to change the the timeline during the game?
Post by: paulo francis da silva on December 16, 2013, 11:57:56 PM
hello! downloaded some stations (pak128), however, they do not appear in the game, due to activation of the timeline. How do I change the timeline? Or, is tinkering with the pak file, so it can be available in any year?
Title: Re: Has the option to change the the timeline during the game?
Post by: An_dz on December 17, 2013, 02:48:46 AM
There's no way to edit a pak file, you need the sources to edit the objects. You can play without timeline if you want everything available any era.
Title: Re: Has the option to change the the timeline during the game?
Post by: paulo francis da silva on December 17, 2013, 10:24:24 PM
But how to do this is during the game? Or have to delete the game and start a new?
Title: Re: Has the option to change the the timeline during the game?
Post by: An_dz on December 18, 2013, 01:28:07 PM
There's a way, but it requires some steps:
1. Open your simuconf.tab;
2. Search for saveformat and change the actual value, which is probably bzip2, to xml and save;
3. Open Simutrans and load the save you want to change;
4. Save it with another name, the old save will serve as backup, this procedure may corrupt your game;
5. Open you documents folder and look for Simutrans folder, open it and open save folder;
6. Open the save file you just created with a text editor; (notepad is not useful here)
7. You'll see million of lines in this file but you just have to change the second number between <i8></i8> to 0; (The code section below shows where you should edit)
8. Change back the saveformat value to bzip2 on simuconf.tab that you changed in step 2.

PS.: Test the new save a while before you delete the backup.

Here's where you should edit:
<?xml version="1.0"?>
<Simutrans version="0.112.7" pak="pak96.comic">
<einstellungen_t>
  <i32>256</i32>
  <i32>33</i32>
  <i32>22</i32>
  <i32>330</i32>
  <i32>11</i32>
  <i32>6000</i32>
  <i32>2</i32>
  <i32>16</i32>
  <i32>1</i32>
  <i32>-2</i32>
  <d1000>160000</d1000>
  <d1000>600</d1000>
  <i32>2</i32>
  <i32>256</i32>
  <i8>1</i8>
  <i8>1</i8>    <------------------- Edit this value to 0
  <i16>1950</i16>
  <i16>20</i16>
Title: Re: Has the option to change the the timeline during the game?
Post by: paulo francis da silva on December 21, 2013, 08:18:17 PM
did not work, the game is not opening. But anyway, thanks for the help!  :)
would be possible to ask the Creator who made the file, change the use of time, and move file to be used anytime?
Title: Re: Has the option to change the the timeline during the game?
Post by: prissi on December 21, 2013, 09:02:39 PM
There is a way to revert most setting to their value in simuconf.tab. I may howver affect some parts of you savegame, so no guarantees.

1) Open New Worold->extended settings
2) Set the savegame version to 99.17
3) Close the dialogues
4) Save the game under new name
5) Quit simutrans and edit simuconf.tab to the desired settings (including timeline)
6) Load the game

Some newer stuff will be lost, like some assignments of factories to cities, worker deliverable percentage and so one. So do this under a new name.
Title: Re: Has the option to change the the timeline during the game?
Post by: paulo francis da silva on December 21, 2013, 10:45:39 PM
so if I make these settings and change the name of the game, I do not lose anything on my saved game?
Title: Re: Has the option to change the the timeline during the game?
Post by: An_dz on December 22, 2013, 04:09:14 AM
You do lose. Prissi wrote at the end of his post that you might lose newer version stuff like some factory-city assignments.

I found testing here that you just need to change use_timeline to 0 in simuconf.tab and the game loads without timeline.
Title: Re: Has the option to change the the timeline during the game?
Post by: paulo francis da silva on December 22, 2013, 04:55:13 PM
I understand! I'll try to review the settings to see if I did everything right even.
Quote from: An_dz on December 17, 2013, 02:48:46 AM
There's no way to edit a pak file, you need the sources to edit the objects.
I forgot to ask you, what sources would these be? :)
Title: Re: Has the option to change the the timeline during the game?
Post by: An_dz on December 23, 2013, 11:37:56 PM
An image (.png) and a text (.dat).