Jump to content
Sign in to follow this  
EvilDutch

Editor stuck on preview loading if scripts included

Recommended Posts

Hé Guys,

So i'm working on a mission template, it all worked fine until i included scripts.. The scripts i have included are the VAS (Virtual Ammobox) and TAW (View Distance).. Now, with this in the mission folder every time i want to preview the mission it stops on the loading screen. I don't get any error at all, it looks like it keeps loading and loading.. Can anyone explain to me how to solve this stupid issue ?.. I'm getting a kinda mad with all the troubles A3 is giving since release.

Kind Regards.

Share this post


Link to post
Share on other sites
have you tried to run ArmA with command "-showScriptErrors" ?

Yes, always use that command.. However, to see any error i need to run right?.. and thats where the problem is.. You have two load bars, 1 under the name of the map.. And the 2th one under your mission name.. Now, under the mission name loads 2 times, on the 2th time it loads it fill up the loading bar and then just isn't doing anything. It just derp me in the face lol :p

EDIT:

* It stops doing anything on the 1st time loading (under mission name).

This is how my folder looks like right now:

Scripts

taw_vd

VAS

Description.ext

init.sqf

mission.sqm (logical)

stringtable.xml

workspace.txt

Edited by EvilDutch

Share this post


Link to post
Share on other sites
Check the rpt anyway - if no errors then can you upload a copy of the mission here?

Explain me how to use this rpt option that your talking about?.

Share this post


Link to post
Share on other sites

look into drive:\Users\<your Name>\AppData\Local\Arma 3

there should be *.rpt files from your client to look into with a texteditor...

Share this post


Link to post
Share on other sites

Well, you can beat me to death because i don't know what caused this crap.. So after i checked the rpt file that was clean btw, i started arma 3 again in windows mode and just clicked preview to see if how long it takes.. I took 1.5 hours and it loaded the map, i closed it again and pressed preview again and it worked perfectly fine.. Still don't know what it was, or why it was.. Is it possible that it takes longer the first time because it needs to read all the scripts ?... Cause i am stunned 0_o?.

What exactly is in init.sqf?

Not mutch, all the basic stuff for now.

author = "EvilDutch[Tw]";
OnLoadName = "Tw Mission Template v1.0";
OnLoadMission = "This is a mission template made by EvilDutch.";
loadScreen = "Scripts\Mission\Images\loadScreen.paa";

overviewText = "Tw Mission Template v1.0";
overviewPicture = "Scripts\Mission\Images\loadScreen.paa";

disabledAI=1; 
joinUnassigned = 0;
enableDebugConsole = 1;

//class Header {
//	gameType = Coop;
//	minPlayers = 1;
//	maxPlayers = 4;
//};

// === Scripts === ///

#include "VAS\menu.hpp" 		// Virtual Ammobox
#include "taw_vd\dialog.hpp"	// TAW View Distance

class CfgFunctions {
#include "VAS\cfgfunctions.hpp"		// Virtual Ammobox
#include "taw_vd\CfgFunctions.hpp"	// TAW View Distance
};

Share this post


Link to post
Share on other sites
Well, you can beat me to death because i don't know what caused this crap.. So after i checked the rpt file that was clean btw, i started arma 3 again in windows mode and just clicked preview to see if how long it takes.. I took 1.5 hours and it loaded the map, i closed it again and pressed preview again and it worked perfectly fine.. Still don't know what it was, or why it was.. Is it possible that it takes longer the first time because it needs to read all the scripts ?... Cause i am stunned 0_o?.

Not mutch, all the basic stuff for now.

author = "EvilDutch[Tw]";
OnLoadName = "Tw Mission Template v1.0";
OnLoadMission = "This is a mission template made by EvilDutch.";
loadScreen = "Scripts\Mission\Images\loadScreen.paa";

overviewText = "Tw Mission Template v1.0";
overviewPicture = "Scripts\Mission\Images\loadScreen.paa";

disabledAI=1; 
joinUnassigned = 0;
enableDebugConsole = 1;

//class Header {
//	gameType = Coop;
//	minPlayers = 1;
//	maxPlayers = 4;
//};

// === Scripts === ///

#include "VAS\menu.hpp" 		// Virtual Ammobox
#include "taw_vd\dialog.hpp"	// TAW View Distance

class CfgFunctions {
#include "VAS\cfgfunctions.hpp"		// Virtual Ammobox
#include "taw_vd\CfgFunctions.hpp"	// TAW View Distance
};

That's your init.sqf? That doesn't look right at all... That should be in your description.ext

Share this post


Link to post
Share on other sites
That's your init.sqf? That doesn't look right at all... That should be in your description.ext

Woeps, xD your right.. thats my description.ext lol.. this is my ini.sqf

tawvd_disablenone = true;

Share this post


Link to post
Share on other sites
Woeps, xD your right.. thats my description.ext lol.. this is my ini.sqf

tawvd_disablenone = true;

How are you executing Tonic's VAS and View Distance scripts?

Share this post


Link to post
Share on other sites
How are you executing Tonic's VAS and View Distance scripts?

Yep, they build it like that it execute true CfgFunction, VAS is always active even in the editor and VD is only active if you run the mission local or on server. But the mission is so big that the editor get stuck time after time.. No clue what this is but hé.. Lets hope BiS will fix it cause this is making me and some friends ignore A3 and move back to A2 where everything works.

Share this post


Link to post
Share on other sites

This is most likely a loop in one of your scripts that has no sleep and no ending, so the game run a infinite loop and hang up...

Most of the time the problem sits 40 cm in front of the screen :j: this is not BIS's problem.

Share this post


Link to post
Share on other sites
This is most likely a loop in one of your scripts that has no sleep and no ending, so the game run a infinite loop and hang up...

Most of the time the problem sits 40 cm in front of the screen :j: this is not BIS's problem.

40 cm, really?.. you want to get me blind or what?.. And no it's not a loop in a script.. Even with all scripts disabled it still get stuck and RPT file gives me only 2 errors.

Error: JoystickDevices - CoInitilizeEx return 80010106
Error: CoInitilizeEx (XAudio2-1st trial) return 80010106

And i'm pretty sure that isn't the reason it doesn't preview it.. in MP it loads just fine so i presume it's something in the editor.

Share this post


Link to post
Share on other sites

Ok, maybe 50 cm :D

Well then you should do a file check on steam and clear your datacache. Maybe that helps.

Share this post


Link to post
Share on other sites
Ok, maybe 50 cm :D

Well then you should do a file check on steam and clear your datacache. Maybe that helps.

My screen is to big for cm, i think i sit away from it maybe 1m 50/60 :p anyway.. I tried what you sad and it didn't work.. I have reinstalled the game, and tried it and now it loads but takes a long time before it previews. So what i did now is i scripted VAS in a way that it doesn't load in the editor only when you play the mission or host it. Loading time is still big but i can work on my mission again.

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
Sign in to follow this  

×