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

[8.6x] OTServ 0.6.4 (Cast System)

OTServ_SVN 0.6.4
Client version: 8.60

Changes can be found here Nottinghster/OTServ_SVN-0.6.4

List of lua functions:

You can see the functions and their parameters in these files :
functions.lua and luascript.cpp and npc functions in /npc/scripts/lib/

If you want to compile the server by yourself on windows/linux please take a look at this tutorial:
[Compiling] Simple OTServ MSVC 2010/Linux : Compiling the Source

From what I can say the server is most stablest distro over all and have all 8.6 features working as they should.

Github link: Nottinghster/OTServ_SVN-0.6.4
this isn't working with latest othire :c 1.0
 
For all OTHire users, you can import the Cast System without problem !
hello bro i was trying to add this cast system in OTHire 0.0.3 but i get this error in player.h @Peonso @Ezzz
Code:
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -D__USE_MYSQL__     -D__ENABLE_SERVER_DIAGNOSTIC__ -std=c++11 -DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/otserv\" -D_THREAD_SAFE -D__OLD_GUILD_SYSTEM__ -D_REENTRANT -Wall -g -O2 -MT databasemysql.o -MD -MP -MF .deps/databasemysql.Tpo -c -o databasemysql.o databasemysql.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -D__USE_MYSQL__     -D__ENABLE_SERVER_DIAGNOSTIC__ -std=c++11 -DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/otserv\" -D_THREAD_SAFE -D__OLD_GUILD_SYSTEM__ -D_REENTRANT -Wall -g -O2 -MT map.o -MD -MP -MF .deps/map.Tpo -c -o map.o map.cpp
map.cpp:1236:1: error: expected ‘}’ at end of input
}
^
In file included from house.h:27:0,
                 from iomap.h:29,
                 from map.cpp:23:
player.h: In member function ‘bool Player::getCastingState() const’:
player.h:148:40: error: ‘cast’ was not declared in this scope
  bool getCastingState() const { return cast.isCasting; };
                                        ^
player.h: In member function ‘virtual const string& Player::getCastingPassword() const’:
player.h:149:65: error: ‘cast’ was not declared in this scope
  virtual const std::string& getCastingPassword() const { return cast.password; };
                                                                 ^
player.h: In member function ‘PlayerCast Player::getCast()’:
player.h:150:32: error: ‘cast’ was not declared in this scope
  PlayerCast getCast() { return cast; }
                                ^
player.h: In member function ‘void Player::setCastPassword(std::string)’:
player.h:153:40: error: ‘cast’ was not declared in this scope
  void setCastPassword(std::string p) { cast.password = p; };
                                        ^
player.h: In member function ‘void Player::setCastDescription(std::string)’:
player.h:155:47: error: ‘cast’ was not declared in this scope
   void setCastDescription(std::string desc) { cast.description = desc; }
                                               ^
player.h: In member function ‘virtual const string& Player::getCastDescription() const’:
player.h:156:65: error: ‘cast’ was not declared in this scope
  virtual const std::string& getCastDescription() const { return cast.description; }
                                                                 ^
player.h: In member function ‘void Player::addCastViewer(ProtocolGame*)’:
player.h:159:3: error: ‘cSpectators’ was not declared in this scope
   cSpectators.list[nextSpectator] = pg;
   ^
player.h:159:20: error: ‘nextSpectator’ was not declared in this scope
   cSpectators.list[nextSpectator] = pg;
                    ^
player.h:163:24: error: ‘cast’ was not declared in this scope
   ss << "Spectator" << cast.curId;
                        ^
player.h: In member function ‘void Player::removeCastViewer(uint32_t)’:
player.h:168:39: error: ‘cSpectators’ was not declared in this scope
  void removeCastViewer(uint32_t id) { cSpectators.removeList(id); }
                                       ^
player.h: In member function ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:171:50: error: ‘cSpectators’ was not declared in this scope
   for (AutoList<ProtocolGame>::listiterator it = cSpectators.list.begin(); it != cSpectators.list.end(); ++it)
                                                  ^
player.h:175:11: warning: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Wconversion-null]
    return NULL;
           ^
player.h: In member function ‘uint32_t Player::getCastViewerCount()’:
player.h:180:50: error: ‘cSpectators’ was not declared in this scope
   for (AutoList<ProtocolGame>::listiterator it = cSpectators.list.begin(); it != cSpectators.list.end(); ++it)
                                                  ^
player.h: In member function ‘void Player::kickCastViewers()’:
player.h:188:50: error: ‘cSpectators’ was not declared in this scope
   for (AutoList<ProtocolGame>::listiterator it = cSpectators.list.begin(); it != cSpectators.list.end(); ++it) {
                                                  ^
player.h:194:3: error: ‘cast’ was not declared in this scope
   cast = PlayerCast();
   ^
player.h:197:44: error: a function-definition is not allowed here before ‘{’ token
   void kickCastViewerByName(std::string n) {
                                            ^
In file included from map.cpp:24:0:
iomapotbm.h:71:16: error: expected ‘}’ before end of line
#pragma pack(1)
                ^
iomapotbm.h: At global scope:
iomapotbm.h:71:16: error: expected unqualified-id at end of input
Makefile:613: recipe for target 'map.o' failed
make[1]: *** [map.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/databasemysql.Tpo .deps/databasemysql.Po
make[1]: Leaving directory '/home/tibiana/source'
Makefile:434: recipe for target 'all' failed
make: *** [all] Error 2
root@vmi200976:/home/tibiana/source# player.h: In member function ‘void Player::removeCastViewer(uint32_t)’:
-bash: syntax error near unexpected token `('
 
hello bro i was trying to add this cast system in OTHire 0.0.3 but i get this error in player.h @Peonso @Ezzz
Code:
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -D__USE_MYSQL__     -D__ENABLE_SERVER_DIAGNOSTIC__ -std=c++11 -DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/otserv\" -D_THREAD_SAFE -D__OLD_GUILD_SYSTEM__ -D_REENTRANT -Wall -g -O2 -MT databasemysql.o -MD -MP -MF .deps/databasemysql.Tpo -c -o databasemysql.o databasemysql.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -D__USE_MYSQL__     -D__ENABLE_SERVER_DIAGNOSTIC__ -std=c++11 -DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/otserv\" -D_THREAD_SAFE -D__OLD_GUILD_SYSTEM__ -D_REENTRANT -Wall -g -O2 -MT map.o -MD -MP -MF .deps/map.Tpo -c -o map.o map.cpp
map.cpp:1236:1: error: expected ‘}’ at end of input
}
^
In file included from house.h:27:0,
                 from iomap.h:29,
                 from map.cpp:23:
player.h: In member function ‘bool Player::getCastingState() const’:
player.h:148:40: error: ‘cast’ was not declared in this scope
  bool getCastingState() const { return cast.isCasting; };
                                        ^
player.h: In member function ‘virtual const string& Player::getCastingPassword() const’:
player.h:149:65: error: ‘cast’ was not declared in this scope
  virtual const std::string& getCastingPassword() const { return cast.password; };
                                                                 ^
player.h: In member function ‘PlayerCast Player::getCast()’:
player.h:150:32: error: ‘cast’ was not declared in this scope
  PlayerCast getCast() { return cast; }
                                ^
player.h: In member function ‘void Player::setCastPassword(std::string)’:
player.h:153:40: error: ‘cast’ was not declared in this scope
  void setCastPassword(std::string p) { cast.password = p; };
                                        ^
player.h: In member function ‘void Player::setCastDescription(std::string)’:
player.h:155:47: error: ‘cast’ was not declared in this scope
   void setCastDescription(std::string desc) { cast.description = desc; }
                                               ^
player.h: In member function ‘virtual const string& Player::getCastDescription() const’:
player.h:156:65: error: ‘cast’ was not declared in this scope
  virtual const std::string& getCastDescription() const { return cast.description; }
                                                                 ^
player.h: In member function ‘void Player::addCastViewer(ProtocolGame*)’:
player.h:159:3: error: ‘cSpectators’ was not declared in this scope
   cSpectators.list[nextSpectator] = pg;
   ^
player.h:159:20: error: ‘nextSpectator’ was not declared in this scope
   cSpectators.list[nextSpectator] = pg;
                    ^
player.h:163:24: error: ‘cast’ was not declared in this scope
   ss << "Spectator" << cast.curId;
                        ^
player.h: In member function ‘void Player::removeCastViewer(uint32_t)’:
player.h:168:39: error: ‘cSpectators’ was not declared in this scope
  void removeCastViewer(uint32_t id) { cSpectators.removeList(id); }
                                       ^
player.h: In member function ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:171:50: error: ‘cSpectators’ was not declared in this scope
   for (AutoList<ProtocolGame>::listiterator it = cSpectators.list.begin(); it != cSpectators.list.end(); ++it)
                                                  ^
player.h:175:11: warning: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Wconversion-null]
    return NULL;
           ^
player.h: In member function ‘uint32_t Player::getCastViewerCount()’:
player.h:180:50: error: ‘cSpectators’ was not declared in this scope
   for (AutoList<ProtocolGame>::listiterator it = cSpectators.list.begin(); it != cSpectators.list.end(); ++it)
                                                  ^
player.h: In member function ‘void Player::kickCastViewers()’:
player.h:188:50: error: ‘cSpectators’ was not declared in this scope
   for (AutoList<ProtocolGame>::listiterator it = cSpectators.list.begin(); it != cSpectators.list.end(); ++it) {
                                                  ^
player.h:194:3: error: ‘cast’ was not declared in this scope
   cast = PlayerCast();
   ^
player.h:197:44: error: a function-definition is not allowed here before ‘{’ token
   void kickCastViewerByName(std::string n) {
                                            ^
In file included from map.cpp:24:0:
iomapotbm.h:71:16: error: expected ‘}’ before end of line
#pragma pack(1)
                ^
iomapotbm.h: At global scope:
iomapotbm.h:71:16: error: expected unqualified-id at end of input
Makefile:613: recipe for target 'map.o' failed
make[1]: *** [map.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/databasemysql.Tpo .deps/databasemysql.Po
make[1]: Leaving directory '/home/tibiana/source'
Makefile:434: recipe for target 'all' failed
make: *** [all] Error 2
root@vmi200976:/home/tibiana/source# player.h: In member function ‘void Player::removeCastViewer(uint32_t)’:
-bash: syntax error near unexpected token `('
hey bro btw are you @brewlster? i don't know how to write it xd
 
hey bro btw are you @brewlster? i don't know how to write it xd
nope but i "know him"

@Gesior.pl bro you know what i can do with this? im stuck :D
Code:
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -D__USE_MYSQL__     -D__ENABLE_SERVER_DIAGNOSTIC__ -std=c++11 -DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/otserv\" -D_THREAD_SAFE -D__OLD_GUILD_SYSTEM__ -D_REENTRANT -Wall -g -O2 -MT databasemysql.o -MD -MP -MF .deps/databasemysql.Tpo -c -o databasemysql.o databasemysql.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -D__USE_MYSQL__     -D__ENABLE_SERVER_DIAGNOSTIC__ -std=c++11 -DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/otserv\" -D_THREAD_SAFE -D__OLD_GUILD_SYSTEM__ -D_REENTRANT -Wall -g -O2 -MT map.o -MD -MP -MF .deps/map.Tpo -c -o map.o map.cpp
In file included from house.h:27:0,
                 from iomap.h:29,
                 from map.cpp:23:
player.h:159:38: error: expected ‘;’ at end of member declaration
   void addCastViewer(ProtocolGame* pg)
                                      ^
player.h:160:3: error: ‘cSpectators’ does not name a type
   cSpectators.list[nextSpectator] = pg;
   ^
player.h:161:3: error: ‘nextSpectator’ does not name a type
   nextSpectator++;
   ^
player.h:164:3: error: ‘ss’ does not name a type
   ss << "Spectator" << cast.curId;
   ^
player.h:165:3: error: ‘pg’ does not name a type
   pg->viewerName = ss.str().c_str();
   ^
player.h:166:3: error: ‘cast’ does not name a type
   cast.curId++;
   ^
player.h:167:2: error: expected ‘;’ after class definition
  }
  ^
player.h: In member function ‘bool Player::getCastingState() const’:
player.h:148:43: error: ‘cast’ was not declared in this scope
     bool getCastingState() const { return cast.isCasting; };
                                           ^
player.h: In member function ‘virtual const string& Player::getCastingPassword() const’:
player.h:149:65: error: ‘cast’ was not declared in this scope
  virtual const std::string& getCastingPassword() const { return cast.password; };
                                                                 ^
player.h: In member function ‘PlayerCast Player::getCast()’:
player.h:150:32: error: ‘cast’ was not declared in this scope
  PlayerCast getCast() { return cast; }
                                ^
player.h: In member function ‘void Player::setCastPassword(std::string)’:
player.h:153:40: error: ‘cast’ was not declared in this scope
  void setCastPassword(std::string p) { cast.password = p; };
                                        ^
player.h: In member function ‘void Player::setCastDescription(std::string)’:
player.h:155:47: error: ‘cast’ was not declared in this scope
   void setCastDescription(std::string desc) { cast.description = desc; }
                                               ^
player.h: In member function ‘virtual const string& Player::getCastDescription() const’:
player.h:156:65: error: ‘cast’ was not declared in this scope
  virtual const std::string& getCastDescription() const { return cast.description; }
                                                                 ^
player.h: At global scope:
player.h:169:37: error: expected initializer before ‘cSpectators’
  void removeCastViewer(uint32_t id) cSpectators.removeList(id); }
                                     ^
player.h:169:65: error: expected declaration before ‘}’ token
  void removeCastViewer(uint32_t id) cSpectators.removeList(id); }
                                                                 ^
Makefile:613: recipe for target 'map.o' failed
make[1]: *** [map.o] Error 1
make[1]: *** Waiting for unfinished jobs....
 
Last edited by a moderator:
@Gesior.pl bro you know what i can do with this? im stuck :D
Code:
g++ -DHAVE_CONFIG_words ´´H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -D__USE_MYSQL__     -D__ENABLE_SERVER_DIAGNOSTIC__ -std=c++11 -DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/otserv\" -D_THREAD_SAFE -D__OLD_GUILD_SYSTEM__ -D_REENTRANT -Wall -g -O2 -MT databasemysql.o -MD -MP -MF .deps/databasemysql.Tpo -c -o databasemysql.o databasemysql.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -D__USE_MYSQL__     -D__ENABLE_SERVER_DIAGNOSTIC__ -std=c++11 -DSYSCONFDIR=\"/usr/local/etc\" -DPKGDATADIR=\"/usr/local/share/otserv\" -D_THREAD_SAFE -D__OLD_GUILD_SYSTEM__ -D_REENTRANT -Wall -g -O2 -MT map.o -MD -MP -MF .deps/map.Tpo -c -o map.o map.cpp
In file included from house.h:27:0,
                 from iomap.h:29,
                 from map.cpp:23:
player.h:159:38: error: expected ‘;’ at end of member declaration
   void addCastViewer(ProtocolGame* pg)
                                      ^
player.h:160:3: error: ‘cSpectators’ does not name a type
   cSpectators.list[nextSpectator] = pg;
   ^
player.h:161:3: error: ‘nextSpectator’ does not name a type
   nextSpectator++;
   ^
player.h:164:3: error: ‘ss’ does not name a type
   ss << "Spectator" << cast.curId;
   ^
player.h:165:3: error: ‘pg’ does not name a type
   pg->viewerName = ss.str().c_str();
   ^
player.h:166:3: error: ‘cast’ does not name a type
   cast.curId++;
   ^
player.h:167:2: error: expected ‘;’ after class definition
  }
  ^
player.h: In member function ‘bool Player::getCastingState() const’:
player.h:148:43: error: ‘cast’ was not declared in this scope
     bool getCastingState() const { return cast.isCasting; };
                                           ^
player.h: In member function ‘virtual const string& Player::getCastingPassword() const’:
player.h:149:65: error: ‘cast’ was not declared in this scope
  virtual const std::string& getCastingPassword() const { return cast.password; };
                                                                 ^
player.h: In member function ‘PlayerCast Player::getCast()’:
player.h:150:32: error: ‘cast’ was not declared in this scope
  PlayerCast getCast() { return cast; }
                                ^
player.h: In member function ‘void Player::setCastPassword(std::string)’:
player.h:153:40: error: ‘cast’ was not declared in this scope
  void setCastPassword(std::string p) { cast.password = p; };
                                        ^
player.h: In member function ‘void Player::setCastDescription(std::string)’:
player.h:155:47: error: ‘cast’ was not declared in this scope
   void setCastDescription(std::string desc) { cast.description = desc; }
                                               ^
player.h: In member function ‘virtual const string& Player::getCastDescription() const’:
player.h:156:65: error: ‘cast’ was not declared in this scope
  virtual const std::string& getCastDescription() const { return cast.description; }
                                                                 ^
player.h: At global scope:
player.h:169:37: error: expected initializer before ‘cSpectators’
  void removeCastViewer(uint32_t id) cSpectators.removeList(id); }
                                     ^
player.h:169:65: error: expected declaration before ‘}’ token
  void removeCastViewer(uint32_t id) cSpectators.removeList(id); }
                                                                 ^
Makefile:613: recipe for target 'map.o' failed
make[1]: *** [map.o] Error 1
make[1]: *** Waiting for unfinished jobs....
words closed between '' are not declarated or definied i had the same issue if you solved please let me know
 
I have no idea dude, I never really tried customizing othire to this level, I'm not familiar with cast system and my C++ skillz sux.
 
OTX? not right now i already have my experience with otx... i will find the solution for othire since for me is the best engine for oldschool's otservs.
 
a lot of your errors are because of undeclared things or you missing some dots (;) try doing it step by step, anyways every error link to some line (maybe im wrong) start looking at there.
 
a lot of your errors are because of undeclared things or you missing some dots (;) try doing it step by step, anyways every error link to some line (maybe im wrong) start looking at there.
it know but trust me bro i did changed alot of things trying to fix those 8 errors
Code:
player.h:155:43: error: expected ‘;’ at end of member declaration
   void setCastDescription(std::string desc) cast.description = desc; }
                                           ^
player.h:155:45: error: ‘cast’ does not name a type
   void setCastDescription(std::string desc) cast.description = desc; }
                                             ^
player.h: In member function ‘bool Player::getCastingState() const’:
player.h:148:39: error: ‘cast’ was not declared in this scope
  bool getCastingState() const {return cast.isCasting; };
                                       ^
player.h: In member function ‘virtual const string& Player::getCastingPassword() const’:
player.h:149:64: error: ‘cast’ was not declared in this scope
  virtual const std::string& getCastingPassword() const {return cast.password; };
                                                                ^
player.h: In member function ‘PlayerCast Player::getCast()’:
player.h:150:31: error: ‘cast’ was not declared in this scope
  PlayerCast getCast() {return cast; }
                               ^
player.h: In member function ‘void Player::setCastPassword(std::string)’:
player.h:153:39: error: ‘cast’ was not declared in this scope
  void setCastPassword(std::string p) {cast.password = p; };
                                       ^
player.h: At global scope:
player.h:156:27: error: expected initializer before ‘&’ token
  virtual const std::string& getCastDescription() const return cast.description; }
                           ^
player.h:156:81: error: expected declaration before ‘}’ token
  virtual const std::string& getCastDescription() const return cast.description; }
                                                                                 ^
 
use tfs 0.4 best OTX
OTX could be good but it has 0 support also maybe it could be "up to date" but like i said with many errors with 0 support
othire it's perfect it just has few missing features

a lot of your errors are because of undeclared things or you missing some dots (;) try doing it step by step, anyways every error link to some line (maybe im wrong) start looking at there.
no.. his errors aren't related to points or missing definitons there are missing things related to these additionsmaybe things that has 0 relation with OTHIRE
i did everything step by step btw othire 0.3 was releases at 2014 or 2013 1.0 - five years later.
 
Last edited by a moderator:
@Nottinghster
Code:
 protocollogin.cpp
1>  raids.cpp
1>source\protocollogin.cpp(96): error C2228: left of '.empty' must have class/struct/union
1>          type is 'uint32_t'
1>  rsa.cpp
1>source\protocolgame.cpp(409): error C2228: left of '.empty' must have class/struct/union
1>          type is 'uint32_t'
1>C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind.hpp(69): error C2825: 'F': must be a class or namespace when followed by '::'
1>          C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind_template.hpp(15) : see reference to class template instantiation 'boost::_bi::result_traits<R,F>' being compiled
1>          with
1>          [
1>              R=boost::_bi::unspecified,
1>              F=bool (__thiscall Game::* )(uint32_t,ProtocolGame *)
1>          ]
1>          source\protocolgame.cpp(669) : see reference to class template instantiation 'boost::_bi::bind_t<R,F,L>' being compiled
1>          with
1>          [
1>              R=boost::_bi::unspecified,
1>              F=bool (__thiscall Game::* )(uint32_t,ProtocolGame *),
1>              L=boost::_bi::list2<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>>
1>          ]
1>C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind.hpp(69): error C2039: 'result_type' : is not a member of '`global namespace''
1>C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind.hpp(69): error C2146: syntax error : missing ';' before identifier 'type'
1>C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind.hpp(69): error C2208: 'boost::_bi::type' : no members defined using this type
1>C:\Users\Cheng Zhi\Documents\Visual Studio 2010\Projects\OTHIRE\OTHIRE\libraries\inc\boost\boost/bind/bind.hpp(69): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>  scheduler.cpp


im pretty sure that i've added edited everything ass it should,
im using OTHIRE LIBRARIES.Should i use otsvn ones? my major doubt it's regarding this error, i don't know what it means
Code:
1>source\protocollogin.cpp(96): error C2228: left of '.empty' must have class/struct/union
1>          type is 'uint32_t'
1>  rsa.cpp
1>source\protocolgame.cpp(409): error C2228: left of '.empty' must have class/struct/union

help me please
 
@Nottinghster bro i finally got the cast system with othire after i start the cast i want to try it with a mc i got a debug
Code:
+---------------------------------------------------------------
Debug Assertion 7.72 Utils.cpp 340
Mon Sep 17 13:06:02 2018
Windows Version: 6.2 build 9200 on 2
Graphic Engine: 2
Last Packet Types: 170 180 178 162 141 130 161 160 120 121
Last Packet: 023 011 010 115 071 000 016 050 000 000 011 255 255 255 255 255
Player Position: [32369,32230,7]
Player.cpp 383: exception occurred, reason:
Network.cpp 885: exception occurred (ErrorCode = 0), reason:
Control.cpp 1280: exception occurred (Type = 170), reason:
Communication.cpp 2466: exception occurred (Mode = 2) (Channel = 0), reason:
Network.cpp 470: exception occurred (MaxLength = 512), reason:
Utils.cpp 340: assertion failed (Position = 2814) (Size-Length = -26694), reason:
Position<=Size-Length
----------------------------------------------------------------

and ingame i see this
Code:
13:04 Cast has started.
13:04 Spectator 1 has joined the cast.
 
@thread cant edit the post
so i was trying to test all commands or options from cast like
!cast on (is working)
!cast off (is working)
!cast desc (give me a debug)
!cast status (console error)
Code:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/cast.lua:onSay

internalGetPlayerInfo(). Player not found. info = 25

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/cast.lua:onSay

luaGetPlayerCastViewers(). Creature not found

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/cast.lua:onSay

data/talkactions/scripts/cast.lua:144: bad argument #1 to 'pairs' (table expected, got boolean)
stack traceback:
        [C]: in function 'pairs'
        data/talkactions/scripts/cast.lua:144: in function <data/talkactions/scripts/cast.lua:1>
 
Back
Top