|
Re: Engine crash after level_load
[Re: jcl]
#458062
02/15/16 08:13
02/15/16 08:13
|
Joined: Feb 2006
Posts: 1,011 Germany
pegamode
OP
Serious User
|
OP
Serious User
Joined: Feb 2006
Posts: 1,011
Germany
|
Here's the whole code:
function mtlShaft_event();
MATERIAL* mtlShaftDepth = {
effect = "shaftDepth.fx";
event = mtlShaft_event;
flags = ENABLE_VIEW;
}
VIEW* ShaftView = {
bmap = "#64x64x14";
material = mtlShaftDepth;
flags = SHOW|NOFLAG1;
}
MATERIAL* mtlShaft = {
effect = "lShaft.fx";
}
void mtlShaft_event() {
float sTexAdj[16] = { 0.5, 0.0, 0.0, 0.0, 0.0,-0.5, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 };
if(ShaftView.bmap) {
sTexAdj[12] = 0.5 + (0.5/(float)ShaftView.bmap.width);
sTexAdj[13] = 0.5 + (0.5/(float)ShaftView.bmap.width);
}
mat_set(mtlShaft.matrix,matViewProj);
mat_multiply(mtlShaft.matrix,sTexAdj);
}
The code's a contribution of another forum member as far as I remember.
|
|
|
Re: Engine crash after level_load
[Re: pegamode]
#458127
02/20/16 15:34
02/20/16 15:34
|
Joined: Feb 2006
Posts: 1,011 Germany
pegamode
OP
Serious User
|
OP
Serious User
Joined: Feb 2006
Posts: 1,011
Germany
|
Sorry, it took me quite a time to break it down this far. You can download the projekt here: http://www.meteormess.de/files/crash_test.rarHere's all info I was able to find out: 1) change line "flags = SHOW | NOFLAG1;" to any other flag-combination (only SHOW or only NOTFLAG1" => crash is gone 2) change "video_mode" to 8 => crash is gone 3) modify a random model with prefix "telescope_" (models located in the telescope_room) => crash is gone 4) load only one of the rooms (green_tentacles_room or telescope_room) => crash is gone I don't see any relations between all those stuff ... I hope you can help.
|
|
|
Re: Engine crash after level_load
[Re: pegamode]
#458134
02/20/16 16:40
02/20/16 16:40
|
Joined: Nov 2005
Posts: 204 Bavaria
HellThunder
Member
|
Member
Joined: Nov 2005
Posts: 204
Bavaria
|
Works for my by using
while(proc_status(level_load)) wait(1);
after calling the level_load function.
|
|
|
Re: Engine crash after level_load
[Re: Superku]
#458154
02/22/16 09:58
02/22/16 09:58
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
i could not get the script/project to crash on the trial version , but i did get a crash 3 times from the acknex startup on running before the script executed : error in litec at line 25 typedef charbyte
Compulsive compiler
|
|
|
|