Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
map_subents and ent_create #443613
07/21/14 18:10
07/21/14 18:10
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
I asked a while ago about using map_subents on WED placed entities and discovered a bug that meant you could only use map_subents on ent_create(d) entities. I'm back at trying to do this again, but I'm confused. Maybe I'm over thinking this, but if you have to ent_create the entities into a level after it's loaded, doesn't that defeat the purpose of map_subents? I'm stumped trying to figure out how to use ent_create and use map_subents, the manual is very unclear to me. Any help would be appreciated at the moment.

Re: map_subents and ent_create [Re: xbox] #443625
07/21/14 22:35
07/21/14 22:35
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Quote:

Determines whether entities contained in map entities are to be placed into the level, or not.


THIS IS ONLY A GUESS!!!

But From my understanding, I think this is to tell the engine to place any sub_entities within a map entity to be used or not.

so if set to 1 I believe you are utilizing any entities in the compiled map (map entity) with models to be used, or 0 to ignore them....

I dont think ent_create needs to be used for this. Rather this variable needs to be set before loading your level....

Last edited by DLively; 07/21/14 22:36.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: map_subents and ent_create [Re: DLively] #443627
07/22/14 01:00
07/22/14 01:00
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Well, that is how it's supposed to work. However if you create a map with models and map entities, and compile it, map_subents = 1 does not load the subentities. The only way it works is if you place them into the level via ent_create rather than directly into WED. Hence the issue, what is the purpose of map_subents if I have to create them by code.

I need to be able to load the map, then do a loop and check for the names of the subents that were loaded and then go about my business, but if I have to create them manually for every level I load, the code is going to be quite hectic and extensive and only more complicated with every level I add.

Here's the link to the original post. map_subents

Last edited by xbox; 07/22/14 01:03. Reason: added link

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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