QodotPlugin / qodot-plugin

(LEGACY) Quake .map support for Godot 3.x
MIT License
960 stars 70 forks source link

Merge config_file and config_folder into one tool #165

Closed DeerTears closed 1 year ago

DeerTears commented 1 year ago

Adds trenchbroom_game_config.tres, removes qodot_trenchbroom_game_config_folder.tres and qodot_trenchbroom_game_config_file.tres.

This new tool generates a functioning .cfg with all the options of both tools. It also lets you set up brush tags, face tags, attributes for content flags and surface flags. It also removes the need to type fgd filenames into an Array, and requires less clicking between tools.

I've started to document each of these newly-migrated features (tags, attributes, types of tags/attributes) in the new class reference.

Breaking changes

The qodot_trenchbroom_game_config_file.tres tool will be removed, along with its Arrays of linked resources. The original resources that were linked (FGDs, TrenchbroomTag files, etc.) will be safe on disk, so long as they're saved outside of /addons. You will need to rebuild these brush/face tags and surface/content attribute Arrays again in the new tool.

Let me know if this change is an issue and I'll look at other options.

Migrating old configs

Your old qodot_trenchbroom_game_config_folder.tres can be migrated by saving it outside of /addons, checking all your custom resources are also outside of /addons, and then updating qodot-plugin.

The source script name has not changed, so old config_folder resources saved outside of /addons will migrate all old data over. Only the resource in /addons is getting its name changed to help signify the change.