Well i got a little problem with the pre-set broadband. I dont know how to examinate the limit, so i cant set it to a resonable value. But the pre-set value is just to small.
I got a pretty strange runtime error with irrnetlite. That occurs when at the end of the scope the SOutPacket is automatically deallocated. More specifically, i get pointed to the destructor of core::array, which is one of its members - haven't yet figured out why it segfaults.
Has anyone had the same issue before? I am using irrlicht 1.6 and the (latest?) irrnetlite version - as offered in the very first post of this thread.
I got a pretty strange runtime error with irrnetlite. That occurs when at the end of the scope the SOutPacket is automatically deallocated. More specifically, i get pointed to the destructor of core::array, which is one of its members - haven't yet figured out why it segfaults.
Has anyone had the same issue before? I am using irrlicht 1.6 and the (latest?) irrnetlite version - as offered in the very first post of this thread.
Thanks for any suggestions & cheers,
p.
Are you using the .lib version or including the files into the project manually?
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
I built a static library with the included makefile. Plus I just found out that it behaves weird, like randomly sent/received data. Gotta have a look at that...
I got a pretty strange runtime error with irrnetlite. That occurs when at the end of the scope the SOutPacket is automatically deallocated. More specifically, i get pointed to the destructor of core::array, which is one of its members - haven't yet figured out why it segfaults.
Has anyone had the same issue before? I am using irrlicht 1.6 and the (latest?) irrnetlite version - as offered in the very first post of this thread.
Thanks for any suggestions & cheers,
p.
I had the same problem but didn't solve it. I created a workaround by exchanging the dynamic buffers (irr::array) by a static one (4k ... way more than I need). Works good ever since.
polylux wrote:I built a static library with the included makefile. Plus I just found out that it behaves weird, like randomly sent/received data. Gotta have a look at that...
The problem may be that you built the static library with the irrArray.h that came with irrNetLite, but used it with Irrlicht with the irrArray.h that came with Irrlicht, similar to having the incorrect Irrlicht DLL/header files situation. You can try to rebuild irrNetLite with USE_IRRLICHT defined (Remember to include the Irrlicht headers and delete irrArray, string, etc that came with irrNetLite to be sure).
I hope that explains it a little better.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
That makes sense, gotta give it a try as soon as I get home - thanks BlindSide.
Having played around with it, I really have to say irrnetlite is a great addon to the engine.
Shame on me. I played around a little bit yesterday and it turned out that there were some pointers I didn't NULL out after deleting the objects, and therefore they were pointing at garbage. The debugger didn't really help me there . I can now re-start the server without problems, but as soon as I do a restart I am no longer able to connect to it.
I also tried that with one of the Examples and VC, same behaviour there. I added a key to the server that would simply delete the two objects that are also deleted before exiting the program and immediately re-create them. No crash on the server, but I couldn't connect to the server any more.
Another question I have: is there a way to get the IP address of the server using irrnetlite or enet functions? I want to display the server's IP address on the "start net game" screen.
Hmm .. I tried the suggestions yesterday, and I still got "0.0.0.0" as IP address of the server. Still ... I got my computers name ("Bebop" on my Desktop and "DarkStar" on my Notebook). I there a way in irrnetlite or enet to get the IP address from the computer name? Thanks for your help.
Brainsaw wrote:I still got "0.0.0.0" as IP address of the server.
Hm, CNetManager hides access to its member ENetAddress address. Don't know which address you used, but you need to add a getter for this first and use that address.