So... about the server...


I should have looked over my code and thought about if someone was launching the server jar for the first time, it was released in a bad state!

Apologies for not giving any info on how to set up the server. And I’ll make up for it by telling how to set it up.

Step 1 : Make the map

To make a map you have 2 options :

  • A : Write out a 5-thousand space long array in JSON array format (so [1,2,3]), or

  • B : Creating a map in Tiled.

If your making a map in tiled, you’ll need the Map assets for Dropper, and remember that the IDs of the blocks (the numbers used by Tiled to identify different tiles) is in the following order :

1 for static (black) blocks

2 for the unused white blocks

3 for killer (red) blocks

4 for falling (orange) blocks

5 for goal (green) blocks

6 for moving (blue) blocks and

7 for the background (grey) blocks

NOTE : The block Ids must be in this exact order. Otherwise the map won’t show up right when displayed in-game. If you want to test your map, download and modify the normal game’s jar. It shouldn’t be too hard if you know how to configure libGDX

In my stupidity, I forgot to change the starting positions to whatever you need it to. So you’ll also have to remember that the hard-coded starting positions are :

X = 46 Y = 50 for server 1

X = 50 Y = 50 for servers 2 and 5, and

X = 35 Y = 50 for servers 3 and 4

(I got these numbers looking at the in-development 5.2’s source, so they may be incorrect)

It would be a good idea to have starting positions set up for each of those different configurations

Set the map’s save to JSON, and save it.

Then you’ll want to open the tmx file and delete everything but the map data. From there, you’ll have to go and delete out the line breaks in the map, as the server doesn’t read maps with line breaks. After all that, change the file extension to .json. Now you have a map that the server can read.

Step 2 : Setting up the server

I know for a fact that the server jar is not clickable. You must run it from the terminal by typing java -jar Path/To/The/Server.jar If you don’t have the map in your launch directory, or have a bad map, it won’t start.

The default port is 31337, and will never be different on the official jar. However, people who connect to your server will need your IP address.

And that’s about everything you need to know about setting up the jar. Once again, I apologize for such a thoughtless release.

Files

Dropper-Server-5.1-REV1 87 kB
14 days ago

Get Dropper

Leave a comment

Log in with itch.io to leave a comment.