Most people around here have already heard of the problem:
If you check "exclude unused files" on deployment, several plugins will cause errors about missing files.
This is a problem of the plugins because they do not use the official functions to register their files as needed to the editor, either because the plugin writer hasn't read about that in the help file or because the file can't easily be registered.
Up to now I usually told people with that problem to just use the file in the events of an unconnected map as a workaround, but that only works with files that can be used by events.
It doesn't work with files who are in different folders or can't be used with events.
But I just had another idea:
The plugin registering a file doesn't have to be the same plugin as the one actually using that file.
So I'm requesting for the community a rather simple plugin that has a lot of string parameters to be used for filepaths, and that simply registers all files whose paths and filenames are placed in those parameters.
Ideally a game developer would simply copy the file string from an error message about a missing file and place it in this plugins parameters to register that file, so that on next deployment with that option it will not be excluded.
That will need a bit of work from the developer to find all those missing references, but probably less work than searching for the references and placing them in events on maps.
The plugin should also include the following two bughunting features:
1) chack all filestrings from the parameter if any contains a %
If yes, place error message that file xy contains letters forbidden under networking rules and needs to be renamed and all references ingame changed for deployment to work.
2) check if two or more of the strings are identical
If two strings are identical, inform the user that that file is already registered and if it is still reported as missing after being registered the cause is something other than the missing registration.
Suggestion:
either include a long list of optional parameters to be able to contain even a lot of missing registrations, or write the parameters with dynamic plugin name to allow the plugin itself to be duplicated with different names as often as needed to handle whatever number of files need registering.
If you check "exclude unused files" on deployment, several plugins will cause errors about missing files.
This is a problem of the plugins because they do not use the official functions to register their files as needed to the editor, either because the plugin writer hasn't read about that in the help file or because the file can't easily be registered.
Up to now I usually told people with that problem to just use the file in the events of an unconnected map as a workaround, but that only works with files that can be used by events.
It doesn't work with files who are in different folders or can't be used with events.
But I just had another idea:
The plugin registering a file doesn't have to be the same plugin as the one actually using that file.
So I'm requesting for the community a rather simple plugin that has a lot of string parameters to be used for filepaths, and that simply registers all files whose paths and filenames are placed in those parameters.
Ideally a game developer would simply copy the file string from an error message about a missing file and place it in this plugins parameters to register that file, so that on next deployment with that option it will not be excluded.
That will need a bit of work from the developer to find all those missing references, but probably less work than searching for the references and placing them in events on maps.
The plugin should also include the following two bughunting features:
1) chack all filestrings from the parameter if any contains a %
If yes, place error message that file xy contains letters forbidden under networking rules and needs to be renamed and all references ingame changed for deployment to work.
2) check if two or more of the strings are identical
If two strings are identical, inform the user that that file is already registered and if it is still reported as missing after being registered the cause is something other than the missing registration.
Suggestion:
either include a long list of optional parameters to be able to contain even a lot of missing registrations, or write the parameters with dynamic plugin name to allow the plugin itself to be duplicated with different names as often as needed to handle whatever number of files need registering.


