Closed morganwillcock closed 1 year ago
are you saying the issue is only *.crm
files are processed, but not *.CRM
?
The issue isn't just with the file extension, it is looking for "room" as a prefix.
## Rename all .CRM file extensions to .crm
for f in *.CRM; do mv $f ${f%.CRM}.crm; done
(cd OBJ && ../../agsutils/agscriptxtract ..) | wc -l
# => 71
## Ensure all crm files have lower case base names
for f in *.crm; do mv $f $(echo $f | tr '[A-Z]' '[a-z]'); done
(cd OBJ && ../../agsutils/agscriptxtract ..) | wc -l
# => 229
e.g. it processes "room1.crm" but does not process "ROOM1.CRM" or "ROOM1.crm".
Edit: I also have an "INTRO.CRM" file which is not extracted. So presumably there is an additional problem when the room files were originally renamed and the "room" (or "ROOM") prefix was removed entirely.
alright. would you mind uploading a testcase "game" that has something with .CRM ext, something with ROOMxx.crm, and INTRO.CRM or alternatively test whether this patch http://ix.io/4ff3 fixes the issue ?
i noticed that perils of poom uses room files in uppercase and am reasonably certain my patch properly fixes this issue, if not, please reopen.
Script extraction is skipped when the file extraction produces file names with upper case characters: