Quick question for whoever programmed the map gen.

Quick question for whoever programmed the map gen.

Return to topic list

Sat Apr 30 00:20:32 2016   by   sig
Hi, I'm not really sure if this is the right place to ask, but I am currently working on something and used this map generator. I am in need of a larger version of this map but sadly, I do not seem to remember the seed of it. However, I do know, using this link: http://topps.diku.dk/torbenm/Maps/, that it is under the name of ''Map-83.bmp''. I do not know if it would be possible to know the seed for this map so that I can generate a larger version of it for my personal project. Thank you for your help!
 
Sun May 1 06:50:50 2016   by   Ron Vantreese
I never knew this directory existed.

The program itself: it's not able to analyze the map and figure out the seed that created it. There is a function to search for seed based on what the map should look like.. it's incredibly slow.

HOWEVER (probably better for Mr. Torben to comment) a server can record the options inputs. If recorded, I'm sure the info can be looked up.

If you needed to know quickly, this is what I know... if you have more patience, I'm sure Mr. Torben can give a more complete info when he's available.
 
Mon May 2 09:46:48 2016   by   Torben
The Maps directory is a cache of the most recently generated maps, using the last three digits of the seed as part of the name, so Maps-83.bmp tells you that the last three digits of the seed are 083.  I'm afraid that this is all that it will tell you.  The map files themselves do not store any information about the parameters.

I think the BMP format has a comment field, so it might be an idea to store the parameters in this field.  I will look into this.
 
Mon May 2 14:10:15 2016   by   Torben
The BMP file format does not contain a comment field, but since it ignores everything after the pixel data, I have appended a line that repeats the command line to the end of the output file.  While some viewers might potentially complain about the extra line, it works with the viewers I have tried and with the web site.

The line is added only when you use the new generator and only for the BMP format.  To see the line, use any tool that can extract the last line of a file.  On Linux and similar systems, the command line tail -1 <file name> will do the trick.

I have updated the zip file and executable on the download page.  If you experience any problems, please tell me.
 
Tue May 3 02:22:35 2016   by   Ron Vantreese
The PPM format can support comments as such:
P6
# Comment that begins with the pound symbol
<Width> <Height>\n
<Depth>\n

The XPM may support comments if surrounded by /* comment block */
 
Tue May 3 09:58:13 2016   by   Torben
Yes, I know this, and I will get around to adding this to the other formats in time.  I was addressing the immediate problem.
 
Tue May 3 14:57:48 2016   by   Torben
I have now added the command line as a comment when outputting to PPM and XPM files as well as BMP files.  The new version is available for download in the usual place.
 
Mon Jul 17 14:55:51 2017   by   CorinaMarie
Adding the command line to the file is a great idea. (I was careful to save my maps with the seed number as part of the file name, but now I see this feature is even better.) For Windoze users (tested with Win 7 Pro) you can open the .bmp in Notepad and scroll to the bottom to see the command line in plain text. (The rest of the file will look like gibberish, but the last line is readable.) Note: You need to change the choice of what file type to open to All Files (*.*). Additionally note that if you edit the .bmp file in a graphics program (such as GIMP) and save over your file, this command line text will be removed so keep a separate copy of the original generated map.

-Cori
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list