iwanantonowitsch
27-11-2010 21:05:13
hi there,
one question: does the raknet module contain every function they provide, too? because i tried to implement a server but it says those functions from teh demo didnt work. to me, the demo worked until today... but now they are f*cked up,too. pleas help me
There may be functions that are missing as there wasn't a huge amount of testing or demos for this module....
Do the demos work or not ??
Andy
iwanantonowitsch
28-11-2010 10:13:08
thats my problem... i think i had the very same problem with ode before. before i was programming on base of the demos the demos were working. but somehow as i started programming and integrating raknet (or as before, ode) into my project the demos won't work anymore. I'll post the error log:
ArgumentError: Python argument types in
RakPeer.SetIncomingPassword(RakPeer, str, int)
did not match C++ signature:
SetIncomingPassword(class RakPeer {lvalue} inst, class boost::python::api::object passwordData, int passwordDataLength)
This is what python says. On the raknet website they create servers in a complete other way, but those functions they say they provide don't exist.
I think my problem is really weird as i don't remember how i fixed that ode thing.
It's not something crazy like you are using single quotes around the password and boost is considering it to be a 'str' type and not a python object ??
If you look at demo server that function is tested ??
Andy
iwanantonowitsch
01-12-2010 16:12:54
No, i did exactly what they do in the demo and i altered it in numberless ways, but none of them would work... even if i delete the password-line something is broken in the server/rakpeer class:
b = server.Startup(32,30, socketDescriptor, 1)
ArgumentError: Python argument types in
RakPeer.Startup(RakPeer, int, int, SocketDescriptor, int)
did not match C++ signature:
Startup(struct RakPeer_wrapper {lvalue}, unsigned short maxConnections, int _threadSleepTimer, struct SocketDescriptor * socketDescriptors, unsigned int socketDescriptorCount, int threadPriority=-99999)
Startup(class RakPeer {lvalue}, unsigned short maxConnections, int _threadSleepTimer, struct SocketDescriptor * socketDescriptors, unsigned int socketDescriptorCount, int threadPriority=-99999)
i'm not sure what the problem might be, but i think its that i dont get an instace of that rakpeer-thing. i looked it up at jenskinsoftware and they tell me to do RakNet::RakPeerInterface::GetInstance() but i can only do: rakNet.RakpeerInterface ... the getInstance function is missing.
Any suggestions or alternatives?
Just to confirm that the demos work ?? I'm working on the 1.7.2 release and will relook at the raknet interface..
Regards
Andy
iwanantonowitsch
05-12-2010 14:18:59
the demos are NOT working, they worked when i installed python ogre but now as i start to mess around with raknet they are broken... due to the same problem described above. it would be really nice if you'd fix that. i'm clueless.
Issue is that I clearly tested the RakNet library when using the DLL version of Raknet and then changed to a static link when I built the release. This basically means the factory calls are broken -- however they are also not required..
You can do server=raknet.RakPeer()
and everything should work..
I will go back to using the DLL version of RakNet for the upcoming release so all functions work.
Sorry for the screw up..
Andy
iwanantonowitsch
12-12-2010 13:35:45
I've tried this before (because this is the way they teach it at the raknet - website) but it won't work either. I think i'll have to wait for the new release.