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

AGS 4: support room templates in AGS 4 format #2562

Open
ivan-mogilko opened this issue Nov 1, 2024 · 0 comments
Open

AGS 4: support room templates in AGS 4 format #2562

ivan-mogilko opened this issue Nov 1, 2024 · 0 comments
Labels
ags 4 related to the ags4 development context: editor assets related to input files for editing the game type: bug unexpected/erroneous behavior in the existing functionality what: editor related to the game editor

Comments

@ivan-mogilko
Copy link
Contributor

In AGS 4 branch Editor still creates and unpacks room templates using old pre-AGS 4 logic, where it would pack just 2 files: roomN.crm and roomN.asc, presumable from the project's root directory.

This has to be rewritten in AGS 4.

  1. Template includes all files found in a directory, but packs them without directory path (we do not need room template to include "Room/N/" structure).
  2. There has to be an indication that the template has a AGS 3 or AGS 4 format. Either use presence of "crm" file, or metadata, or both.
  3. When unpacking a AGS 3 template, use "ConvertRoomFromCrmToOpenFormat" method.
  4. When unpacking a AGS 4 template, simply unpack the template files into the corresponding subdirectory.

NOTE: I tag this as a bug, because "Create a template from room" command does not do an expected thing, and also relies on a presence of a compiled room file, which is not guaranteed in AGS 4.

@ivan-mogilko ivan-mogilko added type: bug unexpected/erroneous behavior in the existing functionality what: editor related to the game editor ags 4 related to the ags4 development context: editor assets related to input files for editing the game labels Nov 1, 2024
@ivan-mogilko ivan-mogilko added this to the 4.0.0 (preliminary) milestone Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ags 4 related to the ags4 development context: editor assets related to input files for editing the game type: bug unexpected/erroneous behavior in the existing functionality what: editor related to the game editor
Projects
None yet
Development

No branches or pull requests

1 participant