Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (TipmyPip, AndrewAMD, Quad, aliswee, degenerate_762), 970 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Multiplayer Demo using ANet #281773
07/28/09 15:19
07/28/09 15:19
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
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.

Last edited by Germanunkol; 07/30/09 23:21.

~"I never let school interfere with my education"~
-Mark Twain
Re: Multiplayer Demo using ANet [Re: Germanunkol] #281870
07/29/09 05:51
07/29/09 05:51
Joined: Oct 2006
Posts: 175
G
Gumby22don Offline
Member
Gumby22don  Offline
Member
G

Joined: Oct 2006
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

Re: Multiplayer Demo using ANet [Re: Gumby22don] #281879
07/29/09 07:49
07/29/09 07:49
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
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
Re: Multiplayer Demo using ANet [Re: Germanunkol] #281948
07/29/09 16:15
07/29/09 16:15
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
Broozar was kind enough to host the .rar file. Updated link above.


~"I never let school interfere with my education"~
-Mark Twain
Re: Multiplayer Demo using ANet [Re: Germanunkol] #282040
07/30/09 01:39
07/30/09 01:39
Joined: Aug 2005
Posts: 186
Beneath the Surface
alpha12 Offline
Member
alpha12  Offline
Member

Joined: Aug 2005
Posts: 186
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?

Re: Multiplayer Demo using ANet [Re: alpha12] #282046
07/30/09 02:57
07/30/09 02:57
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
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!!!!!!!!!!!!!!!!!!!!!

Re: Multiplayer Demo using ANet [Re: darkinferno] #282064
07/30/09 07:39
07/30/09 07:39
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
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
Re: Multiplayer Demo using ANet [Re: Germanunkol] #282137
07/30/09 13:58
07/30/09 13:58
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
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??

Re: Multiplayer Demo using ANet [Re: Cowabanga] #282141
07/30/09 14:10
07/30/09 14:10
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
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

Re: Multiplayer Demo using ANet [Re: darkinferno] #282238
07/30/09 22:17
07/30/09 22:17
Joined: Aug 2005
Posts: 186
Beneath the Surface
alpha12 Offline
Member
alpha12  Offline
Member

Joined: Aug 2005
Posts: 186
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..

Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1