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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, degenerate_762), 1,430 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 11 of 17 1 2 9 10 11 12 13 16 17
Re: ANet - Full version available now! [Re: Carlos3DGS] #240337
12/10/08 15:05
12/10/08 15:05
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
What if you don't use the #include <default.c>?

Do you have ICQ? If so, contact me please (makes it easier for me).


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: ANet - Full version available now! [Re: Carlos3DGS] #240338
12/10/08 15:05
12/10/08 15:05
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
I tried changing the order of anet.h and default.c and I then get this error:

Quote:
Error in 'anet.h' line 17: syntax error

<void enet_set_compatibility(var mode);
>
.


My code at the top is now:
Code:
#define PRAGMA_BIND "d3dx9_30.dll"
#define PRAGMA_BIND "ANet.dll"

#include "anet.h"
#include <default.c>

#include <acknex.h>
#include <windows.h> 



"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: ANet - Full version available now! [Re: Dark_samurai] #240339
12/10/08 15:06
12/10/08 15:06
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
one sec, its been a long time since I dont use ICQ.
Let me look for my Id and I will send it to you in a PM


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: ANet - Full version available now! [Re: Carlos3DGS] #240340
12/10/08 15:07
12/10/08 15:07
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Your first version was correct! (the order)

I think their is something wrong with the default.c file. Do you use A7.60?


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: ANet - Full version available now! [Re: Dark_samurai] #240342
12/10/08 15:11
12/10/08 15:11
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
version 7.06.1


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: ANet - Full version available now! [Re: Carlos3DGS] #240347
12/10/08 15:24
12/10/08 15:24
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
i had the same problem and i did that status info on this kind of way:

Code:
FONT* arial_font = "Arial#20b"; // truetype font 

PANEL* stats =
{
  pos_x = 4; pos_y = 4;
  digits(10,0,"Ping: %.f",arial_font,1,ping);
  digits(10,20,"Data in: %.f",arial_font,1,data_in);
  digits(10,40,"Data out: %.f",arial_font,1,data_out);
  
  
  flags =  VISIBLE;
}


and in main loop you need to add this:

Code:
ping = enet_get_ping(); //get the current ping 
data_in = enet_get_datatransfer(2); //get the received data size of the last second 
data_out = enet_get_datatransfer(1); //get the sent data size of the last second 



you can easily implement hiding/showing of that status panel if f11 e.g. is pressed

Last edited by cerberi_croman; 12/10/08 15:25.


Ubi bene, ibi Patria.
Re: ANet - Full version available now! [Re: croman] #240348
12/10/08 15:27
12/10/08 15:27
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
@cerberi_croman: Which version do you have? Also such an old one?

Maybe an update to a newer gamestudio version could help!


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: ANet - Full version available now! [Re: Dark_samurai] #240349
12/10/08 15:31
12/10/08 15:31
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
yup some older one.
i tried updating to newer version but i didnt like it. i experienced some weird bugs. current version is completely okay for my current projects + i've easily replaced that default.c with my own stats code. smile



Ubi bene, ibi Patria.
Re: ANet - Full version available now! [Re: croman] #240355
12/10/08 15:49
12/10/08 15:49
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
I updated and still get the same error, but I would like to use the default.c

@ cerberi_croman
Could you send me your default.c?


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: ANet - Full version available now! [Re: Carlos3DGS] #240356
12/10/08 16:04
12/10/08 16:04
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
i didn't modify the default.c but my own script



Ubi bene, ibi Patria.
Page 11 of 17 1 2 9 10 11 12 13 16 17

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