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, AndrewAMD, Imhotep, TipmyPip, Edgar_Herrera), 809 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
entity placed in WED don't run on client #442014
06/08/14 15:20
06/08/14 15:20
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Hi all,

Welcome to another volume of my multiplayer threads grin . Anyway back to the point; entities' actions that I have placed in WED do not run on the client. When 'local' marked on but also when marked off.

On the server or singleplayer it works fine.

Now if I create the entity through ent_create on the server, the entity works fine on the client.

An example of one of the actions that does not work for the client (this one is local by the way);

Code:
action world_grass_marker1()
{	
set(my,INVISIBLE | PASSABLE);
 while (my.STATE > 0) {
 my.STATE -= 0.5;	
 ent_createlocal("WorldGrass1.mdl",vector(my.x -1600 + random(3200),my.y -1600 + random(3200),my.z),world_grass1); 
 if (my.STATE <= 0) break;
 }
}



I know it does not run at all since the entity is not invisible/passable on the client. Also when I add an ent_remove(me) as first line of the entities, nothing happens (also not an error message), just nothing.

Thanks for taking the time.

Re: entity placed in WED don't run on client [Re: Reconnoiter] #442015
06/08/14 15:44
06/08/14 15:44
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Have a look at dplay_localfunction.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: entity placed in WED don't run on client [Re: Superku] #442016
06/08/14 16:13
06/08/14 16:13
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Thanks the problem was that I forgot to set dplay_localfunction for the client too (forgot to add it when implementing menu's etc.).


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