The following changes need to be made in order to integrate the Message Redirector into PlaneShift. PlaneShift/src/client/JamfileThis tells jam to link the client libraries with the PSAI libraries. Change the section that reads
to read
PSAI was added to ExternalLibs on the second line. PlaneShift/src/client/psengine.h
class PsaiMessageRedirector;
PsaiMessageRedirector* redirector; PlaneShift/src/client/psengine.cpp
#include <message/PsaiMessageRedirector.h>
redirector = new PsaiMessageRedirector(GetMsgHandler()); Additional required includesIn order for the PSAI code to compile (at least on my system) I need to add the following includes to the PlaneShift and CrystalSpace source code. PlaneShift/src/common/net/netbase.hAfter #include "net/netpacket.h" #include "net/sockuni.h" #include <cssysdef.h> This change should be in the bitbucket repo CrystalSpace/include/csutil/csendian.hAfter #include <math.h> #include <cssysdef.h> |
Project Overview > Project Setup >