.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)

Leif_- February 25th, 2004 05:57 PM

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

Originally posted by Gandalf Parker:
Looks like you got it to work. And I thank you. Some of the GIMPers will be able to make use of it.

Unfortunately it still wont quite fill my needs because Im hard-headed and dont load GUIs on my servers. Everything I do with the maps so far uses no console display. WHen I run your new script I get much farther than before but I get this...
Gtk-WARNING **: cannot open display:
even though Im not asking for a displayed finish. I even deleted the display line out of the script completely and it gave me that error

<font size="2" face="sans-serif, arial, verdana">Yes, I believe that is a flaw with Gimp - it actually needs to open its menu window, even when just doing batch-processing; so it needs an X display just to start. Terribly annoying.

PhilD February 25th, 2004 06:12 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 Leif_-:
I've finally managed to get the "blur and bump-map" script to work with Gimp's batch mode

<font size="2" face="sans-serif, arial, verdana">Looks like you got it to work. And I thank you. Some of the GIMPers will be able to make use of it.

Unfortunately it still wont quite fill my needs because Im hard-headed and dont load GUIs on my servers. Everything I do with the maps so far uses no console display. WHen I run your new script I get much farther than before but I get this...
Gtk-WARNING **: cannot open display:
even though Im not asking for a displayed finish. I even deleted the display line out of the script completely and it gave me that error
</font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">Have you tried using the -i switch? My gimp (Version 1.2.3) says it will not cause the program to use its graphical interface. I just tried, and it seems to work (it's possible that, even when not launching an interface, gimp still requires an X server or something like that, though).

Leif_- February 25th, 2004 06:25 PM

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

Originally posted by PhilD:
Have you tried using the -i switch? My gimp (Version 1.2.3) says it will not cause the program to use its graphical interface. I just tried, and it seems to work (it's possible that, even when not launching an interface, gimp still requires an X server or something like that, though).
<font size="2" face="sans-serif, arial, verdana">Yes, I looked at that now. Gimp still needs an X server for font rendering (even though we don't do any font rendering in this script.)

Gandalf Parker February 25th, 2004 06:52 PM

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

Originally posted by PhilD:
Have you tried using the -i switch? My gimp (Version 1.2.3) says it will not cause the program to use its graphical interface.
<font size="2" face="sans-serif, arial, verdana">Good shot. Sounded good but it didnt work. Rats, I thought we had it that time.

If I had more willpower I would reload Debian with all the GUI stuff and just force myself not to get addicted to it. But I know Id fail and lessen my abilities as a server admin.

[ February 25, 2004, 16:54: Message edited by: Gandalf Parker ]

PhilD February 25th, 2004 07:02 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:
Have you tried using the -i switch? My gimp (Version 1.2.3) says it will not cause the program to use its graphical interface.

<font size="2" face="sans-serif, arial, verdana">Good shot. Sounded good but it didnt work. Rats, I thought we had it that time.

If I had more willpower I would reload Debian with all the GUI stuff and just force myself not to get addicted to it. But I know Id fail and lessen my abilities as a server admin.
</font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">Too bad, really. Me, I like the result, and I'll probably add a switch to dommap to launch this script on the .tga... ugly kludge, but if the maps look better...

Leif_- February 25th, 2004 07:16 PM

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

Originally posted by PhilD:
Too bad, really. Me, I like the result, and I'll probably add a switch to dommap to launch this script on the .tga... ugly kludge, but if the maps look better...
<font size="2" face="sans-serif, arial, verdana">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.

Leif_- February 25th, 2004 09:28 PM

Re: JAVA programmer? (and Win-DomMap, and some GIMP)
 
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.
<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)

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

Torvak February 25th, 2004 09:37 PM

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

Gandalf Parker February 25th, 2004 10:01 PM

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

Originally posted by Leif_-:
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 size="2" face="sans-serif, arial, verdana">Wow, you are good. Sounds like what I have running (minus the gimp part) but you got there alot faster than I did. I will definetly take a look at it.

Leif_- February 25th, 2004 10:34 PM

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

Originally posted by Gandalf Parker:
Unfortunately it still wont quite fill my needs because Im hard-headed and dont load GUIs on my servers. Everything I do with the maps so far uses no console display.
<font size="2" face="sans-serif, arial, verdana">I came across something here http://gug.sunsite.dk/tutorials/tomcat17/ about using virtual frame-buffers to allow Gimp to do batch processing from a text console. As far as I understand, you'd have to install X Window on the machine to get the frame-buffer, but you wouldn't have to actually start X Window as such.

Would that help you?


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

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