Hey there,
I'm relatively new to ORK Framework, but I've been coding for a loooong time. In any case, I got ORK because I felt it was useful to have a visual editor for things like items, abilities etc. I'm building a 3D tactical combat game and I've sort of hit a roadblock which might be simple to more experienced users of ORK, but has me completely stumped over the last two days.
Basically, I have a randomly generated set of terrain tiles (my own code) which I overlay the battle grid on (square grid). All that works just fine. I just can't get the game to trigger combatant placement, or even start an autostart battle. The only thing that's happening is my camera is displaying the map in an overhead view, but nothing comes up from ORK regarding menus. i even tried doing a debug on the BattleStartEvent, but it didn't return anything making me think the event isn't even being called. Can anyone help me?
Are you generating the ORK grid with your code or just terrain?
By overhead camera do you mean that battle camera is triggered but the combatant won't spawn? Or the battle does not start at all?
I have been trying to see if I could force the Battle Start Event to call through script:
battleComponent.StartEvent(ORK.Game.GetPlayer());
still nothing.
I've even confirmed that the active group has the player and the unit, and that the player is removed from the battle group. Not sure why the battle start event isn't calling though. Can you perhaps provide me with a stepwise logical progression of what the Start Event looks for? There's no hints in the console or from ORK itself.
https://ibb.co/qCwX3Gd
The overhead camera is controlled from my own script, it's not an ORK camera. I tried adding a dialogue node to the Battle Start Event that is supposed to trigger right after it starts, but there was no response, making me believe that the event never triggered.
The first thing you need to do is do a basic setup of ORK if you have not done so already. You can either import ORK Demo Project and experiment from it or follow these tutorials and adapt from there: http://orkframework.com/tutorials/game/
Second, you need to setup Grid Battles: http://orkframework.com/tutorial/gameplay/grid-battles-part-1/
the second tutorial shows how to setup ORK's battle starter gameobject: http://orkframework.com/tutorial/gameplay/grid-battles-part-2/
There are just too many things that could go wrong in the setup step, so it's better to make sure you have done everything correctly.
If you can make Grid Battles work using ORK, then try to eliminate possible problems in your scene. Try un-edited ORK Grid to see if that works, also try starting battle using battle component.
That should nail down where the problem is happening. Otherwise it's just too many reasons that could be the cause.
If you have bought the ORK Framework, there is a source code zip file "gameplay_source_code" in "ORK Framework" folder, that should also simplify things.
It's better to go through setup at least once, ORK has many moving parts and easy to miss something.
What you can also try is import demo scene in a new Project, there is unity Package in ORK Framework folder, alternatively there there is also version here http://orkframework.com/showcase/.
And then add grid to that (http://orkframework.com/tutorial/gameplay/grid-battles-part-1/)
This will give you a fully setup ORK project, so every time you doubt whether it's your bug or ORK's you can replicate in Demo project and make sure. This approach saved me quite a bit of time when I started with ORK.
That could due to move range/ap costs of the grid cells and combatants default options for that.
1) Make sure grid cell types are not set to be blocked or have high move/ap costs
https://i.imgur.com/vIqXjiG.png
2) Make sure the grid you spawned is not populated by blocked cell types.
3) Make sure Move range is not set to 0 in Battle Grid Settings https://i.imgur.com/pgiTEZn.png or that you have not enabled "Own Grid Range" for combatants. if you use action point costs check that too.