Jump to content

extra_rc can not execute files


Erzengelgames

Recommended Posts

 

First of all i will explain the problem.

I have shown you my extra_rc which is running and working cause the building systen in this is working but when i try to run scripts, that i can run via my planermenu or keybinds they do not work.

the option shows up so

I tried it with toolbelt items

can anyone tell me what i have done wrong here ?

no errors btw

Spoiler

class ExtraRc {
    class ItemLightbulb {
        class Start_Crafting {
            text = "Custom Building";
            script = "closeDialog 0;createDialog ""Advanced_Crafting"";execVM ""custom\Buildables\Lights.sqf""";
        };
        
    };    
    class Notebook_bio_DZE {
        class Debug_menu {
            text = "Display stats";
            script = "closeDialog 0;execVM =""custom\toolbelt\debug.sqf""";
        };
    };    
    class Moscow_Bombing_File {
        class Request_bombs {
            text = "Suicidebomber";
            script = "closeDialog 0;execVM =""custom\toolbelt\carpet.sqf""";
        };
    };
};

Link to comment
Share on other sites

@Erzengelgames here you got an example about how the extra_rc structure looks.

class ExtraRc {
class ItemKiloHemp {
	  class smoke {
	  text = "SmokeDrugs";
	  script = "execVM 'custom\scripts\drugs\smokedrugs.sqf'";
    };
  };  
  class ItemShovel {  
           class buildjail {
            text = "test";
            script = "execVM 'custom\scripts\drugs\smokedrugs.sqf'";
        };         
};
};

 

Link to comment
Share on other sites

you also can try this little test.

replace your extra_rc  with this code.

class ExtraRc {
 
  class ItemToolbox {
     class test {
        text = "test";
        script = "execVM 'custom\extra_test.sqf'";
     };
  };
}; 

extra_test.sqf

Spoiler

systemChat("Extra right click test success");
        
player playActionNow "Medic";

if works you can discard any issue with ui_selectslot.sqf

Link to comment
Share on other sites

@Erzengelgames dont know what kind of script is it,, but you can test with other script.

Extra_rc.hpp

Spoiler

class ExtraRc {
    class ItemLightbulb {
        class Start_Crafting {
            text = "Custom Building";
            script = "execVM 'custom\extra_test.sqf'";
        };
        
    };    
    class Notebook_bio_DZE {
        class Debug_menu {
            text = "Display stats";
            script = "execVM 'custom\extra_test.sqf'";
        };
    };    
    class Moscow_Bombing_File {
        class Request_bombs {
            text = "Suicidebomber";
            script = "execVM 'custom\extra_test.sqf'";
        };
    };
}; 

 

extra_test.sqf

Spoiler

systemChat("Extra right click test success");
        
player playActionNow "Medic";

 

Link to comment
Share on other sites

Spoiler

class ExtraRc {
	class ItemLightbulb {
        class Start_Crafting {
            text = "Custom Building";
            script = "closeDialog 0;createDialog ""Advanced_Crafting"";execVM ""custom\Buildables\Lights.sqf""";
        };
		
    };	
	class Notebook_bio_DZE {
		class Debug_menu {
            text = "Display stats";
            script = "execVM ='custom\toolbelt\debug.sqf'";
        };
		class extra_test {
            text = "Testmessage";
            script = "execVM ='custom\toolbelt\extra_test.sqf'";
        };
    };	
	class Moscow_Bombing_File {
        class Request_bombs {
            text = "Suicidebomber";
            script = "execVM ='custom\toolbelt\carpet.sqf'";
        };
	};
};

 

here is mine. nothing accept of the custom building is working

Link to comment
Share on other sites

On 10/18/2017 at 6:52 PM, Erzengelgames said:
  Reveal hidden contents


class ExtraRc {
	class ItemLightbulb {
        class Start_Crafting {
            text = "Custom Building";
            script = "closeDialog 0;createDialog ""Advanced_Crafting"";execVM ""custom\Buildables\Lights.sqf""";
        };
		
    };	
	class Notebook_bio_DZE {
		class Debug_menu {
            text = "Display stats";
            script = "execVM ='custom\toolbelt\debug.sqf'";
        };
		class extra_test {
            text = "Testmessage";
            script = "execVM ='custom\toolbelt\extra_test.sqf'";
        };
    };	
	class Moscow_Bombing_File {
        class Request_bombs {
            text = "Suicidebomber";
            script = "execVM ='custom\toolbelt\carpet.sqf'";
        };
	};
};

 

here is mine. nothing accept of the custom building is working

use single quotes, inside of a string. ExecVM is a scripting command, not a variable, do not append = after scripting commands

 

i.e. this is a correct example of the script definition.

Script = "execVM 'custom\toolbelt\carpet.sqf'";
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...