Renaming in ModBuddy

Thalassicus

Bytes and Nibblers
Joined
Nov 9, 2005
Messages
11,057
Location
Texas
  1. Create a folder in a ModBuddy project.
  2. Create a file in that folder.
  3. Create an UpdateDatabase line for the file in the Actions tab.
  4. Rename the folder that file is in.
All "/" forward slashes are automatically (and incorrectly) replaced with "\" backslashes in the Actions and Content tabs, for any lines where the folder or file is renamed.

  • The ModActions and Content sections of the file use / forward slashes.
  • The "Folder Include" sections of the civ5proj project file uses \ backslashes.
If these rules are broken the game cannot read the project file. It skips anywhere the wrong type of slash is used (the file does not load).

Here's a simple workaround until the bug is fixed:

  1. Open the *.civ5proj file in a text editor.
  2. Select the ModActions and Content sections.
  3. Find-replace all \ with /. The only backslashes will be these erroneous entries.
  4. Save the file.
  5. Rebuild the project.
 
Yes, thank you for pointing that out. It happens whenever a rename occurs of a file or folder. The new ActionsTab interface appears to be missing the capability to edit lines directly, so it's necessary to open the project file to correct the errors.

Thankfully... I don't know about you, but I don't need to rename things often so it's only a minor problem. :)

Still! It's really ironic... while trying to fix an error that might exist (modders using the wrong slash), it introduced an error that always exists. That's the world of programming! :lol:

In a suitably complex system there is a certain irreducible number of errors. Any attempt to fix observed errors tends to result in the introduction of other errors.

~ Fred Brooks
 
well this feature is new to modbuddy, correct from yesterday patch?, so knowing that both files and folders is important to them. I do not rename my files, so its more for their benefit and not mine.
 
Back
Top Bottom