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

ScenarioV2 extension, sky map #5570

Merged
merged 5 commits into from
Jun 30, 2024
Merged

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Jun 13, 2024

This PR

  • extends the YAML MM scenario description language substantially. It is now more flexible than the original scenario language w.r.t to game map definition; it also reads crew information (currently limited to single person crews) and various info for units (pre-deployed position, prone/hidden/shutdown/hulldown status, alt/elev and velocity, camo). It can now be used for setting up test games that continue working after the next few merges unlike savegames. The language example file is updated accordingly
  • adds a "sky map" that is an atmospheric map without terrain as specified by the rules; (even with terrain, all terrain could be irrelevant for aeros). This is a visual representation of such a case: the sky map is just colored sky blue. Certainly subjective, to me this feels clearer than having a bunch of terrain (or an empty green map) under the aeros, where the scale of the terrain images is wrong anyway. This is currently only available from scenarios (but can certainly be added to the lobby GUI)
    image
  • fixes scenarion loading so that scenarios are now actually also read from the user dir

This is a fully functional little fight in the sky with pre-deployed units:


MMSVersion: 2
name: Air Battle
description: This is a fully functional little dogfight

map:
  type: sky
  width: 35
  height: 25

factions:
  - name: Epsilon Galaxy Flight
    camo: Clans/Coyote/Epsilon Galaxy.jpg

    units:
      - fullname: Cheetah F-11
        at: [2, 12]
        facing: 1
        altitude: 6
        velocity: 3
        crew:
          name: Marianne O'Brien
          gunnery: 4
          piloting: 4
          portrait: Female/Aerospace Pilot/ASF_F_2.png

      - fullname: Cheetah F-11
        at: [3, 17]
        facing: 1
        velocity: 2
        crew:
          name: Giulia DeMarco
          gunnery: 3
          piloting: 5
          portrait: Female/Aerospace Pilot/ASF_F_3.png

  - name: OpFor
    camo: Corporations/Star Corps.png
    units:
      - fullname: Cheetah F-11
        at: [ 32, 8 ]
        facing: 4
      - fullname: Cheetah F-11
        at: [ 34, 8 ]
        facing: 4

@IllianiCBT IllianiCBT added the For New Dev Cycle This PR should be merged at the beginning of a dev cycle label Jun 21, 2024
Copy link
Member

@HammerGS HammerGS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and seems to work

@HammerGS HammerGS merged commit 64a3b8a into MegaMek:master Jun 30, 2024
5 checks passed
HammerGS added a commit that referenced this pull request Jun 30, 2024
+ PR #5652: Fix ammo carrier issue that prevents Princess from firing ammo-based weapons
+ PR #5602: Princess - enhanced anti-Mech targeting
+ PR #5592: Cleanup and disentangle (TilesetManager, Client, BoardView)
+ PR #5591: Only consider MM internal dirs when creating the official unit list
+ PR #5570: ScenarioV2 extension, sky map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For New Dev Cycle This PR should be merged at the beginning of a dev cycle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants