Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, degenerate_762), 907 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
ANet Problem #286866
08/27/09 21:50
08/27/09 21:50
Joined: Aug 2009
Posts: 34
X
xDoug Offline OP
Newbie
xDoug  Offline OP
Newbie
X

Joined: Aug 2009
Posts: 34
I didn't see this section in the forum, so I will ask the same question I did in the gamestudio for beginners.

I downloaded the ANet example, and I'm trying to create a Multiplayer Game.
However when I compile my main.c, I get the following error:

Error in mp.c line 189

ptr_remove undeclared identifier

if(ptr_for_handle(players[i].skill[40]!=0{ptr_remove(ptr_for_handle(players[i].skill[40]))
}


Thanks

Re: ANet Problem [Re: xDoug] #286872
08/27/09 22:09
08/27/09 22:09
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Don`t make doubleposts !!!!!!!!!!!!!!!

Re: ANet Problem [Re: Widi] #286899
08/28/09 06:55
08/28/09 06:55
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
What gamestudio version do you have? Which example do you mean, the 3d chat example?

Last edited by Dark_samurai; 08/28/09 06:55.

ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: ANet Problem [Re: Dark_samurai] #286908
08/28/09 07:44
08/28/09 07:44
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
I don't think you need handles at all. A pointer can be stored directly in a skill:

you = ent_create(...);

players[myClientID].skill[40] = you;

later on:

you = players[myClientID].skill[40];
if(you) ptr_remove(you);
players[myClientID].skill[40] = 0;


~"I never let school interfere with my education"~
-Mark Twain
Re: ANet Problem [Re: xDoug] #287521
09/01/09 09:10
09/01/09 09:10
Joined: Aug 2009
Posts: 46
Deggendorf, Bayern
Fisch Offline
Newbie
Fisch  Offline
Newbie

Joined: Aug 2009
Posts: 46
Deggendorf, Bayern
I have another problem. I got the free-version of ANet and wrote a little application.
When I test it in SED it works fine.
But running the published EXE-File, I get no connection.
Can you please help me?

Last edited by Fisch; 09/01/09 09:17.
Re: ANet Problem [Re: Fisch] #287548
09/01/09 11:22
09/01/09 11:22
Joined: May 2008
Posts: 33
Russia/Netherlands
H
Hand_Of_Law Offline
Newbie
Hand_Of_Law  Offline
Newbie
H

Joined: May 2008
Posts: 33
Russia/Netherlands
Originally Posted By: Fisch
I have another problem. I got the free-version of ANet and wrote a little application.
When I test it in SED it works fine.
But running the published EXE-File, I get no connection.
Can you please help me?

Make sure that the anet.dll and the key file are in the directory of the exe file. They are not added standard by the publish function.
Also ensure that no firewall is blocking.

Last edited by Hand_Of_Law; 09/01/09 11:22. Reason: spelling
Re: ANet Problem [Re: xDoug] #287559
09/01/09 12:09
09/01/09 12:09
Joined: Aug 2009
Posts: 46
Deggendorf, Bayern
Fisch Offline
Newbie
Fisch  Offline
Newbie

Joined: Aug 2009
Posts: 46
Deggendorf, Bayern
Thank you, but when I copy ANet.dll in the same folder and execute the EXE-File,
it closes itself immidiately after starting.
I have no key.dll, because its only the Demo.
The simple 3D chat example is working.

Don't understand it!


The Internet is full of answers, even to never asked questions! laugh
Re: ANet Problem [Re: Fisch] #287590
09/01/09 14:30
09/01/09 14:30
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Then you have done something wrong. Try to run the script in SED again. If it is working, do a publish and copy the anet.dll into the folder that was created through the publish function.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: ANet Problem [Re: Dark_samurai] #287604
09/01/09 15:13
09/01/09 15:13
Joined: Aug 2009
Posts: 46
Deggendorf, Bayern
Fisch Offline
Newbie
Fisch  Offline
Newbie

Joined: Aug 2009
Posts: 46
Deggendorf, Bayern
When I copy the DLL in the folder and start the game,
I see a black window for less than a second and the game shuts down with an error-sound.
I made a small video of the problem:
anet_problem.flv

Thank you.


The Internet is full of answers, even to never asked questions! laugh
Re: ANet Problem [Re: Fisch] #287621
09/01/09 17:27
09/01/09 17:27
Joined: May 2008
Posts: 33
Russia/Netherlands
H
Hand_Of_Law Offline
Newbie
Hand_Of_Law  Offline
Newbie
H

Joined: May 2008
Posts: 33
Russia/Netherlands
A wild guess, but could it bee that a splash image which should be loaded on entry is missing ?

Page 1 of 3 1 2 3

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