Jump to content
Sign in to follow this  
DeathF0X

Custom addon config error since 1.60

Recommended Posts

Hey,

 

since the 1.60 update some of my addons dont work anymore, i patched the laptop for use with ace3.

Cant find the failure in my config.

 

It worked before, i hope someone has a solution or can give me a hint for fixing.

 

Thx Phil

 

-------

rpt:

Warning Message: No entry 'bin\config.bin/CfgVehicles/Land_Laptop_F.side'.
Warning Message: '/' is not a value
Warning Message: No entry 'bin\config.bin/CfgVehicles/Land_Laptop_F.faction'.

 

 

config viewer:

half of the configs are missing although i patch the base config.

9BboFeg

 

 

config.cpp:

class CfgPatches {
	class fox_items {
		units[] = {};
		weapons[] = {};
		requiredVersion = 1.54;
		author = "FOX";
		authorUrl = "http://xof.at";
		requiredAddons[] = {"ace_cargo","ace_common","ace_dragging","ace_interact_menu","ace_interaction","ace_main"};
	};
};

class CfgVehicles{

  class ThingX;
  class Land_Laptop_unfolded_F{

  ace_cargo_canLoad = 1;
  ace_cargo_size = 1;
  ace_dragging_canCarry = 1;
  ace_dragging_canDrag = 1;
  ace_dragging_carryDirection = 180;
  ace_dragging_carryPosition[] = {0,1.2,0};
  ace_dragging_dragDirection = 180;
  ace_dragging_dragPosition[] = {0,0.9,0};
  scope = 2;

  class ACE_Actions {

    class ACE_MainActions {

    displayName = "$STR_fox_items_interaction";
    selection = "";
    distance = 2;
    condition = "true";


    class fox_items_laptop_remove_harddrive {
      displayName = "$STR_fox_items_remove_harddrive";
      condition = "alive _target";
      statement = "['test'] spawn fox_core_fnc_hint";
      showDisabled = 0;
      priority = 1;
      position = "[0,0,0.500671]";
      distance = 2;
      icon = "\fox_items\textures\laptop_hdd.paa";
    };

  };// ACE_MainActions

};//ACE_Actions


};//Land_Laptop_unfolded_F

};

Share this post


Link to post
Share on other sites

The temporary solution so far:

class Land_Laptop_unfolded_F : ACE_RepairItem_Base{ };

class Fox_Laptop : Land_Laptop_unfolded_F{

Share this post


Link to post
Share on other sites

 

The temporary solution so far:

class Land_Laptop_unfolded_F : ACE_RepairItem_Base{ };

class Fox_Laptop : Land_Laptop_unfolded_F{

You'll get all kinds of errors when not directly inheriting from an already defined class (as per your example in your first post) and not explicitly defining all the 'default' defines such as side, faction - the errors you're getting. As such, your solution seems the best course (unless you find another more suitable class to inherit from - the default laptop perhaps?)

Share this post


Link to post
Share on other sites

Before 1.60 update i patched the Laptop class Land_Laptop_unfolded_F directly , open spoiler , to add the ability to interact via ace3 interaction.

class ThingX;
class Land_Laptop_unfolded_F{

ace_cargo_canLoad = 1;
ace_cargo_size = 1;
ace_dragging_canCarry = 1;
ace_dragging_canDrag = 1;
ace_dragging_carryDirection = 180;
ace_dragging_carryPosition[] = {0,1.2,0};
ace_dragging_dragDirection = 180;
ace_dragging_dragPosition[] = {0,0.9,0};
scope = 2;

class ACE_Actions {

class ACE_MainActions {

displayName = "$STR_fox_items_interaction";
selection = "";
distance = 2;
condition = "true";

 

Now with 1.60 patching the Land_Laptop_unfolded_F breaks the config completly,

class ThingX;
class Land_Laptop_unfolded_F{

 90% of the config is missing.

 

9BboFeg.jpg

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  

×