Erzengelgames Posted October 18, 2017 Report Share Posted October 18, 2017 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 More sharing options...
juandayz Posted October 18, 2017 Report Share Posted October 18, 2017 @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 More sharing options...
Erzengelgames Posted October 18, 2017 Author Report Share Posted October 18, 2017 i did try like that but its not working Link to comment Share on other sites More sharing options...
juandayz Posted October 18, 2017 Report Share Posted October 18, 2017 59 minutes ago, Erzengelgames said: i did try like that but its not working Are. You sure youre using corrects items classnames? Link to comment Share on other sites More sharing options...
Erzengelgames Posted October 18, 2017 Author Report Share Posted October 18, 2017 the options are getting displayed so yes. iam sure Link to comment Share on other sites More sharing options...
juandayz Posted October 18, 2017 Report Share Posted October 18, 2017 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 More sharing options...
juandayz Posted October 18, 2017 Report Share Posted October 18, 2017 Just now, Erzengelgames said: the options are getting displayed so yes. iam sure ah ok, sorry.- Link to comment Share on other sites More sharing options...
juandayz Posted October 18, 2017 Report Share Posted October 18, 2017 and is not a script issue? Link to comment Share on other sites More sharing options...
Erzengelgames Posted October 18, 2017 Author Report Share Posted October 18, 2017 Just now, juandayz said: ah ok, sorry.- wasnt my intention to let it sound like that :D Link to comment Share on other sites More sharing options...
juandayz Posted October 18, 2017 Report Share Posted October 18, 2017 Just now, Erzengelgames said: wasnt my intention to let it sound like that :D lol, no i just postint the test when you said "options displayed" dont worry you dont sound bad :D Link to comment Share on other sites More sharing options...
Erzengelgames Posted October 18, 2017 Author Report Share Posted October 18, 2017 3 minutes ago, juandayz said: and is not a script issue? no i can run the script when i keybind it Link to comment Share on other sites More sharing options...
juandayz Posted October 18, 2017 Report Share Posted October 18, 2017 @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 More sharing options...
Erzengelgames Posted October 18, 2017 Author Report Share Posted October 18, 2017 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 More sharing options...
icomrade Posted October 24, 2017 Report Share Posted October 24, 2017 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 More sharing options...
Erzengelgames Posted October 29, 2017 Author Report Share Posted October 29, 2017 oh :D danks a lot icomrade. not tested yet but does make sence ^^ edit: of cause it did work Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now