Jump to content
Sign in to follow this  
Sakai

Error with model.cfg

Recommended Posts

Heyoh lads! I got a unusual problem I never got before and oxygen 2 is telling me that the problem is coming out from model.cfg so I had to make a type or forgot something but I kept on looking and found nothing :| Here is the error!

---------------------------

Buldozer Viewer

---------------------------

ar15\model.cfg, line 36: Config: End of line encountered after (null)

---------------------------

OK

---------------------------

My model.cfg

http://pastebin.com/UMeuAG27

Could anyone point me out? :)

Share this post


Link to post
Share on other sites

You have a extra ," in this part.

sections[]=

{

"zasleh","magazine","zamek","ironsights","siderail","bullet_cover","trigger","fire_selector_switch","

};

Share this post


Link to post
Share on other sites

Doh, how could of I not see that >.< however after that im getting another error...

---------------------------

\ar15\model.cfg, line 147: '/CfgModels/Animations.': '{' encountered instead of '='

---------------------------

OK

---------------------------

Which is rather weird because I use the same layout on my M16A1 :-| and I had no model.cfg problems

Share this post


Link to post
Share on other sites

You might have 2 parantheses too much here (marked in red):

        class sak_ar15: Default
       {
               sections[]=
               {
                       "zasleh","magazine","zamek","ironsights","siderail","bullet_cover","trigger","fire_selector_switch"
               };
               skeletonName="sak_ar15";
               [color="#FF0000"]};[/color]
               class Animations
               {
                       ....
                       class fire_selector_switch
                       {
                               ....

                       };
                       [color="#FF0000"]{[/color]
                       class unloaded_magazine_hide {
                               ...
                       };
               };
       };

Share this post


Link to post
Share on other sites
You might have 2 parantheses too much here (marked in red):

        class sak_ar15: Default
       {
               sections[]=
               {
                       "zasleh","magazine","zamek","ironsights","siderail","bullet_cover","trigger","fire_selector_switch"
               };
               skeletonName="sak_ar15";
               [color="#FF0000"]};[/color]
               class Animations
               {
                       ....
                       class fire_selector_switch
                       {
                               ....

                       };
                       [color="#FF0000"]{[/color]
                       class unloaded_magazine_hide {
                               ...
                       };
               };
       };

That { by unloaded magazine hide did fix something because now it says something different O.o

---------------------------

\ar15\model.cfg, line 148: '/CfgModels/Animations/unloaded_magazine_hide.': '{' encountered instead of '='

---------------------------

OK

---------------------------

Share this post


Link to post
Share on other sites

Doh thanks lads, those edits are very... Hard to digest...

Share this post


Link to post
Share on other sites
Does that mean it works?

Yap works perfectly fine!

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  

×