|
How to set BBOX & copy/paste level files?
#426311
07/19/13 19:40
07/19/13 19:40
|
Joined: Jan 2013
Posts: 106 Only in your imagination!
The_KING
OP
Member
|
OP
Member
Joined: Jan 2013
Posts: 106
Only in your imagination!
|
Hi, guys
My problem is as follows:
first, a level is loaded and nothing weird happens. But, it all comes when I load a new level. The engine crashes and stops working when I load that level
Be aware that:
1) This happens with a particular level and NOT when any new level is loaded
2) The new level (which makes the problem) is semi-identical to the level existing just before that level
I would be grateful if anyone could tell me what the problem can be
The problem is solved. Now, I'm gonna change the subject.....
I've two questions:
The first q.: How can I change the size of the bounding box? Don't laugh!...'cause I change the min_x,max_x values ,but nothing happens and the bounding box keeps its default size!!
The second q.: How to copy/paste level files? Which files should I copy/paste and which parameters in WED should I change? As I tried many times to copy/paste level files from a folder to another ,but the copy is different from the original file (some textures are missing...etc.)
e.g. If I have a level .wmp file called "house1.wmp" ,I copy/paste ALL files named "house1" (compiled .wmb map, .bak file....etc.) ,but the problem still exists
Thank you for reading......
Last edited by The_KING; 07/25/13 13:27.
|
|
|
Re: The engine crashes when a level is loaded
[Re: The_KING]
#426356
07/21/13 20:41
07/21/13 20:41
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
i guess you meant ent_create. And the answer is no, all entites will be cleared on level load and only the ones placed in wed will be created. Rather than putting it on wed i guess it's better to have function like setup_level(levelname) which loads the level, creates the player and skybox and any other variables/entities you might need.
3333333333
|
|
|
Re: The engine crashes when a level is loaded
[Re: Quad]
#426358
07/21/13 20:49
07/21/13 20:49
|
Malice
Unregistered
|
Malice
Unregistered
|
@Quad - if he doesn't set his pointer player1 to null before loading the new level will it be invalid? set to null, load level, set player1 = me; in player function - Right?
Edited pointer name
Last edited by Malice; 07/21/13 20:50.
|
|
|
Re: The engine crashes when a level is loaded
[Re: The_KING]
#426499
07/23/13 20:11
07/23/13 20:11
|
Joined: Mar 2011
Posts: 3,150 Budapest
sivan
Expert
|
Expert
Joined: Mar 2011
Posts: 3,150
Budapest
|
to set the bounding box , first set both FAT and NARROW flags of the entity. http://www.conitec.net/beta/aentity-fat.htmor as mentioned on the manual page, c_setminmx or c_updatehull do it too, but they also change the bounding box size.
|
|
|
|