Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 600 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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