[OpenSource] tsmonline kotlin server

Newbie Spellweaver
Joined
Feb 15, 2024
Messages
11
Reaction score
21

TSMonline​

Includes decrypted LUA files for developers interested in continuing development

Completion Status​

SystemStatus
Combat✅ Complete
Quests✅ Complete
Pets✅ Complete
Inn✅ Complete
Bank✅ Complete
Equipment✅ Complete
Items✅ Complete
Lucky Bag✅ Complete


1776438802959 - [OpenSource] tsmonline kotlin server - RaGEZONE Forums



I will only release this project without providing any additional tutorials or guides. The source code is entirely my own work.
With AI being capable of so much nowadays, I believe everyone should have access to one — I recommend Claude Code.
As I currently have other private server projects on hand, I will not be continuing development on this for the time being.



The previously packaged file included the wrong TSN LUA by mistake. The correct TSM LUA has now been added.





"D:/Program Files/Nox/bin/nox_adb.exe" connect 127.0.0.1:62001"
D:/Program Files/Nox/bin/nox_adb.exe" -s 127.0.0.1:62001 reverse tcp:6613 tcp:6613"
D:/Program Files/Nox/bin/nox_adb.exe" -s 127.0.0.1:62001 reverse tcp:443 tcp:443

Notice: ADB must be configured before launching the game. Please run the above commands first, then start the game.
 
Last edited:
Your upload was a bit bloated with .git inside it (which most peope aren't interested in), so I split your upload into two (all other files included).

Each is about 2GB each.
TSMonline (without .git, but with the apk and lua files included):
TSMonline ".git" folder (for those interested in the repo's coding history):
All credits to rd880131 , I just didn't like his release style. Too bloated and messy.
 

TSMonline​


Completion Status​

SystemStatus
Combat✅ Complete
Quests✅ Complete
Pets✅ Complete
Inn✅ Complete
Bank✅ Complete
Equipment✅ Complete
Items✅ Complete
Lucky Bag✅ Complete


View attachment 299935


I will only release this project without providing any additional tutorials or guides. The source code is entirely my own work.
With AI being capable of so much nowadays, I believe everyone should have access to one — I recommend Claude Code.
As I currently have other private server projects on hand, I will not be continuing development on this for the time being.



The previously packaged file included the wrong TSN LUA by mistake. The correct TSM LUA has now been added.





"D:/Program Files/Nox/bin/nox_adb.exe" connect 127.0.0.1:62001"
D:/Program Files/Nox/bin/nox_adb.exe" -s 127.0.0.1:62001 reverse tcp:6613 tcp:6613"
D:/Program Files/Nox/bin/nox_adb.exe" -s 127.0.0.1:62001 reverse tcp:443 tcp:443



thx
 
rd880131
Can you give me a tool to encrypt and decrypt Lua and APK files?
 
Last edited:
I got the server to run by changing the following files

1. config in tsm_dodo\app\src\main\resources\application.conf
Code:
database {
    url = "jdbc:mysql://localhost:3306/tsm_dodo?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Taipei&characterEncoding=UTF-8"
    url = ${?DB_URL}
    driver = "com.mysql.cj.jdbc.Driver"
    user = "root"  <-- change to your mysql db username
    user = ${?DB_USER}
    password = "1234"  <-- change to your mysql db password
    password = ${?DB_PASSWORD}
    maximumPoolSize = 10
}

game {
    heartbeatInterval = 20
    clientVersion = 258
    gamedataPath = "D:/TS/tsm_dodo/cdn/mirror/tsr/2.4.69/ResourcesPacked"  <-- change it to like this <pathToTsmDodo>/tsm_dodo/cdn/mirror/tsr/2.4.69/ResourcesPacked
    gamedataPath = ${?GAMEDATA_PATH}
    serverDataPath = "gamedata"
    serverDataPath = ${?SERVER_DATA_PATH}
}

2. inside start_server.bat
change JAVA_HOME to where your jdk is located (mine is at D:\jdk-21.0.1)
and chang the cd path to your tsm_dodo
Code:
set "JAVA_HOME=D:\jdk-21.0.1"
set "PATH=%JAVA_HOME%\bin;%PATH%"

echo [1/2] 啟動 CDN 伺服器 (port 443)...
start "CDN Server" cmd /k "chcp 65001 >nul && cd /d D:\TS\tsm_dodo && python cdn_server.py --port 443"

echo [2/2] 啟動遊戲伺服器 (port 6613)...
start "Game Server" cmd /k "chcp 65001 >nul && cd /d D:\TS\tsm_dodo && set JAVA_HOME=D:\jdk-21.0.1 && gradlew.bat app:run"

3. remove this line
org.gradle.java.home=C:/Program Files/Java/jdk-21.0.10+7
from
gradle.properties


now run start_servers.bat and server should start

however, I am not able to connect to it after doing the adb reverse command on the emulator.
 
I have been able to make the server running on my side, which have some note:

1. THe APK is designed to read server from 192.168.0.157, so your ip must be that in order to make it connect
2. The login instruction is not clear, so i had to make an account directly from the database

BUt

When the character actually showing up, i cant talk to any NPC

The server required Eve.emg, but the file is Eve.emg.lz4, so it cant read anything and the NPC did not respond at all

any one have found the solution for actual Eve.emg?
 
I have successfully get that running and NPC chat / mission running fine. In addition to following the instructions above, I did the followings:
1. First you should set up and run a mysql db, user root and password 1234 if you follow conf edit from 45156318
2. APK is hardcoded to connect to "192.168.0.157", you can hex edit the "assets/bin/Data/Managed/Metadata/global-metadata.dat" to patch the ip to your designated ip, remember to keep file size, so e.g. 192.168.0.157 => 127.000.000.1
3. Account registration is automated, you just input your designated username and password, then login and that will be registered.
4. "Eve.emg" can be found in "tsm_dodo\gamedata", copy that to "tsm_dodo\cdn\mirror\tsr\2.4.69\ResourcesPacked\CompreseData" before starting game server
 
Hello, do you have an IPA file that can be further developed and played on iOS (iPhone)?
 
Back