Anyone feel like stress-testing these?
Haven't got time to test it right now, but I can think of a real good stress test - how does it handle Kheldian forms and Halloween costumes?
Last I checked, there was something wrong with demos when you try to play them back with these things - once a player switches to them they never come out of it. However, I can't remember off hand if that was because the playback is messed up or if that's because the demo recording doesn't actually put them back in costume. If it's the latter, you've got nothing to worry about (at least until the problem is fixed, and it has been around for years). If it's the former, though, your program is going to have to skip the NPC entries until it finds a costume for that player.
Ok, when I try to run the costume extractor I get this:
Line -1:
Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded.
Vorac, that message shows up when you run the file without any parameters - you need to tell the program which demofile to process. You can streamline the process by making a shortcut to the executable and simply drag-and-dropping demo files onto the shortcut.
Ah, gotcha.....
Okay, a quick pictorial...
1} Make a shortcut to the executable. To do so, right-click on the executable and drag it a little bit, release, then select "create shortcuts here."
Picture 1
2} Left-click and drag a demofile onto the newly-created shortcut.
Picture 2
3} This will go through the demofile for costume data and extract the costume worn by every player into a separate file.
Picture 3
For drag-and-drop handling of the costume replacer, you need to tweak the shortcut a little.
1} See #1 above
2} Right-click on the shortcut and select "properties"
Picture 4
3} In the "target" field type in the file name of the costume file you want to replace everyone in the demofile with.
Picture 5
4} Drag and drop the demo file into the shortcut like with the extractor.
Ok, will test this out tomorrow, busy day today
So, is this just to replace the costume of the same toons across the 2 demos?
*edit: Just so you know, what I'm doing is changing all the costumes in the demo to one single costume from a different toon.
Example: one of the demos had over 500 costumes in it, due to MM pet's and whatnot being respawned. And I changed all of those to just one costume, from a toon that wasn't in the demo...
I knocked together a couple of quick scripts for costume replacing - you can download them both at http://www.fileden.com/files/2006/11...6/costumes.rar
Costume extractor searches the demofile for costume data and extracts the first costume worn by every player character recorded into a file named $charactername-costume.txt. Just run it with the demo filename in the parameter and it'll run. I.e. "costume_extractor.exe MyDemo.cohdemo" will dump all the costumes worn by players in that demo into their respective files.
Costume replacer replaces the costumes worn by all players in the demo with the one specified and saves it to a separate file, named as the original file with "-uniform" suffix. That one is ran with two parameters, the costume file {from the extractor} and the demo file. So the usage would be "costume_replacer.exe MyHero-costume.txt MyDemo.cohdemo". That would save a demofile with everyone's costumes changed to that of MyHero.
So if you want to watch that Rikti Muthaship Raid demo with everyone replaced with you, give it a spin and lemme know how the thing works under a live-fire test.