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: an directory-based alternative to "Import existing room" #2561

Open
ivan-mogilko opened this issue Nov 1, 2024 · 2 comments
Open
Labels
ags 4 related to the ags4 development context: editor assets related to input files for editing the game type: enhancement a suggestion or necessity to have something improved what: editor related to the game editor

Comments

@ivan-mogilko
Copy link
Contributor

ivan-mogilko commented Nov 1, 2024

Since in AGS 4 rooms are now saved as directories with multiple files in it, "Import existing room" command which imports a compiled room becomes obsolete, and only worth keeping for backwards compatibility (importing rooms from old game projects).

We need a new "Import" command that would import existing Room directory instead.

Such command might also help if room dir got "detached" from the project for some reason (not saved, or error during project save), or copied there by hand.

Proposal:

  • Old "Import existing room" is renamed to "Import compiled room" (or similar title);
  • Make new "Import existing room" that requires user to select a room directory. Tests that this directory has minimum of room contents (afaik "data.xml" is the minimal requirement, the rest may be generated). If the dir exists inside same project then simply adds a room object in game, but keep the dir. If the dir is elsewhere, then it gets copied.
  • Optionally, if the dir contains extra unknown files, ask whether to copy all files or only standard room files.
@ivan-mogilko ivan-mogilko added type: enhancement a suggestion or necessity to have something improved 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
@fernewelten
Copy link
Contributor

One use case that comes to mind is a maze of rooms that are essentially alike with small modifications. A game programmer would import one ‘source template room’ into a few dozen different destination rooms and then modify the individual copies.

@ivan-mogilko
Copy link
Contributor Author

One use case that comes to mind is a maze of rooms that are essentially alike with small modifications. A game programmer would import one ‘source template room’ into a few dozen different destination rooms and then modify the individual copies.

Not that this matters strictly here, but for a maze rooms with small modifications it may be more efficient to use a single room and modify it dynamically in script.

The most common use case for importing rooms is when you need to copy a room from another project, for instance (older version of same game, a backup, a previous game chapter which you share assets with, and so forth).

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: enhancement a suggestion or necessity to have something improved what: editor related to the game editor
Projects
None yet
Development

No branches or pull requests

2 participants