• 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!

TFS 1.5 error compiling

CesarZ

Well-Known Member
Joined
Sep 20, 2012
Messages
268
Solutions
4
Reaction score
63
im trying to compile the server again it compiles successfully but it has these warnings



1>quests.cpp
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\protocollogin.cpp)
1>raids.cpp
1>rsa.cpp
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\protocolold.cpp)
1>scheduler.cpp
1>script.cpp
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\quests.cpp)
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\raids.cpp)
1>scriptmanager.cpp
1>server.cpp
1>signals.cpp
1>spawn.cpp
1>spells.cpp
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\movement.h(127,1): warning C4242: 'argument': conversion from 'int32_t' to 'unsigned short', possible loss of data (compiling source file ..\src\scriptmanager.cpp)
1>storeinbox.cpp
1>protocolstatus.cpp
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\signals.cpp)
1>talkaction.cpp
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\spawn.cpp)
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\spells.cpp)
1>tasks.cpp
1>teleport.cpp
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\talkaction.cpp)
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\protocolstatus.cpp)
1>thing.cpp
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\tasks.cpp)
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\teleport.cpp)
1>tile.cpp
1>tools.cpp
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\tools.cpp(164,32): warning C4242: '=': conversion from 'uint32_t' to 'uint8_t', possible loss of data
1>trashholder.cpp
1>vocation.cpp
1>weapons.cpp
1>wildcardtree.cpp
1>xtea.cpp
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\xtea.cpp(28,24): warning C4018: '<': signed/unsigned mismatch
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\weapons.h(112,1): warning C4242: 'argument': conversion from 'int32_t' to 'unsigned short', possible loss of data (compiling source file ..\src\weapons.cpp)
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\tile.cpp)
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\vocation.cpp)
1>C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\src\player.h(451,48): warning C4242: 'argument': conversion from 'const int32_t' to 'const _Ty', possible loss of data
1> with
1> [
1> _Ty=uint16_t
1> ] (compiling source file ..\src\trashholder.cpp)
1>theforgottenserver.vcxproj -> C:\Users\14075\Desktop\OTLand Engine Working\forgottenserver\vc17\Debug\theforgottenserver-Win32.exe
1>Done building project "theforgottenserver.vcxproj".
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Post automatically merged:

im trying to compile the server again it compiles successfully but it has these warnings

is it CPP20 or CPP 17? whats the issue.
 
anybody solved this? seems to happen every time.
these are warnings, not errors, the compilation is successfully done

there is a WIP pull request to "fix" these warnings in case you want to take a look:
 
these are warnings, not errors, the compilation is successfully done

there is a WIP pull request to "fix" these warnings in case you want to take a look:
So you're saying this is no issue? won't affect everything on the server? 1694352706867.png
 
Back
Top