Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Quad, TipmyPip, degenerate_762, AndrewAMD, Nymphodora), 997 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 10 of 10 1 2 8 9 10
Re: A6Network - Frozen Throne [Re: William] #113546
04/26/07 04:38
04/26/07 04:38
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
*Dusty3D

RakNet has been made by one man, Rakkar. As the engine is very popular, he don't cares for you 60 users The thing is, if I ship a piece of raknet with my product, I need to pay the license fees. After that I can do with my own code what I want, sure.

*William

Sure

*BoH_Havoc

No I compile RakNet myself in the plugin project. I need to do this because I made several changes to RakNet.

Ok, I will further develop this plugin Your idea with the only-glue code is nice. I also will give you more updates here what is currently developed.

But I still try to cooperate with Rakkar, because most users won't get the thing compiled, even with a step-by-step manual.

Bloodline

Re: A6Network - Frozen Throne [Re: TWO] #113547
04/26/07 16:39
04/26/07 16:39
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Update

// [25/4/2007 Bloodline] - New stage: Alpha
// [25/4/2007 Bloodline] - Replaced mutex locks with a SingelConsumerProducer class -> More speed
// [26/4/2007 Bloodline] - Tested and fixed server event code

Server event code? Yes, instead of a function which returns a packet ID every frame (very very slow, because only one packet can be processed per frame) the plugin calls a function you set.

Bsp:

void Event_NewPlayer()
{
sys_exit("");
}

Net_SvEventSetFunction(Net_EventNewIncommingConntection, str_create("Event_NewPlayer"));

Re: A6Network - Hot Throne [Re: TWO] #113548
04/26/07 16:43
04/26/07 16:43
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Ich freu mich schon drauf
Mach bloss so weiter
HAbe das Teil mal aufgewärmt (siehe Titel )


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: A6Network - Hot Throne [Re: Puppeteer] #113549
04/27/07 11:35
04/27/07 11:35
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Quote:


void Event_NewPlayer()
{
sys_exit("");
}

Net_SvEventSetFunction(Net_EventNewIncommingConntection, str_create("Event_NewPlayer"));



You have a memory leak

Just curious, though: what code do you use internally for calling that c-script/lite-c function from C++?

Re: A6Network - Hot Throne [Re: Excessus] #113550
04/27/07 14:02
04/27/07 14:02
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Lol, tell me why I'm not a C++ god and my code is very far from beeing perfect.

Code:

// ***************************************************************
// Copyright (C) 2006/2007 Bloodline except otherwise marked.
// All Rights reserved.
// -------------------------------------------------------------
// file: Net.Server.Events | date: 10/4/2007
// -------------------------------------------------------------
// purpose:
// ***************************************************************
// [10/4/2007 Bloodline] - Created

long Net_SvEventFunctions[255];

DLLFUNC void Net_SvEventFunctionsReset()
{
for(int i=0;i<254;i++)
Net_SvEventFunctions[i]=NULL;
}

DLLFUNC void Net_SvEventSetFunction(int ID, STRING* Name)
{
long Func = engine_getscript( Name->chars );

if(Func!=NULL)
{
if(ID<0 || ID>=255) Net_Error_Raise("Net: Net_SvEventSetFunction - ID is not valid!");

Net_SvEventFunctions[ID] = Func;
}
else
Net_Error_Raise("Net: Net_SvEventSetFunction - Function not found!");
}

void Net_SvEventExecuteFunction(int ID, long Arg1, long Arg2, long Arg3, long Arg4)
{
if(ID<0 || ID>=255) Net_Error_Raise("Net: Net_SvEventExecuteFunction - ID is not valid!");

if(Net_SvEventFunctions[ID]!=NULL)
{
engine_callscript( Net_SvEventFunctions[ID], Arg1, Arg2, Arg3, Arg4 );
}
}



Re: A6Network - Hot Throne [Re: TWO] #113551
04/28/07 07:28
04/28/07 07:28
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Thanks bloodline. I'm still very new to the engine SDK, so I don't know all functions yet. engine_getscript and engine_callscript.

You have a memory leak because you use str_create to create a string without removing it. str_create creates a string (which takes memory), and returns a pointer to that memory. You pass that pointer to a function, but unless the function removes the string (which is a bad idea because then it will always remove the strings you pass to it), the string will stay in memory but you have no way of accessing it because you lost the pointer.

Re: A6Network - Hot Throne [Re: Excessus] #113552
04/28/07 08:39
04/28/07 08:39
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Ah ok. Yes that's indeed not wanted, but as this plugin was made for C-Script I had to use strings. I'll change that, thanks

Re: A6Network - Hot Throne [Re: TWO] #113553
04/30/07 22:06
04/30/07 22:06
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Update

// [26/4/2007 Bloodline] - Added more general error system
// [28/4/2007 Bloodline] - Optimized the sending functions
// [28/4/2007 Bloodline] - Replaced the plugin's linked list class with STL lists
// [29/4/2007 Bloodline] - Introduced Net_SvRedirectClient (Untested)
// [29/4/2007 Bloodline] - Changed all signatures from STRING to char
// [30/4/2007 Bloodline] - Added var tacker to server code

Re: A6Network - Hot Throne [Re: TWO] #113554
05/01/07 17:43
05/01/07 17:43
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
"But the disadvantage is that everyone has to compile it for themselves. Some newbies might find that difficult or cumbersome. "

For people who are in the "don't know", you could always base instructions off a free downloadable OS compiler of choice. Even better make a video or macro using that compiler to take you through the compilation process. This way you sell your code, they download the free compiler and raknet, run the instructions, and voila! Seems within EULA?

However:
1) Is there a way to make your code secure (ie unreadable) before the raknet compilation process though? This is commercially important too.
2) Does Rakkar mind you distributing for free? If so, you could compile a small thin taste of your full DLL for free and then gauge how support would be for a more robust 30-50 USD product. Perhaps even just sell the source at a higher price (200 usd?) based off what people see and get in the free compiled version.

Page 10 of 10 1 2 8 9 10

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