Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 770 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
tex_flag #71953
04/23/06 19:05
04/23/06 19:05
Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland
Bird Offline OP
Senior Developer
Bird  Offline 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: Bird] #71954
04/25/06 20:40
04/25/06 20:40
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Please update to the latest version (6.40).

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 Offline OP
Senior Developer
Bird  Offline 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] #71956
04/27/06 14:34
04/27/06 14:34
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ok, we'll look into the problem.

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
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

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 Offline OP
Senior Developer
Bird  Offline 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: Bird] #71959
05/16/06 07:03
05/16/06 07:03
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Make sure that you've downloaded 6.40.5. Marco fixed it in 6.40.5, but not in 6.40.4. If the problem also happens in 6.40.5, it must have had a different reason. Can you provide a test level in that case?

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 Offline OP
Senior Developer
Bird  Offline 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
Re: tex_flag [Re: Bird] #457950
02/09/16 13:44
02/09/16 13:44
Joined: Jun 2010
Posts: 212
tagimbul Offline
Member
tagimbul  Offline
Member

Joined: Jun 2010
Posts: 212
hallo

i have a problem with tex_flag

i use
c_trace(vec1,vec2,IGNORE_ME|IGNORE_FLAG2| SCAN_TEXTURE);
and send the trace to a mdl model
the model have set(my,FLAG6)
but the tex_flag6 is allways == 0
by WED blocks with flag6 its works
why not by a mdl model?


meine website mit 3dgs sachen =) //noch nicht ganz umgebaut ^^"
http://flashbreaker.com/home.html
und mein YT channel mit diversen game entwicklungs videos, vor allem shader zeugs
https://www.youtube.com/user/tagimbul/videos
Re: tex_flag [Re: tagimbul] #457951
02/09/16 14:11
02/09/16 14:11
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
For models use the is(you,FLAG6) macro.


"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
Page 1 of 2 1 2

Moderated by  HeelX, rvL_eXile 

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