[Development] Soul of the Ultimate Nation - Server Emulator
Soul of the Ultimate Nation
Hi, I would like to present my SUN Online game server project.
Overview: This project is being done from scratch in Java. At the moment my goal is to create fully functional server without dealing with performance. I currently use the Chinese game client. I have several versions of the European client but first they must be cracked.
Details: Used technologies: Java, PostgreSQL
Game version: Episode 1
Work done:
Code:
[05.07.2019]
- server applications:
- Authentication Server
- Agent Server
- World Server
- Database Proxy Server
- account creation
- user login
- character creation
- character movement
Ongoing work:
Code:
- moving between maps
- transferring the configuration to the database
- merchants and inventory
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Awesome! I will follow this project for sure.
11-07-19
marelegg
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Awsome keep it up!!!!What version its the client?The sun.exe cracked?Much more details.Thank you.
12-07-19
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
I am currently using a Chinese EP1 game client. I have different versions of the European client, but they do not work without cracking. Due to lack of time, I am not able to prepare an English client, therefore, it would be good if someone else could do it:)
12-07-19
marelegg
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by CwaniX
I am currently using a Chinese EP1 game client. I have different versions of the European client, but they do not work without cracking. Due to lack of time, I am not able to prepare an English client, therefore, it would be good if someone else could do it:)
Upload version ep1 chinese client working.(try to upload via google drive its the best choice).Give the details needed to configure the client login(idk cracking exe with ip,hexing it,or custom parameters to start the client)
I could try to work on translation.
I want to help how much i can on the project.
15-07-19
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
I will try to write a server start-up instruction and upload the client shortly, but I'm on vacation now so it can take a few days :)
26-07-19
ashlay
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Great work!
If you can tell which version or upload the client i can make a translation patch.
31-07-19
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
I will add the exact instructions for launch tomorrow :)
Well welcome back and thx for the links!
Now its the time to continue the project.
Gonna try translations and maybe i could do some tools when i get free time.
PS:Postgresql db?
database files i suppose the working one from github would work?
01-08-19
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by marelegg
PS:Postgresql db?
database files i suppose the working one from github would work?
Yes you need PostgreSQL, but the only thing you need to do is create an empty database and a user for it. You do not have to manually execute any scripts. The entire base structure will be created the first time the server is started. The only thing you have to do manually is to create a player account with the command:
PS: After creating a new character in the game, log out and log in again to see the character
01-08-19
ashlay
Re: [Development] Soul of the Ultimate Nation - Server Emulator
@CwaniX
Need to edit the IP on System.wpk or the client can be started by command line "Sungame.exe -IP:127.0.0.1 -Port:44405"?
03-08-19
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
You can start client by command line, but there is few things about the client: for me only works on Windows 7 (but I think this is a problem with Hack Shield). the second thing is that this version has no encryption. I do not know exactly why, but as we do not know the encryption mechanism yet, we can not use another client.
03-08-19
ashlay
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by CwaniX
You can start client by command line, but there is few things about the client: for me only works on Windows 7 (but I think this is a problem with Hack Shield). the second thing is that this version has no encryption. I do not know exactly why, but as we do not know the encryption mechanism yet, we can not use another client.
Yep the problem is the HackShield using this it works fine on windows 10.
Re: [Development] Soul of the Ultimate Nation - Server Emulator
does this game have no server file on web,only emu??
why i had search and give many server files,maybe not full function.
04-08-19
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by exe19890522
does this game have no server file on web,only emu??
why i had search and give many server files,maybe not full function.
There are no files on the "English" side of the internet. There May be some on Chinese or Korean websites, but I do not know how to search these sites. So if you are from China, maybe you could help us find them? :D:
06-08-19
exe19890522
Re: [Development] Soul of the Ultimate Nation - Server Emulator
if the Soul of the Ultimate Nation is SUN ,chinese name is 奇迹世界,which is developed by webzen.in china web is :http://sun.zhaouc.com/
the server maybe is :
http://pan.baidu.com/s/1mhwLzyK
====
another version is :
sever: https://pan.baidu.com/s/18qdSMBbYoiQwkYU9Jisufg web pwd: 8112
client: https://pan.baidu.com/s/13lv9C9KBfEX9Phz6uI4QSA web pwd: 0qum
===============
this is the game pictures,You can verify by comparing pictures.
Is it the game you want?
https://www.52pojie.cn/thread-459443-1-1.html
this only a hack website not a game-hacker web.
06-08-19
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Thanks, yes this is the game :w00t:. The files look pretty good, I have to try to run them. Unfortunately I can not download files from the link: https://www.52pojie.cn/thread-459443-1-1.html, but the others are ok.
06-08-19
marelegg
Re: [Development] Soul of the Ultimate Nation - Server Emulator
The download its slow from china baidu..try to reupload @CwaniX to mega or google drive.
Thx
06-08-19
ashlay
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Well i have some old server files and sources i'm uploading everything i have maybe something is useful. My Files
07-08-19
marelegg
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Ok serverfiles posted arent newer versions..but latest post with mediafire upload has some interesting source code of server +client and could be useful for building the emu it is now in progress @CwaniX .
EDIT: the serverfiles 1204 are little bit interesting , and even the client need to be tested
07-08-19
Mreinales
Re: [Development] Soul of the Ultimate Nation - Server Emulator
willing to play this omg
04-09-19
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Hello after a long time :)
I'm still working on server development, but work goes very slowly. I'm currently working on inventory handling and moving between maps. Unfortunately, the lack of a working game makes it very difficult. Maybe someone managed to get through the portal using old server files?
PS: Did someone translate the client? it would probably be a little easier to work on the English version :)
04-09-19
Tomelyr
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Anyway to check the files which version they are? I have the EN Client form 2013, would just take a while to upload with 100kb/s (since its 3.2gb)
04-09-19
ashlay
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by CwaniX
Hello after a long time :)
I'm still working on server development, but work goes very slowly. I'm currently working on inventory handling and moving between maps. Unfortunately, the lack of a working game makes it very difficult. Maybe someone managed to get through the portal using old server files?
PS: Did someone translate the client? it would probably be a little easier to work on the English version :)
By (working game) you mean a official server?
and i have some parts of the client translated.
06-09-19
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Tomelyr
Anyway to check the files which version they are? I have the EN Client form 2013, would just take a while to upload with 100kb/s (since its 3.2gb)
I am currently collecting all possible client versions. From this I will choose the one that will be best to use, so if you can upload your version too.
Quote:
Originally Posted by ashlay
By (working game) you mean a official server?
and i have some parts of the client translated.
Yes, I mean official server. The local server is incomplete and I can't test much, and on Korean server I can't play because of vpn (maybe someone could recommend any :ott1: ).
06-09-19
ashlay
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by CwaniX
Yes, I mean official server. The local server is incomplete and I can't test much, and on Korean server I can't play because of vpn (maybe someone could recommend any :ott1: ).
I'm currently working on character statistics and still trying to move between maps but without much progress. I plan to return to the Korean server to spy on him a little. Unfortunately, besides I do not have any new information :(:
21-11-19
marelegg
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Bump!?New??NEWS??!
PS:Sorry for double post!
10-02-20
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Hello, sorry for the long absence. Unfortunately, I don't have many news. I'm working on skills handling, but because of work on other projects it goes very slowly :(:. Anyway, the project is not abandoned :laugh:.
21-02-20
wusan
Re: [Development] Soul of the Ultimate Nation - Server Emulator
I'm from China.I have an old version.It can be erected and used normally.But it's older, and many functions are missing, such as no field map.The best version I know is the international version, but I don't have any documents.
21-02-20
marelegg
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by wusan
I'm from China.I have an old version.It can be erected and used normally.But it's older, and many functions are missing, such as no field map.The best version I know is the international version, but I don't have any documents.
If you have source of sun online the old version+client release it and let work on it.Thank you.
21-02-20
wusan
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Wait a moment, I have another server written by others, written in C + +, do you need it?
21-02-20
marelegg
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by wusan
Wait a moment, I have another server written by others, written in C + +, do you need it?
Yes upload to mega or google drive would be useful
21-02-20
wusan
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Thank you, any version can be useful. I will try to run it, maybe I can find out something new :):
24-02-20
wusan
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by CwaniX
Thank you, any version can be useful. I will try to run it, maybe I can find out something new :):
This is the oldest version. It may not be useful. But the skill effect is normal.
- - - Updated - - -
Quote:
Originally Posted by CwaniX
Thank you, any version can be useful. I will try to run it, maybe I can find out something new :):
I heard that https://www.facebook.com/sun.best wanted to sell SUN2 code before. Because I am in China, I can't log in Facebook, so I can't contact him. Can you ask him?
25-03-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Hey guys, I am pretty sure i got the Source Files of the Version @wusan talked about. I also got the Client from the old Nexon.Sun private Server.
I will try and upload everything that i got.
I cloned your repo @CwaniX and try to figure out the project structure :)
I am pretty good in Java an C# and search for a new Project i can focus on.
I also contacted SunBest on FB to see if he can help with old Code.
I hope these news will help.
Greetings Nightmore
27-03-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Hi, I looked at these files and it looks like there are a lot of new things in them :ott:. Maybe I will finally be able to fix the transition between lands. It would be great if you could also help with programming :):.
27-03-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by CwaniX
Hi, I looked at these files and it looks like there are a lot of new things in them :ott:. Maybe I will finally be able to fix the transition between lands. It would be great if you could also help with programming :):.
Hey i hope its helps a litte.
i would love to help you with Programming,
what IDE do you use? My Visual Studio doesnt like the project structure :p
30-03-20
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Alex Mgh
what IDE do you use? My Visual Studio doesnt like the project structure :p
I'm using IntelliJ IDEA Ultimate but Eclipse also works well :):.
04-04-20
akronis
Re: [Development] Soul of the Ultimate Nation - Server Emulator
nice work : thumbup1:
11-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Sadly im getting some errrors so i cant build it. Could you help me fix them?
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Hi, try to download the latest version - i just sent a patch. You also need the lombok plugin (if you don't have it yet). Then when you manage to build the project you have to set the path to the configuration files: Attachment 167024
Put the configuration files into the "config" directory inside the path you specified. Sample files are included in the project. I hope it will help :laugh:
12-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Ok nice everything is running, i got my DB and can run my Client. But i cant login. I created a user in the DB like you specified earlier. Problem I am not used to Postgresql so i have no idea how to verify if my account actually was created.
EDITED:
ok so the account is there, the only thing not running is the common server. It runs on the same port as the world server.
Is there a correct order to start the servers?
- - - Updated - - -
Everything works :) Sadly i get this error when i try to login.
to auth-server.properties file. I see that this is missing in the sample file.
Quote:
Originally Posted by Alex Mgh
ok so the account is there, the only thing not running is the common server. It runs on the same port as the world server.Is there a correct order to start the servers?https://imgur.com/a/ykMxaEw
There is no need to run common-server - this is just a library/framework used in other servers. Applications can be started in any order :):.
15-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Ok i tried to figure out myselft what was wrong for a while but i cannot solve it. I got to selecting a Channel. But Aftwards the game Crashes. This is the error i get, right when i start the game, and when i select a Channel.
it Says: "session closed from remote host" in english :)
I am by no means new to Java but getting into someone elses project can be tough https://i.imgur.com/ic6P3A6.png
[IMG]blob:https://imgur.com/10f9409a-37fc-47d4-be64-18e1165e2602[/IMG]
15-04-20
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Maybe try to change the port in the server list in the database. There should be the Agent Server address (probably port number 44406).
Code:
UPDATE config.server_instance SET port = '44406'
Quote:
Originally Posted by Alex Mgh
I am by no means new to Java but getting into someone elses project can be tough
Yes, I know it can be difficult, especially because that the configuration of this project is a bit chaotic :P:
15-04-20
skronix
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by CwaniX
Maybe try to change the port in the server list in the database. There should be the Agent Server address (probably port number 44406).
Code:
UPDATE config.server_instance SET port = '44406'
Yes, I know it can be difficult, especially because that the configuration of this project is a bit chaotic :P:
can you a link to the database server and client?
15-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
HAHA nice got IN!
either your SQL Script func_create_character is wrong or your table definition. Once the Column is named Intelligence but the script tries to enter in Inteligence :)
My first Bug Fix! (though you probably already noticed it).
Fuck YEAH
15-04-20
skronix
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Alex Mgh
HAHA nice got IN!either your SQL Script func_create_character is wrong or your table definition. Once the Column is named Intelligence but the script tries to enter in Inteligence :)My first Bug Fix! (though you probably already noticed it).Fuck YEAH
You can give a link to the client, server and database?
15-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by skronix
You can give a link to the client, server and database?
The links are on Page 1 i think!
- - - Updated - - -
Quote:
Originally Posted by CwaniX
Maybe try to change the port in the server list in the database. There should be the Agent Server address (probably port number 44406).
Code:
UPDATE config.server_instance SET port = '44406'
Yes, I know it can be difficult, especially because that the configuration of this project is a bit chaotic :P:
Ok do you have any ByteConverterTool? Or do you already know what most Bytes represent?
2020-04-15 15:24:19.785 DEBUG 1444 --- [ntLoopGroup-6-1] p.c.o.c.server.messages.PacketEncoder : [ PACKET ENCODER] [userId: ] Outgoing data: 48 83 01 00 00 00 2020-04-15 15:24:30.364 ERROR 1444 --- [ecutorGroup-2-1] p.c.o.c.server.SUNServerChannelHandler : [ SUN SERVER] [userId: 1] An error occured
Server crashes with these bytes while trying to enter the game with my characer
EDIT: NVM this time i got in, now i can see Bytes going out and in and can start using them to see how everything works
- - - Updated - - -
Do you know how to repack Files with the WPK tool?
- - - Updated - - -
Ok i was able to translate alot of the game with some files i had, problem is that the text is somehow too big :)
I will stay on it and upload a Client when its more readable.
Re: [Development] Soul of the Ultimate Nation - Server Emulator
[QUOTE = CwaniX; 8999371] Привет, я посмотрел эти файлы, и похоже, что в них много нового :ott:. Возможно, я наконец смогу исправить переход между землями. Было бы здорово, если бы вы могли также помочь с программированием :):. [/ QUOTE]
You finished work on server? I want play ))
19-04-20
Ashime
Re: [Development] Soul of the Ultimate Nation - Server Emulator
I'm glad to see that you picked up the project. I couldn't get back to the project, so it died. Anyway, I downloaded your source on GitHub. I will try to help out on what I can. What are you needing help with?
Also, why is there so many servers? Wouldn't it be better to merge some so there is less to update and maintain long term? Is there anything for a developer to look at visually that would help break down the what each server does by feature or function or role?
20-04-20
Ashime
Re: [Development] Soul of the Ultimate Nation - Server Emulator
@CwaniX
I have older packet structures from other server files.
The GameServer uses this to parse the map information.
20-04-20
CwaniX
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Ashime
I will try to help out on what I can. What are you needing help with?
It takes the most time to guess the packets structure. You can try to code some missing ones. You just have to add classes annotated @IncomingPacket, @packetProcessor and @OutgoingPacket to AgentServer :P:. I am away from home for a few days now, but when I come back I will describe it more precisely.
Quote:
Originally Posted by Ashime
Also, why is there so many servers? Wouldn't it be better to merge some so there is less to update and maintain long term? Is there anything for a developer to look at visually that would help break down the what each server does by feature or function or role?
At the beginning I tried to build a structure similar to the original one: AuthServer - supports user login and session start. AgentServer - should act as a proxy between the client and the selected game channel. In my project currently contains all the logic. GameServer - should contain all the game logic. It is currently not used in my project (see point above). WorldServer - it supports chat and maybe something else regardless of channel. DbServer - acts as a proxy/cache for the database. I plan to replace him with Redis or something similar.
It could be combined even into one server, but I think the current division is quite clear and consistent with the idea of microservices :P:.
- - - Updated - - -
Quote:
Originally Posted by DostaDenis
[QUOTE = CwaniX; 8999371] Привет, я посмотрел эти файлы, и похоже, что в них много нового :ott:. Возможно, я наконец смогу исправить переход между землями. Было бы здорово, если бы вы могли также помочь с программированием :):. [/ QUOTE]
You finished work on server? I want play ))
No, i haven't finished the server. I probably don't even have 1%.
20-04-20
Ashime
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Truthfully you don't need proxies to the database, especially if you give each connecting server a separate login, do permissions, views, stored procedures, and connection time out. If you store passwords encrypted and make sensitive tables encrypted, then there shouldn't be any issues. Proxy servers are great in situations where the main servers are on separate machines, especially in a decentralized networks. Most private servers are probably ran on one/two machines (web for account creation/database and another to run the rest). Having so many servers makes it harder for developers new to the project to update and maintain the code, especially when there is a lack of comments and documentation. More servers end up acting like spaghetti code. This is my opinion and I could be wrong, especially since I don't have enough experience in server development. You might have to run multiple ports on one server or merge ports together. At this point in development, its better to leave the servers as they are.
In the mean time, I will look over the source code. Do you have all bugs and errors listed on GitHub? If so, I will just start there. I'm not very good at packet analysis, but I will look at that as well.
21-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
In the mean time, I will look over the source code. Do you have all bugs and errors listed on GitHub? If so, I will just start there. I'm not very good at packet analysis, but I will look at that as well.
Well i dont think anyone is good with packet analysis :) I would try and start with some easy ones like skills and skill upgrades. The Packets send are pretty small since they probably only contain a skill ID and something that indicates if its a cast or an upgrade. I will first try to make a Skill list that we then can convert in some DB structure together.
22-04-20
Ashime
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Great! I figured out how to create dynamic keys per user while keeping the encryption algorithm from breaking on the server end. Encryption key is 4 bytes long, but the 1st byte cannot be altered. Changing the 1st byte changes how the encryption works on the client side.
The following code can be placed in public class AuthServerSession.
Code:
byte[] encKey = new byte[4];
SecureRandom secureRandom = new SecureRandom();
secureRandom.nextBytes(encKey);
encKey[0] = 0x00;
❈ ServerList Packet
I was able to figure out majority of the bytes for the ansServerList packet. I was able to have two servers, one server with one channel, and the second server with two channels. Please review the packet structure below the protocols listed below.
The protocols for ServerList follow as:
byte S2C_ansSrvList_Srv = 0x11;
byte S2C_ansSrvList_Chn = 0x12;
Use this information below to create a dynamic server list packet on the auth/agent server. Couldn't tell if your server has this setup or not.
Code:
/*
SERVERS ONLY:
Size (2 bytes)
Category (1 byte - 0x33)
Protocol (1 byte - 0x11)
# of Servers (1 byte)
Server Name (32 bytes)
Unknown (1 byte)
Server # (1 byte)
Unknown (1 byte)
Unknown (1 byte) - filler/separator (0x00)
Server Name (32 bytes)
Unknown (1 byte)
Server # (1 byte)
Unknown (1 byte)
*/
/*
CHANNELS ONLY:
Size (2 bytes)
Category (1 byte - 0x33)
Protocol (1 byte - 0x12)
# of Channels (1 byte)
Channel Name (33 bytes)
Server # (1 byte)
Channel # (1 byte)
Unknown (1 byte) - terminator byte (cannot be 0x00)
Unknown (1 byte) - filler/separator (0x00)
Channel Name (33 bytes)
Server # (1 byte)
Channel # (1 byte)
Unknown (1 byte) - terminator byte (cannot be 0x00)
Unknown (1 byte) - filler/separator (0x00)
Channel Name (33 bytes)
Server # (1 byte)
Channel # (1 byte)
Unknown (1 byte) - terminator byte (cannot be 0x00)
*/
❈ GitHub
Currently, I am getting errors on the server source code, so I need to spend some time fixing it. Eventually, I'm going to update the server code on GitHub for dynamic encryption keys per user and update ansServerList packet. If you guys want to do it before me, then please let me know.
23-04-20
Ashime
1 Attachment(s)
Re: [Development] Soul of the Ultimate Nation - Server Emulator
@CwaniX
Can you help me with these errors? I have installed the Lombok plugin on IntelliJ.
24-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Ashime
@CwaniX
Can you help me with these errors? I have installed the Lombok plugin on IntelliJ.
You have to set the application.location variable in your run/debug configuration.
https://i.imgur.com/sJxZOoN.png
in Eclipse/SpringSuite it looks like this. In IntelliJ almost the same.
Then you have to save the Config files (you can find them in each server as a .PROPERTY_TEMPLATE file)
into a config folder. The config folder must be inside the path you specified as the application.location.
The auth server config is missing two lines, CWanix posted them in page 4 i think
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Need simplify and clean a bit the code / plan a structure.
Im glad the project will continue!
24-04-20
Ashime
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Alex Mgh
You have to set the application.location variable in your run/debug configuration.
https://i.imgur.com/sJxZOoN.png
in Eclipse/SpringSuite it looks like this. In IntelliJ almost the same.
Then you have to save the Config files (you can find them in each server as a .PROPERTY_TEMPLATE file)
into a config folder. The config folder must be inside the path you specified as the application.location.
The auth server config is missing two lines, CWanix posted them in page 4 i think
@Alex Mgh
I don't see Spring Boot under Debug Configuration on IntelliJ. I have went back to page 4 to look at CwaniX picture and I don't have that either. In the meantime, I will look some stuff up online about Spring Boot on IntelliJ. I will follow the other things you have mentioned.
Also, it would be highly recommended if @CwaniX or you update the GitHub with instructions on how to setup the project for people who wish to help out.
Quote:
Originally Posted by marelegg
Need simplify and clean a bit the code / plan a structure.
I cannot update your project in GitHub. All it did was fork the project and the commits I made to README.md is made on my end in my version of the project. Check out the link to see the README.md.
LINK: https://github.com/Ashime/OpenSUN-Server/tree/patch-1
Due to the fact this is my first time doing GitHub, I apologize for the lack of understanding.
- - - Updated - - -
Quote:
Originally Posted by Alex Mgh
You have to set the application.location variable in your run/debug configuration.
https://i.imgur.com/sJxZOoN.png
in Eclipse/SpringSuite it looks like this. In IntelliJ almost the same.
Then you have to save the Config files (you can find them in each server as a .PROPERTY_TEMPLATE file)
into a config folder. The config folder must be inside the path you specified as the application.location.
The auth server config is missing two lines, CWanix posted them in page 4 i think
English translate for last update in korean server
24-04-20
Ashime
Re: [Development] Soul of the Ultimate Nation - Server Emulator
@CwaniX@Alex Mgh
[STRIKE]Where is the database to attach into PostgreSQL 10?[/STRIKE]
Nevermind, I figured it out from page 1. Its mentioned as listed below:
Quote:
Originally Posted by CwaniX
Yes you need PostgreSQL, but the only thing you need to do is create an empty database and a user for it.
Quote:
Originally Posted by CwaniX
You do not have to manually execute any scripts. The entire base structure will be created the first time the server is started. The only thing you have to do manually is to create a player account with the command:
Re: [Development] Soul of the Ultimate Nation - Server Emulator
WOW I was away for a while and so much happened here :laugh:. I will have some time tomorrow so I'll try to work on the server a little bit :):.
- - - Updated - - -
Quote:
Originally Posted by Ashime
I cannot update your project in GitHub. All it did was fork the project and the commits I made to README.md is made on my end in my version of the project. Check out the link to see the README.md.
LINK: https://github.com/Ashime/OpenSUN-Server/tree/patch-1
Due to the fact this is my first time doing GitHub, I apologize for the lack of understanding.
What must you do in the Environment tab to make the Debugging Configuration settings work for Spring Boot? I have all of the property_template files in a folder called config. Thank you.
24-04-20
CwaniX
1 Attachment(s)
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Ashime
@CwaniX
What must you do in the Environment tab to make the Debugging Configuration settings work for Spring Boot? I have all of the property_template files in a folder called config. Thank you.
Did you change the file names accordingly? It should look like this: Attachment 167118
25-04-20
Ashime
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by CwaniX
Did you change the file names accordingly? It should look like this: Attachment 167118
I don't have console-server.properties_template. I will change their extension to .properties. What do you do after that?
25-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
English translate for last update in korean server
Thanks for that, but this server will be EP 1.
We got all the translation files, problem is injecting them into the client. Tho i figured that out too. Any help is appreciated:)
26-04-20
ashlay
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Alex Mgh
Thanks for that, but this server will be EP 1.
We got all the translation files, problem is injecting them into the client. Tho i figured that out too. Any help is appreciated:)
you can merge the translated files using wpktool
Ex:
But the problems is the file size need to match with the original files so the right way is to make a tool to unpack/repack the wpk file.
Thanks for the advise.
I have a way to inject everything i want into the WPK, regardless of size :) I can even add new stuff if i want.
Problem is that sometimes the the Client gets error messages if the translated file contains stuff the client cannot handle and crashes.
I am pretty sure i will get a solid full translated client in a week depending how much time i have.
26-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Ashime
❈ ServerList Packet
I was able to figure out majority of the bytes for the ansServerList packet. I was able to have two servers, one server with one channel, and the second server with two channels. Please review the packet structure below the protocols listed below.
The protocols for ServerList follow as:
byte S2C_ansSrvList_Srv = 0x11;
byte S2C_ansSrvList_Chn = 0x12;
Use this information below to create a dynamic server list packet on the auth/agent server. Couldn't tell if your server has this setup or not.
Code:
/*
SERVERS ONLY:
Size (2 bytes)
Category (1 byte - 0x33)
Protocol (1 byte - 0x11)
# of Servers (1 byte)
Server Name (32 bytes)
Unknown (1 byte)
Server # (1 byte)
Unknown (1 byte)
Unknown (1 byte) - filler/separator (0x00)
Server Name (32 bytes)
Unknown (1 byte)
Server # (1 byte)
Unknown (1 byte)
*/
/*
CHANNELS ONLY:
Size (2 bytes)
Category (1 byte - 0x33)
Protocol (1 byte - 0x12)
# of Channels (1 byte)
Channel Name (33 bytes)
Server # (1 byte)
Channel # (1 byte)
Unknown (1 byte) - terminator byte (cannot be 0x00)
Unknown (1 byte) - filler/separator (0x00)
Channel Name (33 bytes)
Server # (1 byte)
Channel # (1 byte)
Unknown (1 byte) - terminator byte (cannot be 0x00)
Unknown (1 byte) - filler/separator (0x00)
Channel Name (33 bytes)
Server # (1 byte)
Channel # (1 byte)
Unknown (1 byte) - terminator byte (cannot be 0x00)
*/
I implemented this fragment and it works like a charm :):. Attachment 167146
27-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by CwaniX
I implemented this fragment and it works like a charm :):. Attachment 167146
Very very nice.
I will upload the english client tomorrow.
Its 95% english appart from quests. But its going to be along time until we can need to think about that.
@CwaniX could you try and help me understand the way you process packets from client and send them back. It seems so different from what I am used to in c#.
28-04-20
Ashime
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by CwaniX
I implemented this fragment and it works like a charm :):. Attachment 167146
@CwaniX
I'm glad to hear that worked out for you. I will post more information about packets - if I can figure them out, so you can create dynamic packets. I will try and work on newer packets when I get to it. Also, I still haven't been able to use your server because I'm not sure on what to do with the config files. @Alex Mgh mentioned something about loading the folder location in Eclipse through the Debug Configuration under the Spring Boot section. Not sure on what I actually need to do under that menu. Thank you!
- - - Updated - - -
Quote:
Originally Posted by Alex Mgh
Very very nice.
I will upload the english client tomorrow.
Its 95% english appart from quests. But its going to be along time until we can need to think about that.
@CwaniX could you try and help me understand the way you process packets from client and send them back. It seems so different from what I am used to in c#.
I can't wait to see all of the work you have put into the client. It's nice to have someone doing that. English patches can take a long time unless you find the patches elsewhere. Either way, it's very much appreciated.
28-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Then you can name it what you want but preferable the server you want to start.
And select the first server form the list. https://i.imgur.com/5zrhRXl.png
Then press the Search button on the right and there should only be 1 return, also select this.
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Alex Mgh
@CwaniX could you try and help me understand the way you process packets from client and send them back. It seems so different from what I am used to in c#.
I implemented a small framework for handling incoming and outgoing packets. All you have to do is add three classes with the appropriate annotations: IncomingPacket, PacketProcessor and OutgoingPacket. You can look at classes C2SAskSrvSelectPacket, C2SAskSrvSelectProcessor and S2CAnsSrvSelectPacket as a simple example. If you use some packet capture utility, you will probably get something like this from the client: Attachment 167151
1 is the length of the packet.
2 is the category and type.
3 is the content.
You must complete the appropriate fields in the incoming object (you don't fill in the length because it is handled automatically): Attachment 167152
Then the prepared object goes to the processor where you can perform the required operations and finally send the outgoing packet: Attachment 167153
The outgoing packet looks similar to the incoming one but requires an additional defined order of fields in the packet: Attachment 167154
I hope this information will be helpful :):
28-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Alright this already helps alot.
So when i create a new Package. For example this one
Re: [Development] Soul of the Ultimate Nation - Server Emulator
hey guys .
how is it going with the server?
is it running yet? im willing to help
if its running maybe even with some $ :)
29-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by zalogo
hey guys .
how is it going with the server?
is it running yet? im willing to help
if its running maybe even with some $ :)
Well heavily depends on your definition of running :P
If you would like to help i would consider trying to get the server running on your computer as a first step.
If you encounter any problems feel free to reply :)
29-04-20
Ashime
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Alex Mgh
Well heavily depends on your definition of running :P
If you would like to help i would consider trying to get the server running on your computer as a first step.
If you encounter any problems feel free to reply :)
- - - Updated - - -
I found out that there are packets that have no Content. For example when the Client crashes he will sent a message to the server directly before loading characters. Problem is the Packet Decoder throws an error because it cant handle the packet. I tried to add a knew C2S Packet for that case but it doesnt get recognized. Maybe the decoder doesnt allow packets with no content? I tried to check myself but i dont know if i am right :)
Some packets will not have any content, especially from the client. As an example, this one packet that is sent to the Auth Server from the client:
Also, what packet are you exactly talking about? I will look at the PacketDecoder and see what's wrong.
No need to worry, i was wrong about that. It only happens in debug mode so i have to see why it happens.
- - - Updated - - -
Ok guys I have the best NEWS ever. I found a way to unpack the Resource.wpk and tell the client to use the unpacked files and not the Resource.wpk. Now we can edit everything we want !!!
29-04-20
Ashime
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Quote:
Originally Posted by Alex Mgh
No need to worry, i was wrong about that. It only happens in debug mode so i have to see why it happens.
- - - Updated - - -
Ok guys I have the best NEWS ever. I found a way to unpack the Resource.wpk and tell the client to use the unpacked files and not the Resource.wpk. Now we can edit everything we want !!!
Sounds great, but that can cause problems long term. For now, this is the best solution we have. Can you please post how you got the client to use the unpacked files and any tools that you might have used? Thanks!
30-04-20
Alex Mgh
Re: [Development] Soul of the Ultimate Nation - Server Emulator
Thats the error i always get now even with the original client so thats not the problem.