Hi all,
A couple of days ago I decided to build a custom add-on that would add an additional menu entry in the game allowing to do some cool things for some aircraft. I spent all evening yesterday investigating the development process and even managed to get the button to appear in the popup menu. However, one thing that doesn’t seem to work is hot reloading.
Essentially what I did was - enable dev mode, open my project and click Build All. It generated the .spb file along with all manifests and layouts in the packages directory just fine. I then copied the output into my community folder and loaded up the game and it worked - the custom button was there. Then, whilst still in the game, I opened my project again, made changes to my files and rebuilt. The list of packages (the dev menu entry) showed my community package as unmounted and the development version as mounted however the UI was still showing the old version and not the changes that I had in my dev version.
I also tried not having my compiled package in the community folder and just loading the project through the Projects dev menu and building it (Packages window shows it as mounted) but in that case the menu entry doesn’t even appear. It’s like it builds it fine but doesn’t add to the game.
Surely having to restart the game can’t be the only way to actually see your changes?! It takes absolute ages booting into the game and then spawning in an airport just to see if your custom window is now blue and not red.
Am I doing something wrong or is there some step I’m missing? Thanks in advance for your help!