If you're deleting the .pex file and resaving the new script thus generating a NEW pex file but it is still using the old code from the previous script, then it is just a guess that the old psc isn't being removed.
.pex is the compiled result. Indeed this is the file that is used by the game. The .psc is your source, ala the original.
Assuming this is still related to the pex file though, you should delete the pex. Resave the new script, load a new game and then save the game.
Ok. I see where you're going with that. Sadly I have done that numerous times, in addition to adding stupid message boxes saying something like "HEY I FINALLY UPDATED!"
Also, As I had stated in the OP, I have tried deleting the PEX file numerous times. I honestly cannot figure out what is going on, as I have practically removed any trace of the old code that I am seeing ingame. The only thing I could possibly think of is that the older script is being saved in the ESP file, which contradicts what I have seen in other topics where Devs have said the scripts are not included in the ESP.
However, I have uploaded this to Steam Workshop on February 15, and I am changing the scripts now. Does that make any difference?
Sounds like an odd issue. What, in particular, are you looking for when determining which version of a script is running? What happens if you remove the compiled script altogether? Could there be an overriding file in an
BSA? I think loose files are supposed to override those in BSAs, but I'm not all that confident on anything to do with them.
Cipscis
I have added debug statements, such as the message box. I do not see those messages in the script. Even new games result in the older scripts being loaded. This issue has happened before, and for the life of me... I cant remember what I did to fix it.
Don't know what you mean with the inclusion of the BSA bit... I am not using any vanilla objects in this plugin, so everything should be updating fine.
I had tried removing the script as you had suggested last night, but I do not recall the result. I will try again when I get home and I will let you know.