hothot995 Posted Monday at 02:59 PM Posted Monday at 02:59 PM Sorry, I wanted to ask about Swap Potion. Are the scripts for Instant Swap Potion and Instant Reverse Potion perhaps a little laggy? Sometimes it takes quite a while for the transformation to happen (around 10 seconds). I don't really mind the delay, but sometimes, especially when I first start the game, I test it by drinking the potion and nothing happens—the transformation doesn't trigger. After doing a lot of testing, it seems that the potions are less likely to fail if I first let the transformation happen naturally over time, and then drink the potion to trigger the transformation afterward. Is this expected behavior, or could there be some kind of delay or issue with the scripts?
Coding_Onion Posted Monday at 03:11 PM Author Posted Monday at 03:11 PM (edited) 13 minutes ago, hothot995 said: Sorry, I wanted to ask about Swap Potion. Are the scripts for Instant Swap Potion and Instant Reverse Potion perhaps a little laggy? Sometimes it takes quite a while for the transformation to happen (around 10 seconds). I don't really mind the delay, but sometimes, especially when I first start the game, I test it by drinking the potion and nothing happens—the transformation doesn't trigger. After doing a lot of testing, it seems that the potions are less likely to fail if I first let the transformation happen naturally over time, and then drink the potion to trigger the transformation afterward. Is this expected behavior, or could there be some kind of delay or issue with the scripts? Uh... good question. I do think i may need to take a look into the code. If i remember correctly in the earliest Iteration of the instant potions all they did was to set tf/rev percent to 100 then let the 'regular' update loop that checks values ~all 10 seconds (i think faster if a possible swap-moment is close) do the rest (hence the 'lag'). But since then i changed the code a bit so it could be that i accidentally broke something in the process. Thanks for reporting! Edited Monday at 03:13 PM by Coding_Onion
Coding_Onion Posted Monday at 06:51 PM Author Posted Monday at 06:51 PM (edited) 3 hours ago, hothot995 said: Sorry, I wanted to ask about Swap Potion. Are the scripts for Instant Swap Potion and Instant Reverse Potion perhaps a little laggy? Sometimes it takes quite a while for the transformation to happen (around 10 seconds). I don't really mind the delay, but sometimes, especially when I first start the game, I test it by drinking the potion and nothing happens—the transformation doesn't trigger. After doing a lot of testing, it seems that the potions are less likely to fail if I first let the transformation happen naturally over time, and then drink the potion to trigger the transformation afterward. Is this expected behavior, or could there be some kind of delay or issue with the scripts? The potions work on my end. The thing is that the code is a bit jank and needs the mod to have booted up/been active (i do think the first update-loop takes a bit longer) and it will take up to ten seconds depending where on the update schedule you currently are. You can see that its working if your tf/rev percent in the 'values'-mcm-category are set to 100 after consuming a potion. May replace the implementation in the future with something more efficient (calling the swap-function directly), but that would require a bit of restructuring on my end. Edited Monday at 06:52 PM by Coding_Onion
hothot995 Posted yesterday at 12:05 AM Posted yesterday at 12:05 AM 5 hours ago, Coding_Onion said: The potions work on my end. The thing is that the code is a bit jank and needs the mod to have booted up/been active (i do think the first update-loop takes a bit longer) and it will take up to ten seconds depending where on the update schedule you currently are. You can see that its working if your tf/rev percent in the 'values'-mcm-category are set to 100 after consuming a potion. May replace the implementation in the future with something more efficient (calling the swap-function directly), but that would require a bit of restructuring on my end. Sorry, I found something very strange. I think I may have found the cause of the issue. It seems to be related to Random Alternate Start - the Final Omen. When I first start the game in the starting room, I can test the mod by drinking the potions and everything works normally. However, after I leave the starting room and enter the open world, drinking the potions sometimes does nothing. The potion seems to have no effect at all. I have to wait for 24 in-game hours (which is the transformation time I set) and let the transformation happen automatically. After that, the potions start working again. However, when I switch to another alternate start, Optional Quick Start, everything works perfectly. Even after leaving the starting cave and entering the open world, both potions continue to work normally. So it seems that the problem may be caused by Random Alternate Start - the Final Omen. Sorry for the confusion. Your mod's potions actually seem to be working fine. The delay itself isn't really a big problem either. 1
Coding_Onion Posted yesterday at 05:22 AM Author Posted yesterday at 05:22 AM 5 hours ago, hothot995 said: Sorry, I found something very strange. I think I may have found the cause of the issue. It seems to be related to Random Alternate Start - the Final Omen. When I first start the game in the starting room, I can test the mod by drinking the potions and everything works normally. However, after I leave the starting room and enter the open world, drinking the potions sometimes does nothing. The potion seems to have no effect at all. I have to wait for 24 in-game hours (which is the transformation time I set) and let the transformation happen automatically. After that, the potions start working again. However, when I switch to another alternate start, Optional Quick Start, everything works perfectly. Even after leaving the starting cave and entering the open world, both potions continue to work normally. So it seems that the problem may be caused by Random Alternate Start - the Final Omen. Sorry for the confusion. Your mod's potions actually seem to be working fine. The delay itself isn't really a big problem either. No problem, it's always good to know where mod-compatibility problems arise 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now