zisb

[XM8 App] Toggle Exile Colour Corrections

10 posts in this topic

Posted (edited)

Toggle Exile Colour Corrections

Hey everyone,

Today I decided that I wanted a way to disable the exile colour corrections, however I wanted it to be optional, hence making it an XM8 app. I really hope that you enjoy this and  please feel free to provide any feedback. This is my first proper script so I am kinda exited!

Credits

@zisb For making the script

@DirtySanchez For Spoon Feeding Me 

@infiSTAR For fixing my goofs

Installation

Its pretty easy to install, just chuck the .paa image into the image folder and the .sqf into the apps folder. Then replace one of the apps in the "XM8Apps_Init.sqf" with the bit of code that is in the XM8Apps_InitREPLACE.sqf

Easy Peasy, Squeeze the lemon!

DOWNLOAD (v 1.1)

 

Edited by zisb
Update 1.1
5 people like this

Share this post


Link to post
Share on other sites

First :rock:

PenguinApproved.jpg.359b935877a4f4cf19c3

3 people like this

Share this post


Link to post
Share on other sites
Advertisement

Nice job zisb, you will be slapping together rainbows of happiness before you know it! ;) 

1 person likes this

Share this post


Link to post
Share on other sites

Well done man. 

Aussie, Aussie, Aussie ....... :)

1 person likes this

Share this post


Link to post
Share on other sites

player = ? no

 

//	to really reinit all and end all you could probably better do (you never reenabled ExileClientPostProcessingBorderVignette):
if(isNil "varIsPpDed")then{
	hint "Exile Colour Corrections Disabled";
	ppEffectDestroy ExileClientPostProcessingColorCorrections;
	ppEffectDestroy ExileClientPostProcessingBorderVignette;
	ppEffectDestroy ExileClientPostProcessingBackgroundBlur;
	ppEffectDestroy ExileClientPostProcessingDelirium;
	ppEffectDestroy ExileClientPostProcessingSecurityCameraFilmGrain;
	
	varIsPpDed = true;
} 
else 
{
	hint "Exile Colour Corrections Enabled";
	[] call ExileClient_gui_postProcessing_initialize;
	
	varIsPpDed = nil;
};

// if you don't want to mod all effects then something like this:
if(isNil "varIsPpDed")then{
	hint "Exile Colour Corrections Disabled";
	ppEffectDestroy ExileClientPostProcessingColorCorrections;
	ppEffectDestroy ExileClientPostProcessingBorderVignette;
	
	varIsPpDed = true;
} 
else 
{
	hint "Exile Colour Corrections Enabled";
	ExileClientPostProcessingColorCorrections = ppEffectCreate ["colorCorrections", 1500];
	ExileClientPostProcessingColorCorrections ppEffectAdjust [1, 1.1, -0.05, [0.4, 0.2, 0.3, -0.1], [0.79, 0.72, 0.62, 1], [0.5,0.5,0.5,0], [0,0,0,0,0,0,4]];
	ExileClientPostProcessingColorCorrections ppEffectCommit 0;
	ExileClientPostProcessingColorCorrections ppEffectEnable true;
	ExileClientPostProcessingBorderVignette = ppEffectCreate ["colorCorrections", 1502];
	ExileClientPostProcessingBorderVignette ppEffectAdjust [0.7,1,-0.2,[0,0,0,0],[1,1,1,1],[0,0,0,0],[0.85,0.85,0,0,0,0,4]];
	ExileClientPostProcessingBorderVignette ppEffectCommit 0;
	ExileClientPostProcessingBorderVignette ppEffectEnable true;
	
	varIsPpDed = nil;
};

 

2 people like this

Share this post


Link to post
Share on other sites
51 minutes ago, infiSTAR said:

player = ? no

 


//	to really reinit all and end all you could probably better do (you never reenabled ExileClientPostProcessingBorderVignette):
if(isNil "varIsPpDed")then{
	hint "Exile Colour Corrections Disabled";
	ppEffectDestroy ExileClientPostProcessingColorCorrections;
	ppEffectDestroy ExileClientPostProcessingBorderVignette;
	ppEffectDestroy ExileClientPostProcessingBackgroundBlur;
	ppEffectDestroy ExileClientPostProcessingDelirium;
	ppEffectDestroy ExileClientPostProcessingSecurityCameraFilmGrain;
	
	varIsPpDed = true;
} 
else 
{
	hint "Exile Colour Corrections Enabled";
	[] call ExileClient_gui_postProcessing_initialize;
	
	varIsPpDed = nil;
};

// if you don't want to mod all effects then something like this:
if(isNil "varIsPpDed")then{
	hint "Exile Colour Corrections Disabled";
	ppEffectDestroy ExileClientPostProcessingColorCorrections;
	ppEffectDestroy ExileClientPostProcessingBorderVignette;
	
	varIsPpDed = true;
} 
else 
{
	hint "Exile Colour Corrections Enabled";
	ExileClientPostProcessingColorCorrections = ppEffectCreate ["colorCorrections", 1500];
	ExileClientPostProcessingColorCorrections ppEffectAdjust [1, 1.1, -0.05, [0.4, 0.2, 0.3, -0.1], [0.79, 0.72, 0.62, 1], [0.5,0.5,0.5,0], [0,0,0,0,0,0,4]];
	ExileClientPostProcessingColorCorrections ppEffectCommit 0;
	ExileClientPostProcessingColorCorrections ppEffectEnable true;
	ExileClientPostProcessingBorderVignette = ppEffectCreate ["colorCorrections", 1502];
	ExileClientPostProcessingBorderVignette ppEffectAdjust [0.7,1,-0.2,[0,0,0,0],[1,1,1,1],[0,0,0,0],[0.85,0.85,0,0,0,0,4]];
	ExileClientPostProcessingBorderVignette ppEffectCommit 0;
	ExileClientPostProcessingBorderVignette ppEffectEnable true;
	
	varIsPpDed = nil;
};

 

Hey InfiSTAR,

Thanks for the help! I am on mobile right now but I will update it as soon as possible.

I realised I didn't do somethings right and I probably shouldn't have made it just as I woke up, but I appreciate the learning opportunity! 

Share this post


Link to post
Share on other sites

Well done zisb! Once you start, you can't stop. Its truly a sickness (in a good way) and those ideas just keep coming, and coming, and coming...

Share this post


Link to post
Share on other sites

Posted (edited)

Updated!

V 1.1

  • Code fixes by @infiSTAR (Love you <3)
  • Fixed .paa Image (Oops)

 

Let me know if there are any more issues.

Edited by zisb

Share this post


Link to post
Share on other sites

Updated to 1.58. 

Change log:

-

Let me know if you have any issues.

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.