Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, dr_panther), 730 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
ANET; please save me!! #256110
03/14/09 17:57
03/14/09 17:57
Joined: Mar 2009
Posts: 16
X
xxGOTARxx Offline OP
Newbie
xxGOTARxx  Offline OP
Newbie
X

Joined: Mar 2009
Posts: 16
after more than 24 hours of fumbling with 3dgsNET I decided to try out ANET. This is my new problem. I placed the .dll in the wedplugin folder. I put the anet.h file in my source code folder. I used #include "anet.h" I made an empty project just to see if i had my include set up correctly, it compiles fine but I never get the game screen it just exits.

Code:
 
#include <acknex.h>
#include <default.c>
#include "anet.h"

void main()
{
	wait(1000); //added just to see if anything poped up
}
 


Shouldnt this at least give me a blank screen and wait for me to hit ESC?

Last edited by xxGOTARxx; 03/14/09 18:06.
Re: ANET; please save me!! [Re: xxGOTARxx] #256114
03/14/09 18:10
03/14/09 18:10
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Yes, it should give you a blank screen because wait(1000) does nothing. But maybe something inside "anet.h" calls the sys_exit command immediately.

There is a whole workshop about multiplayer in the tutorial, so why don't you use that first for getting started?

Re: ANET; please save me!! [Re: Tobias] #256119
03/14/09 18:16
03/14/09 18:16
Joined: Mar 2009
Posts: 16
X
xxGOTARxx Offline OP
Newbie
xxGOTARxx  Offline OP
Newbie
X

Joined: Mar 2009
Posts: 16
I couldnt find ANET tutorials, I tried the GS ones but could never make a connection to my own server, even when using local instead of IP.

Re: ANET; please save me!! [Re: xxGOTARxx] #256123
03/14/09 18:26
03/14/09 18:26
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Then, I think you wont have any better luck with ANET.

When you give no IP, it connects with "localhost", which is just the same PC. For connecting with a different PC on the LAN, you must give its IP, which on a LAN always begins with 192.168. When youre a beginner and just want to start easy, run client and server on the same PC, then you dont need to care about the IP at all.

Re: ANET; please save me!! [Re: Tobias] #256125
03/14/09 18:33
03/14/09 18:33
Joined: Mar 2009
Posts: 16
X
xxGOTARxx Offline OP
Newbie
xxGOTARxx  Offline OP
Newbie
X

Joined: Mar 2009
Posts: 16
Yep, this I know, and that I did, for some reseason even after it finds the server it then tells me "no communication established."

Thanks for the replys Tobias smile

Re: ANET; please save me!! [Re: xxGOTARxx] #256127
03/14/09 18:40
03/14/09 18:40
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Hmm, maybe its some issue with the Directplay or winsock library on your PC, that would explain why ANET doesnt work either. I've done some tests with multiplayer some time ago and found that the internal network library and ANET are both pretty reliable.

Maybe you can post the acklog.txt that you get after starting with -diag, this could tell something about whats wrong with the communication and why ANET exits immediately.

Re: ANET; please save me!! [Re: Tobias] #256128
03/14/09 18:52
03/14/09 18:52
Joined: Mar 2009
Posts: 16
X
xxGOTARxx Offline OP
Newbie
xxGOTARxx  Offline OP
Newbie
X

Joined: Mar 2009
Posts: 16
I have other development software installed like visual c# express and Visual C++ do you think they might be causing a conflic?

Last edited by xxGOTARxx; 03/14/09 19:02.
Re: ANET; please save me!! [Re: xxGOTARxx] #256132
03/14/09 19:19
03/14/09 19:19
Joined: Mar 2009
Posts: 16
X
xxGOTARxx Offline OP
Newbie
xxGOTARxx  Offline OP
Newbie
X

Joined: Mar 2009
Posts: 16
Well to trouble shoot this I took the ANET tutorial program and put it on a different computer and the client and server would not connect again. That comp isnt set on a network so I know it was running local. This is making me insane... Can't understand what is going on.

Re: ANET; please save me!! [Re: xxGOTARxx] #256146
03/14/09 21:39
03/14/09 21:39
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
There are several things that come into play:
- firewall (Microsoft, Symantec, ZoneAlarm,...)
- the command line options you used to start client and server
- your code (did you try other published network apps created with gamestudio?)

until we know more about your system, we can only guess blindly

Re: ANET; please save me!! [Re: slacer] #256149
03/14/09 21:56
03/14/09 21:56
Joined: Mar 2009
Posts: 16
X
xxGOTARxx Offline OP
Newbie
xxGOTARxx  Offline OP
Newbie
X

Joined: Mar 2009
Posts: 16
Thanks for the reply.

I have shut the firewall off and I am running no other anti-virus software.
I have tried starting the client with -cl -ip 127.0.0.1 -port 2300.
I have tried the code from ANET's 3d chat tutorial, also the SED tutorial 25 that deals with mp gaming.

The serves seams to be initializing just fine however the clients never find the server. I am about to break down and learn WinSock LoL!

Page 1 of 4 1 2 3 4

Moderated by  HeelX, Spirit 

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