Thursday 21 of August 2008 15:31:13 Vincent Verhoeven napisaĆ(a): > 2008/8/19 Krzysztof Sobolewski <[EMAIL PROTECTED]>: > > > > I don't think I'll be able to try to reproduce it until saturday, at > > least... Are you comfortable with debugging Java programs? > > I think I'm making some progress. You are using the sizes of the > galaxies to determine the map bounds (TParsecDataModel:312 and > onwards). Risk has a size of 0 and a position of (0,0,0) on all > galaxies it seems. I suppose it only uses them as a container for > other stuff, and not something meaningful to be displayed. This means > that the mapbounds are (0,0) to (0,0), thus width/height is 0 and > division by zero later on.
Ah. In Stars! I accumulate all planets and I thought it's the same in TParsec. My bad. It was just too easy to use the Galaxy... ;) > I'm going to let others fight on whether Risk or Starmapper needs to > change. What do you even do when there are no galaxies, > NullPointerExceptions? Or is that situation just not allowed by the > protocol? Hmmm, NPE is a highly probable possibility. -- Ecce Jezuch "All the world around enemy; they're tearing up the ground enemy They're drawn in by the sound; enemy, enemy, i must eliminate my enemy" - D. Draiman
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ tp-devel mailing list [email protected] http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel
