|
ANet 1.4.0.0 public Beta
#379547
08/04/11 09:08
08/04/11 09:08
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Hello multiplayer developers, I proudly present the new public ANet Beta (1.4.0.0). A lot of time has passend since the last update of ANet (I think it's already a year). This was due to the fact that I had nearly no free time because of another very important project. But in the last month I had enough time to finish all features I wanted to see in the new update. I also totally reworked some parts of ANet. Here a small overview of the highlights:* C-Script is not support anymore which leads into a much better interface * UPnP functions for automatic portmapping (special thanks to JustSid who shared his project with me!) * totally rewritten VoIP feature (now Peer-2-Peer based, new features like AGC, input threshold, denoiser,...) * totally rewritten socket functions (now also tcp sockets can be created) * now it's also possible to use different scripts for client and server WITHOUT producing additional traffic (variable names are not sent anymore in this mode) * new internet and lan serverlist template * ... Please notice that you can also try this Beta without owning a full version of ANet. ANet will automatically start in Demo Mode.For those who already worked with ANet, read the updates/changes section of the manual, please. There have been a lot of changes. The examples and workshops of the homepage have not been updated to the new version yet. Please download the new ANet version here: Download ANet 1.4.0.0 If you find any bugs or have wishes for changes, improvements or new features feel free to send me a message or post in this thread! Have fun while testing!
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: ANet 1.4.0.0 public Beta
[Re: alibaba]
#379572
08/04/11 11:59
08/04/11 11:59
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
The "arrayname" thing was because of C-Script and is now not needed anymore. Thus you only have to pass the address of the thing you want to send, second parameter is the size in byte you want to send. Example:
double TestArray[10];
void send()
{
//Sends all 10 elements of TestArray
enet_sendto(TestArray, sizeof(double) * 10, BROADCAST);
//Send only element 4:
enet_sendto(&(TestArray[4]), sizeof(double) * 1, BROADCAST);
}
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: ANet 1.4.0.0 public Beta
[Re: Dark_samurai]
#379573
08/04/11 12:04
08/04/11 12:04
|
Joined: May 2008
Posts: 2,113 NRW/Germany
alibaba
Expert
|
Expert
Joined: May 2008
Posts: 2,113
NRW/Germany
|
Ah okay, so when i want to sendn just the only part of an array then it would look like this? Example:
var points[12];
void bla()
{
enet_sendto(&(points[enet_get_clientid()]), sizeof(var) * 1, BROADCAST);
}
And is it possible to tell the meaning of playerstring and playervar?
Last edited by alibaba; 08/04/11 12:05.
|
|
|
Re: ANet 1.4.0.0 public Beta
[Re: alibaba]
#379575
08/04/11 12:13
08/04/11 12:13
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
It's something like global variables for every client (can be used for health, armor, ammo,...). But I'm currently thinking about removing this feature because you can easily do the same with a global array. My plans for ANet are to make things more simple and compact again. I don't think that playervars were ever used by users. That new mantra is also the reason why I introduced enet_sendto() (1 function for all so to say). If nobody is using the playervar feature, I will delete it. So please tell me if any of you want this feature to stay
Last edited by Dark_samurai; 08/04/11 12:14.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: ANet 1.4.0.0 public Beta
[Re: alibaba]
#379596
08/04/11 15:44
08/04/11 15:44
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
Serious User
|
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
Mh if i remember correctly, i used Playervars in my Bombermanproject, because changing the Var for one client caused an autoupdate for all clients.(score, bombcount etc)
I'll take a look into it as soon as iam home today.
edit: by the way, is it possible to use Anet from C# or C/C++ too or is it absolutely LiteC only?
Greets Rackscha
Last edited by Rackscha; 08/04/11 15:45.
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: ANet 1.4.0.0 public Beta
[Re: Rackscha]
#379597
08/04/11 15:53
08/04/11 15:53
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Yes but only in combination with Gamestudio, but I never tried it!
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
|