irrlicht and raknet - Resources?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Rizzy

irrlicht and raknet - Resources?

Post by Rizzy »

wondering if anybody did any work on getting irrlicht to work with raknet?
i'm currently only trying to get the techdemo(seems easy base)
so that multiple players can walk arround.

Can't seem to get it to work.

so i was wondering if anybody has any resources on the implementation
or any examples of irrlicht with raknet?

any help will be usefull
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

It's possible to do. I just followed Rakkar's Multiplayer implementation to the letter.

It was even eaiser to put it into ICE.

RakNet is very particular in how it needs to be set up. What type of errors are you hitting?
Crud, how do I do this again?
VPB
Posts: 36
Joined: Sat Apr 10, 2004 8:02 am

Post by VPB »

i'm also getting errors with Raknet. Here is my error:

rror LNK2001: unresolved external symbol "public: static class RakServerInterface * __cdecl RakNetworkFactory::GetRakServerInterface(void)" (?GetRakServerInterface@RakNetworkFactory@@SAPAVRakServerInterface@@XZ)

If anyone could get a solution i would like to hear it :) On the raknet forum i'm not getting anywhere
Rizzy

Post by Rizzy »

same error here
as VPB states

VS .net gives that error and when i check errorlog is says file can't be found or not readable for RakNetworkFactory.h
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Are you using Visual Studio? Be sure to add all of the RakNet source files into your project. There are also a bunch in the /optional folder.

Be sure to also add the Raknet.lib into your project also.

And above all else, remember to add the ws2_32.lib reference in your linker options.
Crud, how do I do this again?
VPB
Posts: 36
Joined: Sat Apr 10, 2004 8:02 am

Post by VPB »

I have set everything according to the compiler setup guide :? BTW, i use VC6++.

If anyone could post a working code of Raknet for VC6++ :D , i can check if mayby something somehow is wrong with my compiler or setting

Thanks in advance
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

It's not the code, it's the project setup that causes that problem.

I will post mine if you would please say "Can you post it?" instead of "Does anyone have?" when it's obvious that I'm actively assisting.

Get a copy of my server here. http://www.saigumi.net/server.zip

You may need to remove and re-add the RakNet files to the project as it is based on relative positions and your directory structure may be wildly different.
Crud, how do I do this again?
VPB
Posts: 36
Joined: Sat Apr 10, 2004 8:02 am

Post by VPB »

Sorry saigumi, but the problem could be for a specific compiler :wink:.

And i realy appreciate that you are helping :D.

But i can't download your server file :cry: Could you heck if the file is still on the server, thanks in advance
Rizzy

Post by Rizzy »

ur right i might have forgotten to add the .lib and the extra source files

i'll have another go

ps. the server.zip is corrupted
Rizzy

Post by Rizzy »

and ofcourse thanx for ur help =]

*couldn't find edit post button*
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Crud, it worked just after I uploaded it.

I'll re-upload it again when I get home in a few hours.

RakNet is just really finicky for how it absolutely has to be set up and took me about 6 tries over a month to get situated properly. I just figured I was having massive problems because my knowledge of C++ sucks.
Crud, how do I do this again?
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

I was thinking about network support for 2080. I would be sending very little across the network, mostly array's of moves and shoot commands. Probably some inventory lists. Having never worked with networking, would you consider it something I should look into before I work out the code structure or would the basic information I need to send mean that it is something I could add retrospectively?
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

My server code is back in place. Happy downloading. http://www.saigumi.net/server.zip

The project files are VC7 (.NET) so I have no clue if they will back down to 6.0

As for moving and shoooting Raknet makes something like this trivial with it's use of RPC (Remote Procedure Calls) for light projects. Since you game isn't heavilly involved in the data it would need to send nor the speed, you should be able to integrate it later with not much more work than adding it now.
Crud, how do I do this again?
VPB
Posts: 36
Joined: Sat Apr 10, 2004 8:02 am

Post by VPB »

thanks saigumi, i'm not receiving the error anymore :D . I was an error in my code.
VPB
Posts: 36
Joined: Sat Apr 10, 2004 8:02 am

Post by VPB »

I only got a problem when i'm trying to include Multiplayer.h. Without this header its compiling.

Does anyone knows (in particular saigumi :lol: ) what the solution to this is?

I get 202 errors about IUnknown. here are some:

c:\program files\microsoft visual studio\vc98\include\unknwn.h(42) : warning C4099: 'IUnknown' : type name first seen using 'class' now seen using 'struct'
c:\program files\microsoft visual studio\3d engine\include\iunknown.h(42) : see declaration of 'IUnknown'
c:\program files\microsoft visual studio\vc98\include\unknwn.h(88) : error C2872: 'IUnknown' : ambiguous symbol
c:\program files\microsoft visual studio\vc98\include\unknwn.h(106) : error C2371: 'IUnknown' : redefinition; different basic types
c:\program files\microsoft visual studio\vc98\include\unknwn.h(42) : see declaration of 'IUnknown'
c:\program files\microsoft visual studio\vc98\include\unknwn.h(177) : error C2872: 'IUnknown' : ambiguous symbol
c:\program files\microsoft visual studio\vc98\include\unknwn.h(190) : error C2872: 'IUnknown' : ambiguous symbol
c:\program files\microsoft visual studio\vc98\include\unknwn.h(201) : error c:\program files\microsoft visual studio\vc98\include\objbase.h(554) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

Chess3D.exe - 204 error(s), 2 warning(s)
Post Reply