.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #51  
Old February 25th, 2004, 10:48 PM
Arryn's Avatar

Arryn Arryn is offline
Major General
 
Join Date: Jan 2004
Location: twilight zone
Posts: 2,247
Thanks: 0
Thanked 0 Times in 0 Posts
Arryn is on a distinguished road
Default 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
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).
__________________
Visit my Dominions II site
Reply With Quote
  #52  
Old February 25th, 2004, 10:58 PM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default Re: JAVA programmer? (and Win-DomMap, and some GIMP)

Quote:
Originally posted by Leif_-:
quote:
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.
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)

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.
Reply With Quote
  #53  
Old February 25th, 2004, 11:40 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: JAVA programmer? (and Win-DomMap, and some GIMP)

Quote:
Originally posted by Leif_-:
Would that help you?
Looked great. Nice example of running a batch. But their Xvfb thing didnt work either.
Thanks though
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #54  
Old February 25th, 2004, 11:45 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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.
Gonna take over running batches Phil?
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.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #55  
Old February 25th, 2004, 11:51 PM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default Re: JAVA programmer? (and Win-DomMap, and some GIMP)

Quote:
Originally posted by Gandalf Parker:
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.
Gonna take over running batches Phil?
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.

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...
Reply With Quote
  #56  
Old February 25th, 2004, 11:55 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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...
Gonna drop the other possible fixes? seperate mask image? adding more colors to the fractal? building in a blur (or now maybe a bump)
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #57  
Old February 26th, 2004, 12:25 AM
Arryn's Avatar

Arryn Arryn is offline
Major General
 
Join Date: Jan 2004
Location: twilight zone
Posts: 2,247
Thanks: 0
Thanked 0 Times in 0 Posts
Arryn is on a distinguished road
Default 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.
1. "her", not "his".

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.
__________________
Visit my Dominions II site
Reply With Quote
  #58  
Old February 26th, 2004, 08:42 AM

Leif_- Leif_- is offline
Sergeant
 
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
Leif_- is on a distinguished road
Default 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_- ]
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
Reply With Quote
  #59  
Old February 26th, 2004, 09:45 AM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default Re: JAVA programmer? (and Win-DomMap, and some GIMP)

Quote:
Originally posted by Gandalf Parker:
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...
Gonna drop the other possible fixes? seperate mask image? adding more colors to the fractal? building in a blur (or now maybe a bump)
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).
Reply With Quote
  #60  
Old February 26th, 2004, 09:47 AM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default Re: JAVA programmer? (and Win-DomMap, and some GIMP)

Quote:
Originally posted by Arryn:
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.
1. "her", not "his".

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.

1. Sorry. Guilty of false majority assumption.

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)
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 06:38 PM.


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