|
|
|
 |

February 24th, 2004, 09:45 PM
|
 |
Major General
|
|
Join Date: Aug 2000
Location: Mountain View, CA
Posts: 2,162
Thanks: 2
Thanked 4 Times in 4 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
M_PI is normally the value of PI from math.h or a subinclude. For instance, on a Linux box I've nearby, /usr/include/math.h contains
# define M_PI 3.14159265358979323846 /* pi */
(in a block of defines surrounded by an #ifdef relating to BSD).
__________________
Are we insane yet? Are we insane yet? Aiiieeeeee...
|

February 24th, 2004, 09:58 PM
|
 |
Major General
|
|
Join Date: Jan 2004
Location: twilight zone
Posts: 2,247
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by Taqwus:
M_PI is normally the value of PI from math.h or a subinclude. For instance, on a Linux box I've nearby, /usr/include/math.h contains
# define M_PI 3.14159265358979323846 /* pi */
(in a block of defines surrounded by an #ifdef relating to BSD).
|
Thanks! My linux box is downstairs collecting (a lot of) dust. Two years worth at least.
I've gotten the code to compile and produce a map & tga. You can get the v1.94a console .exe w/ sample output from my site. If no one finds any other problems (besides the odd water loops that happen with my compile also), then I can begin the conVersion into a real Windows app. That is, assuming anyone is interested in the fancy Windows trappings (GUI, etc.) ...
[ February 24, 2004, 20:00: Message edited by: Arryn ]
|

February 24th, 2004, 10:22 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Not to curb your enthusiasm but so far what we have managed to do is get the DomMap from Dominions 1 to work for Dom2. There is a wish-list for this program. Many things that could be upgraded. If we wander into two code-sets it will be hard to keep up. Your choice of course.
There are also other 3rd party program requests where window-dressing (pun intended) is what is being asked for.
__________________
-- 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!)
|

February 24th, 2004, 10:48 PM
|
 |
Major General
|
|
Join Date: Jan 2004
Location: twilight zone
Posts: 2,247
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by Gandalf Parker:
Not to curb your enthusiasm but so far what we have managed to do is get the DomMap from Dominions 1 to work for Dom2. There is a wish-list for this program. Many things that could be upgraded. If we wander into two code-sets it will be hard to keep up. Your choice of course.
|
First, no one has yet come forward to volunteer for Source Forging. I would if I was familiar with the system. I've never used Source Forge.
Second, and more pointedly, if I apply "window-dressing" to the app, it will be a major (ie: almost complete) rewrite of the code, not just a recompile. This will render moot any source control between a Windows GUI Version and a linux console Version.
The ideal option, of course, is to do any GUI in Java, which, if done properly, will run on all platforms. Doing it in Java will take me longer as the code not only has to be translated from C, but I'm not as swift a Java coder as I am a C coder.
BTW, I haven't been doing this out of any interest I have in the app (I don't plan to use it myself), but just because a need for a Windows Version was expressed. So just point me in the direction you want me to go.
Quote:
There are also other 3rd party program requests where window-dressing (pun intended) is what is being asked for.
|
Such as? Someone else is doing the game-save app, so I'm not going to parallel that effort. I haven't seen mention of any other projects in progress or desired. Please post a list of what's been asked for, and solicit volunteers ... 
[ February 24, 2004, 21:54: Message edited by: Arryn ]
|

February 24th, 2004, 11:46 PM
|
Sergeant
|
|
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by Gandalf Parker:
I like that. The "canvas" thing that Illwinter uses was interesting also (I think Saber Cherry recommended it in another thread) but I think I like this one better.
But I suspect this is farther away from being batch-useable than blur is. Im sure ImageMagick commands can do what I want. I just dont understand enough about masks and such.
|
I've been messing around with Jeff Kelly's selective blur script, and have added bump-mapping to it. You can find the edited Version here: http://home.Online.no/~rmoldskr/Domi...blur-batch.scm
It _almost_ works in batch mode (with the command-line gimp -b '(selective_blur_batch "/complete/path/to/file/random.tga")(gimp-quit 0)'), but for some reason the gimp-by-color-select calls refuses to work unless there's an open display. I did a quick google on the problem, and it seems other people _are_ able to use the gimp-by-color-select calls in batch mode, so it might perhaps be related to the Version of Gimp I'm using (1.2.3)
__________________
"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]
|

February 24th, 2004, 11:53 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Hmmm the dommap has kindof a UI called run_dommap.sh which I tried to convert to a batch file. Didnt really come out good. All it does is give an easy semi-documented way to edit the many parameters of DomMap and run them with your favorite settings over and over. Doing a GUI front-end to DomMap would probably be a great thing.
On my linux system I made a front-end for me to play with which ran batches of maps thru DomMap while randomizing many of the parameters (within reasonable boundarys) so that I could view the results of 30, 50, 100 at a time. It gave me a feel for the settings I prefered. I can provide the code if you promise not to laught at it (its in Basic)
You could probably do something with those two. A front end that offered help on the variables, let you set them, save them, randomize them, and run a batch for viewing.
I started a list of desired 3rd party apps but it got kindof long. I thought maybe I had better make it another thread.
__________________
-- 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!)
|

February 24th, 2004, 11:57 PM
|
 |
Major General
|
|
Join Date: Jan 2004
Location: twilight zone
Posts: 2,247
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: JAVA programmer? (and Win-DomMap, and some GIMP)
Quote:
Originally posted by Gandalf Parker:
You could probably do something with those two. A front end that offered help on the variables, let you set them, save them, randomize them, and run a batch for viewing.
|
Sounds like something useful, that I can do without the "me-too" issues of the core generator. I'll begin work on the front end. Thanks for the suggestion.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|