Itutorial
Legendary OT User
- Joined
- Dec 23, 2014
- Messages
- 2,461
- Solutions
- 68
- Reaction score
- 1,123
While trying to add this cast system to the sources I found that in protocolgame.cpp it says to add this line
ProtocolGame::LiveCastsMap ProtocolGame::liveCasts;
It doesn't show where to add it though. It look like at the top of the code under the #includes but this creates an error.
It shows to edit this code at the top of protocolgame.cpp
This code isn't in protocolgame.cpp. Then it says to add ProtocolGame::LiveCastsMap ProtocolGame::liveCasts; right after it. So where should I put it?
Nvm figured it out forgot to add the new cpp files to visual studio
So I got it compiled but when I try to connect to an account nothing happens. If I try to connect without user/pass it debugs. Anyone know of problems like this for TFS 1.2 1.98 and this system?
ProtocolGame::LiveCastsMap ProtocolGame::liveCasts;
It doesn't show where to add it though. It look like at the top of the code under the #includes but this creates an error.
It shows to edit this code at the top of protocolgame.cpp
Code:
ProtocolGame::ProtocolGame(Connection_ptr connection) :
- Protocol(connection),
- player(nullptr),
- eventConnect(0),
- challengeTimestamp(0),
- version(CLIENT_VERSION_MIN),
- challengeRandom(0),
- debugAssertSent(false),
- acceptPackets(false)
-{
- //
-}
This code isn't in protocolgame.cpp. Then it says to add ProtocolGame::LiveCastsMap ProtocolGame::liveCasts; right after it. So where should I put it?
Nvm figured it out forgot to add the new cpp files to visual studio
So I got it compiled but when I try to connect to an account nothing happens. If I try to connect without user/pass it debugs. Anyone know of problems like this for TFS 1.2 1.98 and this system?
Last edited by a moderator: