Jump to content
Sign in to follow this  
Erzengelgames

extra_rc can not execute files

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""";
        };
    };
};

Share this post


Link to post
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'";
        };         
};
};

 

Share this post


Link to post
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

Share this post


Link to post
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";

 

Share this post


Link to post
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

Share this post


Link to post
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'";

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...