.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Online map file syntax checking and map randomizer (http://forum.shrapnelgames.com/showthread.php?t=32834)

Jack_Trowell January 15th, 2007 07:24 PM

Online map file syntax checking and map randomizer
 
The first version of my dominions perl library is done.

Currently there are function for map parsing/validation, functions to add random buildings and commanders to provinces, and of course a function to output the edited map code from the perl psudo-object

The library come with a test script (test.pl) as well as an online map validator/randomizer also available on my website , so you don't even need to install anything if you just want to randomize a map or two :

http://dominions.realites.org/

I have many plans for the future based on this library, such as semi-random provinces (randomly select random provinces/commanders from a preset library depending of the province terrain type(s) for exemple), and I can take suggestion, or even script requests.

And of course please report any bug that you could find with the application, thanks in advance.

Jack_Trowell January 18th, 2007 08:37 PM

Re: Online map file syntax checking and map randomizer
 
ew version at http://dominions.realites.org

- "greater manysites" now use list of pre-set provinces.
- map file upload instead of text area : the application now doesn't hang anymore with large map files

You can list all available special provinces at
http://dominions.realites.org/?actio...cial_provinces

This will list them all, and give the same map code that will be used by the script when editing map files. (yes, you can also copy/past the code in a map file manually if you want to test a province, and of course there might still be some errors, don't hesitate to post when you find one)

And of course the online tool will use those provinces (with full credit for the authors in the resulting map code) when you check the "greater manysites" option.

The list is *far* for complete, so I still take suggestions for new provinces (http://www.shrapnelcommunity.com/thr...art=3&vc=1), as well as suggestion or request for new features.

Currently on my immediate TODO list :

- a pre-set province with a name should be unique in the final map
- add more pre set provinces so that each terrain type as at least some
- maybe making two versions of the random province function, one for land provinces and one for sea provinces (need list of IDs of units with ampibious or aquatic, even a partial list would be better than nothing). At worst I might just ignore random sea provinces and use instead preset ones (since very few units are aquatic in proportion to the huge number that exist, random units on land provinces usually don't drown, the reverse being false)


Your suggestions ?

Jack_Trowell January 19th, 2007 06:26 PM

Re: Online map file syntax checking and map randomizer
 
Another version :

- Results are now displayed full screen by default, exept in debug mode or if unrecognized lines are found.
(you can just use the "save page as ..." command of your browser to save the edited map)
- New option : "force full screen results"
- some small bug fixes
- provinces now list the number of sea and land neighbours, so it is now possible to identify a province as an island (land province with only sea neighbours), a lake, a coastal province, a peninsula, or even a province without any neighbours.


All times are GMT -4. The time now is 08:44 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.