Jump to content

How to direct CK to my MO scripts?


Guest

Recommended Posts

Posted

When I try to compile this code

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname TIF__0701A5BA Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
sexlab.QuickStart( PlayerRef, Guard.GetActorRef(), none,  none,  none, PlayerRef)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

SexLabFramework Property SexLab  Auto  

Actor Property PlayerRef  Auto  

ReferenceAlias Property Guard  Auto  

I get

Starting 1 compile threads for 1 files...
Compiling "TIF__0701A5BA"...
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\sslBaseAnimation.psc(1118,10): SetPathStringArray is not a function or does not exist
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\sslBaseAnimation.psc(1118,10): cannot call the member function SetPathStringArray alone or on a type, must call it on a variable
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\sslBaseAnimation.psc(1122,11): SetPathFormArray is not a function or does not exist
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\sslBaseAnimation.psc(1122,11): cannot call the member function SetPathFormArray alone or on a type, must call it on a variable
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\sslBaseAnimation.psc(1125,11): SetPathFloatArray is not a function or does not exist
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\sslBaseAnimation.psc(1125,11): cannot call the member function SetPathFloatArray alone or on a type, must call it on a variable
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\sslBaseAnimation.psc(1140,12): SetPathFloatArray is not a function or does not exist
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\sslBaseAnimation.psc(1140,12): cannot call the member function SetPathFloatArray alone or on a type, must call it on a variable
No output generated for TIF__0701A5BA, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0701A5BA

I see that its trying to pull those scripts from my Skyrim data file, but I use MO and all of my scripts aren't in there.  What do?

Posted

You can't technically as far as I'm aware.

 

The only place the CK looks for source script is the Scripts/ Source in Skyrim installation folder.

 

So you can duplicate the psc file in your MO's mod folder/ overwrite into the Source folder in Skyrim's installation and then compile. Then move the compiled script back to your mod folder. 

Posted

You can't technically as far as I'm aware.

 

The only place the CK looks for source script is the Scripts/ Source in Skyrim installation folder.

 

So you can duplicate the psc file in your MO's mod folder/ overwrite into the Source folder in Skyrim's installation and then compile. Then move the compiled script back to your mod folder. 

I put all my source framkework scripts into the skyrim source scripts file, but I get the same errors.  The lines that are messing it up seem to be these:

JsonUtil.SetPathStringArray(Filename, ".tags", GetTags())

	; JsonUtil.SetRawPathValue(Filename, ".tags", "[\""+PapyrusUtil.StringJoin(GetTags(), "\",\"")+"\"]")
	if StageSoundFX
		JsonUtil.SetPathFormArray(Filename, ".sfx", StageSoundFX)
	endIf
	if Timers
		JsonUtil.SetPathFloatArray(Filename, ".timers", Timers)
	endIf
	; if IsCreature
	; 	JsonUtil.SetPathStringArray(Filename, ".racetypes", Utility.ResizeStringArray(RaceTypes, PositionCount))
	; endIf

	int Position
	while Position < PositionCount

		int stg = 0
		while stg < StageCount
			string Path = ".positions["+Position+"]"
			int Stage = stg + 1

			JsonUtil.SetPathStringValue(Filename, Path+".animation["+stg+"]", Animations[StageIndex(Position, Stage)])
			JsonUtil.SetPathFloatArray(Filename, Path+".offset["+stg+"]", GetRawOffsets(Position, Stage))

I don't know what that stuff means, but maybe my syntax is wrong or something?

Posted

You have the Sources folder in Skyrim's installation folder extracted

 

What does that one mean?  

I have 14,000 files in my source folder.  Should I only have the ones you stated below that line?

Posted

 

You have the Sources folder in Skyrim's installation folder extracted

 

What does that one mean?  

I have 14,000 files in my source folder.  Should I only have the ones you stated below that line?

 

 

sorry I meant the sources.zip thing, You already have 14,000 files so it's probably already extracted. 

Make sure you have SkyUI, SexLab and SKSE stuff then

Posted

 

 

You have the Sources folder in Skyrim's installation folder extracted

 

What does that one mean?  

I have 14,000 files in my source folder.  Should I only have the ones you stated below that line?

 

 

sorry I meant the sources.zip thing, You already have 14,000 files so it's probably already extracted. 

Make sure you have SkyUI, SexLab and SKSE stuff then

 

 

Yeah I just did all that and, I tried downloading a fresh framework and putting the source in.  Nothing changed though.

Posted

What does that one mean?  

I have 14,000 files in my source folder.  Should I only have the ones you stated below that line?

 

 

Where is the source folder? Mine is under Syrim/Data/Scripts/Source and using MO, CK has no problems finding it.

 

Posted

 

What does that one mean?  

I have 14,000 files in my source folder.  Should I only have the ones you stated below that line?

 

 

Where is the source folder? Mine is under Syrim/Data/Scripts/Source and using MO, CK has no problems finding it.

 

 

Yeah my source folder is there.  Does your skyrimeditor.ini look like this?

 

[Papyrus]
sScriptSourceFolder = "Data\scripts\source"
sScriptCompiledFolder = "Data\scripts"
sCompilerFolder = "Papyrus Compiler\"
 
Even when i go to add scripts to a dialogue there is the sslBaseAnimation on there.  I don't know whats wrong.
 
Edit:  I just tried to compile the sslBaseAnimation file and I get the same error, so it must be something wrong with those lines of code.
Posted

 

Yeah my source folder is there.  Does your skyrimeditor.ini look like this?

 

[Papyrus]
sScriptSourceFolder = "Data\scripts\source"
sScriptCompiledFolder = "Data\scripts"
sCompilerFolder = "Papyrus Compiler\"
 
Even when i go to add scripts to a dialogue there is the sslBaseAnimation on there.  I don't know whats wrong.
 
Edit:  I just tried to compile the sslBaseAnimation file and I get the same error, so it must be something wrong with those lines of code.

 

Yes, looks identical. Just asked, because above it sounded like *maybe* you installed the source  directly to Skyrim/ instead of Skyrim/data/scripts/

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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