iwanantonowitsch
06-03-2011 18:20:41
iwanantonowitsch
06-03-2011 18:20:41
andy
14-03-2011 05:24:58
iwanantonowitsch
14-03-2011 09:13:03
Mohican
29-04-2011 14:07:22
Just want to check that you looked at the latest release (for Python 2.7) and that it still has an issue...
File "Demo_Chat_Server.py", line 157, in <module>
main()
File "Demo_Chat_Server.py", line 25, in main
i = server.GetNumberOfAddresses()
Boost.Python.ArgumentError: Python argument types in
RakPeer.GetNumberofAddresses(RakPeer)
did not match C++ signature:
GetNumberofAddresses(struct RakPeer_wrapper {lvalue})
GetNumberofAddresses(class RakPeer {lvalue})
Mohican
29-04-2011 15:49:34
iwanantonowitsch
30-04-2011 22:45:19
Mohican
04-05-2011 05:01:11
can those be mixed up? (yeah this question even sounds extremely stupid to me:D)
iwanantonowitsch
04-05-2011 17:40:37
Mohican
05-05-2011 15:50:31
Mohican
05-05-2011 15:51:43
Mohican
05-05-2011 15:57:26
iwanantonowitsch
05-05-2011 23:15:08
Traceback (most recent call last):
File "C:\Program Files\OGRE\demos\raknet\Demo_Chat_Server.py", line 157, in <module>
main()
File "C:\Program Files\OGRE\demos\raknet\Demo_Chat_Server.py", line 25, in main
i = server.GetNumberOfAddresses()
ArgumentError: Python argument types in
RakPeer.GetNumberOfAddresses(RakPeer)
did not match C++ signature:
GetNumberOfAddresses(struct RakPeer_wrapper {lvalue})
GetNumberOfAddresses(class RakPeer {lvalue})
Mohican
06-05-2011 00:32:49
what IDLE says to me when i start a server is:
iwanantonowitsch
07-05-2011 10:22:13
Mohican
09-05-2011 15:43:54
AttributeError: 'RakPeer' object has no attribute 'IsBanned'
Fatal Python error: GC object already tracked
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Mohican
10-05-2011 02:58:34
iwanantonowitsch
10-05-2011 11:04:28
Andy, I really need help!
Mohican
11-05-2011 10:13:58
iwanantonowitsch
11-05-2011 13:09:19
Mohican
11-05-2011 13:14:39
isnt there another networking library? i think previous pyogre versions had one.
[isnt there even a networking tool from the python community? *confusion*]
Mohican
11-05-2011 14:21:20
Mohican
11-05-2011 16:44:51
bool ProcessOfflineNetworkPacket( const SystemAddress systemAddress, const char *data, const int length, RakPeer *rakPeer, RakNetSmartPtr<RakNetSocket> rakNetSocket, bool *isOfflineMessage, RakNetTimeUS timeRead )
{
(void) timeRead;
RakPeer::RemoteSystemStruct *remoteSystem;
Packet *packet;
unsigned i;
/* Commented to fix the crash bug in PO
#if !defined(_XBOX) && !defined(X360)
char str1[64];
systemAddress.ToString(false, str1);
if (rakPeer->IsBanned( str1 ))
{
for (i=0; i < rakPeer->messageHandlerList.Size(); i++)
rakPeer->messageHandlerList->OnDirectSocketReceive(data, length*8, systemAddress);
RakNet::BitStream bs;
bs.Write((MessageID)ID_CONNECTION_BANNED);
bs.WriteAlignedBytes((const unsigned char*) OFFLINE_MESSAGE_DATA_ID, sizeof(OFFLINE_MESSAGE_DATA_ID));
bs.Write(rakPeer->GetGuidFromSystemAddress(UNASSIGNED_SYSTEM_ADDRESS));
unsigned i;
for (i=0; i < rakPeer->messageHandlerList.Size(); i++)
rakPeer->messageHandlerList->OnDirectSocketSend((char*) bs.GetData(), bs.GetNumberOfBitsUsed(), systemAddress);
SocketLayer::Instance()->SendTo( rakNetSocket->s, (char*) bs.GetData(), bs.GetNumberOfBytesUsed(), systemAddress.binaryAddress, systemAddress.port, rakNetSocket->remotePortRakNetWasStartedOn_PS3 );
return true;
}
#endif
Commented to fix the crash bug in PO */
// The reason for all this is that the reliability layer has no way to tell between offline messages that arrived late for a player that is now connected,
// and a regular encoding. So I insert OFFLINE_MESSAGE_DATA_ID into the stream, the encoding of which is essentially impossible to hit by random chance
if (length <=2)
{
*isOfflineMessage=true;
}
else if (
((unsigned char)data[0] == ID_PING ||
(unsigned char)data[0] == ID_PING_OPEN_CONNECTIONS) &&
length == sizeof(unsigned char) + sizeof(RakNetTime) + sizeof(OFFLINE_MESSAGE_DATA_ID))
{
*isOfflineMessage=memcmp(data+sizeof(unsigned char) + sizeof(RakNetTime), OFFLINE_MESSAGE_DATA_ID, sizeof(OFFLINE_MESSAGE_DATA_ID))==0;
}
virtual bool IsBanned( char const * IP ) {
namespace bpl = boost::python;
if( bpl::override func_IsBanned = this->get_override( "IsBanned" ) ){
boost::python::list py_IP;
// set a max inbound string length to ensure some level of saftey
int len_py_IP = strnlen ( IP, 4096 );
pyplus_conv::copy_container( IP, IP + len_py_IP, pyplus_conv::list_inserter( py_IP ) );
bpl::object py_result = bpl::call<bpl::object>( func_IsBanned.ptr(), IP );
return bpl::extract< bool >( pyplus_conv::get_out_argument( py_result, 0 ) );
}
else{
return RakPeer::IsBanned( IP );
}
}
Mohican
11-05-2011 17:08:29
iwanantonowitsch
11-05-2011 23:16:34
Mohican
12-05-2011 03:34:42
virtual bool IsActive( ) const {
/* if( bp::override func_IsActive = this->get_override( "IsActive" ) )
return func_IsActive( );
else{
*/ return this->RakPeer::IsActive( );
// }
}
virtual bool IsBanned( char const * IP ) {
/* namespace bpl = boost::python;
if( bpl::override func_IsBanned = this->get_override( "IsBanned" ) ){
boost::python::list py_IP;
// set a max inbound string length to ensure some level of saftey
int len_py_IP = strnlen ( IP, 4096 );
pyplus_conv::copy_container( IP, IP + len_py_IP, pyplus_conv::list_inserter( py_IP ) );
bpl::object py_result = bpl::call<bpl::object>( func_IsBanned.ptr(), IP );
return bpl::extract< bool >( pyplus_conv::get_out_argument( py_result, 0 ) );
}
else{
*/ return RakPeer::IsBanned( IP );
// }
}
Mohican
12-05-2011 15:38:57
iwanantonowitsch
13-05-2011 10:42:16
Mohican
13-05-2011 11:10:45
iwanantonowitsch
13-05-2011 15:36:55
Mohican
13-05-2011 16:52:07
iwanantonowitsch
13-05-2011 22:11:35
build
? lib
? ogre
? addons
? ? cadunetree
? ? caelum
? ? et
? ? hydrax
? ? noise
? ? ofusion
? ? ogreforests
? ? ogrevideo
? ? ogrevideoffmpeg
? ? particleuniverse
? ? plib
? ? raknet
? ? skyx
? gui
? ? betagui
? ? canvas
? ? CEGUI
? ? hikari
? ? mygui
? ? QuickGUI
? io
? ? OIS
? physics
? ? bullet
? ? ODE
? ? OgreBulletC
? ? OgreBulletD
? ? OgreNewt
? ? ogrenewt2
? ? OgreOde
? ? OgreRefApp
? ? Opcode
? ? PhysX
? renderer
? ? OGRE
? ? ogreoctreesm
? ? ogrepaging
? ? ogrepcz
? ? ogrertshadersystem
? ? ogresdksample
? ? ogreterrain
? ? plsm2
? sound
? OgreAL
? ogreoggsound
demos
? cegui
? ? datafiles
? ? ? configs
? ? ? fonts
? ? ? imagesets
? ? ? layouts
? ? ? looknfeel
? ? ? lua_scripts
? ? ? schemes
? ? ? xml_schemas
? ? tofix
? media
? ? DeferredShadingMedia
? ? ? DeferredShading
? ? ? material
? ? ? ? glsl
? ? ? ? hlsl
? ? ? post
? ? ? glsl
? ? ? hlsl
? ? fonts
? ? gui
? ? materials
? ? ? programs
? ? ? scripts
? ? ? textures
? ? ? nvidia
? ? models
? ? overlays
? ? packs
? ? particle
? ? PCZAppMedia
? ? RTShaderLib
? ? ? materials
? ? ssao
? ? thumbnails
? media_extra
? ? quake
? ? ? roadster
? ? ? textures
? ? shaders
? ? RenderMonkey
? ode
? ogre
? ? save
? ? tests
? ? tofix
? ogreode
? ? media
? ? ? materials
? ? ? ? scripts
? ? ? ? textures
? ? ? models
? ? ? packs
? ? tofix
? ? toworkon
? ogreoggsound
? ? media
? ogrepcz
? raknet
? samples
docs
packages_2.6
? ogre
? addons
? ? awesomium
? ? cadunetree
? ? caelum
? ? et
? ? hydrax
? ? noise
? ? ofusion
? ? ogredshow
? ? ogreforests
? ? ogrevideo
? ? ogrevideoffmpeg
? ? particleuniverse
? ? plib
? ? raknet
? ? skyx
? ? theora
? ? watermesh
? gui
? ? betagui
? ? canvas
? ? CEGUI
? ? hikari
? ? mygui
? ? navi
? ? QuickGUI
? io
? ? OIS
? physics
? ? bullet
? ? NxOgre
? ? ODE
? ? OgreBulletC
? ? OgreBulletD
? ? OgreNewt
? ? ogrenewt2
? ? OgreOde
? ? OgreRefApp
? ? Opcode
? ? PhysX
? renderer
? ? OGRE
? ? ogreoctreesm
? ? ogrepaging
? ? ogrepcz
? ? ogrertshadersystem
? ? ogresdksample
? ? ogreterrain
? ? plsm2
? sound
? OgreAL
? ogreoggsound
plugins
tools
Mohican
14-05-2011 08:59:12
iwanantonowitsch
14-05-2011 15:33:20
Again, this is only for Python 2.7.1 + Python-Ogre 1.7.2.
Mohican
15-05-2011 01:58:51
sry for wasting your time... i misread this:
Ok, so what about the other packages? Could you get them working with py 2.7 and pyogre 1.7.2?
iwanantonowitsch
15-05-2011 10:26:52
Mohican
16-05-2011 10:57:01
iwanantonowitsch
16-05-2011 14:29:32