Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/25/26 03:42
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
Algorithmic trading course with Zorro
by Haitao_Ren. 10/25/26 03:12
Zorro tutorial ideas?
by Haitao_Ren. 10/25/26 02:47
Zorro plugin for Hyperliquid.xyz
by mayarik. 10/24/26 09:14
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, JeyKey II), 8,843 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Haitao_Ren, JimSimons, julienp, julienper, KelleyAbbey
19247 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