OTcreator
Well-Known Member
- Joined
- Feb 14, 2022
- Messages
- 503
- Solutions
- 1
- Reaction score
- 57
Welcome.
The script was created by @ohman and customized for BlackTek, which is based on TFS 1.4.2.
Unfortunately , some of the changes to BlackTek in C++ caused , that the code can not be compiled (error).
Is anyone able to help so that the code is functional in the base TFS 1.4.2?
LINK:
Added Reward Container & Boss System (#14) · Black-Tek/BlackTek-Server@0da6263 (https://github.com/Black-Tek/BlackTek-Server/commit/0da6263793355166765cfba7cd4f09144584b1a3)
Error:
The script was created by @ohman and customized for BlackTek, which is based on TFS 1.4.2.
Unfortunately , some of the changes to BlackTek in C++ caused , that the code can not be compiled (error).
Is anyone able to help so that the code is functional in the base TFS 1.4.2?
LINK:
Added Reward Container & Boss System (#14) · Black-Tek/BlackTek-Server@0da6263 (https://github.com/Black-Tek/BlackTek-Server/commit/0da6263793355166765cfba7cd4f09144584b1a3)
Error:
C++:
[ 1%] Building CXX object CMakeFiles/tfs.dir/src/iologindata.cpp.o
/var/www/tfs_old/compiled/src/iologindata.cpp: In static member function ‘static bool IOLoginData::addRewardItems(uint32_t, const ItemBlockList&, DBInsert&, PropWriteStream&)’:
/var/www/tfs_old/compiled/src/iologindata.cpp:683:200: error: no matching function for call to ‘PropWriteStream::getStream()’
683 | , item->getSubType(), db.escapeString(propWriteStream.getStream())))) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /var/www/tfs_old/compiled/src/itemloader.h:7,
from /var/www/tfs_old/compiled/src/items.h:9,
from /var/www/tfs_old/compiled/src/item.h:9,
from /var/www/tfs_old/compiled/src/map.h:8,
from /var/www/tfs_old/compiled/src/creature.h:7,
from /var/www/tfs_old/compiled/src/player.h:7,
from /var/www/tfs_old/compiled/src/iologindata.h:8,
from /var/www/tfs_old/compiled/src/iologindata.cpp:6:
/var/www/tfs_old/compiled/src/fileloader.h:121:29: note: candidate: ‘const char* PropWriteStream::getStream(size_t&) const’
121 | const char* getStream(size_t& size) const {
| ^~~~~~~~~
/var/www/tfs_old/compiled/src/fileloader.h:121:29: note: candidate expects 1 argument, 0 provided
/var/www/tfs_old/compiled/src/iologindata.cpp:704:207: error: no matching function for call to ‘PropWriteStream::getStream()’
704 | , item->getSubType(), db.escapeString(propWriteStream.getStream())))) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /var/www/tfs_old/compiled/src/itemloader.h:7,
from /var/www/tfs_old/compiled/src/items.h:9,
from /var/www/tfs_old/compiled/src/item.h:9,
from /var/www/tfs_old/compiled/src/map.h:8,
from /var/www/tfs_old/compiled/src/creature.h:7,
from /var/www/tfs_old/compiled/src/player.h:7,
from /var/www/tfs_old/compiled/src/iologindata.h:8,
from /var/www/tfs_old/compiled/src/iologindata.cpp:6:
/var/www/tfs_old/compiled/src/fileloader.h:121:29: note: candidate: ‘const char* PropWriteStream::getStream(size_t&) const’
121 | const char* getStream(size_t& size) const {
| ^~~~~~~~~
/var/www/tfs_old/compiled/src/fileloader.h:121:29: note: candidate expects 1 argument, 0 provided
make[2]: *** [CMakeFiles/tfs.dir/build.make:541: CMakeFiles/tfs.dir/src/iologindata.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:102: CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:91: all] Error 2