Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, dr_panther, Quad), 935 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
A7 c_move() Collision bug? German/English #257118
03/20/09 15:19
03/20/09 15:19
Joined: Oct 2007
Posts: 40
Switzerland
N
Nikozu86 Offline OP
Newbie
Nikozu86  Offline OP
Newbie
N

Joined: Oct 2007
Posts: 40
Switzerland
Hallo zusammen.
3DGS A7.6

Ich habe durch Zufall einen heiklen Bug entdeckt.
Sobald ich in WED ein Haus-Modell(.mdl) um mehr als 90 Grad drehe, funzt die c_move-Kollisionsabfrage nicht mehr korrekt. Der Player geht durch die Wände! c_trace() erkennt jedoch die polygon-genaue Form.
J,a das Haus hat my.polygon = on; & my.passable = off.

So blöd bin nun auch wieder nicht. :-)

Sobald ich das Haus wieder in die Rotate = 0,0,0 setze (in WED!), funzt Alles tip-top!
Kann also nicht am Script liegen.

---------------------
Hi Folks!
I found a Collision bug from c_move().
When i rotate any house-model (.mdl) more than 90 degrees IN WED, build and run, sometimes the player can walk/run through the house!
C_trace() works good.
When i set the rotation from the house back to 0,0,0 degrees (in WED!) build and run it, everything works perfect again.
So, it`s not my programming-fault!

And yes, the house has My.polygon = on; and My.passable = off;

My brain is still working :-D

I`m using A7.66.4


Last edited by Nikozu86; 03/20/09 18:20.
Re: A7 c_move() Collision bug? German/English [Re: Nikozu86] #257121
03/20/09 15:52
03/20/09 15:52
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
your bounding box is not set.

add c_setminmax to your horse's action,and see its your fault.


3333333333
Re: A7 c_move() Collision bug? German/English [Re: Quad] #257141
03/20/09 18:15
03/20/09 18:15
Joined: Oct 2007
Posts: 40
Switzerland
N
Nikozu86 Offline OP
Newbie
Nikozu86  Offline OP
Newbie
N

Joined: Oct 2007
Posts: 40
Switzerland
They are all setted. :-(
This is a "House" not a "horse"! :-D

in the player`s action

c_setminmax(me)
my.min_x/Y/Z
my.max_x/Y/Z
All are set.

and the house has the polygon-flag set. I Need Polygon based Collision for the House.

Thanks for helping me!

Re: A7 c_move() Collision bug? German/English [Re: Nikozu86] #257142
03/20/09 18:18
03/20/09 18:18
Joined: Oct 2007
Posts: 40
Switzerland
N
Nikozu86 Offline OP
Newbie
Nikozu86  Offline OP
Newbie
N

Joined: Oct 2007
Posts: 40
Switzerland
!! I`m Rotating the in WED !!!
Build and run...

I forgot to say that.
Sorry! :-D

Re: A7 c_move() Collision bug? German/English [Re: Nikozu86] #257228
03/21/09 16:28
03/21/09 16:28
Joined: Oct 2007
Posts: 40
Switzerland
N
Nikozu86 Offline OP
Newbie
Nikozu86  Offline OP
Newbie
N

Joined: Oct 2007
Posts: 40
Switzerland
I ubdated to A.7.7
And still have the problem... :-(

Re: A7 c_move() Collision bug? German/English [Re: Nikozu86] #257259
03/22/09 01:22
03/22/09 01:22
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
what parameters are you using for c_trace and c_mode?
is your house a model or blocks?
are you sure you're rebuilding the level and not just updating entities or similar?

an insight into your code will probably show the problem

Re: A7 c_move() Collision bug? German/English [Re: MrGuest] #257499
03/23/09 15:47
03/23/09 15:47
Joined: Oct 2007
Posts: 40
Switzerland
N
Nikozu86 Offline OP
Newbie
Nikozu86  Offline OP
Newbie
N

Joined: Oct 2007
Posts: 40
Switzerland
Please watch this Video...

http://www.youtube.com/watch?v=xv11wtLQ0Ko


First RUN, no problem.
Than...
The only thing i changing is the angle(Rotate) of the box....
Now you see the problem...

Last edited by Nikozu86; 03/23/09 17:57.
Re: A7 c_move() Collision bug? German/English [Re: Nikozu86] #257517
03/23/09 17:49
03/23/09 17:49
Joined: Oct 2007
Posts: 40
Switzerland
N
Nikozu86 Offline OP
Newbie
Nikozu86  Offline OP
Newbie
N

Joined: Oct 2007
Posts: 40
Switzerland
Here the C_MOVE-Code for the Entitys:

c_move(me,vector(my.x_force*time_step ,my.y_force*time_step, 0),vector(0,0,0), IGNORE_PASSABLE|GLIDE); //

HOUSEs Code
The Most part of this action handles Shadow and visible of the house.

action GAYA_HAUS2
{
//my.push = 99;
my.passable = off;
my.polygon = on;
//my.ambient = -12;
my.material=haus_mat;

while(1){
if(vec_dist(my.x,player.x) >4000)
{my.invisible = on;}
else
{my.invisible = off;}

if(vec_dist(my.x,camera.x) <1000)
{my.shadow = on;}
else
{my.shadow = off;}


wait(1);
}
}

------------------------------------------
It`s not the Code`s error!
It`s the engine.
I`ve the trouble only when i change the Angle of the house/Box - Modells
more than 90 Degrees in WED (see Video-link above).
If i`m seting the Pan-Angle back to zero, it works perfect again.

Last edited by Nikozu86; 03/23/09 17:56.
Re: A7 c_move() Collision bug? German/English [Re: Nikozu86] #257518
03/23/09 18:04
03/23/09 18:04
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline
Member
XD1v0  Offline
Member

Joined: Jun 2008
Posts: 151
Ukraine
Nikozu86 Lite-C or C-script?
if you using Lite-C dont set flags this way, use set()
Code:
set(my, POLYGON);



A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: A7 c_move() Collision bug? German/English [Re: XD1v0] #257526
03/23/09 18:59
03/23/09 18:59
Joined: Oct 2007
Posts: 40
Switzerland
N
Nikozu86 Offline OP
Newbie
Nikozu86  Offline OP
Newbie
N

Joined: Oct 2007
Posts: 40
Switzerland
It`s WDL (C-Script) and i`m using A7.7 now.

I repeat again:
I`ve got the trouble !ONLY! when i change the Angle of the house/Box - Modells
more than 90 Degrees in WED (see Video-link).
http://www.youtube.com/watch?v=xv11wtLQ0Ko
If i`m seting the Pan-Angle back to zero, it works perfect again.



Last edited by Nikozu86; 03/23/09 21:27.
Page 1 of 2 1 2

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