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
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 900 guests, and 2 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
ent_pvs problem #342124
09/23/10 18:07
09/23/10 18:07
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline OP
Serious User
txesmi  Offline OP
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
i used this code in my test project (taken from manual):

Code:
i = 1;
        me = ent_pvs ( i, 0 );
        while ( me )
        {
            if ( my.string1 )
            {
                draw_text ( my.string1, 350, i*12, COLOR_WHITE );
             }
            else
            {
                draw_text ( "-------", 350, i*12, COLOR_WHITE );
            }
            
            i++;
            me = ent_pvs ( i, 0 );
         }



Sometimes (almost, not all) this code draws one entitie more than in the count of pvs. All the entities in the level are opaques.

A toke a couple of screenshots:



In both cases there is one text line more than in the count of pvs. In the first example it looks that there are two "FNC_Jugador" (string attached to player entitie) and i'm totally sure that there is only one.

I have done tons of tests to confirm it and it looks like a bug.

Salud!

Re: ent_pvs problem [Re: txesmi] #342150
09/24/10 08:25
09/24/10 08:25
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
This looks indeed like a bug. But I've just tried your code and it does not happen here.

Can you upload your test project or send it to Support? We'll look into it.

Re: ent_pvs problem [Re: jcl] #342162
09/24/10 08:57
09/24/10 08:57
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline OP
Serious User
txesmi  Offline OP
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
file sent to support!

Best regards
txesmi

Re: ent_pvs problem [Re: txesmi] #343205
10/04/10 13:43
10/04/10 13:43
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks for the file. It was a bug - ent_next sometimes returned an entity twice. This will be fixed in the next update.


Moderated by  jcl, Nems, Spirit, Tobias 

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