.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
  #1  
Old February 6th, 2004, 11:38 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 Perl or Scheme (or Lisp) programmers?

OK I had good luck at putting out a call for C and Basic programmers before. This site...
http://imagic.weizmann.ac.il/~dov/gimp/

Has some fairly clear examples of scripts for GIMP which is a programmable Paint program used by the devs and others of us. We have some desires in the area of batch-generating maps for the game. In particular I have an interest in a script to make GIMP do this...

load .tga and open layers
for 3 colors
rclick image, select-> by color, choose color, Shft-Ctrl-L
go to layers, clik "keep transp", clik "new layer"
next color
after getting 3 transparent floating layers, select blur
Ctrl-M to merge all layers then save

the 3 colors are .. 255/255/255, 195/87/44, 44/135/195
__________________
-- 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
  #2  
Old February 7th, 2004, 12:01 AM

gibson gibson is offline
Private
 
Join Date: Jan 2004
Location: Indiana
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
gibson is on a distinguished road
Default Re: Perl or Scheme (or Lisp) programmers?

I have a fair amount of experience with scheme, though I've used it mainly for small scale experiments and projects, not scripting. However, I'll try to look into this over the next few days (if someone doesn't beat me to it).

[ February 06, 2004, 22:03: Message edited by: gibson ]
__________________
Half gods are worshipped in wine and flowers. Real gods require blood. -- [i]Their Eyes Were Watching God</i]
Reply With Quote
  #3  
Old February 7th, 2004, 08:09 PM

gibson gibson is offline
Private
 
Join Date: Jan 2004
Location: Indiana
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
gibson is on a distinguished road
Default Re: Perl or Scheme (or Lisp) programmers?

Here you go Gandalf, I think this should do what you'd like.

Dominions II Selective Map Blur

I grabbed a portion of a tiny map you'd generated and gave it a whirl, and I thought the result was a little easier on the eyes:

Original:


Blurred:


Let me know how it works and if you need anything else.
__________________
Half gods are worshipped in wine and flowers. Real gods require blood. -- [i]Their Eyes Were Watching God</i]
Reply With Quote
  #4  
Old February 7th, 2004, 08:17 PM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: Perl or Scheme (or Lisp) programmers?

...

I'm no Gandalf, but the modified map certainly looks much better for my eyes! Thanks!
Reply With Quote
  #5  
Old February 7th, 2004, 08:31 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: Perl or Scheme (or Lisp) programmers?

GREAT! (any suggestions on running it from a script for batch processing? I can probably search and find something)

Care to give some thought on how to do border edging (like the edging tool) to large areas of color on one of GIMPs maps made with the land scrpts?
__________________
-- 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
  #6  
Old February 7th, 2004, 08:41 PM

gibson gibson is offline
Private
 
Join Date: Jan 2004
Location: Indiana
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
gibson is on a distinguished road
Default Re: Perl or Scheme (or Lisp) programmers?

If the script you'd like to call it from is in Script-Fu, then you should be able to just call it normally (i.e. (script-fu-blur-random-map '(255 255 255) '(195 87 44) '(44 135 195))). I'm not sure what else you would write a GIMP script in, but I'd bet you can call it one way or another.

I'm not quite sure what you mean by the edging question. I'm a GIMP novice myself, so if its a technical question about GIMP I doubt I'll be of much help .
__________________
Half gods are worshipped in wine and flowers. Real gods require blood. -- [i]Their Eyes Were Watching God</i]
Reply With Quote
  #7  
Old February 7th, 2004, 08:49 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: Perl or Scheme (or Lisp) programmers?

Awww rats. I cant get it to register (Im trying to use GIMP in a non-GUI mode). Some of the other GIMPers here will like it 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
  #8  
Old February 7th, 2004, 11:43 PM

gibson gibson is offline
Private
 
Join Date: Jan 2004
Location: Indiana
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
gibson is on a distinguished road
Default Re: Perl or Scheme (or Lisp) programmers?

I looked into it a bit more and think this might work in batch mode:

Selective Blur Batch Script

I wasn't able to get it to work right from the command line on Win32, but I think GIMP batch processing on Win32 is somewhat lacking. Let me know if you have anymore luck with it. I think it should at least register, hopefully.
__________________
Half gods are worshipped in wine and flowers. Real gods require blood. -- [i]Their Eyes Were Watching God</i]
Reply With Quote
  #9  
Old February 9th, 2004, 02:59 AM
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: Perl or Scheme (or Lisp) programmers?

It will take me abit to play with it. Maybe along the way I can figure out how to get GIMP to create a large batch of those nice map renderings it has built into it. They are much prettier but more work to get to a playable stage.
__________________
-- 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
  #10  
Old March 25th, 2004, 06:19 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: Perl or Scheme (or Lisp) programmers?

GIMP 2.0 has been released. It supports scheme, C, python and perl for scripted actions. This is a programmable powerful (free) paint program. Check it out at www.gimp.org
__________________
-- 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
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 01:23 AM.


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