CW3 overwrites .crpl due to case sensitivity

Started by stewbasic, October 24, 2013, 11:07:53 AM

Previous topic - Next topic

stewbasic

I'm playing on windows 7. I have edited a script and recompiled, and I see the change as expected. However when I save and reload the map, CW3 overwrites the .crpl file to a previous version.

After some thought, I think I know the cause. I renamed the script from "test.crpl" to "Test.crpl". I suspect CW3 stores both scripts in the save file, and writes them both to disk. Being on windows, my filesystem doesn't distinguish between the names and one clobbers the other.

I can probably get around this by starting a new map and copying the scripts over, but hopefully it's helpful to point out this subtle issue anyway. I've attached the save.

knucracker

Yeah, that save have two scripts in it... test.crpl and Test.crpl.

1: Open you save in the editor.
2: On disk you will have a Test.crpl in your projects script dir.  Rename that to "test.crpl" using explorer or total commander (wink).
3: Using the game bring up the scripts dialog and you can now click delete on "test.crpl".
4: Save the mission.

Basically, you need to get "text.crpl" out of the save.  To do that you need a "test.crpl" on disk so the game will see it.  Then when you delete it, it will be removed from memory and won't get saved.

Note.  Backup your project first and make copies of any scripts before you rename or delete.  You don't want to accidentally lose anything important (that you have not already lost once :) )