Gamestudio Links
Zorro Links
Newest Posts
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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 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
Page 2 of 2 1 2
Re: The engine crashes when a level is loaded [Re: The_KING] #426504
07/24/13 03:21
07/24/13 03:21
Joined: Jun 2013
Posts: 108
Alberta, Canada
C
CanadianDavid Offline
Member
CanadianDavid  Offline
Member
C

Joined: Jun 2013
Posts: 108
Alberta, Canada
First off, you should create a new thread for each question instead of re-using your old thread. You should also give your thread a descriptive name instead of "two issues" which says nothing about your problem at all.

As for your level problem, you have to remember to re-attach/include your main script to your copied levels so that WED knows what folders to add and where to search for the assets. Goto File -> Map Properties to add the main script. Your main script can include PATH bindings to resources. I believe a WDL file can also be used for declaring paths for WED.

If you had been using all assets in the same directory as your original level file, you should be able to copy all the files together and there should be no missing-file errors.

Re: The engine crashes when a level is loaded [Re: sivan] #426556
07/24/13 17:39
07/24/13 17:39

M
Malice
Unregistered
Malice
Unregistered
M



^ +1

Wait(1) after setting FAT|NARROW then set my.max_x = a_number , ect..

Last edited by Malice; 07/24/13 17:41.
Re: The engine crashes when a level is loaded [Re: ] #426562
07/24/13 19:35
07/24/13 19:35
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
@CanadianDavid The error that keeps occuring is missing texture files for the blocks I think

I see no files for the textures of the level blocks and I copy/paste all files ,but it still tells me that there are missing texture

@Malice I did what you and Sivan said ,but nothing happens

Here's the code I use:

Code:
set(my,NARROW | FAT); 
wait(1);
	
my.min_y = -6;
my.min_x = -1;
my.min_z = -34;
	
my.max_y = 6;
my.max_x = 4;
my.max_z = 33;



BTW, I'm using the player model in the "templates" folder





Re: The engine crashes when a level is loaded [Re: The_KING] #426563
07/24/13 19:51
07/24/13 19:51
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Try this:

my.eflags |= FAT | NARROW; // set both flags to prevent automatic recalculation on scale changes
vec_set(my.min_x,vector(-10,-10,-25)); // set bounding box to individual values
vec_set(my.max_x,vector(10,10,25));

where the smaller numbers are the width and breadth and the longer, height.

Play with the numbers and see the results

Last edited by Nems; 07/24/13 19:52.
Re: The engine crashes when a level is loaded [Re: Nems] #426564
07/24/13 20:41
07/24/13 20:41
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
hey, I always forget that eflags are different than flags! Nems is right!


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: The engine crashes when a level is loaded [Re: The_KING] #426566
07/24/13 22:40
07/24/13 22:40
Joined: Jun 2013
Posts: 108
Alberta, Canada
C
CanadianDavid Offline
Member
CanadianDavid  Offline
Member
C

Joined: Jun 2013
Posts: 108
Alberta, Canada
Originally Posted By: The_KING
@CanadianDavid The error that keeps occuring is missing texture files for the blocks I think

I see no files for the textures of the level blocks and I copy/paste all files ,but it still tells me that there are missing texture

If you are using the standard.wad file you can re-add it by going to the Presets tab on the left-side panel, then right-click the Textures folder, and click on Add WAD. By default, you should be in the C:\Program Files (x86)\GStudio8\wads folder where you should see the standard.wad. Double click this WAD if it what you are using to add it to your level.

Use the same procedure above to add any other WAD files you may have previously used in the level.

Re: The engine crashes when a level is loaded [Re: CanadianDavid] #426584
07/25/13 13:13
07/25/13 13:13
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
Thank you guys. It worked when I replaced flags with eflags ,but what's the difference between them?

Re: The engine crashes when a level is loaded [Re: CanadianDavid] #426585
07/25/13 13:14
07/25/13 13:14
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
@CanadianDavid it is good for the "standard.wad" ,but there's a problem. The main script & the level are not in the same folder. When I set the main script for the level in Map properties ,then run it ,it still says that the main script can't be opened ,beside the included scripts in the main script

Last edited by The_KING; 07/25/13 16:42.
Re: The engine crashes when a level is loaded [Re: The_KING] #426602
07/25/13 15:52
07/25/13 15:52

M
Malice
Unregistered
Malice
Unregistered
M



Look up PATH , PRAGMA_PATH, and #include in the manual. Set the path to the WED files and run the script from SED not WED.

Last edited by Malice; 07/25/13 15:53.
Re: The engine crashes when a level is loaded [Re: ] #426607
07/25/13 16:41
07/25/13 16:41
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
OK. I got it.
Thank you very much

Page 2 of 2 1 2

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