Gamestudio Links
Zorro Links
Newest Posts
Conversion to Easylanguage, pls
by jcl
Today at 08:41
Error with data - EURUSD
by jcl
Today at 08:38
Game Maker Terrain editor 2 (GMTE2) to GST terrain (MED)
by NeoDumont
Today at 01:13
pp pixelation with proper blurring
by 3run
Yesterday at 21:08
extern static array of structs
by sdh309795gaas
Yesterday at 20:33
Cyrpto currency arbitrage
by Sphin
Yesterday at 19:22
Experienced 2D|3D Character artist|Concept Artist@ Indie Prices|
by DeathstalkerArs
Yesterday at 18:40
AUM Magazine
Latest Screens
Forgotten Tales - Demo version
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Who's Online
10 registered (Iglarion, Kartoffel, jyd, StefanS, Dalla, Matt_Aufderheide, jenGs, wingt, oligodar, 1 invisible), 135 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
lizmerrill, QuangDalat, davefollmers, abcdef656188, luisd
17871 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
Expert

Registered: 06/23/06
Posts: 2640
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
Expert

Registered: 06/23/06
Posts: 2640
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
Expert

Registered: 06/23/06
Posts: 2640
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: 186
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: 1816
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!!!!!!!!!!!!!!!!!!!!!
_________________________
team INOV:
CURRENT PROJECTS: http://www.youtube.com/user/teamINOV?feature=mhee
FOLLOW US on twitter: http://twitter.com/team_iNoV
check our blog: http://scionwars.blog.com/
shaders: http://shadec.project-havoc.com/
networking: http://www.anet-plugin.com/

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

Registered: 06/23/06
Posts: 2640
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: 2838
Loc: take me down to the paradise c...
Originally Posted By: darkangry
AFTER A BACKUP OF THE ORIGINAL THAT IS!!!!!!!!!!!!!!!!!!!!!
Why are you mad?? From alpha12's question??

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

Registered: 05/07/09
Posts: 1816
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
_________________________
team INOV:
CURRENT PROJECTS: http://www.youtube.com/user/teamINOV?feature=mhee
FOLLOW US on twitter: http://twitter.com/team_iNoV
check our blog: http://scionwars.blog.com/
shaders: http://shadec.project-havoc.com/
networking: http://www.anet-plugin.com/

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

Registered: 08/25/05
Posts: 186
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, Rei_Ayanami, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) 3dgamestudio.net