![]() |
|
[Bug] Hot reload - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: [Bug] Hot reload (/thread-1423.html) |
[Bug] Hot reload - SuperPlayer - 24-10-2015 Today i noticed there is a bug in the hot reload function of the SF editor. I am working on a client side lib for a screen. Whenever i save the changes in the lib the screen reloads which is correct. But the screen doesnt load the new version of the lib. I have to reload the screen manuel to make everything working fine. If i just change something on the screens script and save it the hot reload works fine. The problem just occurs if i changed something in the lib or both, the lib and the screen. I just checked the Hot Reload box in the settings, not the one which only reloads when the main file is changed. SuperPlayer RE: [Bug] Hot reload - Person8880 - 24-10-2015 Cannot reproduce this. If I save a non-mainfile it reloads fine on both server and client. What changes are you making that you don't see? RE: [Bug] Hot reload - SuperPlayer - 24-10-2015 I am doing positions calculations and new functions. For example i am adding this function in the lib
I am not saving here. I am just going to my mainfile tab. There i am doing
Then i am saving. It will give me an error that function Bla does not exist. As for the position calculations: The mainfile passes positions into the lib and then the lib is modifying them and returning them. Thats all. Maybe that helps? RE: [Bug] Hot reload - Person8880 - 24-10-2015 Well, if you don't save the changes you've made to that library file it won't send them up. That's intentional. Save the library file when you edit it and want to use something you've added elsewhere. RE: [Bug] Hot reload - SuperPlayer - 24-10-2015 Ahh ok. My mistake, sorry. Thread can be closed then i guess. |