ryanjon2040
(ryanjon2040)
September 20, 2014, 2:02pm
234
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.
Awesome . Looks great. Previously what i had was based on timers. 5 Custom Events that will call each of them based on timers. So each event updates the mesh and plays sound effects and in the last event added some decorations like props and finalized. Your system looks more better and customizable.
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?
You should post so Epic can download from your branch and fix them.
By the way is one more model which is a Stable. I am going out and wont be online for 3-4 days. Iโll continue modeling when i get back.
Different stages of construction: