• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Compiling error on Reward Chest tfs 1.2

Aeronx

Intermediate OT User
Joined
Dec 17, 2015
Messages
746
Solutions
9
Reaction score
125
Hello all! I have this error compiling the tfs with this system: Reward System [remake of #1628] by socket2810 · Pull Request #1641 · otland/forgottenserver · GitHub

I think the problem is that I added the 4 new files to source wrong, but i didnt know how to solve it. I am compiling in windows with mvs2015.

Thank you in advance.

Code:
1>..\src\reward.h(4): warning C4627: '#include "container.h"': skipped when looking for precompiled header use
1>  ..\src\reward.h(4): note: Add directive to 'otpch.h' or rebuild precompiled header
1>..\src\reward.h(37): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "otpch.h"' to your source?
1>  rewardchest.h
1>..\src\rewardchest.h(4): warning C4627: '#include "container.h"': skipped when looking for precompiled header use
1>  ..\src\rewardchest.h(4): note: Add directive to 'otpch.h' or rebuild precompiled header
1>..\src\rewardchest.h(31): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "otpch.h"' to your source?
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
 
Last edited:
Solution
Code:
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
Fixed. Small typo on project.
Thanks for your time guys!
Threat closed.
write at the top file "reward.h"

Code:
#include "container.h"
Code:
#include "otpch.h"

maybe its about that
 
I tested that but then this shows up:

Code:
1>..\src\reward.h(2): warning C4603: 'FS_REWARD_H': macro is not defined or definition is different after precompiled header use
1>  ..\src\reward.h(2): note: Add macro to precompiled header instead of defining here
1>  ..\src\reward.h(4): note: use of precompiled header
1>..\src\reward.h(37): fatal error C1020: unexpected #endif
1>  rewardchest.h
1>..\src\rewardchest.h(2): warning C4603: 'FS_REWARDCHEST_H': macro is not defined or definition is different after precompiled header use
1>  ..\src\rewardchest.h(2): note: Add macro to precompiled header instead of defining here
1>  ..\src\rewardchest.h(4): note: use of precompiled header
1>..\src\rewardchest.h(31): fatal error C1020: unexpected #endif

so it seems its not that easy. I think it has to do the way new files are added to the project source. Still dunno how to fix it.
 
Code:
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
Fixed. Small typo on project.
Thanks for your time guys!
Threat closed.
 
Solution
Back
Top