Thommie
(Thommie)
September 20, 2014, 1:02pm
233
DO NOT USE MY BRANCH!
Apparently i broke something, got a weird compile error:
Internal compiler error inside CreateExecutionSchedule (site 1); please contact the framework team as we need a repro for this bug!
Guess i should post this on answerhub?
Anyway i’ll try to fix it, also i found a way to fix the resource spawner issue
Nice model again! You’re really fast.
Redid everything again. This time, I made backups manually. Finally I can show you some progress video.
YouTube
I did not have any proper models or sound files. So I had to make use of what I had.
There is built-in support for speeding/slowing construction rate (like when under attack). - You can even put negetive value (meaning it will go back to previous stage). Apart from that I have modularized stuff. So each class is taking care of stuff it is assigned.
General strcuture
Construction manager:
You will ask this guy if you want a new building. YOu tell him which building class, proxy class you want and also work hours needed and priority. This guy will manage the workers available and assing them to various projects based on priority and other stuff. So if you have a ‘BONUS’ speed for some building types, you should tell this guy.
Proxy:
This guy simply uses whatever work force is assigned to it and goes on building the structure. It will swicth between mesh, audio… just like it is told. He has no idea about anything else. At the end of construction, he will notify the construction manager, who will destroy the proxy and replace it with the building.
Currently priorities are not implemented. But all you have to do is extend or modify the construction manager anyway you want.
Suppose you want top control transparency of the buidling instead of multipel meshes, you can simply extend the Proxy class and implement any custom logic and it will work.
NOTE: For the video, I am using a DemoProxy class with stage info set as its default values. Practically this will be loaded from a config file.
Looking good, a lot more advanced than my simple system!