Search the Community
Showing results for tags 'random map generator'.
This is the current work-in-progress version of the Random Map Generator I have been working on. Please keep in mind I am by no means a professional at this so please report any problems you may encounter while running it here in this thread. A link to download it and the uncompiled code are below, Java is required to run it. Simply double click the 'run.bat' file to generate a map. When a map is created, a total of three files are made. A log file, an ini file, and the map file. The log file contains the settings that were used to create the map. The ini file contains the name of the map, for use with the CnCNet launcher included in the GruntMods Edition of Dune 2000. And the map file, of course is the map itself. An optional fourth file, a .mis file, can be made as well. Updated: v170407 D2KMapGen-170407.zip src-170407.zip Heavily reduced the time it takes to save the map and mis file Replaced the settings bellow with the following new settings: 'numberOfSandSpecialsToAdd', 'numberOfRockSpecialsToAdd', 'numberToAdd', 'numberOfSpiceSquares', numberOfDuneSquares', 'numberOfIslandSquares' 'sandSpecialFreq', 'rockSpecialFreq', 'rockFreq', 'spiceFreq', 'duneFreq', 'islandFreq' These new settings are instead now a percentage. Ex. If 'rockFreq' is set to 0.2, then roughly 20% (0.2 * 100) of all blocks on the map will be a rock tile All areas have been properly altered to prevent it from getting stuck due to a value that is too high Improved the GUI Fixed the AI in the mis files being incorrect Partially fixed the placment of the dune edges Altered how the openings in the cliff faces are added, they can now be varied in size Sped up the placing of player spawns somewhat with 'autoSpaceSpawns' enabled, and the placement of spice blooms After a map is completed, the time it took to make it is displayed Prevented cliff faces and rock-to-sand edges from having two identical blocks right next to each other Example of a map made with the default settings: v170322 D2KMapGen-170322.zip src-170322.zip Implemented safe guards to prevent the program from locking up; you may now set the settings as high as you want All 7 original tilesets are now supported Now creates a .mis file to go with the map Added new setting: 'addMis' Setting to true will create a .mis file, false will not Added new setting: 'autoSpaceSpawns' Setting to true will use a new, better method to add the spawn points in a more evenly distributed layout. 'spaceBetweenPoints' is not used under it A 'README.txt' file is included which explains the settings and how to use the generator v170317 D2KMapGen-170317.zip src-170317.zip Added a new system where all you need to do is specify the map dimensions and tileset, and the remaining values will be estimated. Setting 'useSettings' to false will enable this. Added a basic interface which utilizes the above feature. To use it, run the 'runGUI.bat' file. 'Load Defaults' will load the settings last saved and 'Quit and Save Defaults' will save the current settings Picture: Now uses the tileset ini files from Klofkac's Map Editor for the tile info Added new setting: 'numberOfEmptyBlooms' Like how 'numberOfBlooms' would be the start of a spice field that has a spice bloom, 'numberOfEmptyBlooms' is the start of a spice field that does not have one Added new setting: 'addTimeStamp' Setting this to false will disable the time stamp that is added to the end of a map's file name Reorganized the settings file to be more neat Spice blooms are now ensured to be spread across the map more evenly 'Islands' can now become merged with the rock-to-sand openings in the cliff walls Altered the list of rock tiles in use v170311 D2KMapGen-170311.zip src-170311.zip Updated settings file; now uses ini4j to read ini formating Added small patches of rock to the generation Fixed spawns being put on inaccessible rock plains Updated the way extra spawns are added/removed to ensure there are always 8 in total v170304 D2KMapGen-170304.zip src-170304.zip
For a few years now, I have been interested in making a random map generator for Dune 2000, and so finally, earlier in February I went and did just that. Right now, it only supports using tiles specific to the BLOXBGBS tileset, but it can put down everything that is absolutely needed for a map to work, and can make them any size that Dune 2000 supports. The only thing it's missing though, are sand cliffs, I am still working on a decent way to generate those, because they are fairly crucial to a map as well. That said, do you have any suggestions on how to make it better in any way? Something that would make more logical maps? Below are some maps made with varying settings, and a link to download them. There are some things I know I need to do already, such as making the sand dunes and rock-to-sand borders appear a bit less blocky and straight, but that is simple work. And with that, here are the examples: Maps.zip