Project I made at ITMO university for Java programming course.
Code can be a little bit messy, so sorry about that.
- Get org.json package from https://github.com/stleary/JSON-java and add it to the root of the project under the name json.jar
- Run compile.bat under Windows or compileunix.bat under Linux
Run runclient.bat or runserver.bat depending on which one you need.
You need to run server code on ITMO server and pass required port to you. You can do this by running this command
ssh -L [PORT]:localhost:[PORT] s[YOUR STUDENT ID]@se.ifmo.ru -p 2222
Where [PORT] is whatever port you choose to use and [YOUR STUDENT ID] is your student ID. Mine was 338925. Still remember it!
- -p [number]: Port, 5400 by default
- [fileName]: Load save file
- [hostname]: Hostname, localhost by default
- [port]: Port, 5400 by default
Only in this order!
Run either jarclient.bat or jarserver.bat, depending on what you need.
Of course! demoFiles folder has a couple of demo files
- saveFileDemo.json - demo save file of a collection (like what you get when you save collection on server yourself)
- scriptDemo.txt - script that can be ran on client on server to add a lot of vehicles to the collection
- scriptDemoGenerator.py - python script to generate scripts that create a lot of vehicles. Just like in scriptDemo.txt
This code uses The Unlicense license, so feel free to use anything in this repository for whatever you need - which is probably your own project for ITMO, so good luck with that.