Hey,For the last year and a half or so I've been working on a Soldat clone, called Storm2D. (http://storm2d.net)Having released an alpha version of the game, on my latest video (http://www.youtube.com/watch?v=0Eb-4QJHHeQ) two people have posted that the game crashes at a specific point, both using Windows 7 (same as me). Annoyingly, the problem doesn't happen on my computer, nor 3+ other computers I tested the program on, so it is hard to debug. One of the users helpfully posted the crash log (exception stack trace) and it leads me to believe (although I could be wrong, as the location of the crash is not where the actual problem is) that my problem has something to do with the way I am reading files with the Java scanner.

Note: I bundle the jre with my application so it isn't a problem with different versions of java.

when reading through one of my (biped) files needed for the game, at the start of the line I check if the first 'token' in the line is a number. If it is a number, it means I need to read an extra two parameters at the start. I read the line a slightly different way (because the line contains different parameters). For some reason I think the first token is not being recognized as a number on their machines which means that the first two tokens aren't handled and the whole line is read wrongly.

The code I use to check if the token is a number(note: any type of number, float,double, int etc) is below. Does this handle all cases? (apart from long, huge numbers won't occur)

1 2 3 4 5 6

if (scan.hasNextFloat() || scan.hasNextInt()){ ... //process the first two tokens}

//continue to read the rest of the line.

Alternatively I could use the below code and just use scanner.next() rather than using the other methods(hasNextFloat, etc), but I won't know if it works until one of the users that had the problem in the first place try it again.

Thanks man! Same. I wish I could go back to the old Soldat days! I played that game almost every day for nearly 5 years. This is one of the reasons why I am making a Soldat clone. People have left the game but nothing has replaced it.

There's still a heap of bugs and things I need to do and features to add, but if I can get some good artwork, etc I think this game could be a hit. Just need to keep at it!

You might also look at Cortex Command. It seems to have some of the same things in it. But I've never played Soldat and am just basing things on the video of the game you posted. >.> I have played KAG though, and they're somewhat similar.

You might also look at Cortex Command. It seems to have some of the same things in it. But I've never played Soldat and am just basing things on the video of the game you posted. >.> I have played KAG though, and they're somewhat similar.

Yeah Cortex command is a great game too I played that a lot for a while. I haven't played online with it though, just with some friends on a single PC.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org