• 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 Problem to compile last "forgottenserver master" Windows, some errors that do not let compile and many warnings

beenii

Well-Known Member
Joined
Jul 26, 2010
Messages
580
Solutions
1
Reaction score
57
As mentioned in the title I receive many warnings and some errors that do not allow to compile in Windows

I followed the instructions to the letter, and used git checkout 2022.01.01

informative error notes, my question is this normal?

nota informativa.png

warning notes, is this also normal? According to me, this does not interfere with the compilation, but should they appear or is the code outdated?
advertencia.png

and I think these are the errors that do not allow to compile:
error.png

i use: vcpkg 2022.01.01 and Visual Studio 2022 Community
with librarys:
.\vcpkg install --triplet x64-windows boost-iostreams boost-asio boost-system boost-filesystem boost-variant boost-lockfree luajit libmariadb pugixml cryptopp fmt
tutorial:
 
change

iomap.h (L113)
C++:
return map->spawns.loadFromXml(map->spawnfile);

to
C++:
return map->spawns.loadFromXml(map->spawnfile.generic_string());

iomap.h (L128)
C++:
return map->houses.loadHousesXML(map->housefile);

to
C++:
return map->houses.loadHousesXML(map->housefile.generic_string());

iomap.cpp (L57)
C++:
OTB::Loader loader{fileName, OTB::Identifier{{'O', 'T', 'B', 'M'}}};

to
Code:
OTB::Loader loader{fileName.generic_string(), OTB::Identifier{{'O', 'T', 'B', 'M'}}};
 
change

iomap.h (L113)
C++:
return map->spawns.loadFromXml(map->spawnfile);

to
C++:
return map->spawns.loadFromXml(map->spawnfile.generic_string());

iomap.h (L128)
C++:
return map->houses.loadHousesXML(map->housefile);

to
C++:
return map->houses.loadHousesXML(map->housefile.generic_string());

iomap.cpp (L57)
C++:
OTB::Loader loader{fileName, OTB::Identifier{{'O', 'T', 'B', 'M'}}};

to
Code:
OTB::Loader loader{fileName.generic_string(), OTB::Identifier{{'O', 'T', 'B', 'M'}}};
It worked and it compiles the source code, but now the question, all those warnings and informative messages, won't they affect a production server? Can these warnings be easily debugged? I see that they all go almost in the onWalk function
 
Back
Top