Jump to content
lexx

Savegame crash with createSimpleObject

Recommended Posts

Fellow mission makers, I need a wee bit of help again.

 

Can anyone try this test mission? A mission file with 1 player, 1 game logic and the game logic has the following init code:

test = [] spawn {
    _largeSplash = createSimpleObject ["a3\characters_f\blood_splash.p3d", getPosWorld _this];  
    _largeSplash setDir random 360;
};

If I save the mission and then load the savegame, I am getting a memory allocation related crash (0xC0000005 - ACCESS_VIOLATION ... the best of all errors).

 

It took me 3 damn hours of debugging until I've found out why my mission crashs on loading, but others don't.

 

Now the next questions are:

1. Did I miss something and is the code above wrong?

 

2. Can someone else reproduce the crash or is it just me?

 

 

/Edit: Did some more tests. It's not the game logic that is crashing the game, it's the creation of the simple object. If I put the code into some init.sqf without spawn {}, etc. the same memory error appears.

 

/Edit2: Tried the wiki example for createSimpleObject - again, 100% repro crash.

 

Did something change? Feature or Bug?

Share this post


Link to post
Share on other sites

I got your code to work from a trigger, gameLogic init, init.sqf and didn't get any memory errors.  In the editor or in Single Player scenarios as well.

Share this post


Link to post
Share on other sites

That's weird. I can reproduce this in every single mission file no matter where and how I write the code. Just verified my game cache just to be sure, but same- nothing changes.

 

Should I post this on the feedback tracker or something? Never made a ticket before, so no idea about that stuff.

Share this post


Link to post
Share on other sites

I'll guess nobody else experiences this?

Share this post


Link to post
Share on other sites

I get the same as Lexx, works every where ok until i try to save a SP scenario and then reload that save. Arma crashs with arma3.exe stopped working, 'Thread tried to read/write from a virtual address to which it does not have the appropriate access'.
I have put a ticket in Lexx HERE if you want to add your info/miniDump aswell.

Share this post


Link to post
Share on other sites

I get the same as Lexx, works every where ok until i try to save a SP scenario and then reload that save. Arma crashs with arma3.exe stopped working, 'Thread tried to read/write from a virtual address to which it does not have the appropriate access'.

I have put a ticket in Lexx HERE if you want to add your info/miniDump aswell.

reported internally

Share this post


Link to post
Share on other sites

Just tried it- works perfect now.

 

 

Next, only the Gorgon's smoke launcher needs fixing, then all my current problems are solved. :>

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×