New map-generator and new features

New map-generator and new features

Return to topic list

Wed Mar 9 16:29:22 2016   by   Torben
I have added two more check-boxes to the planet generator: One for making more "wrinkly" maps, which essentially means adding more fine detail, and one for using the old generator.

The reason for this is that while adding another feature to the offline version of the program (the -T option, see the post about pre-color tilt), I had to change the generator method slightly, as there was a part that was not rotationally invariant.  So if you want to recreate maps using a seed you have saved, check the "use old generator" box.  The "wrinkly" option has no effect if you use the old generator.

I will not add features to the old generator, so you should use this only for making maps for a seed you have saved for this purpose.  There is no change in the quality of the maps.  Basically, a pseudo-random choice that depended on the coordinates now depend on rotationally invariant information.
 
Thu Mar 10 04:54:21 2016   by   Ron Vantreese
Thanks for this news. I'll work on my part for the user interface.
 
Thu Mar 10 05:10:54 2016   by   Ron Vantreese
Just noticed something: The planet.exe file included in the new zip file has this date: 11/12/2014, even though planet.c has date of 3/9/2016.
 
Thu Mar 10 09:28:53 2016   by   Torben
Yes, I have not yet had an opportunity to compile it on a Windows machine.  I will do so soon, maybe today.
 
Thu Mar 10 11:39:26 2016   by   Torben
I have now uploaded an updated Windows executable to the web page (http://www.diku.dk/~torbenm/Planet/).  Reload the page to get the correct links.

I also made a tiny change to the source, allowing pre-grid/colour rotating by more than 90 degrees north/south, so you can rotate a planet up-side down.
 
Fri Mar 11 16:46:56 2016   by   Mark
Aw nuts... that's gonna cause me some problems...

I routinely generate maps based on the same seed for different purposes. I was just looking around to see if there was a way I could generate an "underground" map...alas now I know that'll be impossible for the map I want to use. ..;
 
Fri Mar 11 17:15:44 2016   by   Torben
Mark: You can still use the old generator, both online and offline.

So if you saved a seed for a map made with the old generator, use the old generator to recreate the map.  If you saved a seed for a map made with the new generator, you can recreate this using the new generator.  You just have to recall which generator you used when you saved the seed.
 
Sat Mar 26 23:40:56 2016   by   Ron Vantreese
Error in code:
(source code in 3/10/2016 edition)

      switch (c) {
      case '.': cl0[i][j] = -8;
break;
      case ',': cl0[i][j] = -4;
break;
      case ':': cl0[i][j] = -2;
break;
      case ';': cl0[i][j] = -1;
break;
      case '-': cl0[i][j] = 0;
break;
      case '*': cl0[i][j] = 1;
break;
      case 'o': cl0[i][j] = 2;
break;
      case 'O': cl0[i][j] = 4;
break;
      case '@': cl0[i][j] = 16;
break;
      default: printf("Wrong map symbol: %c\n",c);
      }

Context: This is used in reading .map files. Line 829 puts "@" to the value of 16. It should be 8.

Also FILE *colfile is opened but never closed. This could cause problems on some servers or hosts.
 
Tue Mar 29 22:07:20 2016   by   Ron Vantreese
Comment please?
 
Wed Mar 30 09:13:25 2016   by   Torben
In the case of the @ symbol, it is a case of the documentation not being updated.  Years ago, I changed the value of @ from 8 to 16 to make the preference for land stronger.

About not closing *colfile, that is, indeed, a mistake that I will fix.
 
Wed Mar 30 15:42:11 2016   by   Ron Vantreese
OK, 16, thanks.
 
Thu Apr 7 21:03:54 2016   by   Ron Vantreese
Question...

"I have added two more check-boxes to the planet generator: One for making more "wrinkly" maps, which essentially means adding more fine detail, and one for using the old generator."

Do you mean "Options"? What are these options? I can't find them in Document or Source code...
 
Fri Apr 8 10:41:49 2016   by   Torben
The checkboxes are in the online version.  The "use old generator" makes the web page use the older version of the program (oldplanet.c in the zip file), where the default is the new (planet.c).  The "wrinkly" option corresponds to the "-S" option for the offline program.
 
Fri Apr 8 15:04:02 2016   by   Ron Vantreese
OH! my bad :) You're talking about the web page.
 
Tue Apr 12 00:48:05 2016   by   Giancarlo Ventura
I can't find the old zip. When I try the download, I get a 404 :/
 
Tue Apr 12 09:38:02 2016   by   Torben
I had by mistake named the zip-file differently than in the link.  Fixed now.
 
Fri Apr 15 19:11:20 2016   by   Ron Vantreese
New VPPlanetGenerator at "https://toolslib.net/downloads/viewdownload/73-vpplanetgenerator/" that includes changes made by Mr. Torben.
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list