.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
  #61  
Old March 4th, 2004, 03:27 PM

Goad Goad is offline
Private
 
Join Date: Mar 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Goad is on a distinguished road
Default Re: Combat Simulator Released!

Seems you hardcoded your path separator instead of using Java System.getProperty ("file.separator").

tsk.

Mac people, do this in terminal:

sed "s@Data\\@Data/@g" Data.class > Data.class.new; mv Data.class.new Data.class
Reply With Quote
  #62  
Old March 4th, 2004, 05:07 PM
Saber Cherry's Avatar

Saber Cherry Saber Cherry is offline
Major General
 
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
Saber Cherry is on a distinguished road
Default Re: Combat Simulator Released!

Quote:
Originally posted by Goad:
Seems you hardcoded your path separator instead of using Java System.getProperty ("file.separator").

tsk.

Mac people, do this in terminal:

sed "s@Data\\@Data/@g" Data.class > Data.class.new; mv Data.class.new Data.class
Woah, I'll have to change that. Sorry...

I had no idea the path was specified (in Java) in a different way for different OSes.
__________________
Cherry
Reply With Quote
  #63  
Old March 4th, 2004, 05:09 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: Combat Simulator Released!

Quote:
Originally posted by Saber Cherry:
I had no idea the path was specified (in Java) in a different way for different OSes.
Ouch! Neither did I. Who knew you could learn programming by playing games?
__________________
Visit my Dominions II site
Reply With Quote
  #64  
Old March 4th, 2004, 05:58 PM

Goad Goad is offline
Private
 
Join Date: Mar 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Goad is on a distinguished road
Default Re: Combat Simulator Released!

No problem. It's a great utility by the way. I'm looking forward to using it to optimize my first recruits. Since I can only play to level 34 while I wait for the rowboat to cross the atlantic with the packaged game.
Reply With Quote
  #65  
Old March 4th, 2004, 06:31 PM
Saber Cherry's Avatar

Saber Cherry Saber Cherry is offline
Major General
 
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
Saber Cherry is on a distinguished road
Default Re: Combat Simulator Released!

Okay, v41 was uploaded. It correctly grabs file separators. Also, I changed the psuedorandom number generator from Math.Random to a free Java Mersenne Twister, which is supposed to be a much better random number generator, more suitable for Monte Carlo simulation (which this combat sim does).
__________________
Cherry
Reply With Quote
  #66  
Old March 4th, 2004, 07:51 PM

Norfleet Norfleet is offline
Major General
 
Join Date: Jan 2004
Posts: 2,425
Thanks: 0
Thanked 0 Times in 0 Posts
Norfleet is an unknown quantity at this point
Default Re: Combat Simulator Released!

Quote:
Originally posted by Arryn:
Ouch! Neither did I. Who knew you could learn programming by playing games?
Me. Everything I know about programming, I learned by from playing games, ripping them apart, and hacking them to be the way *I* want them to.

In Soviet Russia, the game plays you!
Reply With Quote
  #67  
Old March 5th, 2004, 03:40 PM

mivayan mivayan is offline
Second Lieutenant
 
Join Date: Dec 2003
Posts: 404
Thanks: 0
Thanked 1 Time in 1 Post
mivayan is on a distinguished road
Default Re: Combat Simulator Released!

Quote:
D:\Strategy\dominions2\doc\CombatSim>dir fight.class

Le volume dans le lecteur D est DATA
Le numéro de série du volume est 7FD4-62B6
Répertoire de D:\Strategy\dominions2\doc\CombatSim

FIGHT~1 CLA 10 530 29/02/04 15:25 Fight.class
1 fichier(s) 10 530 octets
0 répertoire(s) 56 423.88 Mo libre
I am not sure exactly how and why but I have experienced the problem of java not looking for class files in the current directory.

Try this: java -classpath D:\Strategy\dominions2\doc\CombatSim Fight militia militia
Reply With Quote
  #68  
Old March 5th, 2004, 06:17 PM
Saber Cherry's Avatar

Saber Cherry Saber Cherry is offline
Major General
 
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
Saber Cherry is on a distinguished road
Default Re: Combat Simulator Released!

Quote:
Originally posted by mivayan:
I am not sure exactly how and why but I have experienced the problem of java not looking for class files in the current directory.

Try this: java -classpath D:\Strategy\dominions2\doc\CombatSim Fight militia militia
Thanks a lot for the suggestion!

BTW, from within the correct directory, you could probably type this:

java -cp . Fight militia militia

and get the same result. "." means current directory - it worked for me.

I don't remember how to permanently get it into Java's head that class files are found in the local directory, but I'll post it here if I find out.
__________________
Cherry
Reply With Quote
  #69  
Old March 5th, 2004, 06:34 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: Combat Simulator Released!

Quote:
Originally posted by Saber Cherry:
I don't remember how to permanently get it into Java's head that class files are found in the local directory, but I'll post it here if I find out.
Try setting the CLASSPATH variable at the system level to "." and see if that works.
__________________
Visit my Dominions II site
Reply With Quote
  #70  
Old February 22nd, 2005, 06:24 PM
Saber Cherry's Avatar

Saber Cherry Saber Cherry is offline
Major General
 
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
Saber Cherry is on a distinguished road
Default Re: Combat Simulator Released!

Been a while, but a new version of the combat simulator is out - you can grab it here:

http://www.geocities.com/saber_marionette_cherry/

It fixes a bug that has made attack-defense rolls wrong since the last version

Sorry about that! It was a result of a speed-up tweak, and I don't know how it slipped by my QC, but somebody noticed it and emailed me about it. Unfortunately, I forgot who, but thanks, Mr. Mystery person!
__________________
Cherry
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 10:45 AM.


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