Jump to content

First time MCM menu creation - script won't compile


Recommended Posts

  Dear Readers!

I am not new to modding, but new to scripting. I am using this guide to set up my first mod with a MCM menu.
The aim of this mod is to add an MCM menu with chooseable extra perks for maximum compatibility with mods, that change the perk trees.
I have almost no idea, what I am doing here. When trying to compile my script with CK Papyrucs Script Manager or SSEScript I get the same errors (log below).

By now the script has just the very basics. It lacks the addition/removal of the actual mod-added perks, the use of perk points and the condition checks to grey out the perks, the player doesn't meet the requirements for. But at least I got to the point where the guide says I should be able to successfully compile my script.

Please help me finishing this stuff. Of course I will mention everyone who helped me in the credits. Plus I'm quite sure most Skyrim players out there will be glad to play with my mod, when it's finished. The perks will make poisoning a lot more useful and also give the enchanting and alteration skill some offensive meaning ... .

 

Ma script:

Scriptname scriptname extends SKI_ConfigBase

GlobalVariable Property HasPerk_Force1 Auto
GlobalVariable Property HasPerk_Force2 Auto
GlobalVariable Property HasPerk_Force3 Auto
GlobalVariable Property HasPerk_Freezer1 Auto
GlobalVariable Property HasPerk_Freezer2 Auto
GlobalVariable Property HasPerk_Freezer3 Auto
GlobalVariable Property HasPerk_Pyromaniac1 Auto
GlobalVariable Property HasPerk_Pyromaniac2 Auto
GlobalVariable Property HasPerk_Pyromaniac3 Auto
GlobalVariable Property HasPerk_Conductor1 Auto
GlobalVariable Property HasPerk_Conductor2 Auto
GlobalVariable Property HasPerk_Conductor3 Auto
GlobalVariable Property HasPerk_Tank1 Auto
GlobalVariable Property HasPerk_Tank2 Auto
GlobalVariable Property HasPerk_PoisonExpert Auto
GlobalVariable Property HasPerk_Poisoner1 Auto
GlobalVariable Property HasPerk_Poisoner2 Auto
GlobalVariable Property HasPerk_Poisoner3 Auto

Actor Player Auto

Int Toggle_Poisoner1
Int Toggle_Poisoner2
Int Toggle_Poisoner3
Int Toggle_PoisonExpert
Int Toggle_Force1
Int Toggle_Force2
Int Toggle_Force3
Int Toggle_Pyromaniac1
Int Toggle_Pyromaniac2
Int Toggle_Pyromaniac3
Int Toggle_Freezer1
Int Toggle_Freezer2
Int Toggle_Freezer3
Int Toggle_Conductor1
Int Toggle_Conductor2
Int Toggle_Conductor3
Int Toggle_Tank1
Int Toggle_Tank2
Int Text_Perkpoints

event OnPageReset(string page)
 If (Page == “”)
  SetCursorFillMode(LEFT_TO_RIGHT)
	AddHeaderOption(“Alchemy”)
	AddHeaderOption(“Alteration”)
	Toggle_Poisoner1 = AddToggleOption(“Poisoner”, HasPerk_Poisoner1.GetValueInt())
	Toggle_Force1 = AddToggleOption(“Force”, HasPerk_Force1.GetValueInt())
	Toggle_Poisoner2 = AddToggleOption(“Poisoner - Rank2”, HasPerk_Poisoner2.GetValueInt())
	Toggle_Force2 = AddToggleOption(“Force - Rank2”, HasPerk_Force2.GetValueInt())
	Toggle_Poisoner3 = AddToggleOption(“Poisoner - Rank3”, HasPerk_Poisoner3.GetValueInt())
	Toggle_Force3 = AddToggleOption(“Force - Rank3”, HasPerk_Force3.GetValueInt())
	Toggle_PoisonExpert = AddToggleOption(“Poison Expert”, HasPerk_PoisonExpert.GetValueInt())
	AddEmptyOption()
	AddHeaderOption(“Enchanting”)
	AddHeaderOption(“Heavy Armor”)
	Toggle_Pyromaniac1 = AddToggleOption(“Pyromaniac”, HasPerk_Pyromaniac1.GetValueInt())
	Toggle_Tank1 = AddToggleOption(“Tank”, HasPerk_Tank1.GetValueInt())
	Toggle_Pyromaniac2 = AddToggleOption(“Pyromaniac - Rank2”, HasPerk_Pyromaniac2.GetValueInt())
	Toggle_Tank2 = AddToggleOption(“Tank - Rank2”, HasPerk_Tank2.GetValueInt())
	Toggle_Pyromaniac3 = AddToggleOption(“Pyromaniac - Rank3)”, HasPerk_Pyromaniac3.GetValueInt())
	AddEmptyOption()
	Toggle_Freezer1 = AddToggleOption(“Freezer”, HasPerk_Freezer1.GetValueInt())
	AddEmptyOption()
	Toggle_Freezer2 = AddToggleOption(“Freezer - Rank2”, HasPerk_Freezer2.GetValueInt())
	Text_Perkpoints = AddTextOption(“Available Perkpoints”, player.GetPerkPoints())   ; this should show unspent perk points
	Toggle_Freezer3 = AddToggleOption(“Freezer - Rank3”, HasPerk_Freezer3.GetValueInt())
	AddEmptyOption()
	Toggle_Conductor1 = AddToggleOption(“Conductor”, HasPerk_Conductor1.GetValueInt())
	AddEmptyOption()
	Toggle_Conductor2 = AddToggleOption(“Conductor - Rank2”, HasPerk_Conductor2.GetValueInt())
	AddEmptyOption()
	Toggle_Conductor3 = AddToggleOption(“Conductor - Rank3”, HasPerk_Conductor3.GetValueInt())
 endif
EndEvent

And here's ma error log:  (BTW, I just renamend the script to "scriptname" for the purpose of posting it here.)

Compiling "scriptname"...


path\scriptname.psc(45,13): no viable alternative at character 'ƒ'
path\scriptname.psc(45,14): no viable alternative at character '?'
path\scriptname.psc(45,15): no viable alternative at character 'o'
path\scriptname.psc(45,16): no viable alternative at character 'ƒ'
path\scriptname.psc(45,17): no viable alternative at character '?'
path\scriptname.psc(45,18): no viable alternative at character '?'
path\scriptname.psc(47,17): no viable alternative at character 'ƒ'
path\scriptname.psc(47,18): no viable alternative at character '?'
path\scriptname.psc(47,19): no viable alternative at character 'o'
path\scriptname.psc(47,27): no viable alternative at character 'ƒ'
path\scriptname.psc(47,28): no viable alternative at character '?'
path\scriptname.psc(47,29): no viable alternative at character '?'
path\scriptname.psc(48,17): no viable alternative at character 'ƒ'
path\scriptname.psc(48,18): no viable alternative at character '?'
path\scriptname.psc(48,19): no viable alternative at character 'o'
path\scriptname.psc(48,30): no viable alternative at character 'ƒ'
path\scriptname.psc(48,31): no viable alternative at character '?'
path\scriptname.psc(48,32): no viable alternative at character '?'
path\scriptname.psc(49,36): no viable alternative at character 'ƒ'
path\scriptname.psc(49,37): no viable alternative at character '?'
path\scriptname.psc(49,38): no viable alternative at character 'o'
path\scriptname.psc(49,47): no viable alternative at character 'ƒ'
path\scriptname.psc(49,48): no viable alternative at character '?'
path\scriptname.psc(49,49): no viable alternative at character '?'
path\scriptname.psc(50,33): no viable alternative at character 'ƒ'
path\scriptname.psc(50,34): no viable alternative at character '?'
path\scriptname.psc(50,35): no viable alternative at character 'o'
path\scriptname.psc(50,41): no viable alternative at character 'ƒ'
path\scriptname.psc(50,42): no viable alternative at character '?'
path\scriptname.psc(50,43): no viable alternative at character '?'
path\scriptname.psc(51,36): no viable alternative at character 'ƒ'
path\scriptname.psc(51,37): no viable alternative at character '?'
path\scriptname.psc(51,38): no viable alternative at character 'o'
path\scriptname.psc(51,55): no viable alternative at character 'ƒ'
path\scriptname.psc(51,56): no viable alternative at character '?'
path\scriptname.psc(51,57): no viable alternative at character '?'
path\scriptname.psc(52,33): no viable alternative at character 'ƒ'
path\scriptname.psc(52,34): no viable alternative at character '?'
path\scriptname.psc(52,35): no viable alternative at character 'o'
path\scriptname.psc(52,49): no viable alternative at character 'ƒ'
path\scriptname.psc(52,50): no viable alternative at character '?'
path\scriptname.psc(52,51): no viable alternative at character '?'
path\scriptname.psc(53,36): no viable alternative at character 'ƒ'
path\scriptname.psc(53,37): no viable alternative at character '?'
path\scriptname.psc(53,38): no viable alternative at character 'o'
path\scriptname.psc(53,55): no viable alternative at character 'ƒ'
path\scriptname.psc(53,56): no viable alternative at character '?'
path\scriptname.psc(53,57): no viable alternative at character '?'
path\scriptname.psc(54,33): no viable alternative at character 'ƒ'
path\scriptname.psc(54,34): no viable alternative at character '?'
path\scriptname.psc(54,35): no viable alternative at character 'o'
path\scriptname.psc(54,49): no viable alternative at character 'ƒ'
path\scriptname.psc(54,50): no viable alternative at character '?'
path\scriptname.psc(54,51): no viable alternative at character '?'
path\scriptname.psc(55,39): no viable alternative at character 'ƒ'
path\scriptname.psc(55,40): no viable alternative at character '?'
path\scriptname.psc(55,41): no viable alternative at character 'o'
path\scriptname.psc(55,55): no viable alternative at character 'ƒ'
path\scriptname.psc(55,56): no viable alternative at character '?'
path\scriptname.psc(55,57): no viable alternative at character '?'
path\scriptname.psc(57,17): no viable alternative at character 'ƒ'
path\scriptname.psc(57,18): no viable alternative at character '?'
path\scriptname.psc(57,19): no viable alternative at character 'o'
path\scriptname.psc(57,30): no viable alternative at character 'ƒ'
path\scriptname.psc(57,31): no viable alternative at character '?'
path\scriptname.psc(57,32): no viable alternative at character '?'
path\scriptname.psc(58,17): no viable alternative at character 'ƒ'
path\scriptname.psc(58,18): no viable alternative at character '?'
path\scriptname.psc(58,19): no viable alternative at character 'o'
path\scriptname.psc(58,31): no viable alternative at character 'ƒ'
path\scriptname.psc(58,32): no viable alternative at character '?'
path\scriptname.psc(58,33): no viable alternative at character '?'
path\scriptname.psc(59,38): no viable alternative at character 'ƒ'
path\scriptname.psc(59,39): no viable alternative at character '?'
path\scriptname.psc(59,40): no viable alternative at character 'o'
path\scriptname.psc(59,51): no viable alternative at character 'ƒ'
path\scriptname.psc(59,52): no viable alternative at character '?'
path\scriptname.psc(59,53): no viable alternative at character '?'
path\scriptname.psc(60,32): no viable alternative at character 'ƒ'
path\scriptname.psc(60,33): no viable alternative at character '?'
path\scriptname.psc(60,34): no viable alternative at character 'o'
path\scriptname.psc(60,39): no viable alternative at character 'ƒ'
path\scriptname.psc(60,40): no viable alternative at character '?'
path\scriptname.psc(60,41): no viable alternative at character '?'
path\scriptname.psc(61,38): no viable alternative at character 'ƒ'
path\scriptname.psc(61,39): no viable alternative at character '?'
path\scriptname.psc(61,40): no viable alternative at character 'o'
path\scriptname.psc(61,59): no viable alternative at character 'ƒ'
path\scriptname.psc(61,60): no viable alternative at character '?'
path\scriptname.psc(61,61): no viable alternative at character '?'
path\scriptname.psc(62,32): no viable alternative at character 'ƒ'
path\scriptname.psc(62,33): no viable alternative at character '?'
path\scriptname.psc(62,34): no viable alternative at character 'o'
path\scriptname.psc(62,47): no viable alternative at character 'ƒ'
path\scriptname.psc(62,48): no viable alternative at character '?'
path\scriptname.psc(62,49): no viable alternative at character '?'
path\scriptname.psc(63,38): no viable alternative at character 'ƒ'
path\scriptname.psc(63,39): no viable alternative at character '?'
path\scriptname.psc(63,40): no viable alternative at character 'o'
path\scriptname.psc(63,60): no viable alternative at character 'ƒ'
path\scriptname.psc(63,61): no viable alternative at character '?'
path\scriptname.psc(63,62): no viable alternative at character '?'
path\scriptname.psc(65,35): no viable alternative at character 'ƒ'
path\scriptname.psc(65,36): no viable alternative at character '?'
path\scriptname.psc(65,37): no viable alternative at character 'o'
path\scriptname.psc(65,45): no viable alternative at character 'ƒ'
path\scriptname.psc(65,46): no viable alternative at character '?'
path\scriptname.psc(65,47): no viable alternative at character '?'
path\scriptname.psc(67,35): no viable alternative at character 'ƒ'
path\scriptname.psc(67,36): no viable alternative at character '?'
path\scriptname.psc(67,37): no viable alternative at character 'o'
path\scriptname.psc(67,53): no viable alternative at character 'ƒ'
path\scriptname.psc(67,54): no viable alternative at character '?'
path\scriptname.psc(67,55): no viable alternative at character '?'
path\scriptname.psc(68,33): no viable alternative at character 'ƒ'
path\scriptname.psc(68,34): no viable alternative at character '?'
path\scriptname.psc(68,35): no viable alternative at character 'o'
path\scriptname.psc(68,56): no viable alternative at character 'ƒ'
path\scriptname.psc(68,57): no viable alternative at character '?'
path\scriptname.psc(68,58): no viable alternative at character '?'
path\scriptname.psc(69,35): no viable alternative at character 'ƒ'
path\scriptname.psc(69,36): no viable alternative at character '?'
path\scriptname.psc(69,37): no viable alternative at character 'o'
path\scriptname.psc(69,53): no viable alternative at character 'ƒ'
path\scriptname.psc(69,54): no viable alternative at character '?'
path\scriptname.psc(69,55): no viable alternative at character '?'
path\scriptname.psc(71,37): no viable alternative at character 'ƒ'
path\scriptname.psc(71,38): no viable alternative at character '?'
path\scriptname.psc(71,39): no viable alternative at character 'o'
path\scriptname.psc(71,49): no viable alternative at character 'ƒ'
path\scriptname.psc(71,50): no viable alternative at character '?'
path\scriptname.psc(71,51): no viable alternative at character '?'
path\scriptname.psc(73,37): no viable alternative at character 'ƒ'
path\scriptname.psc(73,38): no viable alternative at character '?'
path\scriptname.psc(73,39): no viable alternative at character 'o'
path\scriptname.psc(73,57): no viable alternative at character 'ƒ'
path\scriptname.psc(73,58): no viable alternative at character '?'
path\scriptname.psc(73,59): no viable alternative at character '?'
path\scriptname.psc(75,37): no viable alternative at character 'ƒ'
path\scriptname.psc(75,38): no viable alternative at character '?'
path\scriptname.psc(75,39): no viable alternative at character 'o'
path\scriptname.psc(75,57): no viable alternative at character 'ƒ'
path\scriptname.psc(75,58): no viable alternative at character '?'
path\scriptname.psc(75,59): no viable alternative at character '?'
path\scriptname.psc(22,13): required (...)+ loop did not match anything at input 'Auto'
path\scriptname.psc(22,17): mismatched input '\\r\\n' expecting STATE
path\scriptname.psc(45,19): no viable alternative at input ')'
path\scriptname.psc(55,42): no viable alternative at input 'Poison'
path\scriptname.psc(55,58): required (...)+ loop did not match anything at input ','
path\scriptname.psc(55,94): required (...)+ loop did not match anything at input ')'
path\scriptname.psc(58,20): no viable alternative at input 'Heavy'
path\scriptname.psc(58,34): required (...)+ loop did not match anything at input ')'
path\scriptname.psc(63,63): required (...)+ loop did not match anything at input ','
path\scriptname.psc(63,98): required (...)+ loop did not match anything at input ')'
path\scriptname.psc(68,36): no viable alternative at input 'Available'
path\scriptname.psc(68,59): required (...)+ loop did not match anything at input ','
path\scriptname.psc(68,83): required (...)+ loop did not match anything at input ')'
No output generated for scriptname, compilation failed.

 

Link to comment
Share on other sites

Are you using a non ascii input method when editing this file?

The first complaint is about "f" in "If".  This clearly indicates it is not recognizing it as the ascii "f".

On the same line, you have non ascii quote characters to delimit your string (If (page == "")), but using “” instead of "".  Subtle, but clearly not the expected ascii characters.

Link to comment
Share on other sites

There is seven errors that need attention, that I can see 

  1. A unique script name?
  2. Incorrectly declared variable (player)
  3. the above mentioned curly quotes, btw it is the entire document, not just one line
  4. the above variable (player) is not defined
  5. incorrect use of GetPerkPoints, it is a Game object, not an Actor object
  6. which mean you do not need the player variable ATM
  7. One sneaky harmless but embarrassing typo in a string... when you publish, that make you look silly, don't shoot the messenger, we all make them.. 

that is it

I will just add, a word processor, is not coding editor.. it is plain as day you cut and paste from Microsoft Word: curly quotes straight single and double quotes only in code 

https://code.visualstudio.com/

https://www.sublimetext.com/

https://notepad-plus-plus.org/

finally if your going to spell check a document, use US English..., if you are not from there, else it will bite you sooner or later, until you understand it better.

Link to comment
Share on other sites

Posted (edited)

Thank you guys. So I used the wrong quotation marks. Which one should I use and how and where can I set "ASCII" in notepad++?
I had no idea that this could be an issue here.

How do I have to write the lines for the getperkpoints from player to function correct?

The scriptname is unique. I just changed it before uploading it here, to not spoil my mod before it's released.

I'll stay on notepad++, bc of the non-spying-freeware aspect and ppl said it's enough. I do have the skyrimish python plugin for it installed and as mentioned above additionally SSEScript.

Edited by Spartacus2211
Link to comment
Share on other sites

Posted (edited)

LOL forget about the ascii table and the ansi table plus the ansi extended table, it is all unicode these days, plus ascii only 7 bits with support for 0-127 chars it is soooooooooooooooooo SOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO obsolete 

highlight the left curly bracket then replace [ctrl + R] all  it  with the straight one, do the same for right curly bracket to fix them

for get perk just replace

player.GetPerkPoints())

with

Game.GetPerkPoints())

and for the player variable it is this, I think you made another typo there, but I was not sure.

Actor Property PlayRef Auto

then in the CK Property dialogue, press Auto Fill 😈

but to answer your question make sure notepad++  is set to: file menu → encoding → UTF-8

yes that is 8 bit unicode like stated above.. and correct

edit sorry my bad for Notepad++ it is [Control + H] to open the replace dialogue, that typo on me, told ya we all make them 😂

 

Edited by PeterMartyr
typo
Link to comment
Share on other sites

OH a SkyUI translation text use:  file menu → encoding → UTF-16 LE BOM

but that for another day)) worry about learning how to implement those toggles for now

Yes this one 16 bits for multiple languages

Link to comment
Share on other sites

Posted (edited)

I am not at the point, where I've created a quest to attach the script to. I just made the perks and the global variables.
So I should also create the quest before compiling?
Because after replacing all left and right quotation marks with the straight ones, making sure notepad++ is using UTF-8 (it was all the time) and correcting the the lines for the player-reference and the perkpoints, I get in SSEScript and CK this error log:

 


path\Data\Scripts\Source\ReferenceAlias.psc(92,6): argument abfadeout is not specified and has no default value
path\Data\Scripts\Source\ReferenceAlias.psc(104,6): argument abfadeout is not specified and has no default value
path\Data\Scripts\Source\ReferenceAlias.psc(116,6): argument abfadein is not specified and has no default value
path\Data\Scripts\Source\ReferenceAlias.psc(128,6): argument abfadein is not specified and has no default value
path\Data\Scripts\Source\ReferenceAlias.psc(152,11): argument akkiller is not specified and has no default value
path\Data\Scripts\Source\ReferenceAlias.psc(164,6): argument afxoffset is not specified and has no default value
path\Data\Scripts\Source\ReferenceAlias.psc(164,6): argument afyoffset is not specified and has no default value
path\Data\Scripts\Source\ReferenceAlias.psc(164,6): argument afzoffset is not specified and has no default value
path\Data\Scripts\Source\ReferenceAlias.psc(164,6): argument abmatchrotation is not specified and has no default value
path\Data\Scripts\Source\ReferenceAlias.psc(176,6): argument aktarget is not specified and has no default value
path\Data\Scripts\Source\McmRecorder_VRIK.psc(58,1): variable vrik is undefined
path\Data\Scripts\Source\McmRecorder_VRIK.psc(58,6): none is not a known user-defined type
path\Data\Scripts\Source\scriptname.psc(47,4): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(48,4): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(49,23): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(49,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(50,20): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(50,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(51,23): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(51,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(52,20): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(52,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(53,23): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(53,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(54,20): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(54,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(55,26): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(55,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(57,4): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(58,4): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(59,25): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(59,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(60,19): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(60,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(61,25): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(61,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(62,19): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(62,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(63,25): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(63,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(65,22): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(65,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(67,22): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(67,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(68,22): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(68,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(69,22): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(69,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(71,24): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(71,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(73,24): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(73,4): type mismatch while assigning to a int (cast missing or types unrelated)
path\Data\Scripts\Source\scriptname.psc(75,24): argument a_flags is not specified and has no default value
path\Data\Scripts\Source\scriptname.psc(75,4): type mismatch while assigning to a int (cast missing or types unrelated)
No output generated for scriptname, compilation failed.


If yes, then I will try a bit more somewhen later, not sure when. Hints and tips are welcome.
If no, then I need your help too, to make the compilation successful.

I'm a noob with this, but to me this looks like the compiler is searching for references, which makes it seem logical to load the mod in CK and do as you said before: attaching the script to a quest and use this autofill function and then try compiling again. I am just wondering, why the above linked guide doesn't say so, when the compilations seemingly can't work, if not doing so. Also I am wondering, why this looks for something inside the folder of the MCM recorder ...? Anyhow.
I have done almost nothing with quests so far and as mentioned earlier, I wasn't at the part in the guide, where the quest for the script was set up.

edit:
The mod with the new perks and globals was loaded, when I tried the compilation a third time. The error log above came up in the CK with the mod loaded.

Edited by Spartacus2211
typo
Link to comment
Share on other sites

It should compile without the quest.  No need to create a quest until it does, though it will not hurt any if you do.

These are boiler plate syntax error.  Not unusual for a beginner.  Don't let the number of errors discourage you.  We all start there.

Typically, only the 1st or first few errors are significant; the rest are often artifacts of the first errors.  So, just concentrate on them one at a time.

It is finding something wrong with the base script "ReferenceAlias".  If you did anything to that file, UNDO IT NOW!  Otherwise, this is telling you that you did not install the base scripts correctly.  Review that:

1- You should have unzipped the sources.zip file (or is it sources.rar?)

2- Then you should have installed the SKSE scripts

3- If using MO2, make sure you launch the CK and compiler from within MO2 (using its launch button).

I see from the error messages that you have scripts in data/scripts/source.  This is incorrect for SE (but normal for LE).  In SE, all your script source files should be in data/source/scripts, so copy your scripts/source directory content there.

Using LE, you should not have a source/scripts directory (or at least its content will be ignored).

Using SE, you should not have a scripts/source directory (or at least it should be ignored).

You could also have a wrong setting in SkyrimEditor.ini for sScriptSourceFolder.

Link to comment
Share on other sites

Ok, the problem is NOT with ReferenceAlias.psc.   What it LOOKS like to me is you ran a decompiler (Champolion) on at least some of the .pex scripts.

Lets take line 92 of ReferenceAlias:    'Ref.Disable()'   in TryToDisable function.   Ref is an ObjectReference type object.   And its Disable function signature looks like this:
Function Disable(bool abFadeOut = false) native

The function takes a bool argument (abFadeOut), but it has a default value (false) to use if it is not provided.   Thus, Ref.Disable() is equivalent to Ref.Disable(false).   And this default value is present on BOTH the vanilla version and SKSE versions of ObjecReference.psc.

However, default parameter values are a source code only thing.  They are lost during compilation.    So if you take ObjectReference.pex and decompile it, its Disable signature becomes:
Function Disable(bool abFadeOut) native, making the parameter mandatory, and now Ref.Disable() gives an error.

Looking at the line numbers in ReferenceAlias that give you errors,  you definitely have the proper version of that file.    I.e. line 164 is Ref.MoveTo(RefToMoveTo), where again, Ref is ObjectReference, and MoveTo function is:

Function MoveTo(ObjectReference akTarget, float afXOffset = 0.0, float afYOffset = 0.0, float afZOffset = 0.0, bool abMatchRotation = true) native

Going by same tokens, line 47 in your script AddHeaderOption(“Alchemy”) -  AddHeaderOption function is defined in SKI_ConfigBase, which your script extends.   And of course, its second argument is an integer a_flags which in PROPER version of SKI_ConfigBase.psc has a default value of 0.    But you appear to have a decompiled version of that.  Which is very bad.

Go here, grab the SDK version 5.1, it should contain the proper versions of SKI_ConfigBase.psc and SKI_QuestBase.psc that you need to compile MCM stuff.   Do NOT attempt to compile those two scripts though.

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...