SERVER

UCGOSERVER SOURCE CODE

https://mega.nz/file/FVATXaLL#Z7DiFJD2zKNmoAvvwcoKnAQ0UGu9xAabG_6FMco5iK0

Inside the zip file you’ll find a folder called UCGOPS, this contains a complete Netbeans project for the UCGOSERVER. Also in the zip file you find two files called xortable.dat and heightmap.bin, these files are required by the server.

The included xortable and heightmap files are meant for use with the UCGOSERVER version of the game client. If you use the official server game client use the xortable you can download from the link below.

https://mega.nz/file/IIBViCYQ#Pz8GM4soUh2jX49FdDRZ7hilUsEzcSp3enCSvRNpFZ4

Also for the official server client you need to use the heightmap saved in the client files at OBJECT/Terrain/au.tr, just extract the file with the UCGOZLIB tool and rename it to heightmap.bin.

A user made guide for setting up the server can be found here: https://docs.google.com/document/d/195PYCamKjuBg1AVIy684ORKGKgkjwveO5Q28geXQyxE

SETTING UP THE SERVER

The server is already setup to work with the UCGOSERVER game client, all you need to do is set the IP address and login info for the admin account.

Edit the file config/Server.java and set the field gameserver_ip to the IP of your own server.

Also edit the fields defaultAdminAccount and defaultAdminPassword to set the login info for your admin account. NOTE: This account is created the first time you run the server and no accounts already exists. You can’t edit these fields to change the login info for an already existing admin account.

When done build the jar file and place it in a folder together with the xortable and heightmap files.

In addition you also need to create the following sub-folders; logs, userdata, serverdata.

Then you just run the jar file: java -jar UCGOPS.jar. The first time you run it the server will complain about not being able to load player data but that’s OK. If you get errors about not being able to load the xortable or heightmap then you’ve done something wrong.

Assuming you’ve setup your DNS correctly and updated gameclient.cfg file in the client you should now be able to login to the server. If you get a gray login button the problem is most likely with your DNS config.

If you run the server and client on the same computer there might be some issues with client refusing to connect. For me this worked fine with Windows 7 and Windows 8 but with Windows 10 the game client would usually refuse to connect when running on the same computer.

USING THE OFFICIAL SERVER CLIENT

As with the UCGOSERVER game client mentioned above, edit the file config/Server.java to set the server IP and default admin account login details.

Then open the file packetHandler/UCGOcrypto.java, and edit the field bfPassword. This is the password used when encrypting data sent between the server and client. Set the password to chrTCPPassword.

Build the jar file and place it in a folder. Also you will need to create the following sub-folders; logs, userdata, serverdata.

The server also needs the file xortable.dat for encrypting data sent between the server and client. The xortable.dat file included in the zip archive is for use with the UCGOSERVER client. For the official server client download the xortable.dat file below and place it in the same folder as the UCGOPS.jar file.

https://mega.nz/file/IIBViCYQ#Pz8GM4soUh2jX49FdDRZ7hilUsEzcSp3enCSvRNpFZ4

And finally the server also needs the file heightmap.bin which tells it what the terrain looks like. Again the included file is for use with the UCGOSERVER client. To get the official server heightmap do the following:

In your UCGO client folder get the file OBJECT/Terrain/au.tr and decompress it using the UCGOZLIB tool. Then place the file in the same folder as the UCGOPS.jar file and rename it to heightmap.bin.

Then you’re ready to run the server as mentioned above.

Keep also in mind you will need to update the server with correct info for items, MS, weapons, and also remove the custom colored NPCs as they are not supported by the official server client.