JediStudley Posted January 4, 2019 Share Posted January 4, 2019 I've been editing psc files using an editor outside of the creation kit. I have created a quest, tied the script file to it, and been able to run the demo script (yeah!). If I make more changes to the script and compile it manually, I'm not seeing the new script changes when I run the game. The ESP and PSC/PEX files are being changed in place under the game's data directory. 1) I tried just changing the psc and compiling (verified time stamp on pex file)2) I tried updating the quest by removing and adding hte script file and resaving the esp3) I tried #2 with exiting and relaunching the CK beforehand So the question is, do I have to edit and compile the scripts within the CK? Do I need to readd them to the quest each time i modify the script? Thanks! Link to comment Share on other sites More sharing options...
IsharaMeradin Posted January 4, 2019 Share Posted January 4, 2019 You do not need to edit and compile the scripts within the CK. I have built script based mods before using solely Sublime Text or Notepad++ for editing and compilation. The issue is most likely that you are doing your testing mid-game and the script in question is attached to some object which is already loaded and stored in memory. Some changes to a script will not be recognized in this scenario. Therefore, try testing on a new game or a save that has not seen the mod in question before. If it continues to not perform as expected, post the code. It could be possible that the logic is off and somehow preventing the script from functioning as intended. Link to comment Share on other sites More sharing options...
JediStudley Posted January 5, 2019 Author Share Posted January 5, 2019 IsharaMeradin, thank you for response! I think that is exactly the problem. I had the misunderstanding Quest.OnInit() fired on each new load of the game, not just the initial load and never again. (I do have the flags set to fire only once, which I now know is once ever for a character's lifetime) Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts