KoffeinFlummi / armake2

Successor to armake written in Rust
GNU General Public License v2.0
49 stars 17 forks source link

Subconfig not processed correctly #45

Closed jonpas closed 5 years ago

jonpas commented 5 years ago

Subconfig (config.cpp in a sub-folder of an addon) does not get processed (pre-processed? binarized?) correctly by armake2.

Examples:

It builds without errors (presumably just skips it), but game crashes with the following error on load:

14:10:17 Error context †[SOH]CfgPatches"[SOH]MRT_AccFncs5[ETX][STX]requiredAddons[SOH]cba_accessory[SOH]versionDescMRT Attachment Functions[STX]units
14:10:17 ErrorMessage: File x\cba\addons\accessory\mrt_accfncs\config.cpp, line 0: '.raP': '[BS]' encountered instead of '='
14:10:17 Application terminated intentionally
ErrorMessage: File x\cba\addons\accessory\mrt_accfncs\config.cpp, line 0: '.raP': '[BS]' encountered instead of '='

[SOH]/[ETX]/[STX]/[BS] are control characters (GitHub can't show them).

Additionally, unpack crashes with the following error (but unpacks everything until it reaches that part):

$ armake2 unpack cba_accessory.pbo cba_accessory
error: Failed to open output file:
No such file or directory (os error 2)