Jump to content

Need help with editing easy script please (ODrain)


Recommended Posts

Posted (edited)

Hello, I need help editing 1 thing in ODrain mod (https://www.nexusmods.com/skyrimspecialedition/mods/124902?tab=description)

Basically I wanted it to drain 100% of health so it'd be instant kill because some NPCs are recovering health too fast to spam 'cum' button, mhm.

I'm total idiot if it comes to scripting and generally modding, I don't understand what's being written at all. I made the change in notepad and tried to recompile the .psc file with CK, but I'm getting errors: 

 

---------------------------------------------------------------------------------------

Starting 1 compile threads for 1 files...
Compiling "ODrainScript"...
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Location.psc(7,50): unknown type locationreftype
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Location.psc(10,49): unknown type locationreftype
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Location.psc(16,41): unknown type locationreftype
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Actor.psc(27,49): unknown type globalvariable
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Actor.psc(28,34): globalvariable is not a known user-defined type
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Actor.psc(28,1): type mismatch on parameter 1 (did you forget a cast?)
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ActorBase.psc(4,15): unknown type class
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Actor.psc(187,17): unknown type package
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Actor.psc(307,45): unknown type associationtype
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Actor.psc(471,28): unknown type idle
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Actor.psc(474,38): unknown type idle
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Actor.psc(760,29): unknown type package
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Actor.psc(764,30): unknown type package
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Actor.psc(768,27): unknown type package
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Game.psc(176,41): unknown type wordofpower
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Game.psc(251,57): unknown type imagespacemodifier
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Game.psc(257,31): unknown type wordofpower
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Game.psc(263,32): unknown type wordofpower
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(110,5): unknown type key
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(112,5): type mismatch on parameter 1 (did you forget a cast?)
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(112,29): cannot compare a none to a int (cast missing or types unrelated)
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(113,3): type mismatch on parameter 1 (did you forget a cast?)
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(251,15): unknown type scene
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(275,13): unknown type key
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(374,19): unknown type voicetype
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(380,20): unknown type worldspace
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(394,41): unknown type locationreftype
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(474,90): unknown type encounterzone
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(486,45): unknown type impactdataset
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(529,19): unknown type topic
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ObjectReference.psc(677,67): unknown type projectile
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Quest.psc(12,66): unknown type globalvariable
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Quest.psc(13,12): globalvariable is not a known user-defined type
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Quest.psc(18,34): globalvariable is not a known user-defined type
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Quest.psc(18,40): cannot compare a none to a float (cast missing or types unrelated)
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Quest.psc(18,40): cannot relatively compare variables to None
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Quest.psc(18,90): globalvariable is not a known user-defined type
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Quest.psc(18,96): cannot compare a none to a float (cast missing or types unrelated)
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Quest.psc(18,96): cannot relatively compare variables to None
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\Quest.psc(135,58): unknown type globalvariable
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(8,4): RegisterForModEvent is not a function or does not exist
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(12,4): RegisterForModEvent is not a function or does not exist
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(13,4): RegisterForModEvent is not a function or does not exist
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(14,4): RegisterForKey is not a function or does not exist
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(17,21): variable OThread is undefined
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(17,29): none is not a known user-defined type
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(37,12): variable Debug is undefined
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(37,18): none is not a known user-defined type
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(39,12): variable Debug is undefined
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(39,18): none is not a known user-defined type
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(54,16): variable OThread is undefined
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(54,24): none is not a known user-defined type
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(71,4): UnregisterForModEvent is not a function or does not exist
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(72,4): UnregisterForModEvent is not a function or does not exist
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(73,4): UnregisterForKey is not a function or does not exist
C:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\ODrainScript.psc(78,4): UnregisterForModEvent is not a function or does not exist
No output generated for ODrainScript, compilation failed.

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

 

I tried to search for solution but it's all black magic to me. I redownloaded SKSE like someone here suggested, but it didn't help. Tried 2 differend Papyrus Compilers but it didn't work. 

I feel it's beyond me and this is so small change, yet so vital for my playthrough, I'd pull my hair out of my head if I wasn't bald already.

 

Would there be a good soul here that'd make this quick change and send me a download link in private message through Megafile or something? 

I already feel bad about asking this because why would anyone spend their 5 minutes for doing that? Still there's hope. Please.

Edited by Semtin
  • Semtin changed the title to Need help with editing easy script please (ODrain)
Posted (edited)
2 hours ago, Semtin said:

I made the change in notepad and tried to recompile the .psc file with CK, but I'm getting errors:

 

You're missing all CK scripts, the SKSE scripts and some O-scripts. Check CreationKit.ini for where the scripts should be, then make sure all required source files are in that directory.

 

2 hours ago, Semtin said:

I redownloaded SKSE like someone here suggested, but it didn't help.

 

Installed it wrong.

 

2 hours ago, Semtin said:

Tried 2 differend Papyrus Compilers but it didn't work.

 

As far as I know there's only one compiler, which is the one that comes with the CK. Most likely what you downloaded was a GUI for the compiler.

Edited by traison
Posted
54 minutes ago, traison said:

 

You're missing all CK scripts, the SKSE scripts and some O-scripts. Check CreationKit.ini for where the scripts should be, then make sure all required source files are in that directory.

 

 

Installed it wrong.

 

 

As far as I know there's only one compiler, which is the one that comes with the CK. Most likely what you downloaded was a GUI for the compiler.

I appreciate the response, but that's hardly understandable for me. I look at that CreationKit.ini and not sure what I'm seeing.

 

 

Is there any other way to install SKSE other than install it automaticly by Vortex or copy/pasting it in game directory like istruction specifies?

Posted
2 minutes ago, Semtin said:

I appreciate the response, but that's hardly understandable for me.

 

Either you have the same issue as this person, or the same issue as this other person.

 

3 minutes ago, Semtin said:

I look at that CreationKit.ini and not sure what I'm seeing.

 

Also answered in this thread. Either place the source files in \Source\Scripts, or do like me and switch to the old standard which was \Scripts\Source. Either way you'll have to pick one, and normalize all mods to use it. The split is about 50-50 so it probably doesn't matter which you pick, the amount of work require is about the same.

 

8 minutes ago, Semtin said:

Is there any other way to install SKSE other than install it automaticly by Vortex...

 

As long as the mod manager can place files outside of the Data directory, it can theoretically handle the SKSE install. I'd say install it manually, then you can be sure its done correctly.

 

The CK scripts are in a compressed archive which needs to be extracted. This you have to do yourself.

 

8 minutes ago, Semtin said:

...or copy/pasting it in game directory like istruction specifies?

 

As long as you remember to also normalize the script source directory, and install the script sources as a mod in your mod manager.

Posted (edited)
47 minutes ago, traison said:

 

Either you have the same issue as this person, or the same issue as this other person.

 

 

Also answered in this thread. Either place the source files in \Source\Scripts, or do like me and switch to the old standard which was \Scripts\Source. Either way you'll have to pick one, and normalize all mods to use it. The split is about 50-50 so it probably doesn't matter which you pick, the amount of work require is about the same.

 

 

As long as the mod manager can place files outside of the Data directory, it can theoretically handle the SKSE install. I'd say install it manually, then you can be sure its done correctly.

 

The CK scripts are in a compressed archive which needs to be extracted. This you have to do yourself.

 

 

As long as you remember to also normalize the script source directory, and install the script sources as a mod in your mod manager.

 

I'm a simple man trying to get things easy, just plug and play. But that last post is enlightening, I'll look into it, thanks!

 

 

Edit: I give up. Maybe mod author will do that change eventually.

 

Edit 2: Actualy no! I just might have figured it out! It was all about adding path in CreationKit.ini, like you mentioned in one of the other threads. On to testing!

 

Edited by Semtin

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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