Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Ayumi, Quad, PeWi), 488 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 5 1 2 3 4 5
Re: Engine crash after level_load [Re: pegamode] #458061
02/15/16 07:51
02/15/16 07:51
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
This does indeed give a hint. Is the material a shader? Maybe it is not yet initialized right at start?

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 Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Here's the whole code:

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] #458092
02/16/16 13:08
02/16/16 13:08
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
I see nothing suspicious at first glace. Can you reduce the project to a minimum that just produces the crash, and send it to Support? We'll look into it.

Re: Engine crash after level_load [Re: jcl] #458094
02/16/16 15:25
02/16/16 15:25
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Ok ... I will try to reduce it as much as possible and come back to you.

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 Offline OP
Serious User
pegamode  Offline 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.rar

Here'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] #458128
02/20/16 15:38
02/20/16 15:38
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Sounds a lot like the following (hopefully fixed) bug to me:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=458091#Post458091


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Engine crash after level_load [Re: Superku] #458133
02/20/16 16:18
02/20/16 16:18
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Yes, you're right. The crash might be based on the same. At least I hope so :-)

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 Offline
Member
HellThunder  Offline
Member

Joined: Nov 2005
Posts: 204
Bavaria
Works for my by using

Code:
while(proc_status(level_load)) wait(1);



after calling the level_load function.


Create your own JRPG and join our community: https://www.yrpgtoolkit.com
Re: Engine crash after level_load [Re: HellThunder] #458135
02/20/16 17:30
02/20/16 17:30
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
That's the point and symptom of this crash/ test though, the crash oftentimes disappears (or gets delayed to some other moment) when you change something in the code or a level.

Btw. that line of coding, i.e. waiting for level_load to finish, does not change anything as the function only resumes after level_load has been completed. Only in old WDL or old C-Script times level_load was executed one frame later/ at the end of the frame, thus you needed to wait there.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
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
W
Wjbender Offline
User
Wjbender  Offline
User
W

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
Page 3 of 5 1 2 3 4 5

Moderated by  old_bill, Tobias 

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