Author Topic: Senticon Costume Converter  (Read 19357 times)

Last Known Hero

  • Minion
  • **
  • Posts: 36
Re: Senticon Costume Converter
« Reply #40 on: August 05, 2014, 01:42:51 AM »
I know this hasn't been posted in for a couple months but don't see a reason to start a new topic on the SentIcon costume converter.

I am having an issue of where to place the .costume files, I never saved any of them prior to the export so there is no folder in the C:\ for city of heroes for the .costume files to go, can anyone tell me where to move them so Icon can read them?
Contender's Lil Bro - Stone/NRG Tank
Freedom

Aggelakis

  • Elite Boss
  • *****
  • Posts: 3,001
Re: Senticon Costume Converter
« Reply #41 on: August 05, 2014, 07:28:23 AM »
Go to your City folder (wherever your Icon is), then create a folder named "costumes" in that main directory, so it would look like so:

C:\path\to\City of Heroes\costumes

Then paste your costumes in there.
Bob Dole!! Bob Dole. Bob Dole! Bob Dole. Bob Dole. Bob Dole... Bob Dole... Bob... Dole...... Bob...


ParagonWiki
OuroPortal

Risha

  • Boss
  • ****
  • Posts: 232
  • Dancing at the end of the World
Re: Senticon Costume Converter
« Reply #42 on: August 05, 2014, 02:30:34 PM »
I have icon and all my costume files (you all remember that issue where the skirts went on sideways?  I think I kept a toon with that and of course it doesn't convert right :)  She was on a mission to find the person who'd done it and make him/her pay).  Anyway, still mourning the loss of my Sentinel files because of computer crash...
Writer of Fantasy and Fantasy Romance

Gatecrasher

  • Underling
  • *
  • Posts: 17
Re: Senticon Costume Converter
« Reply #43 on: August 20, 2014, 03:06:37 AM »
Hi,

When I try and run this from the directory in which I saved my Sentinel files, I get:

'java' is not recognized as an internal or external command,
operable program or batch file.

I know I've got the JRE on my machine, I've checked twice.  Any bright ideas what I'm doing wrong?

As ever, thanks in advance.

Gate

EDIT: when I run the suggested command from the folder that contains Java, and feed it the path of the senticon file, I get  further, but still seems to be in error:

Loading costume database... Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOfRange(Unknown Source)
        at java.lang.String.<init>(Unknown Source)
        at java.lang.String.toLowerCase(Unknown Source)
        at java.lang.String.toLowerCase(Unknown Source)
        at Struct.setValue(Struct.java:157)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:24)
        at Decoder.decode(Decoder.java:17)
        at Schema.decode(Schema.java:167)
        at Senticon.<init>(Senticon.java:189)
        at Senticon.main(Senticon.java:5)

C:\Program Files (x86)\Java\jre7\bin>
« Last Edit: August 20, 2014, 03:21:26 AM by Gatecrasher »

Pengy

  • Badge Badger
  • Elite Boss
  • *****
  • Posts: 1,132
Re: Senticon Costume Converter
« Reply #44 on: August 20, 2014, 01:09:38 PM »
when I run the suggested command from the folder that contains Java, and feed it the path of the senticon file, I get  further, but still seems to be in error:

Loading costume database... Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOfRange(Unknown Source)
        at java.lang.String.<init>(Unknown Source)
        at java.lang.String.toLowerCase(Unknown Source)
        at java.lang.String.toLowerCase(Unknown Source)
        at Struct.setValue(Struct.java:157)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:32)
        at Struct.decode_one(Struct.java:37)
        at Decoder.decode(Decoder.java:24)
        at Decoder.decode(Decoder.java:17)
        at Schema.decode(Schema.java:167)
        at Senticon.<init>(Senticon.java:189)
        at Senticon.main(Senticon.java:5)

C:\Program Files (x86)\Java\jre7\bin>

Try this:

Hi there. I've been lurking quietly for a LOOONG time, but I've been waiting for this for even longer so, first of all, thanks a lot! I can finally play with my costumes again!  :)

What REALLY finally made me post, however, is that I ran into an error while running Senticon that just might get in the way of other people. I did find the solution, so here it is:

When I ran it for the first time, Senticon stopped and threw an "OutOfMemoryError: Java Heap Space" exception while "Loading costume database". Apparently the Virtual Machine sometimes only uses a rather small amount of memory, no matter how much you have available.  :P

That's easy to fix, though, I simply used the -Xmx option to tell it to use more memory. More specifically, what worked for me was: java -Xmx512m -jar senticon.jar all (512MB was apparently more than enough).

Hope it helps if someone runs into the same error (and my apologies if someone had already posted something similar somewhere else).

hurple

  • Elite Boss
  • *****
  • Posts: 595
Re: Senticon Costume Converter
« Reply #45 on: August 20, 2014, 01:32:21 PM »
URGH.... Lost all my CoH... everything... screenshots, costumes, etc... because of a drive crash after a house fire.  So, all this is moot for me, and makes me sad.

The funny thing is, we rescued the PC from the house, and a friend who does drive forensics for a living rescued all the data off the drive.  I went out and bought a brand new Seagate external to house the files until I could get a new PC... and the BRAND NEW Seagate crashed before I could get the files moved.  And it crashed HARD.  No recovery possible.  Unbelievable.




Gatecrasher

  • Underling
  • *
  • Posts: 17
Re: Senticon Costume Converter
« Reply #46 on: August 20, 2014, 02:14:05 PM »
Pengy, I'll certainly try that tonight when I get a chance, tyvm.  I'll keep you posted.   :D

Gatecrasher

  • Underling
  • *
  • Posts: 17
Re: Senticon Costume Converter
« Reply #47 on: August 21, 2014, 02:25:08 AM »
Okay, so I finally got it to work.  Things I had to do:

  • I had to run from the directory where the java is located, not where the jar file is located.
  • It cared about case-sensitivity on that switch, so it wanted -Xmx512m, not -xmx512m.
  • I then had to give it the fully qualified path out to the senticon.jar file.
  • It then put all the .costume files in the folder where Java is located, so they had to be moved to the COH folder.

That said, once I doped out those things, Mission Accomplished! :D

Later on,
Gatecrasher

srmalloy

  • Elite Boss
  • *****
  • Posts: 450
Re: Senticon Costume Converter
« Reply #48 on: September 12, 2014, 03:50:10 AM »
Okay, so I finally got it to work.  Things I had to do:

  • I had to run from the directory where the java is located, not where the jar file is located.
  • It cared about case-sensitivity on that switch, so it wanted -Xmx512m, not -xmx512m.
  • I then had to give it the fully qualified path out to the senticon.jar file.
  • It then put all the .costume files in the folder where Java is located, so they had to be moved to the COH folder.

That said, once I doped out those things, Mission Accomplished! :D

I was able to get it to run from the folder where I stuck senticon.jar; putting everything in the folder where Java was installed failed because it's protected by Windows 7, so the folder couldn't be written to. What I did was add the path to Java to my environment's PATH variable:
  • Open the start menu.
  • Click on 'Computer'. This opens the 'System' window.
  • Click on 'Advanced System Settings'. This opens the 'System Properties' window.
  • Click on the 'Environment Variables' button near the bottom. This opens the 'Environment Variables' window.
  • Highlight 'path' in the upper textarea, then click on 'Edit'. This opens the 'Edit User Variable' window with the variable name in the top box and its value in the bottom box. Select all of the text in the bottom box and copy it.
  • Open Notepad or another text editor and paste the path variable value in.
  • At the end of the value, add a semicolon, then the path to the Java executable (typically something like "C:\Program Files (x86)\Java\jre7\bin"; because it has spaces, it will need to be in double quotes).
  • Copy the whole line, then paste it back into the lower box of the 'Edit User Variable' window.
  • Click 'OK' on each window to save changes and close until you get back to the 'System' window, then close it as well.
  • Open a new cmd window and navigate to the folder with senticon.jar and the Sentinel+ files.
  • Run the jarfile on your Sentinel+ files, using the -Xmx512m switch if necessary.

I got several failures processing my full set of files, including, oddly, every single costume for my Staff/Willpower Scrapper, who was a recent creation. All the costumes failed for my Energy/Energy Blaster, as well, but that character had hung around unplayed for some time, and was chock full of ancient costume pieces. The Scrapper, though, was created close to the shutdown announcement, so there shouldn't have been any retired costume pieces in her outfits.

Going back in with Icon, I was able to recreate the one costume for my AR/EM Blaster that had failed -- most of which was the Mecha Armor set, and everything was listed correctly in the costume-selection menus; makes me wonder if there's a mapping issue between the labels in the Sentinel+ files and the costume pieces. Checking the set of character images I archived, and examining the .xml files themselves, all three characters with costume pieces from the Mecha Armor set failed conversion on the costumes that contained parts from that set.
« Last Edit: September 12, 2014, 04:44:42 AM by srmalloy »