Yes, I downloaded the rAthena project from here:
https://github.com/rathena/rathena
Then I checked out this specific commit: 7a057f7f4a853c3a5de6f93bfd9d7a5741549ada—because the commit message said it was for EP13, and my client executable is for EP13.2.
I only made a few changes:
Changed packet_db_ver from default to 25.
Set packet_ver_flag to 0x00010000, which seemed the most appropriate for a late-2009 client like EP13.2.
As for packet_ver_flag2, I couldn’t find a matching version, so I tried a few different values, but none of them made any real difference.
Commented out map names that don’t exist in the database—otherwise, map-server_sql.exe would throw a ton of errors when starting.
Other than that, I just configured the localhost and DB credentials. Since I can create characters just fine, I think those parts are working correctly.
The client itself comes from an installation disc released in Taiwan around 2009 by the local publisher.
Here’s roughly the process I followed:
Installed XAMPP, created a MySQL database called ragnarok, and imported the following SQL files in order from rathena/sql-files:
main.sql, item_db.sql, item_db2.sql, mob_db.sql, and mob_db2.sql.
Created grf_files.txt under rathena/tools/mapcache/, pointing it to my client’s data.grf, then used mapcache.exe to generate the map cache.
Opened data.grf using GRF Editor and edited clientinfo.xml to:
<address>127.0.0.1</address>
<version>25</version>
I wasn’t sure what to set for <langtype>, so I just left it as the original value: 4.
Launched Apache, MySQL, login-server_sql.exe, char-server_sql.exe, and map-server_sql.exe in order.
Opened Ragnarok.exe from the main client folder.
Once I get to the character select screen, if there are any character entries, the client crashes—because it tries to load an invalid .pal file: palette\몸\검사_남_24929.pal.
I'm starting to wonder if the client itself also needs to be modified—maybe the data format it's receiving doesn't match what it expects, and that’s what’s causing the crash?