nekollx Posted December 30, 2014 Share Posted December 30, 2014 I'm working on a Mod but for some reason every time i try to compile a script, even the MCM sample script the CK fails so was wondering if there was someone out there who could act as a intemediary and compile the scripts for me? Link to comment Share on other sites More sharing options...
Mattiewagg Posted December 30, 2014 Share Posted December 30, 2014 What is the compilation error? And to compile MCM scripts, you need to install the source files for SkyUI, which you can find here: https://github.com/schlangster/skyui/wiki Link to comment Share on other sites More sharing options...
nekollx Posted December 30, 2014 Author Share Posted December 30, 2014 (edited) that's the thing i did install those and yet every single script fails Starting 1 compile threads for 1 files...Compiling "DBETestScript"...DBETestScript.psc(10,4): Unknown user flag Race_OID_TDBETestScript.psc(14,4): Unknown user flag RaceDBETestScript.psc(14,0): script variable Player already definedDBETestScript.psc(52,15): no viable alternative at input 'Player'DBETestScript.psc(52,33): required (...)+ loop did not match anything at input ')'DBETestScript.psc(0,0): filename does not match script name: newmenu_skiconfigmenuNo output generated for DBETestScript, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on DBETestScript And i don't think it's my script as i get a similar log trying to compile the mcm sample script see Starting 1 compile threads for 1 files...Compiling "ExampleConfigMenu"...C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(8,18): no viable alternative at character '''C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(8,24): no viable alternative at character '''C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(13,49): no viable alternative at character 'ƒ'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(13,50): no viable alternative at character 'ú'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(13,70): no viable alternative at character 'ƒ'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(13,71): no viable alternative at character 'ú'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(292,21): no viable alternative at character ':'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(292,40): no viable alternative at character ':'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(292,44): no viable alternative at character ':'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(303,13): no viable alternative at character ':'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(492,16): no viable alternative at character '''C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(492,39): no viable alternative at character '''C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(840,66): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(844,66): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(857,76): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(861,76): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(865,76): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(869,76): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(903,69): mismatched character 'g' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(907,75): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(928,69): mismatched character 'g' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(932,75): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(936,84): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(988,70): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1004,75): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1029,70): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1042,73): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1046,90): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1050,90): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1054,90): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1067,73): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1071,86): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1075,88): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1093,73): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1097,71): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1101,73): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1105,73): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1109,94): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1113,94): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1122,86): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1126,88): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1134,74): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1143,70): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1156,73): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1164,73): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1168,73): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1172,73): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1176,73): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1277,86): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1385,97): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1609,82): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1622,80): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1626,65): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1634,65): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1647,92): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1709,69): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1717,69): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1725,69): mismatched character 'q' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(1777,11): mismatched character 'c' expecting '&'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(5,0): mismatched input '<' expecting SCRIPTNAMEC:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(5,14): required (...)+ loop did not match anything at input '>'C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ExampleConfigMenu.psc(0,0): error while attempting to read script ExampleConfigMenu: Object reference not set to an instance of an object.No output generated for ExampleConfigMenu, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on ExampleConfigMenu Ifi cant get the sample to work kinda hard to figure out what needs fixing Edited December 30, 2014 by nekollx Link to comment Share on other sites More sharing options...
Terra Nova Posted December 30, 2014 Share Posted December 30, 2014 post the script Link to comment Share on other sites More sharing options...
nekollx Posted December 31, 2014 Author Share Posted December 31, 2014 ScriptName NewMenu_SkiConfigMenu Extends SKI_ConfigBase int Function GetVersion()Return 1 ; Last versionEndFunction ;------------ Private Variables; OIDs (T:Text B:Toggle S:Slider M:Menu, C:Color, K:Key)int ModEnabled_OID_Bint Player Race_OID_T ; Statesint ModEnabledint Player Race ; GlobalVariable States Event OnConfigInit(){Called when this config menu is initialized} ; Creating pagesPages = new string[1]Pages[0] = "Actor Details"EndEvent Event OnVersionUpdate(int version){Called when a version update of this script has been detected} EndEvent Event OnPageReset(string page){Called when a new page is selected, including the initial empty page} ; Building Actor Details page...If ( page == "Actor Details" )If (CurrentVersion >= 1)ModEnabled_OID_B = AddEmptyOption()Player Race_OID_T = AddTextOption("get player race", "Game.GetPlayer().GetBaseObject().GetRace() as ActorBase")EndIfReturnEndIf EndEvent Event OnOptionHighlight(int option){Called when highlighting an option} If (option == ModEnabled_OID_B ) SetInfoText("Enable/Disable DBE")ReturnEndIfIf (option == Player Race_OID_T ) SetInfoText("Gets the players race to set as a basline for the mod as you move up and down stages")ReturnEndIf EndEvent Event OnOptionSelect(int option){Called when a non-interactive option has been selected} If ( option == ModEnabled_OID_B )SetTextOptionValue(ModEnabled_OID_B, ModEnabled)ReturnEndIf EndEvent Event OnOptionDefault(int option){Called when resetting an option to its default value} EndEvent Event OnOptionSliderOpen(int option){Called when a slider option has been selected} EndEvent Event OnOptionSliderAccept(int option, float value){Called when a new slider value has been accepted} EndEvent Event OnOptionMenuOpen(int option){Called when a menu option has been selected} EndEvent Event OnOptionMenuAccept(int option, int index){Called when a menu entry has been accepted} EndEvent Event OnOptionColorOpen(int option){Called when a color option has been selected} EndEvent Event OnOptionColorAccept(int option, int color){Called when a new color has been accepted} EndEvent Event OnOptionKeyMapChange(int option, int keyCode, string conflictControl, string conflictName){Called when a key has been remapped} EndEvent I made it with MCM Designer and figure there some bad code in it but since i can't compile it or the MCM example it's a bit hard to trouble shot and make working code. What it's suposed to do is basicly just list (and store for future reference/restoration) The players Race, face texture, eye texture, hand and body texture (since eventually those will be chaged by the mods purpose so storing to pre mod values was very important for numerous reasons) Link to comment Share on other sites More sharing options...
Mattiewagg Posted January 1, 2015 Share Posted January 1, 2015 Try verifying your CK and Skyrim steam cache. Link to comment Share on other sites More sharing options...
nekollx Posted January 2, 2015 Author Share Posted January 2, 2015 yup just did it again, tried to recompile both mine and the example, same failures Link to comment Share on other sites More sharing options...
RealAntithesis Posted January 2, 2015 Share Posted January 2, 2015 The variable player race looks weird. There should be no spaces in variable names as the compiler won't be able to understand the line. Try renaming this to playerRace or something (ie one word)? Link to comment Share on other sites More sharing options...
nekollx Posted January 2, 2015 Author Share Posted January 2, 2015 well that seems to help solve most of the problems but now its failing at line zero so is my initalization wrong? ScriptName NewMenu_SkiConfigMenu Extends SKI_ConfigBase int Function GetVersion()Return 1 ; Last versionEndFunction ;------------ Private Variables; OIDs (T:Text B:Toggle S:Slider M:Menu, C:Color, K:Key)int ModEnabled_OID_Bint PlayerRace_OID_T ; Statesint ModEnabledint PlayerRace ; GlobalVariable States Event OnConfigInit(){Called when this config menu is initialized} ; Creating pagesPages = new string[1]Pages[0] = "Actor Details"EndEvent Event OnVersionUpdate(int version){Called when a version update of this script has been detected} EndEvent Event OnPageReset(string page){Called when a new page is selected, including the initial empty page} ; Building Actor Details page...If ( page == "Actor Details" )If (CurrentVersion >= 1)ModEnabled_OID_B = AddEmptyOption()PlayerRace_OID_T = AddTextOption("get player race", "Game.GetPlayer().GetBaseObject().GetRace() as ActorBase")EndIfReturnEndIf EndEvent Event OnOptionHighlight(int option){Called when highlighting an option} If (option == ModEnabled_OID_B ) SetInfoText("Enable/Disable DBE")ReturnEndIfIf (option == PlayerRace_OID_T ) SetInfoText("Gets the players race to set as a basline for the mod as you move up and down stages")ReturnEndIf EndEvent Event OnOptionSelect(int option){Called when a non-interactive option has been selected} If ( option == ModEnabled_OID_B )SetTextOptionValue(ModEnabled_OID_B, ModEnabled)ReturnEndIf EndEvent Event OnOptionDefault(int option){Called when resetting an option to its default value} EndEvent Event OnOptionSliderOpen(int option){Called when a slider option has been selected} EndEvent Event OnOptionSliderAccept(int option, float value){Called when a new slider value has been accepted} EndEvent Event OnOptionMenuOpen(int option){Called when a menu option has been selected} EndEvent Event OnOptionMenuAccept(int option, int index){Called when a menu entry has been accepted} EndEvent Event OnOptionColorOpen(int option){Called when a color option has been selected} EndEvent Event OnOptionColorAccept(int option, int color){Called when a new color has been accepted} EndEvent Event OnOptionKeyMapChange(int option, int keyCode, string conflictControl, string conflictName){Called when a key has been remapped} EndEvent Starting 1 compile threads for 1 files...Compiling "DBETestScript"...C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\DBETestScript.psc(0,0): filename does not match script name: newmenu_skiconfigmenuNo output generated for DBETestScript, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on DBETestScript Link to comment Share on other sites More sharing options...
Terra Nova Posted January 2, 2015 Share Posted January 2, 2015 The filename has to match the scriptname.. So...→ newmenu_skiconfigmenu.psc Link to comment Share on other sites More sharing options...
Recommended Posts