Hi all,
I trying to find out alittle bit of information on how to approach setting up a RTS, I’ve already read a considerable amount of Posts on using Lockstep and several issues in regards to amount of units to instance etc.
i’ve still got a few queries probably due to the out of the norm setup, The different elements consist of 3 different areas
- account manager - manage own resources, buildings, units, tech etc etc in real time (similar to any mafia war game you can get on fb nowadays)
- arena - multi user battle - fps style element (using master server to create rooms for battles), singular unit per player - RPG element (Unit is developed / upgraded by the user through experience attained and account manager)
- war / battle - AI / NPC controlled battle - RTS style element (multi user war controlled by the AI scripts / central server, no user input)
i have both parts 1 and 2 started and working correctly however the aspect i having difficulty understanding is section 3. the idea behind this is that the user selects a groups of units and identifies a target to attack, the simulation takes place and a report is generated for the user whom can then watch the outcome or a simulation of the battle on their client, therefore no user interaction takes place.
However the few issues i’ve thought about is due to neither user/s having any input a lockstep technique is not required to ensure each user receives the updates from other clients so this can be ruled out, also no user has to watch the simulation to actually have an outcome generated and can even be offline during the simulation.
This poses the major issue, is it possible to conduct a simulation a battle on a server like photon (or would ulink be required - fully authoritive), this similuation can then be replecated on the client with animation / physics occuring to show the same outcome.
additional issues with this includes the amount of units being animated etc, and ensuring that the client simiulation follows the same steps to reach the previous simulation.
If this can do done, i’m assuming id have to use a different support database like ulink which can simulate unity on the server end, and have to setup my own .net math table for the calculations, and maybe record in maybe a list the similation sequence or variables used by the server to seed to the client as they simulate the battle at a later point. (most might argue that this isn’t RTS but i may expand on this as a fourth area where users do have an interaction into the battle, but that will have to be different entirely.
I’d appreciate any direction on how to setup the third section.