Jump to content

Adapting an armor to IR conventions


Recommended Posts

I have a personal mod I use that is installed before the wide-range change components of IR (IRR actually). What I do currently is to add at the end of lib/armor_list.tpa the following block:

 

ACTION_IF MOD_IS_INSTALLED ~items_pack/items_pack.tp2~ 0 BEGIN
    OUTER_SET $armor("iu#leat1") = 194  // Armor of the Shadowmaster
END

 

Is there a way to do this kind of thing from my own mod so that IR will pick it up later (it is not currently picking it up without the above insertion, so that e.g. resistances are not being set) and allow the general components to do their thing? Messing with other mod's source is always very brittle.

Edited by grodrigues
typos; one more sentence
Link to comment

I have added a couple of armors and shields from SoD to BG2EE Item Upgrade mod to armor_list.tpa and shield_list.tpa for my own use, so I figure I will share. @Daeros_Trollkiller if you could take a look if I get it right, that would be awesome.

1. Armors:

Quote

dtklea02 => 1 // The Night's Embrace +6
dtklea1a => 21 // Chromatic Shadow Dragonscale (red)
dtklea1b => 21 // Chromatic Shadow Dragonscale (blue)
dtklea1c => 21 // Chromatic Shadow Dragonscale (white)
dtklea1d => 21 // Chromatic Shadow Dragonscale (silver)
dtklea1e => 21 // Umbral Viridian Dragonscale
dtkleat1 => 21 // Verdant Shadow Dragonscale
dtkleat2 => 21 // Green Dragonscale +4
dtkplat1 => 22 // Verdant Crimson Dragon Plate (red
dtkplt1a => 22 // Verdant Crimson Dragon Plate (shadow)
dtkplt1b => 22 // Verdant Crimson Dragon Plate (blue)
dtkplt1c => 22 // Verdant Crimson Dragon Plate (white)
dtkplt1d => 22 // Verdant Crimson Dragon Plate (silver)
dtkplt1e => 22 // Carmine Viridian Dragon Plate

2. Shields

Quote

dtkshld1 => 1 // Mirrored Buckler of the Fist +2
dtkskls3 => 2 // Small Shield +3
dtkshld3 => 3 // Dragonscale Aegis +4
dtkshd2a => 4 // Bulwark of Egons +4
dtkshld2 => 4 // Bulwark of Egons +3

I have checked it via Near Infinity and it seems patching routine of IR (well, I've checked on IRR but it's no different) works perfectly.

Link to comment

Since I decided to ultimately go with IRR's armour overhaul, I had to add my game's items, which weren't present yet, to armor_list.tpa and shield_list.tpa.

Here's a list of uncommented armours without type allocation - robes should already be purged:

(I did allocate types locally but they will probably not be fit for general use. Can post them as well, if desired. I also edited the original file to better suit my ideas.)

Spoiler

~#lsrvarm~ =>
~a7#leat1~ =>
~acq18002~ =>
~b2#achan~ =>
~b2#plt01~ =>
~bgsx07~   =>
~bgsx22~   =>
~bgsx39~   =>
~bgsx52~   =>
~bgsx53~   =>
~bgsx54~   =>
~bgsx55~   =>
~bgsx57~   =>
~bgsx61~   =>
~bgsx74~   =>
~c02aulem~ =>
~c02plat~  =>
~c0aule01~ =>
~c0aule02~ =>
~c0aulema~ =>
~c0autt05~ =>
~c0bwar1~  =>
~c0bwar2~  =>
~c0mleat~  =>
~c0sleat~  =>
~c0wlpl01~ =>
~cdgplate~ =>
~cispgrd3~ =>
~cmtlea01~ =>
~d0platwi~ =>
~dsthleat~ =>
~dtkbdrgc~ =>
~dtkbdrgl~ =>
~dtkbdrgp~ =>
~dtkgdrgp~ =>
~dtkhmail~ =>
~dtkhplt~  =>
~dtklea1f~ =>
~dtklea1g~ =>
~dtklea2a~ =>
~dtklea3~  =>
~dtklea3a~ =>
~dtklea3b~ =>
~dtklea3c~ =>
~dtklea3d~ =>
~dtklea3e~ =>
~dtklea3f~ =>
~dtklea3g~ =>
~dtklea4~  =>
~dtklea4a~ =>
~dtklea5~  =>
~dtklea5a~ =>
~dtklea6~  =>
~dtklea6a~ =>
~dtklea8~  =>
~dtklea9~  =>
~dtkleat3~ =>
~dtknecr2~ =>
~dtknecro~ =>
~dtkplt1f~ =>
~dtkplt1g~ =>
~dtkplt2~  =>
~dtkplt3~  =>
~dtkplt3a~ =>
~dtkplt3b~ =>
~dtkplt3c~ =>
~dtkplt3d~ =>
~dtkplt3e~ =>
~dtkplt3f~ =>
~dtkplt3g~ =>
~dtkplt4~  =>
~dvdevaea~ =>
~dvdevaga~ =>
~isnfxy7~  =>
~iswarm~   =>
~k9chanmo~ =>
~k9leat08~ =>
~l#2sde1~  =>
~l#2sds08~ =>
~l#2sdsja~ =>
~l#curss2~ =>
~l#farm~   =>
~l#fcha~   =>
~l#harha~  =>
~l#nini1~  =>
~l#nsarm~  =>
~l#shoua~  =>
~l#suma~   =>
~l#ulcar~  =>
~l#ulcla~  =>
~l0skin2~  =>
~l0unarm~  =>
~mh#chan1~ =>
~mh#chan2~ =>
~mh#chan3~ =>
~mh#drag1~ =>
~mh#drag2~ =>
~mh#hide1~ =>
~mh#hide2~ =>
~mh#iwd08~ =>
~mh#plat1~ =>
~mh#plat3~ =>
~mh#plat4~ =>
~mocm01~   =>
~mocm02~   =>
~mofp01~   =>
~mofp02~   =>
~mofp03~   =>
~molea01~  =>
~molea02~  =>
~molea03~  =>
~mopm01~   =>
~mopm02~   =>
~nparm~    =>
~ntplat02~ =>
~ntplat03~ =>
~ntplat04~ =>
~o#llch1~  =>
~olchan01~ =>
~olzgflea~ =>
~purecour~ =>
~rh#mail~  =>
~usltr3a~  =>
~usltr4a~  =>
~usltr5a~  =>
~vexed3~   =>
~x3rleat~  =>
~x3wchain~ =>
~xarmow4~  =>
~xarmow5~  =>
~xchan03~  =>
~xleat03~  =>

Shields with types:

Spoiler

  ~c0bwsh1~  => 1
  ~cispgrd2~ => 1
  ~k9shldwa~ => 1
  ~l#faibu~  => 1
  ~l#ormbuc~ => 1
  ~l#ormbus~ => 1
  ~l0buc2~   => 1
  ~mobsh01~  => 1
  ~olshld02~ => 1   

  ~_ishld02~ => 2
  ~!samauna~ => 2
  ~a7_shld4~ => 2
  ~a7_shld5~ => 2
  ~a7_shld6~ => 2
  ~a7_shld7~ => 2
  ~a7_shldc~ => 2
  ~a7_shldd~ => 2
  ~a7_shlde~ => 2
  ~a7_shldf~ => 2
  ~bgsx24~   => 2
  ~bw05ish1~ => 2
  ~dtkshld4~ => 2
  ~l#kobi1~  => 2
  ~l#nila6~  => 2
  ~l0buck~   => 2
  ~mh#iwd15~ => 2
  ~mobsh02~  => 2
  ~mossh02~  => 2


  ~bgsx65~   => 3
  ~c#ajshl3~ => 3
  ~dtkbdrgs~ => 3
  ~dtkbldsh~ => 3
  ~dtkrdrgs~ => 3
  ~dtksdrgs~ => 3
  ~dtkshld5~ => 3
  ~dtksishd~ => 3
  ~dtksola1~ => 3
  ~dtksolag~ => 3
  ~dtkwdshd~ => 3
  ~ghshield~ => 3
  ~l#fwmshi~ => 3
  ~mh#iwd13~ => 3
  ~mh#shld1~ => 3
  ~mh#shld2~ => 3
  ~mh#shld3~ => 3
  ~mh#shld4~ => 3
  ~mh#shld8~ => 3
  ~momsh01~  => 3
  ~momsh02~  => 3
  ~momsh03~  => 3
  ~momsh04~  => 3
  ~momsh05~  => 3
  ~mossh01~  => 3
  ~b2#shd01~ => 3


  ~l#zsod3~  => 4
  ~mh#iwd14~ => 4
  ~mh#shld9~ => 4
  ~ushld3a~  => 4
  ~ushld4a~  => 4

Formatting went a little awry when copy/pasting.

Installed mods can be found here.

 

Also, there's a duplicate entry in the original shield_list.tpa: ~newss02~ => 2.

 

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...