• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Compiling Nostalrius 7.7 with MSVS 2017

Kierkan

New Member
Joined
Aug 21, 2011
Messages
9
Reaction score
2
Hey guys! I'm trying to get Nostalrius 7.7 running, but I'm having some problems with my characters not saving when logging out. After digging around, I found this thread (Losing all progress on Nostalrius(7.72) TFS 1.2 when Logging Out (https://test.otland.net/threads/losing-all-progress-on-nostalrius-7-72-tfs-1-2-when-logging-out.264742/)) saying to compile the server with MSVS 2017 and not 2019. I was never able to compile the server myself, but I found this thread: C++ - Compiling server (https://otland.net/threads/compiling-server.272999/#post-2629069) where M0ustafa had compiled it for another user, but MSVS 2019 was used.

I was wondering if anyone would be able to compile it in MSVS 2017 for me please, and attach the .exe and appropriate .dlls. I tried for several hours to compile it but wasn't able to get it working. Hoping for someone with more knowledge to lend a hand!

Thanks for your time, and I appreciate any help!
 
Solution
Here's a compiled version using Toolsetv141/SDK needed for Nostalrius, It should work without any issues.
Hope it helps you and others who are having same issue.
Bump

Turns out the .exe compiled from that source had some problems with monsters casting spells infrequently. I've downloaded the updated source, and I'm trying to compile it with VS 2019. I followed the instructions here: (otland/forgottenserver (https://github.com/otland/forgottenserver/wiki/Compiling-on-Windows-(vcpkg))) and after fixing an error with the lua, I made sure all the libraries were connected properly. The error I'm getting now is:


I've tried doing some looking for gmp.h on otland and didn't find anything definitive. Most of the conversation was regarding linux, and it just confused me because I'm using windows. I tried to manually download the gmp library and link it to VS, and I tried to use vcpkg to ./vcpkg install gmp which downloaded a bunch of stuff, but that just added more errors and I had to uninstall it.

Just for reference, this is the source I'm trying to compile with VS19: TwistedScorpio/Nostalrius (https://github.com/TwistedScorpio/Nostalrius)

I've tried building it with the VS17 toolset inside VS19, but got the same errors. Should I try with VS17? Does anyone have any ideas? I'm running out of things to google!

EDIT: I'm not even sure if compiling it will fix the save on logout issue in my original post

EDIT2: I downloaded gmp from The GNU MP Bignum Library (https://gmplib.org/) , moved it into my vcpkg include folder and set another include in the libraries on VS. The error is now:


I'm not sure if I'm making progress or making it worse >.>
 
Last edited:
Here's a compiled version using Toolsetv141/SDK needed for Nostalrius, It should work without any issues.
Hope it helps you and others who are having same issue.
 

Attachments

  • Nostalrius Latest.rar
    1.2 MB · Views: 108 · VirusTotal
Last edited:
Solution
Back
Top