acknex.exe crashing...

Posted By: MiToVo

acknex.exe crashing... - 04/05/14 01:54

Hello,

Just tried compiling and running the "loop" map that comes with A7 (Commercial), and it keeps crashing.

It compiles fine. But when I go to run it, I get an error sound from Windows, and a few moments later, an error prompt comes up with the following:
Error: E1513
Crash in Main: SYS

Clicking OK brings up the same error again, and then again a third time. Then it returns me to Windows, and I get the normal Windows crash prompt telling me acknex.exe has crashed.

I have no idea what's going on, as I haven't touched anything in the map, or anything else.

Any idea what might be causing that? Maybe someone else has experienced it, too.


Thanks!
Posted By: Uhrwerk

Re: acknex.exe crashing... - 04/05/14 11:07

I have no idea what the "loop" map is. How do you load this map? The error message indicates a programming error in you main function.
Posted By: Aku_Aku

Re: acknex.exe crashing... - 04/05/14 11:34

IMHO he mentioned the loop.wmb in templates/levels subfolder.
Posted By: Ch40zzC0d3r

Re: acknex.exe crashing... - 04/05/14 11:46

He means the infinite terrain script <_<
Posted By: MiToVo

Re: acknex.exe crashing... - 04/05/14 13:46

Hello, and thank you for the replies laugh

Yes, I was referring to the loop.wmb map that comes pre-installed with A7. I should have been more specific there lol. Apologies laugh.

Not sure what it is, as the error code doesn't really tell me much.

"Infinite terrain script" sounds intriguing, though. I'll look into that and see if I can find any kind of a fix for it.
Posted By: Uhrwerk

Re: acknex.exe crashing... - 04/05/14 16:04

Did you modify the code supplied with it? What Gamestudio Version do you use?
Posted By: MiToVo

Re: acknex.exe crashing... - 04/05/14 16:41

Hi, Uhrwerk.

Using A7 (7.86), and I haven't touched anything. Just opened the map, built it and ran it.
Posted By: Uhrwerk

Re: acknex.exe crashing... - 04/05/14 16:55

I then suggest uninstalling gamestudio, manually deleting any remains of the gs installation folder and reinstalling.
Posted By: Ch40zzC0d3r

Re: acknex.exe crashing... - 04/05/14 17:59

Hm how can a wmb file give you errors?
Some more infos would be nice on what you are doing.
Posted By: MiToVo

Re: acknex.exe crashing... - 04/05/14 19:11

@Ch4...
I'm not doing anything beyond opening the file, Building it and then clicking the Run button. Literally. That's all I'm doing lol. I wish there was something else I could say I'm doing at this end that might provide a hint, but there's nothing else.

Also.. per Uhrwerk's suggestion, I uninstalled the program, deleted the folder, reinstalled everything from scratch and tried again. This time, I also created a new project (outdoor project via the project wizard). Once the project was finished and it loaded the map for me, again I built the map, clicked on the "run" button and, again, I get the same error, the error in main.sys, only it only happens once with a clean new project build.

I also opened up the 'loop' map under the car demo game and, similarly, clicked on 'build', then 'run' - left all settings at default (as with the new project) - and still get the crashing.

One thing is different this time, however. It still gives 3 error windows, however, now only the first one says 'crash in main.sys'. The second two come back reporting error in "init_baum1".

So, that's at least something different from before, though I still have no idea what that means or what's causing it.

While it could well be some kind of weird compatibility thing or whatever, it's nothing I'm physically doing at this end. I'm not modifying anything. I'm not touching a thing. I literally click on 2 buttons: Build, and Run. That's it.

Thanks.

EDIT: I did some searching and found this explanation for the error code I'm getting:

"A function of your script crashed. The usual suspects are accessing an empty pointer, accessing a non-empty pointer to a removed or nonexistent object, or performing an invalid operation such as dividing by 0. Crashes are only indicated in the development engine. The distributable version will not issue an error message, but just try to recover from the error and terminate the function.
The name of the erroneous function is displayed in the error message, followed by the 3-character sys_marker (if any was set), so the bug should be easy to find in your script. If you get a crash right at startup or level loading, a damaged sound, image, or model file might be the reason. Another possible reason is a wrong setting of the DEP (Data Execution Prevention) in your Windows system configuration that prevents running scripts."

So that's a clue. Perhaps there's something missing that didn't get installed correctly or at all. I can try figuring that out, I suppose.
Posted By: Uhrwerk

Re: acknex.exe crashing... - 04/05/14 20:13

The error message clearly suggests a programming error. If you didn't touch the script something is really wrong. In the samples folder there is a file called "infinite_terrain.c". Can you open that file with SED and run it?
Posted By: MiToVo

Re: acknex.exe crashing... - 04/05/14 21:54

Hi there, Uhrwerk.

Thank you for the reply/advice.

I located the infiniteterrain script, loaded it up and ran it, and it runs just fine. Neat demo, by the way.
Posted By: Uhrwerk

Re: acknex.exe crashing... - 04/05/14 22:01

Originally Posted By: MiToVo
Also.. per Uhrwerk's suggestion, I uninstalled the program, deleted the folder, reinstalled everything from scratch and tried again. This time, I also created a new project (outdoor project via the project wizard). Once the project was finished and it loaded the map for me, again I built the map, clicked on the "run" button and, again, I get the same error, the error in main.sys, only it only happens once with a clean new project build.
I'm still not 100% sure what you did. Sorry. Which program are you using? Where do you get this project wizard thing?
Posted By: MiToVo

Re: acknex.exe crashing... - 04/05/14 22:12

It's the Project Wizard accessed via the File menu in WED.

Check out this screenshot. I'm creating the "outdoor level" project, which generates the scene you see in the viewports behind it.


Copy the image URL and you can see it at full size.

Thing is, I've run the project wizard before, and have created the same starting project, and it's worked fine.

And this is since A8's release, so I don't know/think Conitec has done any more updates to A7 that could possibly have broken it.

Really at a loss here.

I wonder what would happen if I just created a new map, set a few things up myself and tried running it. Maybe I'll try that.

Stinks if there's some issue with it overall, though, considering there's an entire tutorial based on it.
Posted By: MiToVo

Re: acknex.exe crashing... - 04/05/14 22:18

Okay, just set up a super simple, small scene (hooray for alliteration!) and everything seems fine.

So, there's something in that particular outdoors scene that's causing 3DGS to have a fit.

Curious what it could be, still, but at least I know I can continue on with what I'm doing anyway.
Posted By: Uhrwerk

Re: acknex.exe crashing... - 04/05/14 22:28

Ok, in WED in that project that gives you trouble please goto "file" and "map properties". There is a property called script. Please post the content of that file here.
Posted By: MiToVo

Re: acknex.exe crashing... - 04/05/14 22:52

No problem..

It's using the 'myProj.c' script.

Here's the contents of it...

Quote:
// Includes
#include "resources.h" // paths and file binds
#include <acknex.h>
#include <default.c>

#include <t7\t7.h> ///@t7
#include <t7\t7Camera.h> ///@t7 Camera code

#include <t7\t7GE.c> ///@t7 GEs
#include <t7\t7GEBiped.c> ///@t7 Biped
#include <t7\t7GEMovers.c> ///@t7 Doors, Lifts, and Platforms
#include <t7\t7GEPickups.c> ///@t7 Pickup items.

#include "environ.c" // environmental functions for Outdoor level


///////////////////////////////////////////////////////////////

void main()
{
if(project_load("myProj.xml") == 0) // load up game from an xml file
{
sys_exit("Couldn't load myProj.xml");
}

while(project_update() != 0)
{
wait(1);
}
sys_exit("Normal Exit");
}




Thanks laugh
Posted By: Uhrwerk

Re: acknex.exe crashing... - 04/05/14 23:16

That looks totally fine at a first glance.

Ok, what is environ.c ? Is that a custom script you created? If so can you please show it?
Posted By: MiToVo

Re: acknex.exe crashing... - 04/06/14 00:02

I'm not responsible for any of the files created or otherwise handled in creating this project. This is 100% 3DGS at work. Like I said, the only thing I'm doing is opening the WED file, building it and trying to run it.

So whatever you see in this code is 3DGS's work... I couldn't code my way out of a wet paper bag at this point tongue

That said...

environ.c turns out to be a file in the template folder for the "outdoor" project; basically what the project wizard uses to build the template projects from.

It looks like it wasn't copied over to the generated project folder, however, as I can't find it in there. I'd like to guess that has something to do with it (myproj is referencing a file that isn't there), but I don't know.

I don't want to mess with anything since maybe it's not supposed to be copied over. This is all new to me, so I have no idea.

Anyway... here's the content of the environ.c file...

If you're using A7, or A8, I imagine you should be able to generate the Outdoor project from the File > Project Wizard window and get the same results? Or maybe you don't, and that's the problem? -shrug- lol

Code:
//------------------------------------------------------------------------------
// Environmental Effects
// Based on Czeslaw Gorski's code for "Racer"

//--------------------------------------------
// skycube
ENTITY* sky = { type = "skycube+6.tga"; flags2 = SKY | CUBE | VISIBLE; }

//--------------------------------------
// Objects

// Polygon accurate collision model
action	MakePoly()
{
	wait(1);
	set(my,POLYGON);
}


action init_rauchen()
{

}

action ffp_terr_detail()
{

}

action init_windmill()
{
	while(my)
	{
		my.roll += 10*time_step;
		wait(1);
	}
}

action init_propshadow()
{
	set(my,PASSABLE);
	while(my)
	{
		my.roll += 10*time_step;
		wait(1);
	}
}

action init_river()
{
	set(my,PASSABLE);
	set(my,TRANSLUCENT);
	my.alpha = 25;
}

action init_see()
{
	set(my,PASSABLE);
	set(my,TRANSLUCENT);
	turb_speed = 0.09;
	turb_range = 0.5; 
	my.ambient = 100;
	my.alpha = 75;
}

action init_wasser()
{
	set(my,PASSABLE);
	set(my,TRANSLUCENT);
	my.ambient = 10;
	my.alpha = 65;
}

action init_wasserfall()
{
	set(my,PASSABLE);
	set(my,TRANSLUCENT);
	set(my,BRIGHT);
	my.alpha = 65;
}



action init_lava()
{
	set(my,PASSABLE);
	my.ambient = 100;
}

// swamp
action init_swamp()
{
	set(my,PASSABLE);
	set(my,TRANSLUCENT);
	my.ambient = 100;
	my.alpha = 55;
}







/// Tree baum
action  init_baum1()
{
	set(my,PASSABLE);
/*+++	if(my.skill1 < 1) {ent_create( "lp_stamm.wmb",MY.POS,baum_stamm);}
	if(my.skill2 > 0) {ent_create( "lp_birke_kr.mdl",MY.POS,pos_kr);} //birch
	if(my.skill3 > 0) {ent_create( "lp_tree2_kr.MDL",MY.POS,pos_kr);} //tree2
	if(my.skill4 > 0) {ent_create( "lp_spruce_kr.MDL",MY.POS,pos_kr);} //tree2
	if(my.skill5 > 0) {ent_create( "lp_Pine1_kr.MDL",MY.POS,pos_kr);} //pine1
+++*/
}




There ya go...
Posted By: Uhrwerk

Re: acknex.exe crashing... - 04/06/14 00:11

Originally Posted By: MiToVo
I'm not responsible for any of the files created or otherwise handled in creating this project. This is 100% 3DGS at work. Like I said, the only thing I'm doing is opening the WED file, building it and trying to run it.

Ok, then I can't give you any further advice. There is no obvious flaw. I suggest sending a step by step description of what you did and your gamestudio version to the support. I guess you're already out of your support period, but normally they are very kind and might be interested in the issue.
Posted By: MiToVo

Re: acknex.exe crashing... - 04/06/14 00:30

Well, I appreciate you taking a look at it, at least.

Really, I think I can probably learn what I need to without using the tutorial. I can maybe at least look at the assets and see how things are set up in that respect.

There's other tutorials and such I can follow otherwise.

Thanks again laugh
© 2024 lite-C Forums