Talk:Mapping/Entities/misc mission

From UFO:AI
< Talk:Mapping(Difference between revisions)
Jump to: navigation, search
(Questions)
(Current state)
Line 37: Line 37:
  
 
* As given by DarkRain:
 
* As given by DarkRain:
** ... in theory there are the "bring object", "occupy area" and "destroy object" objectives available ...
+
** ... in theory there are the "bring object", "occupy area" and <strike>"destroy object"</strike> objectives available ...
 
** The AI actually already takes misc_mission into account in its calculations.
 
** The AI actually already takes misc_mission into account in its calculations.
 
** <strike>It does not work for aliens (team 7) at all.</strike>
 
** <strike>It does not work for aliens (team 7) at all.</strike>
Line 46: Line 46:
 
*** I almost always think things like that (does not work, no intention to get it working) should be removed, simply to avoid confusion. --[[User:ShipIt|ShipIt]] ([[User talk:ShipIt|talk]]) 11:06, 26 July 2015 (CEST)
 
*** I almost always think things like that (does not work, no intention to get it working) should be removed, simply to avoid confusion. --[[User:ShipIt|ShipIt]] ([[User talk:ShipIt|talk]]) 11:06, 26 July 2015 (CEST)
 
**** Probably the best option for now, I can't think of a way to make this work without making it convoluted and counter-intuitive to map. --[[User:DarkRain|DarkRain]] ([[User talk:DarkRain|talk]]) 04:58, 27 July 2015 (CEST)
 
**** Probably the best option for now, I can't think of a way to make this work without making it convoluted and counter-intuitive to map. --[[User:DarkRain|DarkRain]] ([[User talk:DarkRain|talk]]) 04:58, 27 July 2015 (CEST)
 +
**** Removed this kind of mission, if we really want a 'destroy object' mission we'll have to implement some func_breakable_mission or something like that
 
** The AI moves to the general area of a misc_mission — within a predefined radius of the entity, which, depending on the radius assigned to the misc_mission (if any), might not be close enough to activate the objective.
 
** The AI moves to the general area of a misc_mission — within a predefined radius of the entity, which, depending on the radius assigned to the misc_mission (if any), might not be close enough to activate the objective.
 
** The AI doesn't know how to handle the 'bring object' type misc_mission at all.
 
** The AI doesn't know how to handle the 'bring object' type misc_mission at all.

Revision as of 17:26, 30 July 2015

Contents

General

  • Feature request on tracker
  • Having this feature would help in many ways:
    • We could have something other than "kill all aliens" in our missions.
    • A second way to win could shorten some missions for the player. There are often complaints about very long missions on maps like 'Mansion' or base defence missions, where people crawl through huge maps searching for the last single alien. Those missions could be won by the player securing some 'key points' of the map for long enough.

Questions

  • What is the misc_mission_alien good for at all? It does the same as misc_mission, doesn´t it? --ShipIt (talk) 11:06, 26 July 2015 (CEST)
    • In-game it actually spawns a misc_mission, but sets the team property to the alien team, sets the radius to 3 map tiles (96 units) and ignores all properties set with uforadiant (yes, every single one of them, even radius is always set to 96). --DarkRain (talk) 22:05, 26 July 2015 (CEST)
      • After the first round of fixes the 'time' property should be recognized, still I'm not sure about having two entities that do nearly the same thing (you can create alien mission objectives with just misc_mission, and it is more flexible and less broken) --DarkRain (talk) 04:58, 27 July 2015 (CEST)
        • I would rather have one thing that works as expected than having two that both do not. It is simply confusing and does not make any sense to me. --ShipIt (talk) 06:48, 27 July 2015 (CEST)
          • Removed misc_mission_alien, we can concentrate on getting misc_mission to work instead --DarkRain (talk) 18:20, 30 July 2015 (CEST)
  • If 'radius' is given, does this count only horizontally or is it meant to be a sphere? --ShipIt (talk) 11:23, 26 July 2015 (CEST)
    • Horizontally only, and it results in a square not a circle as the name radius might suggest. --DarkRain (talk) 22:05, 26 July 2015 (CEST)

Goals

  • Make this feature work in campaign as the description implies, and use it within the maps. --ShipIt (talk) 11:06, 26 July 2015 (CEST)
    • [open] If only a 'target' is given, destroy it once the conditions are met.
      • "Occupy area to destroy target."
      • Right now, this destroys the target AND wins the mission, which makes no sense.
    • [open] If only an 'item' is given, win the mission once the conditions are met.
      • "Bring item to win mission."
    • [done] If a 'target' and an 'item' are given, destroy the target once the conditions are met.
        • Note: Default radius if none given for misc_mission is three map grid wide (always was that way, it's just that before a bug prevented it from being correctly set and all misc_mission ended being one grid wide) this might not give the intended results see for example fueldump with the fixed code (the item will be placed upon entering the area — a few steps before reaching the door) --DarkRain (talk) 06:38, 29 July 2015 (CEST)
      • "Bring item to destroy target."
      • This is used in fueldump map and already works.
        • Note that (if I read the code right) if this is the only objective in the mission this will win the mission too --DarkRain (talk) 06:31, 29 July 2015 (CEST)
    • [open] If none of the above paramters is given, win the mission once the conditions are met.
      • This works, but with civilians around it doesn´t. See = Bugs = section below. --ShipIt (talk) 07:16, 28 July 2015 (CEST)
      • "Occupy area to win mission."

Current state

  • As given by DarkRain:
    • ... in theory there are the "bring object", "occupy area" and "destroy object" objectives available ...
    • The AI actually already takes misc_mission into account in its calculations.
    • It does not work for aliens (team 7) at all.
      • First round of fixes is in, should work now for aliens too. --DarkRain (talk) 04:58, 27 July 2015 (CEST)
    • All objectives must be accomplished to win the mission.
      • This is not yet the desired behaviour. It should be enough to reach one of the given goals, unless they are grouped together. --ShipIt (talk) 11:56, 26 July 2015 (CEST)
    • Destroy object' type misc_mission are mostly useless, since misc_mission aren't brush based they aren't tangible and can't be damaged by the player.
      • I almost always think things like that (does not work, no intention to get it working) should be removed, simply to avoid confusion. --ShipIt (talk) 11:06, 26 July 2015 (CEST)
        • Probably the best option for now, I can't think of a way to make this work without making it convoluted and counter-intuitive to map. --DarkRain (talk) 04:58, 27 July 2015 (CEST)
        • Removed this kind of mission, if we really want a 'destroy object' mission we'll have to implement some func_breakable_mission or something like that
    • The AI moves to the general area of a misc_mission — within a predefined radius of the entity, which, depending on the radius assigned to the misc_mission (if any), might not be close enough to activate the objective.
    • The AI doesn't know how to handle the 'bring object' type misc_mission at all.

Known problems

  • The fact that the AI can only plan for their current turn, they will have all kinds of trouble trying to path to anything that is beyond their TU's.


Bugs

  • In my testmap it works fine, but adding a civilian breaks it. --ShipIt (talk) 17:01, 27 July 2015 (CEST)
    • It actually works, but there's a catch: If anyone from any team other than the target team enters the area the turn counter is reset, I'm guessing the idea was that if so the area is considered contested instead of occupied, we could probably use an exception here for non hostiles --DarkRain (talk) 06:07, 29 July 2015 (CEST)
      • Furthermore if someone from other team enters the area of a 'bring object' mission the counter will also be reset! Which might or might not make sense (I still consider it a bug), in any case we also need to add a message to the player that they have lost control of the area, instead of silently resetting the counter --DarkRain (talk) 06:29, 29 July 2015 (CEST)

Next step

  • Make the "occupy area" feature work for all teams. So, if a team reaches one of the given objectives, it wins the mission.
    • Provide some maps using this feature. This should aim for testing in the first place and maybe getting feedback. We can decide whether to keep them or not later on.
      • Imo the best map for this is the baseattack map. Aliens should try to reach either the Power plant, Antimatter storage or Command centre and blow up the base. Players are forced to play those missions, so we get feedback? --ShipIt (talk) 11:06, 26 July 2015 (CEST)
        • This is probably the best use we can make of misc_mission right now, giving the aliens some threatening objectives in base attacks is long overdue IMHO, and we'd get the much needed feedback on this feature, but of course this will need to deal with the AI pathing problem if we are to see any real effects here --DarkRain (talk) 04:58, 27 July 2015 (CEST)
        • I added mission targets for team 7 to the Command centre, Power plant and Antimatter storage tiles of the base map. --ShipIt (talk) 07:33, 28 July 2015 (CEST)
      • The alien base could be used for the player the other way around. Secure the Command centre and win. --ShipIt (talk) 12:03, 26 July 2015 (CEST)
        • Yes, giving some variety to missions should be nice --DarkRain (talk) 04:58, 27 July 2015 (CEST)
        • Unfortunately the alienbase has no Command centre. So I added mission targets for team 1 to the Power plant and Wormhole tiles of the base map. --ShipIt (talk) 07:33, 28 July 2015 (CEST)
      • What about making the dropships a target for the aliens? --ShipIt (talk) 11:06, 26 July 2015 (CEST)
        • This is an interesting idea, specially if we can make the AI pull a sneak attack on the dropship while the team is somewhere else, but that would require some further AI tweaking --DarkRain (talk) 04:58, 27 July 2015 (CEST)
        • I added a mission target for team 7 to each Firebird dropship. --ShipIt (talk) 07:33, 28 July 2015 (CEST)
      • I added a mission target for team 7 inside the building of fueldump. So aliens win if the player is too slow. --ShipIt (talk) 07:33, 28 July 2015 (CEST)
      • I added a mission target for team 1 inside the main building of the Mansion map. So the player wins if he secures the area for some turns. --ShipIt (talk) 07:33, 28 July 2015 (CEST)
Personal tools