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

Top-level UDMF data not known to UDB gets removed #627

Closed
biwa opened this issue Oct 3, 2021 · 1 comment
Closed

Top-level UDMF data not known to UDB gets removed #627

biwa opened this issue Oct 3, 2021 · 1 comment
Assignees

Comments

@biwa
Copy link
Collaborator

biwa commented Oct 3, 2021

Fields and blocks at the top level of TEXTMAP that are not known to UDB are ignored while loading a map, and thus not written back when the same is saved. Example:

namespace = "zdoom";

my_global_field = 123;

my_global_section
{
	my_global_section_field_1 = "hello world";
	my_global_section_field_2 = 1.2;
}

// Other blocks like "thing", "vertex", "sector" etc. here

After saving the map the my_global_field field and my_global_section block will be gone. They have to be preserved, though, since they are likely important.

@biwa biwa added the bug label Oct 3, 2021
@biwa biwa self-assigned this Oct 3, 2021
@biwa biwa closed this as completed in 80e5631 Oct 3, 2021
@biwa biwa added the fixed label Oct 3, 2021
@biwa
Copy link
Collaborator Author

biwa commented Oct 3, 2021

Works now... however, the stand-alone version of ZDBSP removes unknodwn blocks (but not fields) when rewriting the TEXTMAP 🤦

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

1 participant