Jump to content

Dawnguard scripts won't compile?


budcat

Recommended Posts

I've been working on fixing my custom race mod's issues with Dawnguard and started to mess with the PlayerVampireQuestScript, exactly as follows:

 

1) Extract dawnguard.bsa to a non-Skyrim desktop folder, decompile PlayerVampireQuestScript.pex.

2) Duplicate PlayerVampireQuestScript.psc, keep one original, modify the other

3) Make my changes and get everything squared away in my script editor. Save and copy to my skyrim/data/scripts/source folder.

4) Open Creation Kit, attempt to compile the new script, and I get a ton of errors.

 

Wanting to make sure it wasn't my edits, I copy the untouched original over to my skyrim/data/scripts/source folder and attempt to compile that. Same errors.

 

Decide to try to compile a random Vanilla Skyrim script, compiles no problem.

 

Decide to try to use the Papyrus Compiler application to compile the script externally, no dice.

 

So all I can deduce is I can't get Dawnguard scripts to compile. Is this a known issue or is it a problem on my end?

Edited by budcat
Link to comment
Share on other sites

I was worried that my source folder wouldn't have the proper scripts, so that's why I went the extra mile to extract the Dawnguard.bsa a second time to a new folder and decompile the script directly to get my .psc. The script I decompiled to edit was ...new folder/data/scripts/playervampirequestscript.pex not the game's ...skyrim/data/scripts/source/playervampirequestscript.psc. Just to be clear.

 

The errors I am getting back are:

\Data\Scripts\Source\PlayerVampireQuestScript.psc(407,12): no viable alternative at character ':'

\Data\Scripts\Source\PlayerVampireQuestScript.psc(407,21): no viable alternative at character ':'

\Data\Scripts\Source\PlayerVampireQuestScript.psc(407,22): no viable alternative at character ':'

\Data\Scripts\Source\PlayerVampireQuestScript.psc(407,31): no viable alternative at character ':'

\Data\Scripts\Source\PlayerVampireQuestScript.psc(407,32): no viable alternative at character ':'

\Data\Scripts\Source\PlayerVampireQuestScript.psc(408,9): no viable alternative at character ':'

\Data\Scripts\Source\PlayerVampireQuestScript.psc(408,10): no viable alternative at character ':'

\Data\Scripts\Source\PlayerVampireQuestScript.psc(409,11): no viable alternative at character ':'

\Data\Scripts\Source\PlayerVampireQuestScript.psc(409,12): no viable alternative at character ':'

etc.

 

That's just a snippet from the end, it starts at (3, 17) or something and occurs periodically dozens if not hundreds of times on down.

 

Full disclosure I have virtually no idea what I'm doing with Papyrus, but I've done this exact same fix for my custom race mod to make vampires work before Dawnguard; modifying and compiling this exact same script, which previously was much simpler and smaller. It's just storing variables and properties for race checks which occur at vampire infection and when vampirism is cured. It's clear how it's done for the original races, I just added code for the new ones. I don't think the changes I made are improper and I followed the syntax of the existing code.

Edited by budcat
Link to comment
Share on other sites

Oh, did you try to compile the decompiled source? Yeah, that won't work. The result of the decompilation is an intermediate between a compiled script and source code. The latest Creation Kit update should have added the proper Dawnguard Papyrus source files under Scripts/Source/Dawnguard (I think that's the right directory). Try moving those files into your regular source folder and see if that compiles.

 

Cipscis

Link to comment
Share on other sites

  • Recently Browsing   0 members

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