Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,388 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: sorry one more multiply player question [Re: PrenceOfDarkness] #350082
12/13/10 16:04
12/13/10 16:04
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
As far as I understand your script, you're sending to the ID of the last joined client, but this client has not created any entity. So send_skill_id2 can not work in this case because no client created entity is found.

Re: sorry one more multiply player question [Re: PrenceOfDarkness] #350083
12/13/10 16:10
12/13/10 16:10
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Where is JCL's message? It was right before your last post Prince.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: sorry one more multiply player question [Re: jcl] #350084
12/13/10 16:12
12/13/10 16:12
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline OP
Serious User
PrenceOfDarkness  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,305
New York
okay JCL you were right. Here is my main function for anyone actually following this:

Code:
void main()
{
	if (!connection) { // not started with -cl / -sv -cl?
		if (!session_connect(app_name,"")) // no client found on the localhost?
		session_open(app_name); // start as server
	}
	
	do{wait(1);}
	while(dplay_status < 2); // wait until the session is opened or joined
	
	dplay_localfunction = 2;		//run actions on both server and client
	
	level_load("valiance.wmb");	// load the level
	
	if(connection & CONNECT_SERVER)	//are we a server?
	{
		ent_create("testing.mdl",vector(100,0,0),fItem); //OMG a monster was killed!!! Drop an item ont he server!
	}
	else
	{
		ent_create("testing.mdl",vector(0,0,0),NULL);
	}
}



Last edited by PrenceOfDarkness; 12/13/10 16:13.

"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
Re: sorry one more multiply player question [Re: 3run] #350085
12/13/10 16:16
12/13/10 16:16
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Here's a function that should work also for clients without created entities:

Code:
function send_skill_id2(var id, var* skill, var mode)
{
   ENTITY e;
   e.client_id = id;
   e.eflags = 1<<4;
   return send_skill_to(&e,skill,mode);
}



As to the question of an A7 patch - A7 is not in production anymore. We release patches in case of serious bugs, but so far nothing serious is known for A7. The known A7 bugs have simple workarounds.

As you found this bug, we can certainly do something for you when you want to upgrade to A8 - please contact the support in that case. A8 has not much multiplayer advantages over A7 though, the major difference is that it uses ENET instead of DirectPlay.

Re: sorry one more multiply player question [Re: jcl] #350086
12/13/10 16:28
12/13/10 16:28
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline OP
Serious User
PrenceOfDarkness  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,305
New York
WOW thank you very much!!!


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
Page 2 of 2 1 2

Moderated by  old_bill, Tobias 

Gamestudio download | 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