|
tex_flag
#71953
04/23/06 19:05
04/23/06 19:05
|
Joined: Mar 2004
Posts: 1,201 Switzerland, Baselland
Bird
OP
Senior Developer
|
OP
Senior Developer
Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland
|
i'm afraid i found a bug with c_trace and tex_flag: i have a normal block with flag1 set on at each surface. i scan the texture with this code: Code:
result=c_trace(player.x, vector(player.x, player.y, player.z+300), ignore_models+ignore_sprites+scan_texture); if(result>0) { beep; str_cpy(debugstr, tex_name); debug=1*tex_flag1+2*tex_flag2; }
i can hear the 'beep' and i can see the name of the texture (Brickdark) this code gets executed every frame, and if result<=0, debug and debugstr are resetted. So i can say for sure that the texture gets scanned. But the debug-variable (debug=1*tex_flag1+2*tex_flag2;) is always 0. - A6.40.2 pro
- A6pro 6.40.5
|
|
|
Re: tex_flag
[Re: jcl]
#71955
04/26/06 18:55
04/26/06 18:55
|
Joined: Mar 2004
Posts: 1,201 Switzerland, Baselland
Bird
OP
Senior Developer
|
OP
Senior Developer
Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland
|
lol, didn't see that there is a new version.. but the same problem is still there. Nothing changed by updating.
- A6pro 6.40.5
|
|
|
Re: tex_flag
[Re: Bird]
#71957
04/28/06 00:33
04/28/06 00:33
|
Joined: Sep 2003
Posts: 3,236 San Diego, CA
Marco_Grubert
Expert
|
Expert
Joined: Sep 2003
Posts: 3,236
San Diego, CA
|
Quote:
i'm afraid i found a bug with c_trace and tex_flag:
Indeed you have. Tex_Flag1..8 are not updated by SCAN_TEXTURE they way they should be. The next public beta will have that fixed.
|
|
|
Re: tex_flag
[Re: Marco_Grubert]
#71958
05/15/06 15:37
05/15/06 15:37
|
Joined: Mar 2004
Posts: 1,201 Switzerland, Baselland
Bird
OP
Senior Developer
|
OP
Senior Developer
Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland
|
I just downloaded the new public beta, and I finally wanted to program the camera-system for which I need this feature. But now I see that this bug still isn't fixed! Please fix it as soon as possible, so I can continue programming.
- A6pro 6.40.5
|
|
|
Re: tex_flag
[Re: jcl]
#71960
05/16/06 15:41
05/16/06 15:41
|
Joined: Mar 2004
Posts: 1,201 Switzerland, Baselland
Bird
OP
Senior Developer
|
OP
Senior Developer
Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland
|
ok, I found out the reason: I can't check the flags of an invisible block, tho i can get its texture's name. So I just set the 'none'-flag at each texture, and it works (ofcourse it also works with visible blocks! But for my game i need invisible blocks ) thx alot! regars
- A6pro 6.40.5
|
|
|
|