Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,227 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Door swinging open [Re: Gerrit] #236694
11/15/08 21:28
11/15/08 21:28
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
OK then.

Two things to try.

Firstly, make sure the "door_event" function is physically higher in the source code than the door_action,
or a prototype of it at least. If this is not so, it will still compile, but fails on events.

If that doesnt help, then try changing the event flags in the door action from the existing
Code:
my.emask = (ENABLE_BLOCK | ENABLE_ENTITY | ENABLE_TRIGGER);
to be
Code:
my.emask |= (ENABLE_BLOCK | ENABLE_ENTITY | ENABLE_TRIGGER);
but of a guesswork this one.

Otherwise, post the door_action function, in case something there is scrambling the flags.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Door swinging open [Re: EvilSOB] #236744
11/16/08 10:45
11/16/08 10:45

M
mercuryus
Unregistered
mercuryus
Unregistered
M



The problem is c_rotate - I have a similar problem.
There is no event handling with c_rotate any more.

If you want to trigger events you have to use a workarround with c_move.

like this:

// save the position of the door
vec_set(temp, my.x);
// move to trigger events
c_move(me, nullvector, vector(0,0,1), 0);
// restore position
vec_set(my.x, temp);



Re: Door swinging open [Re: ] #236777
11/16/08 15:06
11/16/08 15:06
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
Originally Posted By: mercuryus
The problem is c_rotate - I have a similar problem.
There is no event handling with c_rotate any more.

If you want to trigger events you have to use a workarround with c_move.

like this:

// save the position of the door
vec_set(temp, my.x);
// move to trigger events
c_move(me, nullvector, vector(0,0,1), 0);
// restore position
vec_set(my.x, temp);



Would this be an error in the manual then?


I was once Anonymous_Alcoholic.

Code Breakpoint;
Re: Door swinging open [Re: heinekenbottle] #236803
11/16/08 18:04
11/16/08 18:04

M
mercuryus
Unregistered
mercuryus
Unregistered
M



As far as I understand JCL (the developer of 3dgs) the GLIDE-flag is always set with c_rotate and because of this some events are not triggered.

He moved the bug to the future forum:
http://www.coniserver.net/ubb7/ubbthreads.php?ubb=showflat&Number=234472#Post234472


Re: Door swinging open [Re: ] #236910
11/17/08 04:21
11/17/08 04:21
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Just in case, try adding this code to the door_action,
somewhere early.
Code:
   ...
   set(my,POLYGON);
   wait(1); 
   c_setminmax(me);
   ...
we may get lucky.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Door swinging open [Re: EvilSOB] #237076
11/17/08 22:26
11/17/08 22:26
Joined: Sep 2005
Posts: 75
CA, Orange County
Gerrit Offline OP
Junior Member
Gerrit  Offline OP
Junior Member

Joined: Sep 2005
Posts: 75
CA, Orange County
Gentlemen,
Thank you very much for your help. Both this statement above and the work around with c_move not only solved my problem but did help me understand some of this a little better.

I did followed your link Mercuvus, I live in California but I am orginally from Belgium and speek Flemish so I understood the message in German.
Thanks you all again for your help
Best regards
Gerrit

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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