Jump to content
Sign in to follow this  
Sigma-6

Script not working when binarized

Recommended Posts

Any idea why a script to animate the hood of a car would work when the addon is unbinarized, but stop working when it's binarized? 

 

Here's the config entries:

class AnimationSources: AnimationSources
		{
			class  TwoSecondAnim
			{
				source = "user";
				animPeriod = 2;
				initPhase=0;
			};
		};
		class UserActions
		{
			class Openhood
			{
				displayName ="Pop the Hood";
				position = "pos h";
				radius =1.7;
				onlyForplayer= false;
				condition = "this animationPhase ""hood"" < 0.5 && (getpos this select 2) < 3 && (speed this < 3) AND Alive(this)";
				statement = "[this] exec ""\roadrunner2\scripts\hoodop.sqs""";
			};
			class Closehood
			{
				displayName ="Close the Hood";
				position = "pos h";
				radius =1.7;
				onlyForplayer= false;
				condition = "this animationPhase ""hood"" > 0.5 AND Alive(this)";
				statement = "[this] exec ""\roadrunner2\scripts\hoodcl.sqs""";
			};
			
		};

And the model.cfg entries:

class hood
			{
				type="rotation";
				source = "twoSecondAnim";
				sourceAddress = "clamp";
				selection="hood";
				axis="hood_axis";
				angle0=0;
				angle1="rad 36";
				memory = true; 
				minValue = 0;
				maxValue = 1;
			};

Once again, this works marvelously when the whole thing is unbinarized. As soon as I binarize it, I can trigger the animation with an init, but not with the action menu. The prompt shows up, it just doesn't do anything.

Share this post


Link to post
Share on other sites

Have you unpacked the Bianrized .pbo to confirm that the script is actually there? It may be that during the Binarization process the config is omitted from the PBO.

Share this post


Link to post
Share on other sites

Thanks. I excluded scripts from packing and now it works. :)

  • Like 1

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  

×