Jump to content
Sign in to follow this  
Yac

F4 problem

Recommended Posts

Hello interested in the subject :)

I made models of F4 Phantom II in versions B and J (a typical U.S. Navy working horses in the years 50-80). At the time of loading in the editor shows the following error.

Animation source WingL not found in bin\config.bin/CfgVehicles/uns_F4J/

Oddly enough - animation folding and unfolding the wings works fine in both models. Same string shows up only at the first attempt to load the mission in the editor.

The following excerpt config.cpp responsible for making wings in the model

classUserActions
{
class RaiseWings
{
displayName="Raise Wings";
position="pilotcontrol";
radius=5;
condition="this animationPhase ""WingR"" < 0.5 and player in this";
statement="[this, 0] exec ""\uns_f4\scr\FX_raise.sqs""";
};
class LowerWings {
displayName="Lower Wings";
position="pilotcontrol";
radius=5;
condition="this animationPhase ""WingL"" >= 0.5 and player in this";
statement="[this, 0] exec ""\uns_f4\scr\FX_lower.sqs""";

and

class AnimationSources 
{
class LowerWings {
source = "user";
animPeriod = 1;
initPhase = 0;
};
class RaiseWings {
source = "user";
animPeriod = 1;
initPhase = 0;
};

I tried to find what causes this annoying bug, but I give up, maybe someone will notice where I made a mistake ?

Edited by Yac

Share this post


Link to post
Share on other sites

And yes, you're right - have improved that config.cpp not model.cfg. It annoys me is that everything works ok and shows an error message is what slows down the loading of the model in the editor.

Share this post


Link to post
Share on other sites

[APS]Gnat and you could have a whole litter of PM?

Share this post


Link to post
Share on other sites

hi , i think error .rpt is right ,i see you have named animationsource inccorect

if wings are working then as report says it looks for the source of wingL and R ( prob in arma.rpt you see more than this error in editor

look here bold class

classUserActions

{

class RaiseWings

{

displayName="Raise Wings";

position="pilotcontrol";

radius=5;

condition="this animationPhase ""WingR"" < 0.5 and player in this";

statement="[this, 0] exec ""\uns_f4\scr\FX_raise.sqs""";

};

class LowerWings {

displayName="Lower Wings";

position="pilotcontrol";

radius=5;

condition="this animationPhase ""WingL"" >= 0.5 and player in this";

statement="[this, 0] exec ""\uns_f4\scr\FX_lower.sqs""";

you have named animationsource after user action not the animations wingl and wingR

so if your sqf simply animates wingl and wingr then change here

class AnimationSources

{

class LowerWings {

source = "user";

animPeriod = 1;

initPhase = 0;

};

class RaiseWings {

source = "user";

animPeriod = 1;

initPhase = 0;

};

class AnimationSources

{

class WingL {

source = "user";

animPeriod = 1;

initPhase = 0;

};

class WingR :wingL

{

};

};

if this not it then as other says maybe in model.cfg class wingl and wingR - source is wrong , but i doubt because they animate ok.

Edited by Thromp

Share this post


Link to post
Share on other sites

Unfortunately, it did not help :(

The most annoys me that everything works well only this message pops up about what I wrote above :(

Share this post


Link to post
Share on other sites

Hey mate. This is how i did it in our PRACS F-18 and all works well.....

config.cpp


                                         class foldwings 
                                         {
			displayName = "Fold Wings";
			position = "pilotcontrol";
			onlyForPlayer = 0;
			radius = 5;
			condition = "this animationPhase ""l_wingfold"" < 0.1 and (getpos this select 2) < 1 and speed this < 1";
			statement = "[this] exec ""\PRACS_F18\Script\foldwing.sqs""";
		};

		class unfoldwings {
			displayName = "Unfold wings";
			position = "pilotcontrol";
			onlyForPlayer = 0;
			radius = 5;
			condition = "this animationPhase ""l_wingfold"" > 0.9and (getpos this select 2) < 1 and speed this < 1";
			statement = "[this] exec ""\PRACS_F18\Script\unfoldwing.sqs""";
		};

model.cfg



                                           class r_wingfold {
			type = "rotation";
			selection = "rw_fold";
			axis = "osa_rwf";
			memory = 1;
			minValue = 0;
			maxValue = 1;
			angle0 = "rad 0";
			angle1 = "rad -90";
		};
		class l_wingfold {
			type = "rotation";
			selection = "lw_fold";
			axis = "osa_lwf";
			memory = 1;
			minValue = 0;
			maxValue = 1;
			angle0 = "rad 0";
			angle1 = "rad +90";
		};

foldwing.sqs



_f18 = _this select 0

_f18 animate ["l_wingfold",1]
_f18 animate ["r_wingfold",1]

exit

Share this post


Link to post
Share on other sites

above will work as WLD say however only because he has not defined a source ( which why no error NOT saying its wrong ,if it works it works )

for your actual error there are 3 remaining reasons why it could be

1: you have named source of animation wrongly in model.cfg for wingL and R ,maybe you put source user not WingL

2: your temporary folder from BinPBO is not emptying and thus any changes your making are not being registered by binpbo so your just re biarise the old folder

3: you have another pbo (older version or other addonmaker) loading at same time and over riding

Share this post


Link to post
Share on other sites

Check as soon as I return home after work. Thank you all for your help. I will write what and how as checking - cheers

+++++++++++++++++++++EDIT+++++++++++++++++++++++++ +++++++++++++++

Display reason for error as usual trivial ;) I did not write this line "onlyForPlayer = 0;" Now everything works fine. Thanks again for your help and guidance you gave me.

http://www.youtube.com/watch?v=bWP96wcE5ls

Edited by Yac

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  

×