News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Has the option to change the the timeline during the game?

Started by paulo francis da silva, December 16, 2013, 11:57:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paulo francis da silva

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?

An_dz

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.

paulo francis da silva

But how to do this is during the game? Or have to delete the game and start a new?

An_dz

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>

paulo francis da silva

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?

prissi

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.

paulo francis da silva

so if I make these settings and change the name of the game, I do not lose anything on my saved game?

An_dz

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.

paulo francis da silva

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? :)

An_dz