The International Simutrans Forum

 

Author Topic: Get the number of map save  (Read 490 times)

0 Members and 1 Guest are viewing this topic.

Offline Diguinho

  • *
  • Posts: 2
  • Languages: PT, EN
Get the number of map save
« on: February 17, 2019, 01:43:26 PM »
I need to know the number of a map I had generated for a new project.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2583
  • Languages: EN
Re: Get the number of map save
« Reply #1 on: February 17, 2019, 05:29:46 PM »
I assume you are referring to the RNG seed used to generate the map? I am not sure if that is saved with a map since technically it is only needed during map generation.

Offline ACarlotti

  • *
  • Posts: 316
Re: Get the number of map save
« Reply #2 on: February 17, 2019, 05:52:27 PM »
It is also needed when enlarging the map to ensure consistent terrain at the boundary. So I would expect it to be saved.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2583
  • Languages: EN
Re: Get the number of map save
« Reply #3 on: February 18, 2019, 05:33:09 AM »
Quote
It is also needed when enlarging the map to ensure consistent terrain at the boundary. So I would expect it to be saved.
In which one can probably grab it with a debug build of Simutrans by breaking at any time and looking at the value of the variable.

Offline Diguinho

  • *
  • Posts: 2
  • Languages: PT, EN
Re: Get the number of map save
« Reply #4 on: February 20, 2019, 11:59:30 PM »
In which one can probably grab it with a debug build of Simutrans by breaking at any time and looking at the value of the variable.
How can I do this?

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2583
  • Languages: EN
Re: Get the number of map save
« Reply #5 on: February 21, 2019, 05:22:50 AM »
I will look into this later today. If it cannot be obtained easily already I will see if I can place it in a dialog somewhere.

EDIT:
Starting with R8691 one can view the map seed number in the enlarge map window. This window can be viewed by selecting the public service player, opening the map editor toolbar and then selecting the enlarge map tool.

This feature should be available in the nightly build within 24 hours of this post.

I placed it there since it seems a sensible place for it to go. In the future someone might want to make it editable from that window in case a user wants to mix and match map seed numbers when expanding maps. For now it is read only since for consistent terrain generation results it must not change.
« Last Edit: February 21, 2019, 07:11:27 AM by DrSuperGood »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9384
  • Languages: De,EN,JP
Re: Get the number of map save
« Reply #6 on: February 24, 2019, 12:38:53 PM »
I think it was also output in the debug messages, or at least it should go there.