Script tutorial error

Post » Mon Jun 18, 2012 12:39 pm

Anyone else get a compiler error when following the Wiki Tutorial involving an Amulet, a Thief and a Dark Elf called Bendu Olo? It happens when I add the properties to the Amulet script. Here's the tutorial http://www.creationkit.com/Bethesda_Tutorial_Basic_Quest_Scripting#Scripting_the_Amulet .

When I first added the script, I accidently called it GSQ01 (which happens to be the ID on the Quest form), and did the same with the Quest property name, also calling it GSQ01. So I thought the error had something to do with that. So I removed the script (actually, its not deleted just unattached) and added a new script, properly calling it GSQBAmuletScript. Again, when I entered the property as:
Type: Quest
Name:GSQ01

I get an error.


Starting 1 compile threads for 1 files...
Compiling "GSQBAmuletScript"...
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQ01.psc(3,15): cannot name a variable or property the same as a known type or script
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQBAmuletScript.psc(3,15): cannot name a variable or property the same as a known type or script
No output generated for GSQBAmuletScript, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on GSQBAmuletScript

Now I have three useless scripts floating around unuable. 1) GGQ01 (my first error) 2) GSQAmuletScript and 3) GSQBAmuletScript (same but with a B . Even if I select say GSQAmuletScript (as per the wiki tutorial) but this time called the property
Type: Quest
Name: AmuletTutQuest
I get a surprising error, because its complaining about properties that I am no longer trying to use or tried to attach to this script.
Starting 1 compile threads for 1 files...
Compiling "GSQAmuletScript"...
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(5,15): script property GSQ01 already defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(5,15): script variable ::GSQ01_var already defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(5,15): script property GSQ01 already has a get function defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(5,15): script property GSQ01 already has a set function defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(7,15): script property GSQ01 already defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(7,15): script variable ::GSQ01_var already defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(7,15): script property GSQ01 already has a get function defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(7,15): script property GSQ01 already has a set function defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(13,15): script property TutorialQuestB already defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(13,15): script variable ::TutorialQuestB_var already defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(13,15): script property TutorialQuestB already has a get function defined
f:\games\steam\steamapps\common\skyrim\Data\Scripts\Source\GSQAmuletScript.psc(13,15): script property TutorialQuestB already has a set function defined
No output generated for GSQAmuletScript, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on GSQAmuletScript


It like, if you make one script error, the whole plugin is unuasable. I can't even see a way to delete the scripts from the option under data.
User avatar
Sakura Haruno
 
Posts: 3446
Joined: Sat Aug 26, 2006 7:23 pm

Post » Mon Jun 18, 2012 8:57 am

Has anyone got the Amulet script in the linked tutorial above to work?

I even tried making a new Amulet, and the properties are still not accepted.
User avatar
Darren Chandler
 
Posts: 3361
Joined: Mon Jun 25, 2007 9:03 am

Post » Mon Jun 18, 2012 5:16 am

Could you post the script?
User avatar
Shirley BEltran
 
Posts: 3450
Joined: Wed Jul 26, 2006 4:14 pm

Post » Mon Jun 18, 2012 7:17 pm

Delete the scripts from the Data\Source Folder in your Skyrim folder, that should do the trick. Problem 1 is caused by the GSQ01 Script still floating around. Problem 2 is caused because adding new properties using the property manager actually writes code into the script that defines the property in the begining of the code. So even if you remove it again in the property manager it still is in the code.
User avatar
SHAWNNA-KAY
 
Posts: 3444
Joined: Mon Dec 18, 2006 1:22 pm

Post » Mon Jun 18, 2012 7:42 pm

Delete the scripts from the Data\Source Folder in your Skyrim folder, that should do the trick. Problem 1 is caused by the GSQ01 Script still floating around. Problem 2 is caused because adding new properties using the property manager actually writes code into the script that defines the property in the begining of the code. So even if you remove it again in the property manager it still is in the code.
I thought these scripts are contained in the plugin. Much has changed since oblivion. I deleted the ones in that folder (psc files), and the pex files. What are they - intermediate files like byte code?

Hopefully its done the trick. Thanks.
Could you post the script?
The script is the same as the one in the tutorial. All cut/paste from the wiki, including property names. I deleted my ones after reading Jason's post
User avatar
~Sylvia~
 
Posts: 3474
Joined: Thu Dec 28, 2006 5:19 am

Post » Mon Jun 18, 2012 12:27 pm

psc files are the script source codes (like a cpp file for c++) and pex files are the compiled result that gets loaded and used by the game. They are now seperate from the actual esp file.
User avatar
Richard
 
Posts: 3371
Joined: Sat Oct 13, 2007 2:50 pm

Post » Mon Jun 18, 2012 4:05 pm

psc files are the script source codes (like a cpp file for c++) and pex files are the compiled result that gets loaded and used by the game. They are now seperate from the actual esp file.
So when you upload esp files, you have to include the pex files with them?

Btw, scripts working fine now, thanks again.
User avatar
joeK
 
Posts: 3370
Joined: Tue Jul 10, 2007 10:22 am

Post » Mon Jun 18, 2012 1:10 pm

Well as far as I know (didn't finish my mod yet so I haven't done it) you can pack them into a BSA using File->Create Archive
User avatar
Guinevere Wood
 
Posts: 3368
Joined: Mon Dec 04, 2006 3:06 pm


Return to V - Skyrim