.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 2: The Ascension Wars (http://forum.shrapnelgames.com/forumdisplay.php?f=55)
-   -   JAVA programmer? (and Win-DomMap, and some GIMP) (http://forum.shrapnelgames.com/showthread.php?t=17585)

Arryn February 25th, 2004 10:48 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Leif_-:
The script can be found at http://home.Online.no/~rmoldskr/dominions.html and an example web-page with a handfull of generated maps on it can be found at http://home.Online.no/~rmoldskr/Domi...nion_maps.html
<font size="2" face="sans-serif, arial, verdana">I've posted a link to Leif's page on my site so that it may be easily found in the future (no forum searching needed).

PhilD February 25th, 2004 10:58 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Leif_-:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">quote:</font><hr /><font size="2" face="sans-serif, arial, verdana">Originally posted by Leif_-:
I'm working on a perl script right now to do batch production of maps processed with this script. I'll put it up somewhere when it's ready.

<font size="2" face="sans-serif, arial, verdana">Okay, I'm finished with the perl script now. It basically lets you create a number of maps with dommap, prettifies them with the Gimp script, zips up the maps in individual zip-files, generates thumbnails and builds a (very basic) web-page where the maps can be downloaded from. (The web-page thing can be turned off)
</font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">Great job!

Actually, I think the maps look reasonable now - they certainly don't have the polished look of hand-drawn maps, but they seem good enough.

Gandalf Parker February 25th, 2004 11:40 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Leif_-:
Would that help you?
<font size="2" face="sans-serif, arial, verdana">Looked great. Nice example of running a batch. But their Xvfb thing didnt work either.
Thanks though

Gandalf Parker February 25th, 2004 11:45 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by PhilD:
Actually, I think the maps look reasonable now - they certainly don't have the polished look of hand-drawn maps, but they seem good enough.
<font size="2" face="sans-serif, arial, verdana">Gonna take over running batches Phil? http://forum.shrapnelgames.com/images/icons/icon7.gif
Want a copy of my script for making this page?
http://www.techno-mage.com/~dominion...humbnails.html
You can cut-n-paste betweeh the two of them.

PhilD February 25th, 2004 11:51 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Gandalf Parker:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">quote:</font><hr /><font size="2" face="sans-serif, arial, verdana">Originally posted by PhilD:
Actually, I think the maps look reasonable now - they certainly don't have the polished look of hand-drawn maps, but they seem good enough.

<font size="2" face="sans-serif, arial, verdana">Gonna take over running batches Phil? http://forum.shrapnelgames.com/images/icons/icon7.gif
Want a copy of my script for making this page?
http://www.techno-mage.com/~dominion...humbnails.html
You can cut-n-paste betweeh the two of them.
</font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">No, thanks - I still turn the computer off at night, and don't want to set up a cron job to upload to my ISP's computers, so anything I host, I'll have to copy manually.

Still, I'll probably release a Version 1.95 of dommap, as soon as Arryn confirms me the minor changes I made didn't break his Developer Studio files. I'll include Leif's Perl script and his Version of the Gimp script, because they make the whole thing worth running...

Gandalf Parker February 25th, 2004 11:55 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by PhilD:
Still, I'll probably release a Version 1.95 of dommap, as soon as Arryn confirms me the minor changes I made didn't break his Developer Studio files. I'll include Leif's Perl script and his Version of the Gimp script, because they make the whole thing worth running...
<font size="2" face="sans-serif, arial, verdana">Gonna drop the other possible fixes? seperate mask image? adding more colors to the fractal? building in a blur (or now maybe a bump)

Arryn February 26th, 2004 12:25 AM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by PhilD:
Still, I'll probably release a Version 1.95 of dommap, as soon as Arryn confirms me the minor changes I made didn't break his Developer Studio files.
<font size="2" face="sans-serif, arial, verdana">1. "her", not "his". http://forum.shrapnelgames.com/images/icons/icon12.gif

2. I had to change 4 instances of "random()" to "rand()" in the province.c file, after which it compiles cleanly. Let me know if you want me to send you this "revised" .c file.

Leif_- February 26th, 2004 08:42 AM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
I've updated the Gimp script to add a coastal outline. The result can be seen on the generated maps here: http://home.Online.no/~rmoldskr/Domi...nion_maps.html

There's also a small change to the perl script, since I decided to move the gimp-quit call out of the Gimp script. The updated scripts can be found here: http://home.Online.no/~rmoldskr/dominions.html

People who want to use the Gimp script might want to experiment with changing the parameters to the call to plug-in-bump-map, plug-in-gauss-iir (which does the blurring) and the first value in the gimp-brightness-contrast (which determines how much brighter than the sea the coast-line will be.) The values I've used there are not necessarily the best (or even particularly good) ones. You'll have to make those changes in the script for now, though.

In particular you might want to turn on compensation for darkening when applying the bump-map (personally I believe the maps look better with the darkening on, but I've been known to be wrong from time to time.) To do that simply change the line from "(plug-in-bump-map RUN-NONINTERACTIVE image prettydrawable plasmadrawable 135.0 45.0 3 9 0 0 0 0 0 LINEAR)" to "(plug-in-bump-map RUN-NONINTERACTIVE image prettydrawable plasmadrawable 135.0 45.0 3 9 0 0 0 1 0 LINEAR)" For a description of what the various parameters are, choose Xtns -> DB Browser and type in "plug-in-bump-map" in the search-field.

[ February 26, 2004, 06:59: Message edited by: Leif_- ]

PhilD February 26th, 2004 09:45 AM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Gandalf Parker:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">quote:</font><hr /><font size="2" face="sans-serif, arial, verdana">Originally posted by PhilD:
Still, I'll probably release a Version 1.95 of dommap, as soon as Arryn confirms me the minor changes I made didn't break his Developer Studio files. I'll include Leif's Perl script and his Version of the Gimp script, because they make the whole thing worth running...

<font size="2" face="sans-serif, arial, verdana">Gonna drop the other possible fixes? seperate mask image? adding more colors to the fractal? building in a blur (or now maybe a bump) </font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">I'm not sure what to do. I can add these as options, but if I want to keep Leif's script compatible, I'll have to modify it (probably not a big deal).

Blurring and bumping from dommap is not an option for me. I could add a call to batch-mode Gimp to the program, but this is likely to not be very cross-platform compatible; Leif's Perl script seems a much better solution (and mine would not solve yours, if your problem is that you cannot run Gimp on your console).

PhilD February 26th, 2004 09:47 AM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Arryn:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">quote:</font><hr /><font size="2" face="sans-serif, arial, verdana">Originally posted by PhilD:
Still, I'll probably release a Version 1.95 of dommap, as soon as Arryn confirms me the minor changes I made didn't break his Developer Studio files.

<font size="2" face="sans-serif, arial, verdana">1. "her", not "his". http://forum.shrapnelgames.com/images/icons/icon12.gif

2. I had to change 4 instances of "random()" to "rand()" in the province.c file, after which it compiles cleanly. Let me know if you want me to send you this "revised" .c file.
</font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">1. Sorry. Guilty of false majority assumption. http://forum.shrapnelgames.com/images/icons/icon9.gif

2. I thought I had already done this change before; I've duplicated in my current Version (and sent the result to you by email)

Arryn February 26th, 2004 10:30 AM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by PhilD:
I've duplicated in my current Version (and sent the result to you by email)
<font size="2" face="sans-serif, arial, verdana">I've tested the 1.95 Version you sent me and it compiles fine with MSVC.

I've updated my site's download page with this v1.95 .zip file, for anyone that wants to grab it.

EDIT: I've also put up on my site a separate .zip file with a compiled .exe for Windows.

[ February 26, 2004, 08:38: Message edited by: Arryn ]

PhilD February 26th, 2004 12:47 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Leif_-:
I've updated the Gimp script to add a coastal outline. The result can be seen on the generated maps here: http://home.Online.no/~rmoldskr/Domi...nion_maps.html

There's also a small change to the perl script, since I decided to move the gimp-quit call out of the Gimp script. The updated scripts can be found here: http://home.Online.no/~rmoldskr/dominions.html

<font size="2" face="sans-serif, arial, verdana">When I try to run the script from the command line, by copying from the Perl script, it does not seem to exit (I have to C-c it). What did I do wrong? (I did include the (gimp-quit 0) part, of course)

BTW - I like your coastlines.

Leif_- February 26th, 2004 01:04 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by PhilD:
When I try to run the script from the command line, by copying from the Perl script, it does not seem to exit (I have to C-c it). What did I do wrong? (I did include the (gimp-quit 0) part, of course)

BTW - I like your coastlines.

<font size="2" face="sans-serif, arial, verdana">Hmm. Hard to say. Are you sure you're including the (gimp-quit 0) part in its own pair of single quotes?

Gandalf Parker February 26th, 2004 04:07 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Hmmmm if I psuedo-code some of my randomizer routines for the .map file maybe you could perl those and knit them together?

Oh and can the script write out the parameters it used? Maybe as a .bat file of the same name? The program I wrote for randomzing the DomMap runs does this buy writing the params to a $NAME.sh and then running the .sh
Im interested the the results of some of PhilD's maps and I want to duplicate those levels.

[ February 26, 2004, 14:12: Message edited by: Gandalf Parker ]

Leif_- February 26th, 2004 04:15 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Gandalf Parker:
Hmmmm if I psuedo-code some of my randomizer routines for the .map file maybe you could perl those and knit them together?

Oh and can the script write out the parameters it used? Maybe as a .bat file of the same name? The program I wrote for randomzing the DomMap runs does this buy writing the params to a $NAME.sh and then running the .sh
Im interested the the results of some of PhilD's maps and I want to duplicate those levels.

<font size="2" face="sans-serif, arial, verdana">Sure, although I might not be able to get the time to do it until this weekend. As it is, I print out the size of the map to the HTML file, and it wouldn't be a problem to add the other parameters there as well.

PhilD February 26th, 2004 07:50 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Leif_-:
Hmm. Hard to say. Are you sure you're including the (gimp-quit 0) part in its own pair of single quotes?
<font size="2" face="sans-serif, arial, verdana">No, actually I'm sure I didn't add its own pair of single quotes. Stupid syntax... http://forum.shrapnelgames.com/images/icons/icon9.gif

mlepinski February 26th, 2004 08:49 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
I just wanted to thank everyone who's worked on the Random Map Generator. Using DomMap from Arryn's site and the Gimp scripts from Leif's site, I was able to easily create a really nice looking map that I've enjoyed playing.

Thanks a lot,
- Matt Lepinski :->

Arryn February 26th, 2004 09:10 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by alexti:
The use of MFC is only advantageous in commercial projects, where you're getting paid for fixing MFC bugs ;-)
<font size="2" face="sans-serif, arial, verdana">I'd overlooked this posting, else I'd've replied to it before now.

Yes, I've done my fair share of fixing MFC-related bugs for (good) pay. But now that I've been using the {insert choice expletive here} Macrosloth IDE for 6+ years I'm kind of used to it. Just as I'm used to the {insert choice expletive here} reverse-listing order of this forum. http://forum.shrapnelgames.com/images/icons/icon12.gif

Gandalf Parker February 26th, 2004 09:40 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Arryn:
Yes, I've done my fair share of fixing MFC-related bugs for (good) pay. But now that I've been using the {insert choice expletive here} Macrosloth IDE for 6+ years I'm kind of used to it. Just as I'm used to the {insert choice expletive here} reverse-listing order of this forum.
<font size="2" face="sans-serif, arial, verdana">Heehee as a long-time moderator I must point out that this is a prime example of a proper post. No questionable language was used but with some creativity their presense was still felt. http://forum.shrapnelgames.com/images/icons/icon12.gif

[ February 26, 2004, 19:41: Message edited by: Gandalf Parker ]

Arryn February 26th, 2004 09:47 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Gandalf Parker:
Heehee as a long-time moderator I must point out that this is a prime example of a proper post.
<font size="2" face="sans-serif, arial, verdana">I reserve my improper Posts to subjects of politics, religion, and the {insert choice insult here} postings of {insert choice insult here} people. http://forum.shrapnelgames.com/images/icons/icon12.gif Those people probably know who they are ... http://forum.shrapnelgames.com/images/icons/tongue.gif

Leif_- February 26th, 2004 09:50 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Arryn:
I reserve my improper Posts to subjects of politics, religion, and the {insert choice insult here} postings of {insert choice insult here} people. http://forum.shrapnelgames.com/images/icons/icon12.gif Those people probably know who they are ... http://forum.shrapnelgames.com/images/icons/tongue.gif
<font size="2" face="sans-serif, arial, verdana">Hey... I resent that remark! Calling me a "{insert choice insult here}" indeed.

Arryn February 26th, 2004 10:05 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Leif_-:
Hey... I resent that remark! Calling me a "{insert choice insult here}" indeed.
<font size="2" face="sans-serif, arial, verdana">Obligatory OT warning, for the overly-sensitive out there. (oops, was that a {choice insult}? http://forum.shrapnelgames.com/images/icons/icon12.gif )

Isn't the imagination a wonderful thing indeed? Especially when you use those of your {insert choice insult here} adversaries against themselves? hehe {evil grin}

Torvak February 26th, 2004 10:06 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Now that it is off topic enough. Arryn check your email please http://forum.shrapnelgames.com/images/icons/icon7.gif

Arryn February 26th, 2004 10:18 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Torvak:
Now that it is off topic enough. Arryn check your email please http://forum.shrapnelgames.com/images/icons/icon7.gif
<font size="2" face="sans-serif, arial, verdana">Yes, Sir! http://forum.shrapnelgames.com/images/icons/tongue.gif http://forum.shrapnelgames.com/images/icons/icon12.gif

I've updated the files section on my site with your latest DomSaver. Now go back to work so I can get back to making OT Posts. http://forum.shrapnelgames.com/images/icons/icon12.gif http://forum.shrapnelgames.com/images/icons/tongue.gif http://forum.shrapnelgames.com/images/icons/tongue.gif

Gandalf Parker February 26th, 2004 10:34 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
With all the DomMap people here, no one interested in a RanGames project? I had planned on extending the routines along the lines of things Ive already done after some of the programmers here have picked up on it (started it in perl, or scheme, or C or java or whatever)

Arryn February 26th, 2004 10:45 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Gandalf Parker:
With all the DomMap people here, no one interested in a RanGames project?
<font size="2" face="sans-serif, arial, verdana">Sorry, Gandalf, I'm already busy with ...
</font>
  • <font size="2" face="sans-serif, arial, verdana">an AAR,</font>
  • <font size="2" face="sans-serif, arial, verdana">a Dom 2 website,</font>
  • <font size="2" face="sans-serif, arial, verdana">working on a GUI front-end to DomMap,</font>
  • <font size="2" face="sans-serif, arial, verdana">being cynical, an unreformed punster, and all-around pain-in-the-posterior (on occasion) on this forum, in between the odd helpful Posts I try to do. http://forum.shrapnelgames.com/images/icons/icon12.gif</font>
<font size="2" face="sans-serif, arial, verdana">

Leif_- February 26th, 2004 10:45 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
Quote:

Originally posted by Gandalf Parker:
With all the DomMap people here, no one interested in a RanGames project? I had planned on extending the routines along the lines of things Ive already done after some of the programmers here have picked up on it (started it in perl, or scheme, or C or java or whatever)
<font size="2" face="sans-serif, arial, verdana">I'm working on it as we speak. Just need to test it and get a few warts out of it.

Leif_- February 27th, 2004 02:07 AM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
I've added a new option to the Perl script, -rnd , which will randomize the parameters for dommap for every map (but any argument specified on the command-line will not be randomized.) This gives some more variation in the size and topographies of the generated maps, although, of course, some of the maps will be rather useless.

Edited to add: I just uploaded a set of maps made with the -rnd option to the web. (You can find the address further up ... errr - down in the thread.)

[ February 26, 2004, 13:53: Message edited by: Leif_- ]


All times are GMT -4. The time now is 07:26 AM.

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