Links
AUM Magazine
Newest Posts
[SUB] Cascaded Shadow Mapping
by JulzMighty
3 minutes 22 seconds ago
Wierd invalid pointer.
by EvilSOB
14 minutes 35 seconds ago
Level Load Delay
by Richi007
Today at 04:07
Mario Galaxy!
by JulzMighty
Today at 03:15
Specific collisions
by Richi007
Today at 02:44
Latest Screens
Sea
Gravix
Secret Of The Sword - Castle Rooms
Level Design Contest Entry: DM Garages [+Download]
That Funny Ball v1.0
Who's Online
28 registered (badapple, Cariboo, bk9iq, 82RJZAE, Blink, Bone, ChrisB, Damocles_, 3 invisible), 80 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
diddy, CereZ, fmmrhx, dc_domo, Jack_Walker
14931 Registered Users
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#281773 - 07/28/09 17:19 Multiplayer Demo using ANet
Germanunkol Offline
Serious User

Registered: 06/23/06
Posts: 1945
Loc: Earth
Hi. Upon request I set up a demo that shows what dark_samurai's ANet plugin can do. Since multiple people asked to see the demo, here it is in a slightly updated version.

ANet's not mine:
Note that I do not include the ANet files in the demo, as they're not mine. You can download the ANet demo to use with my code. I included a readme file in my download which explains where to get Anet and how to set up a connection.

Link:
www.caffier.net/download/MultiplayerDemo.rar
Edit: Please not that ANet.h needs to go into the includes folder as well, not the demo folder. It's wrong in the readme, my bad.

Features:
-This demo was not meant to showcase any game, please ignore the default texture and models and boring code. :P
-The demo features basic movement prediction and movement interpolation to smooth out the movement and rotation of players.
-It also shows a connection and disconnection process, a simple scoring system and shooting.
-I should say that I am not an expert in ANet-coding, I am simply a user and cannot guarantee that any of the code is 100% correct, I'm sure there are simpler ways to setup some parts of the connection. However, I did comment the functions in the code, feel free to change things.

Feedback
Would be glad about any feedback on how this works out.
I'm also available for further help, so PM me, post here, or add me to your icq, msn or yahoo account. I can try the demo with you, but I cannot start an internet-server, because my router does not allow me to, for some reason (we could never get my port-forwarding to work).
Many questions should be answered in the readme file though, so make sure to read that.


Edited by Germanunkol (07/31/09 01:21)
_________________________
~"I never let school interfere with my education"~
-Mark Twain

Top
#281870 - 07/29/09 07:51 Re: Multiplayer Demo using ANet [Re: Germanunkol]
Gumby22don Offline
Member

Registered: 10/27/06
Posts: 175
This is an excellent base to work from. Thankyou so much for contributing. I'm sure I'll refer to this as I play with trying to get multiplayer working for myself.

Don
have a great day

Top
#281879 - 07/29/09 09:49 Re: Multiplayer Demo using ANet [Re: Gumby22don]
Germanunkol Offline
Serious User

Registered: 06/23/06
Posts: 1945
Loc: Earth
Glad I could help you smile

If you want to get to know multiplayer, I found it good to start with a chat application. You could use this demo as a base and put a chat function and a EVENT_RECEIVE_CHAT in.
_________________________
~"I never let school interfere with my education"~
-Mark Twain

Top
#281948 - 07/29/09 18:15 Re: Multiplayer Demo using ANet [Re: Germanunkol]
Germanunkol Offline
Serious User

Registered: 06/23/06
Posts: 1945
Loc: Earth
Broozar was kind enough to host the .rar file. Updated link above.
_________________________
~"I never let school interfere with my education"~
-Mark Twain

Top
#282040 - 07/30/09 03:39 Re: Multiplayer Demo using ANet [Re: Germanunkol]
alpha12 Offline
Member

Registered: 08/25/05
Posts: 180
Loc: Beneath the Surface
hmm error...
Code:
Error in  'C:\Program Files (x86)\GStudio7\include\default.c' line 176: 'enet_get_connection' undeclared identifier
< 				anet_connection = enet_get_connection();
 >


any idea?

Top
#282046 - 07/30/09 04:57 Re: Multiplayer Demo using ANet [Re: alpha12]
darkinferno Offline
Serious User

Registered: 05/07/09
Posts: 1193
Loc: at my pc (duh)
u maye have to download default.c from the Anet website n replace the one in the GS include folder, AFTER A BACKUP OF THE ORIGINAL THAT IS!!!!!!!!!!!!!!!!!!!!!
_________________________
-Anet Professional
-Gstudio A7 Professional
lead designer, scripter, Scion Game Dev Team:
scion screens and videos: http://www.youtube.com/profile?user=darkInferno360#g/u

Top
#282064 - 07/30/09 09:39 Re: Multiplayer Demo using ANet [Re: darkinferno]
Germanunkol Offline
Serious User

Registered: 06/23/06
Posts: 1945
Loc: Earth
I think you may be missing the Anet.h file, you need to copy that from the ANet demo (where the dll was) into either your 'include' folder or the folder that contains my files. Both should work.
Sorry if I didn't mention this in the readme.
_________________________
~"I never let school interfere with my education"~
-Mark Twain

Top
#282137 - 07/30/09 15:58 Re: Multiplayer Demo using ANet [Re: Germanunkol]
Cowabanga Offline
Expert

Registered: 08/21/08
Posts: 2790
Loc: Peach Creek
Originally Posted By: darkangry
AFTER A BACKUP OF THE ORIGINAL THAT IS!!!!!!!!!!!!!!!!!!!!!
Why are you mad?? From alpha12's question??
_________________________
Kambutarna Games - Facebook - Twitter - deviantART

Top
#282141 - 07/30/09 16:10 Re: Multiplayer Demo using ANet [Re: Cowabanga]
darkinferno Offline
Serious User

Registered: 05/07/09
Posts: 1193
Loc: at my pc (duh)
Originally Posted By: Cowabanga
Originally Posted By: darkangry
AFTER A BACKUP OF THE ORIGINAL THAT IS!!!!!!!!!!!!!!!!!!!!!
Why are you mad?? From alpha12's question??
i wasnt angry, i'm stressing that the file should be backed up
_________________________
-Anet Professional
-Gstudio A7 Professional
lead designer, scripter, Scion Game Dev Team:
scion screens and videos: http://www.youtube.com/profile?user=darkInferno360#g/u

Top
#282238 - 07/31/09 00:17 Re: Multiplayer Demo using ANet [Re: darkinferno]
alpha12 Offline
Member

Registered: 08/25/05
Posts: 180
Loc: Beneath the Surface
Originally Posted By: darkinferno
u maye have to download default.c from the Anet website n replace the one in the GS include folder, AFTER A BACKUP OF THE ORIGINAL THAT IS!!!!!!!!!!!!!!!!!!!!!
i was already did that,next time please watch your word.

Originally Posted By: Germanunkol
I think you may be missing the Anet.h file, you need to copy that from the ANet demo (where the dll was) into either your 'include' folder or the folder that contains my files. Both should work.
Sorry if I didn't mention this in the readme.

i was already copy that to your folder but error,fixed when copy to include,the ping quite high tough for local, 7ms o_0,yeah it's really good base to start on,thx again..

Top
Page 1 of 2 1 2 >


Moderator:  HeelX, Lukas, Shadow969, VeT 

lite-c | chip programmers | download | shop | resources | magazine | manual | support faq | wiki | bugs | beta features | forecast

Conitec Datasystems, Inc · 5000 Thorne Drive, Suite F · La Mesa, CA 91941 · Tel +1 (619) 462-0515 · Fax +1 (619) 462-0519 · info (at) 3dgamestudio.net