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

Add alternative to specifying units #57

Closed
birgersp opened this issue Dec 30, 2016 · 6 comments
Closed

Add alternative to specifying units #57

birgersp opened this issue Dec 30, 2016 · 6 comments
Milestone

Comments

@birgersp
Copy link
Owner

If task force has no unit specifications, use existing groups in the base zones as unit specifications

@thebgpikester
Copy link

Some options for this

  1. A default Task Force template. All groups not explicitly refrenced in the TF lua will adopt the speed, travel type, skill and objective lists of the default template.

  2. We have a hard coded fall back if none exists? eg, NO OBJECTIVE (ie don't move) skill avg, speed 11, dont use roads.

  3. Use a template group as implied in the first comment: ie one group is defined as LATE ACTIVATION and provides the source of allsettings...ie a destination, a skill, and formation etc.

  4. ???

@thebgpikester
Copy link

Due to #58, #59, #60 it looks like the method for taking a previously unknown unit and giving it the same objectives between restarting the mission or the script would be to associate the name of the group with the task it has, both when spawned and when initially placed. Wil break this out as another issue.

@birgersp
Copy link
Owner Author

birgersp commented Jan 3, 2017

Interesting ideas, it would probably be very useful for new users to create working task forces with simply:

autogft_TaskForce:new()
  :setCountry(country.id.USA)
  :addBaseZone("Base1")
  :addBaseZone("Base2")
  :addTargetZone("Combat1")
  :addTargetZone("Combat2")
  :addTargetZone("Combat3")

And then a default unit specification is automatically. Do you have some suggestion for default unit specifications?

@thebgpikester
Copy link

Not really, random stuff is fine. The only thing I don't know that I shoudl know, to make that decision is the effect of using on road, where none exist on a unit not near a road. In which case off road default might be ideal. Skill avg, speed 11 seem fine.

@thebgpikester
Copy link

ANother question, woudl you prefer that every mission has at least ONE objective? can we enforce this?

@birgersp birgersp self-assigned this Jan 11, 2017
@birgersp
Copy link
Owner Author

birgersp commented Jan 11, 2017

Every task force must have at least one objective, or the mission will throw an error (take a look).

I'm working on a function to "add groups" and "add units" automatically. With this function, the mission designer can put some groups in the base zone and the task force will assume that the units put there define which groups and units the task force shall consist of.

For instance, put a group of 4 M-1 Abrams and 3 LAV-25s in the base zone, don't specify any units for the task force but specify base and target zones as normal. Then (once on mission start), the task force will assume that you want the task force to consist of the units you've put in the base zones. So on respawn you'll get two new groups: 4 M-1 Abrams and 3 LAV-25s.

Then this is all you need to put in the mission script (example.lua):

autogft_TaskForce:new()
  :addBaseZone("SPAWN1")
  :addControlZone("Combat1")
  :setRespawnTimer(600)
  • Add function autoInitializeUnits
  • Invoke autoInitializeUnits if the task force has no groups/units added to it on mission start

@birgersp birgersp modified the milestone: 1.6 Jan 11, 2017
@birgersp birgersp removed their assignment Jan 11, 2017
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

2 participants