Delzaron Posted August 24, 2023 Posted August 24, 2023 Hi I discovered something interesting : regressions problems. Some functions works on LE, and fail on SE. There is also a compilation problem : i have no problem to compile LE scripts, but some scripts which contains sexlabframework or pama properties refuse to compile. For example : this function compiles and works as intended on LE, fail to compile on SE. Function SimzaButcherSlave() Cell theCell = PlayerRef.getParentCell() int num = theCell.getNumRefs(62) as int ; "A cast is necessary here" while num num -= 1 Actor act = theCell.getNthRef(num, 62) As Actor ; "A cast is necessary here" ;the actor must meat these conditions if (act && !act.isDisabled() && act!=PlayerRef && act.isinFaction(a1RMeatSlaveFaction)) ; " You want first to check if the actor exists, then if it is NOT the player, and if it is NOT your RRH. And then the faction" ; "Got it" ButcherySlave.forcerefto(act) ;check if the alias is full : if yes, launcht the scene if ButcherySlave.getactorref() != none debug.notification("Meat slave found !") RemoveSlave(act) SimzaOnJob = 1 a1RDiag_SlaveButcheryScene.start() elseif ButcherySlave.getactorref() == none debug.notification("Meat slave not found. The scene can't start") EndIf return endIf endWhile EndFunction This script using pama stuff, idem. (a1R_ModManagementQuest as a1R_ModManagementQuest_Script).RemoveSlave(akspeaker) ButcherySlave.forcerefto(akspeaker) ActorUtil.addPackageOverride(ButcherySlave.getactorref(), a1R_modManagement_SlaveButcheryScript_TreeStumpPackage, 100, 1) ; 1 = true ButcherySlave.getactorref().moveto(a1R_ModManagement_treestumpvictimSPOT) playerref.moveto(a1R_ModManagement_TreeStumpExeSpotREF) utility.wait(1) (a1R_Kitchen_TreeStumpREF as PamaTreeStump).newVictimEnters(ButcherySlave.getactorref()) for this last, errors messages are : Starting 1 compile threads for 1 files... Compiling "a1R_ModManagement_treestumpScript"... C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\a1R_ModManagementQuest_Script.psc(173,36): getDisplayName is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\a1R_ModManagementQuest_Script.psc(229,36): getDisplayName is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\a1R_ModManagementQuest_Script.psc(294,1): sendModEvent is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\a1R_ModManagementQuest_Script.psc(540,19): getNumRefs is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\a1R_ModManagementQuest_Script.psc(540,34): cannot cast a none to a int, types are incompatible C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\a1R_ModManagementQuest_Script.psc(545,22): getNthRef is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\a1R_ModManagementQuest_Script.psc(545,41): cannot cast a none to a actor, types are incompatible C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\a1R_ModManagement_treestumpScript.psc(15,26): cannot convert to unknown type pamatreestump C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\a1R_ModManagement_treestumpScript.psc(15,26): cannot cast a objectreference to a pamatreestump, types are incompatible C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\a1R_ModManagement_treestumpScript.psc(15,44): pamatreestump is not a known user-defined type No output generated for a1R_ModManagement_treestumpScript, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on a1R_ModManagement_treestumpScript and for a script which contains Sexlab stuff. C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\QF_a1RShop1_030039E9.psc(110,31): sexlabframework is not a known user-defined type C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\QF_a1RShop1_030039E9.psc(110,20): unknown type sslbaseanimation[] C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\QF_a1RShop1_030039E9.psc(111,1): RegisterForModEvent is not a function or does not exist C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\QF_a1RShop1_030039E9.psc(123,25): unknown type sexlabframework
wareware Posted August 24, 2023 Posted August 24, 2023 At a quick glance the compiler seems to be unable to get SKSE functions for your SE install. Are the source files that come with SKSE getting overwritten by something else?
Delzaron Posted August 24, 2023 Author Posted August 24, 2023 7 minutes ago, wareware said: At a quick glance the compiler seems to be unable to get SKSE functions for your SE install. Are the source files that come with SKSE getting overwritten by something else? all the fils were manually installed. sources files are at the right place. an hypothesis : maybe it"s a skyrimCK. ini problem between LE and SE versions ? For LE, I remember I needed to set my computer horary stuff in english format.
wareware Posted August 24, 2023 Posted August 24, 2023 What you could try to do is create an empty mod in MO2 at the very bottom and copy your SKSE source files into that. Enable that mod and see if the script compiles after that.
Delzaron Posted August 24, 2023 Author Posted August 24, 2023 9 minutes ago, wareware said: What you could try to do is create an empty mod in MO2 at the very bottom and copy your SKSE source files into that. Enable that mod and see if the script compiles after that. how I can do that ?
wareware Posted August 24, 2023 Posted August 24, 2023 Are you using MO2? If so, switch to your SE profile and in the left pane(the ones where you install mods) right click->All Mods->Create Empty Mod Name it whatever you want Now open that mod folder in explorer(right click->open in explorer) and copy the contents of Data folder from the skse archive into that. Before running CK(I am assuming you're running it through MO2) enable that new mod folder you created and then try to compile your script.
Swe-DivX Posted August 24, 2023 Posted August 24, 2023 2 hours ago, Delzaron said: all the fils were manually installed. sources files are at the right place. an hypothesis : maybe it"s a skyrimCK. ini problem between LE and SE versions ? For LE, I remember I needed to set my computer horary stuff in english format. SE has the same bug
Delzaron Posted August 24, 2023 Author Posted August 24, 2023 1 hour ago, wareware said: Are you using MO2? If so, switch to your SE profile and in the left pane(the ones where you install mods) right click->All Mods->Create Empty Mod Name it whatever you want Now open that mod folder in explorer(right click->open in explorer) and copy the contents of Data folder from the skse archive into that. Before running CK(I am assuming you're running it through MO2) enable that new mod folder you created and then try to compile your script. I use MO2 only for few mods and the launch. Most of the mods, specially SKSE, are manually installed.
traison Posted August 24, 2023 Posted August 24, 2023 3 hours ago, Delzaron said: all the fils were manually installed. sources files are at the right place. Right place? Which is...? The script source directory was moved in SE. Since your problem stems from the compiler not being able to find SKSE's scripts, the "right place" was probably not the right place. scripts\source -> source\scripts
Delzaron Posted August 25, 2023 Author Posted August 25, 2023 18 hours ago, traison said: Right place? Which is...? The script source directory was moved in SE. Since your problem stems from the compiler not being able to find SKSE's scripts, the "right place" was probably not the right place. scripts\source -> source\scripts Yep, that thing suprized me, but I checked, the SKSE scripts are in this folder.
Delzaron Posted August 25, 2023 Author Posted August 25, 2023 (edited) you were right : SKSE SE souces files were not installed at the good place. Now i can compile some my scripts... and it made Ravenous buggier ! Again, Sexlabframework and Pama based scripts don't compile. Strange, sexlabframework based scripts are executed in game. The treestump pama script causes a ctd, but others furnitures related stuff works with ease. Edited August 25, 2023 by Delzaron
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now