ImageServer (Slash Command): Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
== Slash Command ==
== Slash Command ==
{{SlashCommandArticle|command=ImageServer|options=<string> <string>|note=Sets game to Image Server mode.}}
{{SlashCommandArticle|command=ImageServer|options=<string> <string>|note=Sets game to Image Server mode.}}


*  The {{slashcommand|ImageServer}} command takes two arguments or <strings>. The first string is the source directory path and second string is the target directory path.
* {{slashcommand|ImageServer}} is used to render images of costumes in .JPG and .TGA format. 
* This is a developer command, and not intended for players to use.
*  The {{slashcommand|ImageServer}} command takes two arguments or <strings>. The first string is the source directory path and second string is the target directory path. For example: <code>C:\COHsource C:\COHtarget</code>. The strings should not point to any directories that have data or files inside them.  
* The command takes a .csv spreadsheet file containing costume information and converts it into 2 image files (.jpg and .tga). The {{slashcommand|notga}} and {{slashcommand|nojpg}} commands can be used to prevent one type of image file from being created.
* {{slashcommand|ImageServer}} was most likely created to place character images on what might have been a player character showcase website for the original City of Heroes when it was live. Now it's mostly used by players.
* A big shoutout to @Michiyo for figuring out how to use this command!




To use the command you first need a comma delimited .csv file (a text file whose values are separated by commas) containing costume inforamtion. For example: <BR \>


'''Editor's Notes:''' When the slash command <code>/ImageServer C:\Games\Homecoming\assets C:\COHgraphics</code> is run in game, the following results occur in the [[Console (Command Line Parameter)|console]]:
10.csv (<-- filename)
:: <code>###Image Server Mode! Taking Costumes from C:\Games\Homecoming\assets and putting them in C:\COHgraphics</code>
<pre>
:: <code>###Image Server Mode! Now monitoring for .csv files in C:\Games\Homecoming\assets</code>
PARAMS: X=200,Y=400
The above source and target directories are semi-random paths I made up and are not correct becaues this command deals with the game server, not the game client that players install and play. I'm not certain if the source directory is a .pigg file on the game server that contains costume parts, or if it is an external directory containing costume parts that are to be inputted into the game server. Also it appears a .csv spreadsheet file may be involved in the source directory. Obviously, the /imageserver command probably has something to do with costume parts, but it might also be related to any image in the game. 
    PARAMS: CX=2,CY=3,CZ=26
0,"pants_tight","v_leather_01","none","None","2039583","10027010",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"lower body","pants"
1,"tight","skin_tights","!chest_v_pattern_tanker_02","None","2039583","14935011",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"upper body","tights/skin"
2,"v_fem_head.geo/geo_head_v_asym_standard","!face_skin_v_fem_head_15","!v_sf_face_makeup_2","None","0","14935011",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"head","standard"
3,"smooth","skin_bare","none","None","2039583","14935011",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"upper body","tights/skin"
4,"hi_heels","combat_01","none","None","2039583","14935011",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"lower body","pants"
5,"n_fem_clubwear_metallic_dress.geo/geo_studded_belt_05","!x_clubwear_studded_belt","none","None","2039583","7566195",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"upper body","tights/skin"
6,"v_fem_hair.geo/geo_hair_beau_monde_01","!sf_hair_beau_monde_01","!sf_hair_r_beau_monde_twotone_mask","None","2039583","10027010",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"head","standard"
</pre>
 
===STEPS:===
# Create the source and target directories.  For example, <code>C:\COHsource</code> and <code>C:\COHtarget</code>.
# Place the .csv file inside the source directory.
# Execute the {{slashcommand|imageServer}} command either in-game or as a command line parameter.<BR \>
::: For example, <code>/imageServer "C:\COHsource" "C:\COHtarget"</code>.
 
 
==Command Line Parameter==
The command can be run at log-in as a [[Command Line Parameters|Command Line Parameter]]. For example, <BR \>
: <code>-imageServer  "C:\COHsource" "C:\COHtarget"</code>.<BR \>
When used as a command line parameter the {{launchparam|imageServer}} command executes before the game client gets to the login screen.




==Example==
==Example==
  /imageserver C:\Games\Homecoming\assets C:\COHgraphics
  /imageServer "C:\COHsource" "C:\COHtarget"
 


==Also==
* {{slashcommand|imageServer}}
* {{slashcommand|nojpg}}
* {{slashcommand|notga}}
* [https://costumes.cityofheroes.dev| Icon Catalog] - a player developed costume website.
* [https://vault.cityofheroes.dev| City Vault] - a developer costume and character info site for the Victory Server.




[[Category:Slash Commands]]
[[Category:Slash Commands]]
[[Category:Command Line Parameters]]

Latest revision as of 07:02, 23 February 2024

Slash Command

/ImageServer <string> <string>

Sets game to Image Server mode.

  • /ImageServer is used to render images of costumes in .JPG and .TGA format.
  • The /ImageServer command takes two arguments or <strings>. The first string is the source directory path and second string is the target directory path. For example: C:\COHsource C:\COHtarget. The strings should not point to any directories that have data or files inside them.
  • The command takes a .csv spreadsheet file containing costume information and converts it into 2 image files (.jpg and .tga). The /notga and /nojpg commands can be used to prevent one type of image file from being created.
  • /ImageServer was most likely created to place character images on what might have been a player character showcase website for the original City of Heroes when it was live. Now it's mostly used by players.
  • A big shoutout to @Michiyo for figuring out how to use this command!


To use the command you first need a comma delimited .csv file (a text file whose values are separated by commas) containing costume inforamtion. For example:

10.csv (<-- filename)

PARAMS: X=200,Y=400
    PARAMS: CX=2,CY=3,CZ=26
0,"pants_tight","v_leather_01","none","None","2039583","10027010",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"lower body","pants"
1,"tight","skin_tights","!chest_v_pattern_tanker_02","None","2039583","14935011",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"upper body","tights/skin"
2,"v_fem_head.geo/geo_head_v_asym_standard","!face_skin_v_fem_head_15","!v_sf_face_makeup_2","None","0","14935011",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"head","standard"
3,"smooth","skin_bare","none","None","2039583","14935011",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"upper body","tights/skin"
4,"hi_heels","combat_01","none","None","2039583","14935011",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"lower body","pants"
5,"n_fem_clubwear_metallic_dress.geo/geo_studded_belt_05","!x_clubwear_studded_belt","none","None","2039583","7566195",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"upper body","tights/skin"
6,"v_fem_hair.geo/geo_hair_beau_monde_01","!sf_hair_beau_monde_01","!sf_hair_r_beau_monde_twotone_mask","None","2039583","10027010",1,13227775,-3.0000001061126E-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"none",0,0,"head","standard"

STEPS:

  1. Create the source and target directories. For example, C:\COHsource and C:\COHtarget.
  2. Place the .csv file inside the source directory.
  3. Execute the /imageServer command either in-game or as a command line parameter.
For example, /imageServer "C:\COHsource" "C:\COHtarget".


Command Line Parameter

The command can be run at log-in as a Command Line Parameter. For example,

-imageServer "C:\COHsource" "C:\COHtarget".

When used as a command line parameter the -imageServer command executes before the game client gets to the login screen.


Example

/imageServer "C:\COHsource" "C:\COHtarget"


Also