DuckGame-Linux icon indicating copy to clipboard operation
DuckGame-Linux copied to clipboard

Moving original files to orig breaks mod.sh, should be copied

Open nsrosenqvist opened this issue 7 years ago • 2 comments

In the beginning of mod.sh the original Content folder gets moved to orig as well as DuckGame.exe. This will cause the script to fail because later when the exe is being patched it first complains that Content can't be found and then later we end up with an empty DuckGame.exe (0 bytes). Copying the folder rather than moving it should fix this.

nsrosenqvist avatar Sep 16 '17 03:09 nsrosenqvist

This is weird because moving should be enough. The first step XnaToFna does is copy everything from the orig backup directory back into the game directory.

https://github.com/0x0ade/XnaToFna/blob/1607442eaf2e5cd5ffba7b5cbc02fa317d27faca/src/XnaToFnaUtil.cs#L124

For now, I'll update mod.sh to copy to the orig folder instead. I'll check the issue in XnaToFna as soon as I get back home.

0x0ade avatar Sep 16 '17 08:09 0x0ade

XnaToFna errors when the directory Content can't be found (since it's now in orig). Don't know enough about it to tell if a step happens in the wrong order or something

nsrosenqvist avatar Sep 16 '17 22:09 nsrosenqvist