Jump to content
Sign in to follow this  
j_murphy

Cannot find the error in my config (probably very simple)

Recommended Posts

I am making a really simple addon but when I attempt to play the game it says "Config: some input after EndOfFile". So I go to my Arma3.rpt file and it says this

21:49:12 ManagerConfig()
21:49:12 Item STR_CONTROLS_TOOLTIPS_ACTION_IN_MAP listed twice
21:49:12 Item str_usract_action_in_map listed twice
21:49:21 File Ramp\config.cpp, line 7: '/CfgPatches/Murphy_Ramp.requiredAddons': Missing ';' prior '}'

I have been looking through my config.cpp all night and I cannot find a thing. The code is

class CfgPatches
{
  class Murphy_Ramp
  {
  units[] = {"Murphy_Ramp"};
  weapons[] = {};
  requiredVersion = 0.1;
  requiredAddons = {};
  };

};

class CfgVehicles
{
  class Static;
  Class Murphy_Ramp : Static
 {
  scope = 2;
  model = "P:\Murphy_Buildings\Ramp\Murphy_Ramp.p3d";
  displayName = "Ramp";
  vehicleClass = "Murphy's buildings";
  };

};

The addon is a simple shape with no LOD.

Help is appreciated.

Share this post


Link to post
Share on other sites

Change

requiredAddons = {};

to

requiredAddons[] = {};

It needs the [] because it's an array.

- edit

Also, remove the P:\ from your model path so that it becomes:

model = "Murphy_Buildings\Ramp\Murphy_Ramp.p3d";

Share this post


Link to post
Share on other sites

Apprarently Arma has a problem with the code. Now it is saying "File Ramp\config.cpp, line 15:'/CfgVehicles.Class-: 'M' encountered instead of '=' ".

The code is

class CfgPatches
{
  class Murphy_Ramp
  {
  units[] = {"Murphy_Ramp"};
  weapons[] = {};
  requiredVersion = 0.1;
  requiredAddons[] = {};
  };

};

class CfgVehicles
{
  class Static;
  Class Murphy_Ramp : Static
 {
  scope = 2;
  model = "Murphy_Buildings\Ramp\Murphy_Ramp.p3d";
  displayName = "Ramp";
  vehicleClass = "Murphy's buildings";
  };

};   

I cannot for the life of me find the error. All Arma3.rpt says is

17:35:43 ManagerConfig()
17:35:44 Item STR_CONTROLS_TOOLTIPS_ACTION_IN_MAP listed twice
17:35:44 Item str_usract_action_in_map listed twice
17:35:52 Error context urphy_Ramp : Static

Share this post


Link to post
Share on other sites

I don't know how picky Arma is while parsing config.cpps but I think it needs to be like this:

 class Murphy_Ramp: Static
 {
  scope = 2;
  model = "Murphy_Buildings\Ramp\Murphy_Ramp.p3d";
  displayName = "Ramp";
  vehicleClass = "Murphy's buildings";
  };

But is that a valid vehicleClass?

- edit

What are you using to pack the PBO? If it's not PBOProject, definitely give that a try, if there's anything else wrong with your setup it will tell you. The updated version may be paid for from now on but there's still a free one available that's recent.

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  

×