|
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
User
|
User
Joined: Oct 2008
Posts: 513
|
I tried changing the order of anet.h and default.c and I then get this error: Error in 'anet.h' line 17: syntax error
<void enet_set_compatibility(var mode); > . My code at the top is now: #define PRAGMA_BIND "d3dx9_30.dll"
#define PRAGMA_BIND "ANet.dll"
#include "anet.h"
#include <default.c>
#include <acknex.h>
#include <windows.h>
|
|
|
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
OP
Serious User
|
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
User
|
User
Joined: Oct 2008
Posts: 513
|
|
|
|
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
Serious User
|
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:
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:
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
OP
Serious User
|
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
Serious User
|
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.
Ubi bene, ibi Patria.
|
|
|
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
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
i didn't modify the default.c but my own script
Ubi bene, ibi Patria.
|
|
|
|