DankToad

IT07S ScarCode script!

8 posts in this topic

Hello all,

If anyone has IT07s scarcode SIM Epoch Script working for Exile could you share a run through on how you got it working. I have used the tutorial that is placed in the downloaded folder but it seems to crash my Exile server on launch. I can't find anything that I could change to make the script work with Exile.

Download link: http://epochmod.com/forum/index.php?/topic/33023-scarcode-sim-server-info-menu-by-it07/

I have seen this script working on exile servers.

Thanks in advanced.

 

Share this post


Link to post
Share on other sites

This isn't related to the Exile development. Moved to general programming talk

Share this post


Link to post
Share on other sites
Advertisement
4 hours ago, Foxx said:

This isn't related to the Exile development. Moved to general programming talk

My bad sorry.

Share this post


Link to post
Share on other sites

Just change the following in the fn_initSIM_SA.sqf located in scarCODE/SIM/

waitUntil { uiSleep 1; not(isNull(findDisplay 46)); not(isNil"EPOCH_loadingScreenDone") };

to

waitUntil{uiSleep 0.2;!isNil "ExileClientPlayerScore"};//wait for player to load

That should fix it.....

1 person likes this

Share this post


Link to post
Share on other sites
On 14/01/2016 at 5:31 AM, Austin said:

Just change the following in the fn_initSIM_SA.sqf located in scarCODE/SIM/


waitUntil { uiSleep 1; not(isNull(findDisplay 46)); not(isNil"EPOCH_loadingScreenDone") };

to


waitUntil{uiSleep 0.2;!isNil "ExileClientPlayerScore"};//wait for player to load

That should fix it.....

Will give it a try, many thanks.

Share this post


Link to post
Share on other sites

Sorry try this.

Instead of 

waitUntil { uiSleep 1; not(isNull(findDisplay 46)); not(isNil"EPOCH_loadingScreenDone") };
	uiSleep 1;
	if ((typeName _es) isEqualTo "SCALAR") then
	{
		_aa = player addAction ["<t color='#57877b'>Server Info</t>",{createDialog'SC_simDiag';}, "", -1, false, true];
	};

put

waitUntil {!isNull player};
	waitUntil {!isNull findDisplay 46};
	_aa = player addAction ["<t color='#57877b'>Server Info</t>",{createDialog'SC_simDiag';}, "", -1, false, true];

and make sure in description.ext

//class initSIM_SA { postInit = 1; }; // Leave this line commented if using SCMP

is

class initSIM_SA { postInit = 1; }; // Leave this line commented if using SCMP

P.S. ATM if you respawn you will no longer have the option, figuring that out now...

 

Fix for not getting it to pop up on respawn

Add

_bambiPlayer = player addAction ["<t color='#57877b'>Server Info</t>",{createDialog'SC_simDiag';}, "", -1, false, true];

to ExileClient_object_player_bambiStateBegin.sqf under "true call ExileClient_gui_hud_toggleBambiIcon;" (assuming you know how to override the file.......)

Edited by Austin
1 person likes this

Share this post


Link to post
Share on other sites

Fix for not getting it to pop up on respawn

Add

_bambiPlayer = player addAction ["<t color='#57877b'>Server Info</t>",{createDialog'SC_simDiag';}, "", -1, false, true];

to ExileClient_object_player_bambiStateBegin.sqf under "true call ExileClient_gui_hud_toggleBambiIcon;" (assuming you know how to override the file.......)

Added to main post above as well.

Edited by Austin
1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.