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

Spaces in resource names causes issues (e.g. name erasure) #7

Closed
IsmAvatar opened this issue Jan 23, 2012 · 2 comments
Closed

Spaces in resource names causes issues (e.g. name erasure) #7

IsmAvatar opened this issue Jan 23, 2012 · 2 comments

Comments

@IsmAvatar
Copy link
Owner

Steps to reproduce:

Part 1: Produce a file with a resource with a space in its name

  1. Open Game Maker
  2. Create any resource
  3. Name the resource with a space in its name, such as "sprite 0"
  4. Save the file

Part 2: Open a file that contains a resource with a space in its name.

  1. Open LGM, and open the file created in part 1
  2. Locate and attempt to edit the resource that has a space in its name.

Observed behavior: The resource editor opens with an empty resource name. Saving the resource causes the name to be erased.
Desired behavior: The space should either be converted at some point (probably on load) or preserved.

The desired behavior here is not clear. There should probably be a consensus before we move forward.

It is worth noting that Game Maker's behavior is to preserve spaces.

Additionally note: Preserving spaces will not allow the resources to be used in scripts unless a string resolver is used. Converting spaces may cause issues with string-resolved names. No known string resolvers exist at this time (execute_string does not resolve resource names with spaces).

@rpjohnst
Copy link
Contributor

Resources with spaces in their name are still accessible through GUI menus such as the object's sprite or an action's context. These do work already in LGM, so the desired behavior is probably to preserve the spaces.

@IsmAvatar
Copy link
Owner Author

Commit 40bbb1 now allows spaces in resource names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants