MinecartRapidTransit / MRTPath2

A Pathfinder for the Minecart Rapid Transit minecraft server
GNU General Public License v2.0
0 stars 0 forks source link

GUI #4

Open eschoenawa opened 10 years ago

eschoenawa commented 10 years ago

After you've finished your test / while you do them I'll try to create a GUI, easier than the old one. When you finish before I do you can look at the v1 Launcher and start this one using the downloader I added.

wrbs commented 10 years ago

Launcher is done with a basic swing gui. Please create the gui in a new repository and check out the launcher repo. I based the launcher on the v1 but its a bit more complicated. It checks the md5 hashes of the files to see whether they need updating or not. I didn't really comment the code...

Now I will do the tests for the api.

wrbs commented 10 years ago

Update: The launcher is done. The way it works is it gets the files.txt file from our github pages (see MinecartRapidTransit.github.io repo) which tells it where to find files (for now they are all hosted on github pages). It uses md5sums to see whether we already have the right version of the files otherwise it downloads (with a nice progress bar) the file. After doing all that it will run the class (net.minecartrapidtransit.path.gui.Main) with both the api.jar and gui.jar in the classpath. It will redirect all output of the java process to the stdout. If something goes wrong an error message will pop up.

It should do everything we need and more. It works cross-platform (Linux, Windows, Mac). Now all we have left is to load up the MRT Network and write a gui. I will start work on a gui tool for adding new lines to the network which should make our life easier for the first. You are in charge of the main gui though - I'll leave it all to you.

wrbs commented 10 years ago

Link to files.txt: http://minecartrapidtransit.github.io/downloads/files.txt

eschoenawa commented 10 years ago

Great work there logi, you must have much of time or you are a genius coder ;) I'll get to the GUI tomorrow hopefully. Greetings mc0505 Am 21.04.2014 21:12 schrieb "logiblocs" notifications@github.com:

Update: The launcher is done. The way it works is it gets the files.txt file from our github pages (see MinecartRapidTransit.github.io repo) which tells it where to find files (for now they are all hosted on github pages). It uses md5sums to see whether we already have the right version of the files otherwise it downloads (with a nice progress bar) the file. After doing all that it will run the class (net.minecartrapidtransit.path.gui.Main) with both the api.jar and gui.jar in the classpath. It will redirect all output of the java process to the stdout. If something goes wrong an error message will pop up.

It should do everything we need and more. It works cross-platform (Linux, Windows, Mac). Now all we have left is to load up the MRT Network and write a gui. I will start work on a gui tool for adding new lines to the network which should make our life easier for the first. You are in charge of the main gui though - I'll leave it all to you.

— Reply to this email directly or view it on GitHubhttps://github.com/MinecartRapidTransit/MRTPath2/issues/4#issuecomment-40965964 .

eschoenawa commented 10 years ago

Looks like I have to rebuild the GUI from scratch again, WindowBuilder messed something up there :/ I did create a branch for that so you can continue working with master.

EDIT: Oh, and what do I have to do now to get the data out of the yaml?

EDIT2: Nevermind, reading stays the same, I should learn to read... xD