Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 11,222 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
dabolong, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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: 28,146
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,146
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: 28,146
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,146
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 | 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