Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when task force has no country specified should be handled better #107

Open
birgersp opened this issue Dec 11, 2017 · 0 comments
Open

Comments

@birgersp
Copy link
Owner

Currently, creating a new task force without setting the country ID (either manually or automatically) results in an error. When creating a task force, then error should be handled differently.

autogft_Setup:new()
:addBaseZone("BLUE_BASE")
:addControlZone("OBJECTIVE_WEST")
:addControlZone("OBJECTIVE_EAST")
:setCountry(country.id.USA)
:setSkill("High")
:setSpeed(30)
:setMaxRouteDistance(5)
:setAdvancementTimer(300)
:addTaskGroup():addUnits(6, "Leopard-2"):addUnits(8, "Marder")
:addTaskGroup():addUnits(2, "Gepard"):addUnits(2, "M1097 Avenger")
:setReinforceTimer(300)

--Red Ground Forces
autogft_Setup:new()
:addBaseZone("RED_BASE")
:addControlZone("OBJECTIVE_EAST")
:addControlZone("OBJECTIVE_WEST")
:addTaskGroup():addUnits(8, "T-72B"):addUnits(10, "BMP-2")
:addTaskGroup():addUnits(4, "ZSU-23-4 Shilka"):addUnits(2, "Strela-10M3")
:setSkill("High")
:setSpeed(30)
:setMaxRouteDistance(5)
:setAdvancementTimer(300)
:setReinforceTimer(300)```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant