Some classes seem to be not loaded if starting the game.
Currently I found the problem with the Build_OilRafinery_C and Build_PowerStorageMk1_C buildings.
If you try to access these classes in an script after loading the world, it will fail and return nil as result.
The network manager will also not find these classes if you search for them.
Once you clicked on one of the corresponding building using the network manager, to open the refelction menu there, it will first also fail (show an empty window), but after that the classes are available again ans a second attempt will succed.
After that the classes are also available in Skripts.
There was also the rare case in which findClasses did find the class even if it was not available in the network manager or the classes-Lib yet, but my guess is, that this was caused by my code, somehow "fixed" it. (not really fixing, since it only happened sometimes, and did not fix the problem of the network manager or classes-Lib)
Some classes seem to be not loaded if starting the game. Currently I found the problem with the
Build_OilRafinery_C
andBuild_PowerStorageMk1_C
buildings. If you try to access these classes in an script after loading the world, it will fail and returnnil
as result. The network manager will also not find these classes if you search for them. Once you clicked on one of the corresponding building using the network manager, to open the refelction menu there, it will first also fail (show an empty window), but after that the classes are available again ans a second attempt will succed. After that the classes are also available in Skripts.There was also the rare case in which
findClasses
did find the class even if it was not available in the network manager or the classes-Lib yet, but my guess is, that this was caused by my code, somehow "fixed" it. (not really fixing, since it only happened sometimes, and did not fix the problem of the network manager or classes-Lib)FIN-Version: 0.3.19