Yet another map viewing tool: vegamap

A forum for the discussion and development of programs to assist working on or playing with the Vegastrike engine and data sets.
Post Reply
weaselflink
Explorer
Explorer
Posts: 9
Joined: Wed Jun 23, 2004 8:49 pm

Yet another map viewing tool: vegamap

Post by weaselflink »

Since I don't want to hijack the VSNav-Topic, I've opened this one. The original post in the old topic was:

Wrote a little program for viewing the map (yesterday), but forgot to have a look in the forum.

Anyway you can find it here (complete with source under GPL):
http://www.bissell.de/vegamap/

Needs Java 1.5 to run.

Usage:

Code: Select all

java -jar vegamap.jar -f <path_to_milky_way.xml>
Right click to center map at click
Mouse wheel for zoom
Hit "j" to toggle showing systems without jumps (default off)
Hit "n" to toggle showing system names (default on)
Hit "s" to toggle showing system sector (default off)
Hit "f" to toggle showing system faction (default off)
Hit "b" to toggle showing sector "boxes" (default off)
Left click on system then left click on another system:
Calculates path and dumps path to stdout

Have fun!
weaselflink
Explorer
Explorer
Posts: 9
Joined: Wed Jun 23, 2004 8:49 pm

Post by weaselflink »

Due to a suggestion by "MamiyaOtaru" I fixed the reversed Y-axis in the new version (0.1.1), which is available here
http://www.bissell.de/vegamap/

Like in Vegastrike positive y-values are "down", this can be toggled with the "r" key.
Also I added zooming without the mouse (just in case somebody doesn't hava a mouse wheel). Press "z" to zoom in and "Z" (shift+z) to zoom out.

Have fun!
HarryKane
Star Pilot
Star Pilot
Posts: 5
Joined: Thu Dec 15, 2005 5:12 pm
Location: Jena&Magdeburg Germany

Post by HarryKane »

How do I use it under windows? I dont have any experience with java :(

Java runtime enviroment 1.5 is already installed.

EDIT: I got it.
In another thread was a better explanation ;)
pheldens wrote: Extract the zip, open a prompt, cd into the unzipped directory, then:

java -jar vegamap.jar -f <path_to_vegastrike_data>/universe/milky_way.xml
I hope my english is comprehensible, I have so far very little practice ;)
Lonestar
Bounty Hunter
Bounty Hunter
Posts: 150
Joined: Wed Dec 15, 2004 8:18 pm
Location: Ohio
Contact:

Post by Lonestar »

Throws up an exception in OSX Tiger 10.4.3:
java -jar vegamap.jar -f ~/.vegastrike/sectors/milky_way.xml
Exception in thread "main" java.lang.UnsupportedClassVersionError: vegamap/view/GalaxyView (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
==========
Lonestar
==========
"Not if we jam it! Down scope!"
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

I think you have the wrong version of java on your mac?


anyhow I just tried it---that's absolutely amazing :-)
with a bit of fiddling with the zoom keys and recentering I was also able to view the priv remake map as well--- but for the Vega Strike map it is king---we should try to get a viewer this good into Vega Strike itself---would beat what we have there now by a longshot---

also fixing up the stars themselves would be great... so that the unvierse has more known stars, and the density is the same (at least without the jump network)
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
dandandaman
Artisan
Artisan
Posts: 1270
Joined: Fri Jan 03, 2003 3:27 am
Location: Perth, Western Australia
Contact:

Post by dandandaman »

hellcatv wrote:I think you have the wrong version of java on your mac?
Ya, looks like it ... you need to download 1.5 from apple's website seperately lonestar :-) (it won't conflict with 1.4 or whatever tiger has by default) ... and then make sure you run it using the right jre ;-)

Dan.a
"Computers are useless. They can only give you answers."
-- Pablo Picasso
tripintraveler
Merchant
Merchant
Posts: 62
Joined: Mon Feb 21, 2005 1:35 pm
Location: Cloaked, and Watching
Contact:

Post by tripintraveler »

ok i downloaded the app, ... now to just figure out how to get it installed / and use it, ... i read the
Extract the zip, open a prompt, cd into the unzipped directory, then:
java -jar vegamap.jar -f <path_to_vegastrike_data>/universe/milky_way.xml
i know this is gonna sound dumb to most but ... What???????? im using winxp pro, and never really learned how to do much in dos prompt (im assuming thats what "open a prompt" was refering to) "cd" im assuming is change directory but past a little knowlege of the terms, im LOST as far as how to Actually do it .... to get everything set up, and working .. lol
puts on dunce hat and waits for some mercifull help

EDIT #1 i stumbled around in command prompt and Tried tyo do what ya'll said to do to get it to work, and this is what command prompt told me

C:\Documents and Settings\HabitMan\Desktop\vegamap\vegamap-0.1.1>java -jar vegamap.jar -f C:\Program Files\Vegastrike\Vegastrike-0.4.3\universe\milky_way.xml
vegamap: Unknown parameter: Files\Vegastrike\Vegastrike-0.4.3\universe\milky_way.xml
any ideas on what to do Now? or what i did wrong?
Get in, Sit Down, Shut Up and Hang On, .. We're Going For A Ride
mortaneous
Bounty Hunter
Bounty Hunter
Posts: 164
Joined: Tue Jul 11, 2006 6:20 pm
Location: Some small planet, Parallel Earth, Resources Negligeble
Contact:

Post by mortaneous »

Windows DOS prompt is stupid, you'll need to surround the path (C:\program files....) in quotes "like this" because of the space in "Program Files", otherwise it thinks that the first parameter is "C:\Program" and that you have a second parameter of "Files\wherever\the\file\is"

So use : java -jar vegamap.jar -f "C:\Program Files\Vegastrike\Vegastrike-0.4.3\universe\milky_way.xml"
Moe479
Merchant
Merchant
Posts: 57
Joined: Wed Jan 24, 2007 7:13 am

Post by Moe479 »

uhmm its very slow on my comp ... well java ... but not entirely .. its basicly the heavy uase of 2d drawing ... using an ogl-binding with a spritengine for points, lines and names would speed up the app dramaticaly ... :wink:
pyramid
Expert Mercenary
Expert Mercenary
Posts: 988
Joined: Thu Jun 15, 2006 1:02 am
Location: Somewhere in the vastness of space
Contact:

VegaMap (2D)

Post by pyramid »

I know, we have VSMap3D. But it is too slow on my machine to comfortably browse through teh systems. That's the main reason I have revived VegaMap (2D) and upgraded the functionality to be even more user friendly. It is lighting-fast on today's CPUs.

The tool can be checked out from the modtools part of svn.
charlieg
Elite Mercenary
Elite Mercenary
Posts: 1328
Joined: Thu Mar 27, 2003 11:51 pm
Location: Manchester, UK
Contact:

Re: Yet another map viewing tool: vegamap

Post by charlieg »

Why doesn't one of these maps get used in game instead of the creaky nav computer?
Free Gamer - free software games compendium and commentary!
FreeGameDev forum - open source game development community
pyramid
Expert Mercenary
Expert Mercenary
Posts: 988
Joined: Thu Jun 15, 2006 1:02 am
Location: Somewhere in the vastness of space
Contact:

Re: Yet another map viewing tool: vegamap

Post by pyramid »

Is on my wishlist, too. :)
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Yet another map viewing tool: vegamap

Post by klauss »

charlieg wrote:Why doesn't one of these maps get used in game instead of the creaky nav computer?
Probably because it's java ;-)
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply