Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
what does this error mean? 'Crash in main: level_load(@2)' #290842
09/21/09 18:53
09/21/09 18:53
Joined: Jan 2008
Posts: 11
A
AloC83 Offline OP
Newbie
AloC83  Offline OP
Newbie
A

Joined: Jan 2008
Posts: 11
I am trying to run a file in SED but I am getting the following error message: Crash in main: level_load(@2)

The file compiles correctly though and used to run fine till about a month back, which was the last time i had run it. I have reinstalled A7 and recompiled the level but I am still getting the same error message.

any ideas? I am using Win XP SP3.

Re: what does this error mean? 'Crash in main: level_load(@2)' [Re: AloC83] #290888
09/22/09 07:08
09/22/09 07:08
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Could you post the main function here? (if you do, please use the [ code ] [/ code ] tags (without the spaces)

Re: what does this error mean? 'Crash in main: level_load(@2)' [Re: Xarthor] #290900
09/22/09 08:48
09/22/09 08:48
Joined: Jan 2008
Posts: 11
A
AloC83 Offline OP
Newbie
AloC83  Offline OP
Newbie
A

Joined: Jan 2008
Posts: 11
Code:
#include <acknex.h>
#include <default.c>


function main()
{
	level_load("grounds.wmb");
	wait(2);
}



This is not the program I was trying to run but even a simple program such as this one is giving the same error. I tried with other compiled levels apart from "grounds.wmb" still I get the same error.

Re: what does this error mean? 'Crash in main: level_load(@2)' [Re: AloC83] #290901
09/22/09 08:54
09/22/09 08:54
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Did you save that file as .c file or as .wdl file?

(I'm asking because you are using lite-C syntax and posted in the WDL/C-Script forum)

Re: what does this error mean? 'Crash in main: level_load(@2)' [Re: Xarthor] #290903
09/22/09 09:16
09/22/09 09:16
Joined: Jan 2008
Posts: 11
A
AloC83 Offline OP
Newbie
AloC83  Offline OP
Newbie
A

Joined: Jan 2008
Posts: 11
It was saved as .wdl. I changed it to .c and now its working!

Thanks Xarthor, but what I don't understand is how come it was working fine earlier with the .wdl extension? The last time I ran this program was abt a month ago and it worked fine. Why did it then stop working by itself? Is there any setting in SED for this, which I might've messed up?

Re: what does this error mean? 'Crash in main: level_load(@2)' [Re: AloC83] #290906
09/22/09 09:35
09/22/09 09:35
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Well maybe you did update inbetween?
As the manual describes:
wdl must not be used for code anymore, if you use wdl in a lite-C project it may only contain path and resource settings.

My advice: Use .c and .h for your files and lite-C as language (which is what you'll find in the manual anyway)

Re: what does this error mean? 'Crash in main: level_load(@2)' [Re: Xarthor] #290907
09/22/09 09:43
09/22/09 09:43
Joined: Jan 2008
Posts: 11
A
AloC83 Offline OP
Newbie
AloC83  Offline OP
Newbie
A

Joined: Jan 2008
Posts: 11
Thanks Xarthor


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

Gamestudio download | 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