Freelancer XML Project in Github Workflows
-
IrateRedKite Administrators Historic Supporter Wiki Contributorreplied to adoxa on global:last_edited_by,
@adoxa Thanks for this! I’ve updated my workflow accordingly and will do some testing a little later today. I may keep using the PowerShell foreach loop, simply as it allows me to filter by filename, but having the
-r
options is really nice.Looking into caching
frc.exe
andxml2utf.exe
as well, so that should further save your site bandwidth and download stats -
How can I put 227 wav file inside an UTF file?
More specifically I’m talking about trent_voice.utf, I’ve extracted and edited all the wav file but I can’t find a suitable operation to reinsert the wav file inside the UTF if not one by one by hand with UTFEditor -
IrateRedKite Administrators Historic Supporter Wiki Contributorreplied to maximilianps on global:last_edited_by,
@maximilianps Hiya, welcome to the Starport! Your best bet if you’re doing this sort of thing in bulk, is the Freelancer XML Project, which provides an easy-to-use GUI for conversion in both directions (XML -> UTF and back).
-
@adoxa This might be a bit of an ask, but is is possible to prevent frc and xml2utf from writing metadata into the files they generate? I was hoping to compare the sha256 hash of zipped releases as a measure to prevent accidental releases if the workflow is triggered, but each run of the two programs generates files with completely different hashes as I think in both instances metadata is written to the compiled files!
Edit: I am also caching both the applications now, so you should see way fewer hits on these from Github as the workflow runs.
-
In my (admittedly limited) test
frc
generated the same file. The test was simply compile a file, wait a bit (I thought it might be the timestamp in the PE header), compile again and compare; I also touched the source file, but that was still the same.You should generate the XML files with the Timestamps (-t) option, otherwise the current time is used when creating the UTF.
-
IrateRedKite Administrators Historic Supporter Wiki Contributorreplied to adoxa on global:last_edited_by,
@adoxa An update: It was indeed the timestamps! Thankyou for your help You’ll be pleased to know I am also caching and no longer using the
dlt
links.An aside: is the source for xml2utf available?
-
IrateRedKite Administrators Historic Supporter Wiki Contributorreplied to adoxa on global:last_edited_by,
@adoxa Thanks! I don’t suppose you have this set up running in the other direction too? (UTF -> XML) We’ve got a local script that converts things in the other direction for upload, but I’ve found for quite a few of the folks working on the mod, UTFXML simply won’t run properly when invoked via a script, and I think it’s a similar set of dependency issues.