Jump to content

Could use some help with script editing?


Scroolose

Recommended Posts

Posted

Hi folks, the mod is Pumping Iron ( from Gopher).

 

Here's a rundown on how it goes:

 

I open up PumpingIron.bsa with BSA Browser. Then unpack it to new folder I name "Bsa Edit".

 

Structure looks like this: 

 

scripts/

pumpingironscripts.pex

pumpingironskyuiconfigmenuscript.pex

pumpingironsleepscript.pex

source/

pumpingironscripts.psc

pumpingironskyuiconfigmenuscript.psc

pumpingironsleepscript.psc

 

Then I edit pumpingironscripts.psc file with Notepad ++, changing numeric values to this:

 

 

Scriptname PumpingIronScript extends Quest 

PumpingIronSleepScript Property PumpingIronSleep auto

Event OnStoryIncreaseSkill(string asSkill)
    if asSkill == "LightArmor" || asSkill =="Marksman"
        PumpingIronSleep.train(0.75)    
    elseif asSkill == "Block" || asSkill == "OneHanded" || asSkill == "Smithing" 
        PumpingIronSleep.train(0.75)
    elseif asSkill == "HeavyArmor"
        PumpingIronSleep.train(1.0)
    elseif asSkill == "TwoHanded"
        PumpingIronSleep.train(1.0)
    endif 
          
    Stop()
EndEvent

 

Then Save file, and start BSA Opt. for this. In upper menu choose set maximum compression and "unselect inappropriate".

 

In upper window, click Browse and choose "Use folder" with BSA Edit folder.

 

In lower window, click Browse, save/name the file on location on disk, then click "Pack".

 

Then I Copy paste/replace edited BSA to mod location.

 

But for some reason, there is no difference in how the mod works ( still uses old values)

 

Can anyone tell me what I'm doing wrong here? ( Sorry for long winded run down)

Posted

The .psc file you edited is the source file from which the pumpingironscripts.psx script is compiled.

You need to compile your edited pumpingironscripts.psc using the Creation Kit.

 

Open the Creation Kit, load the pumpingiron.esp or however it is called, search for the menu point called "Compile Papyrus Scripts", search for pumpingironscripts and compile it.

Then you can pack the bsa again or just leave it lose but make sure it overwrites the old bsa.

Posted
9 hours ago, Pigeon the Feathered said:

The .psc file you edited is the source file from which the pumpingironscripts.psx script is compiled.

You need to compile your edited pumpingironscripts.psc using the Creation Kit.

 

Open the Creation Kit, load the pumpingiron.esp or however it is called, search for the menu point called "Compile Papyrus Scripts", search for pumpingironscripts and compile it.

Then you can pack the bsa again or just leave it lose but make sure it overwrites the old bsa.

Thanks. 

 

Is there any way to do this without Creation Kit? For some reason, it freezes every time I start it.

Posted
1 hour ago, steelpanther24 said:

When it is compiled, does character case (capitalization) matter to Papyrus? 

No, papyrus is not case sensitive.

 

1 hour ago, Scroolose said:

Thanks. 

 

Is there any way to do this without Creation Kit? For some reason, it freezes every time I start it.

Yes.

Check my Notepad++ configuration for Papyrus, it allows to compile scripts without using CK.

Posted
11 hours ago, CPU said:

No, papyrus is not case sensitive.

 

Yes.

Check my Notepad++ configuration for Papyrus, it allows to compile scripts without using CK.

Thanks. I've set it up in Notepad++, after some tinkering...but no results. Do I need to open all three psc files and it will automatically place them in Skyrim/Data/scripts folder? ( as pex files?)

 

Would enough be willing to do this ( if is allowed) and PM me the file? It's a very small ( 12kb) BSA that needs only a few numbers edited.

 

Posted
15 minutes ago, Scroolose said:

Thanks. I've set it up in Notepad++, after some tinkering...but no results. Do I need to open all three psc files and it will automatically place them in Skyrim/Data/scripts folder? ( as pex files?)

 

Would enough be willing to do this ( if is allowed) and PM me the file? It's a very small ( 12kb) BSA that needs only a few numbers edited.

 

Attach the psc files here. I will compile them.

But be aware I may not be able to fill the properties.

Archived

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

  • Recently Browsing   0 members

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