You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Shields - Small, Large and Tower.

Changing to PLT Shields

The default shields are not awful but could be improved - there are 3 main item methods:

  1. "Simple" - one model, one texture. Shields currently use this. It doesn't leave you with many actual colours though since it's time consuming to redo the colours again and again for hundreds of entries.
  2. "Simple with PLT" - Change to Helm-like PLT texturing. This allows layered colours (6 choices, leather 1/2, metal 1/2, cloth 1/2) on the same model. Also allows DDS overrides which allows for heraldry (but acts like simple - so need to duplicate models).
  3. Complex parts based - This is kind of better - you could have shield "parts" top, middle, bottom. However: it doesn't allow PLT, and therefore again limits colours dramatically. Usually used for weapons where it makes more sense - weapons are usually just metal, not wood or anything. There is also issues if you do want a single model, you start using lots of slots for just those variants.

Converting to option 2 is reasonably painless.

Method:

  • Check every existing model and check which ones are "duplicates" - eg; ashto_011, ashto_012 and ashto_013 are the same model but reference different parts of the tower texture file.
  • Using the silver / closest to grey DDS file we convert to PLT and divide up into layers:
    • Metal 1 - primary metal area
    • Metal 2 - any secondary metal areas
    • Cloth 1 - primary wood area (eg wooden shields wood)
    • Cloth 2 - secondary wood area
    • Leather 1 - primary leather area (eg straps)
    • Leather 2 - secondary leather area
  • Rename model files - eg; to "tower" so "tower_001.mdl" - this means renaming the PLT files to match
    • For shields with specific heraldry - we just copy over the DDS file to the new naming convention so if it is tower_010.mdl which is the daggerford heraldry we use that file naming convention for the main DDS
  • Add icon PLTs and, for some reason, the toolset needs TGA files as well. Can use a 1x1 tga for this to save space. Example name: itower_001.tga / plt

Now the existing models do have existing model names. Options for this:

  • Keep the same model names, eg ashto - tower shields;
    • This is a bit dodgy - sure custom content that adds new shields technically will sorta load, but it will probably not work correctly since the "bitmap" field is ignored
    • It also assumes a clean namespace which isn't always the case due to Bioware testing models 001 with some stuff sometimes
  • New model names - this is a "clean break" but breaks all compatibility, eg: "shtow_" or similar
    • Can copy ID's to retain the same blueprint compatibility - eg; 011 still is the silver shield variant, with DDS/TGA textures
    • This helps due to the dodgy thing with bitmap field essentially becoming ignored

However there are some bugs (to be reported to Beamdog):

  • The toolset only checks for "iNAME_001.tga" - yes only TGA - to display it in the dropdown even if it then loads a PLT file. No idea why since helmets only have .PLT files. Likely as bug (ie helmets are treated as "special")
    • Since it expects a PLT icon however, if only TGA or DDS exist then...it just shows nothing! Weird, but acceptable...
  • The game displays icons properly only in these cases:
    • PLT: No TGA or DDS file exists
    • DDS or TGA: These show in normal priority order

Solution to the above: Final client hakpacks have the PLT only or DDS only. For toolset use a developer has to use a Toolset Only hakpack/development folder set of TGA files to "impersonate" the appearances. These can be either simply 1x1 black TGA files, since they should never show in game, or better maybe even just have a pink X or other noticable iconography since the icon won't be really displayed in the toolset; example of one with DDS and TGA only:

We could technically include some kind of PLT icon, maybe impersonating the model, so it makes it easier to view, but again only for development purposes.

Examples of Final Files (DDS and PLT)

Type is PLT if new PLT format and DDS if we're redoing an old item with full textures.

Model IDTypeScreenshotTexture Name (Model)Material Name and FilesIcon Texture Name (Game)Icon Texture Name (Toolset)Source(s)Notes
shs_001.mdlPLT
shs_002.plt

m_smallshield.mtr

op_smallshield_n.dds

op_smallshield_s.dds

op_smallshield_r.dds

ishs_002.pltishs_001.tgaNew model
shs_002.mdlDDS
shs_002.dds

m_smallshield.mtr

op_smallshield_n.dds

op_smallshield_s.dds

op_smallshield_r.dds

ishs_002.dds

ishs_002.tga

ishs_002.plt

New model (heraldry)

baseitems.2da information

Lines changed:

  • The MinRange is set to 0 and MaxRange set to 255.
  • Different ItemClass for each one, all 10 characters (so _001 is 14 and m_ xxx _001 is 16 total)
    • Small: op_shsmall
    • Large: op_shlarge
    • Tower: op_shtower

Shield Resources List

Small

ItemClass: op_shsmall

Original ItemClass: ashsw

Model NameTypeScreenshotTexture Name (Model)Material Name and FilesIcon Texture Name (Game)Icon Toolset Only PLTIcon Toolset Only TGASource(s)Notes
op_shsmall_001.mdlPLT
op_shsmall_001.pltm_op_shsmall_001.mtriop_shsmall_001.plt
iop_shsmall_001.tga

op_shsmall_002.mdl

PLT
op_shsmall_002.pltm_op_shsmall_002.mtriop_shsmall_002.plt
iop_shsmall_002.tga

op_shsmall_003.mdlPLT
op_shsmall_003.pltm_op_shsmall_003.mtriop_shsmall_003.plt
iop_shsmall_003.tga

op_shsmall_004.mdlPLT
op_shsmall_004.pltm_op_shsmall_004.mtriop_shsmall_004.plt
iop_shsmall_004.tga

op_shsmall_011.mdlDDS
op_shsmall_011.ddsm_op_shsmall_001.mtriop_shsmall_011.ddsiop_shsmall_011.pltiop_shsmall_011.tga

op_shsmall_012.mdlDDS
op_shsmall_012.ddsm_op_shsmall_001.mtriop_shsmall_012.ddsiop_shsmall_012.pltiop_shsmall_012.tga

op_shsmall_013.mdlDDS
op_shsmall_013.ddsm_op_shsmall_001.mtriop_shsmall_013.ddsiop_shsmall_013.pltiop_shsmall_013.tga

op_shsmall_021.mdlDDS
op_shsmall_021.ddsm_op_shsmall_002.mtriop_shsmall_021.ddsiop_shsmall_021.pltiop_shsmall_021.tga

op_shsmall_022.mdlDDS
op_shsmall_022.ddsm_op_shsmall_002.mtriop_shsmall_022.ddsiop_shsmall_022.pltiop_shsmall_022.tga

op_shsmall_023.mdlDDS
op_shsmall_023.ddsm_op_shsmall_002.mtriop_shsmall_023.ddsiop_shsmall_023.pltiop_shsmall_023.tga

op_shsmall_031.mdlDDS
op_shsmall_031.ddsm_op_shsmall_003.mtriop_shsmall_031.ddsiop_shsmall_031.pltiop_shsmall_031.tga

op_shsmall_032.mdlDDS
op_shsmall_032.ddsm_op_shsmall_003.mtriop_shsmall_032.ddsiop_shsmall_032.pltiop_shsmall_032.tga

op_shsmall_033.mdlDDS
op_shsmall_033.ddsm_op_shsmall_003.mtriop_shsmall_033.ddsiop_shsmall_033.pltiop_shsmall_033.tga

op_shsmall_041.mdlDDS
op_shsmall_041.ddsm_op_shsmall_004.mtriop_shsmall_041.ddsiop_shsmall_041.pltiop_shsmall_041.tga

op_shsmall_042.mdlDDS
op_shsmall_042.ddsm_op_shsmall_004.mtriop_shsmall_042.ddsiop_shsmall_042.pltiop_shsmall_042.tga

op_shsmall_043.mdlDDS
op_shsmall_043.ddsm_op_shsmall_004.mtriop_shsmall_043.ddsiop_shsmall_043.pltiop_shsmall_043.tga

Large

ItemClass: op_shlarge

Original: ashlw

Model NameTypeScreenshotTexture Name (Model)Material Name and FilesIcon Texture Name (Game)Icon Toolset Only PLTIcon Toolset Only TGASource(s)Notes
op_shlarge_011.mdl








op_shlarge_012.mdl








op_shlarge_013.mdl








op_shlarge_021.mdl








op_shlarge_022.mdl








op_shlarge_023.mdl








op_shlarge_031.mdl








op_shlarge_032.mdl








op_shlarge_033.mdl








op_shlarge_041.mdl








op_shlarge_042.mdl








op_shlarge_043.mdl








op_shlarge_051.mdl








op_shlarge_052.mdl








op_shlarge_053.mdl








op_shlarge_054.mdl








op_shlarge_055.mdl








op_shlarge_056.mdl








op_shlarge_061.mdl








op_shlarge_062.mdl








op_shlarge_063.mdl








op_shlarge_064.mdl








op_shlarge_065.mdl








op_shlarge_066.mdl








op_shlarge_067.mdl








op_shlarge_068.mdl








op_shlarge_069.mdl








op_shlarge_070.mdl








op_shlarge_071.mdl








op_shlarge_072.mdl








op_shlarge_073.mdl








op_shlarge_074.mdl








op_shlarge_075.mdl








op_shlarge_084.mdl








Tower

ItemClass: op_shtower

Original: ashto

Model NameTypeScreenshotTexture Name (Model)Material Name and FilesIcon Texture Name (Game)Icon Toolset Only PLTIcon Toolset Only TGASource(s)Notes
op_shtower_011.mdl








op_shtower_012.mdl








op_shtower_013.mdl







op_shtower_021.mdl







op_shtower_022.mdl







op_shtower_023.mdl







op_shtower_031.mdl







op_shtower_032.mdl







op_shtower_033.mdl







op_shtower_041.mdl







op_shtower_042.mdl







op_shtower_043.mdl







op_shtower_051.mdl







op_shtower_052.mdl







op_shtower_053.mdl







op_shtower_054.mdl







op_shtower_061.mdl







op_shtower_062.mdl







op_shtower_063.mdl







  • No labels