HeavenClient is a custom, made-from-scratch game client for Maplestory v83.
- The client is currently compatible with version 83 servers.
- The client has only been tested with HeavenMS.
- Switch
The build can be configured by editing the MapleStory.h file. The following options are available:
- USE_ASIO: Use Asio for networking (additional dependency)
- USE_CRYPTO: Use cryptography when communicating for the server.
- USE_NX: Use NX files instead of WZ files.
- USE_DEBUG: This suppresses the generation of the Settings file
The default settings can be configured by editing the Configuration.h file. These are also generated after a game session in a file called Settings. These can be altered in the same way as Configuration.h, although, these do not persist if you delete the file, unlike Configuration.h.
- Open MapleStory.sln in Visual Studio 2017 CE
- Make sure to use Windows SDK Version: 8.1 and Platform Toolset: v140 (If you don't have these, download them)
- Press Build > Build Solution or Ctrl + Shift + B
- After a successful build, you can now run the program by pressing Debug > Start Debugging or F5
- Make sure all nx files are present in the parent folder. To convert wz files to nx you can use the NoLifeWzToNx project.
- Extract the zip
- Place your wz files in the files folder
- Run start.bat
- See Required Files for a list of required nx files
- Run
./build-deps.sh
. We try to build each dependency from source -- if any dependencies fail to build, you could try and find the corresponding package for your linux distro if it exists. mkdir build
cd build
cmake ..
make -j$CORES
where $CORES is your number of CPU cores
- You must have GCC from brew!
brew install gcc
- Run
./build-deps.mac.sh
. We try to build each dependency from source -- if any dependencies fail to build, you could try and find the corresponding package for your linux distro if it exists. mkdir build
cd build
- Tell cmake to use compiler from brew by
cmake .. -DCMAKE_C_COMPILER=/usr/local/bin/gcc
make -j$CORES
where $CORES is your number of CPU cores
This will always be the option with the most performance, but if you are using Mac / are having issues, try out the Vagrant or Docker setups.
Always check NxFiles.h for an updated list of required nx files
- MapPretty.nx (Trimmed v167 GMS Map.wz)
- MapLatest.nx (Lastest GMS Map.wz)
- Map001.nx (Latest GMS Map001.wz)
- UI.nx (Latest GMS UI.wz)
- Everything else is from v83 GMS wz files
There is an archive of all the NX files listed above available for download here (Latest: v213.2).
-
Nx library: NoLifeNx
-
Wz library: N/A
-
Audio: Windows: Bass Linux/Mac OpenAL-soft, Alure
-
Networking: Asio (optional)
If you experience any kind of in-game glitches, UI rendering issues, or anything else that seems out of the ordinary that other developers are not experiences; Follow these steps in order to hopefully resolve aforementioned issues.
- Clean Solution
- Close Visual Studio
- Delete the following files/folders: .vs, x64, debug.log, MapleStory.aps, Settings
- Open Solution
- Rebuild Solution
Note: These steps are not applicable to linux
A Vagrantfile has been included in the repo to simulate a complete HeaventClient setup on a linux ubuntu/bionic virtual machine (using virtualbox provider).
One can refer to the shell scripts written within the Vagrantfile to get an insight of the complete environmental setup and dependencies required to build and run the HeavenClient binary.
All ssh commands must be run on a shell within context of the HeavenClient directory (this project)
vagrant up
- Login to the desktop environment via the virtualbox window with default vagrant credentials (vagrant:vagrant) - once the bootstrap script has completed execution
- This is required to start up desktop environment (xfce)
vagrant ssh -- -R 8484:localhost:8484 -R 7575:localhost:7575 -R 7576:localhost:7576 -R 7577:localhost:7577
- We SSH into the VM with reverse port-forwarding; this allows us to run/dev our server on the host machine while allowing the client to connect to it and run on the VM
cd /home/vagrant/Desktop/HeavenClient/build/
./HeavenClient
Note: To run the HeavenClient from the build directory; all the relevant .nx files must be available within the linux build directory
Tip: Since the binary is built on the VM with a mounted/shared volume; the binary is also available/usable by a linux host
A Dockerfile has been included in the repo to simulate a complete HeaventClient setup on a linux ubuntu/bionic OS.
The Docker setup utilizes fcwu/docker-ubuntu-vnc-desktop web-based lxde VNC solution to output HeavenClient GUI on a web browser at port 6080.
This allows the host to rely on minimal dependencies (other than nx files) for running HeavenClient.
- All relevant .nx files must be located in the nx directory
- A Settings file must be present in project root - instructions to create this below
- This gives user ability to configure HeavenClient outside the container - on the host
- Relevant audio passthrough device must be installed on the host
- Mac: pulseaudio
- Linux: snd-aloop
- HeavenMS server running at port 8484 on host machine
# Install pulseaudio
brew install pulseaudio
# Run pulseaudio daemon
pulseaudio --load=module-native-protocol-tcp --exit-idle-time=-1 --daemon
Note: To stop sound passthrough daemon: pulseaudio --kill
# Insert kernel module snd-aloop and specify 2 as the index of sound loop device
sudo modprobe snd-aloop index=2
- Create Settings with server ip pointing to host
echo "ServerIP = host.docker.internal" > Settings
- This allows the HeavenClient application within the container to point to the running hosts IP (on which the server will be running)
- Build & Run container for your OS
- Mac:
docker-compose -f docker-compose.yml -f docker-compose.mac.yml up --build
- Linux:
docker-compose -f docker-compose.yml -f docker-compose.linux.yml up --build
- Mac:
- Run HeavenClient in the browser GUI at localhost:6080 by double clicking the HeavenClient icon
Note: If the client fails to startup, then it is very likely something went wrong with the setup. The link doesn't show errors hence you will have to use the **LXTerminal** within the web-based GUI to run the client manually.
- The HeaventClient binary is located within the /root folder of the container
- You may need to restart your browser before trying to run the game after applying any fixes
- You need to
docker-compose down
if you move your .nx files into the nx/ difectory post container start-up (since symlinks are generated only when starting up fresh container)
If you feel obligated to donate, to further help and support all parties involved in the development of the HeavenClient project, you can donate using this link.
Please remember this is ONLY for the HeavenClient development and will only be used in the support of helping further develop the client. Also please remember to support Nexon as this is not meant to replace anything Nexon offers
Another important note to remember is that HeavenClient is a free open-sourced client developed for personal use. Do NOT pay for any services requested by anyone in regards to this client. It will always remain open and free of charge. There is no intent to publish this code with any payment in mind. If that ever changes, donations and disclaimers for donations will be removed.