Jump to content


Photo

Weapon checker


  • Please log in to reply
4 replies to this topic

#1 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 12 November 2011 - 02:01 PM

This probably belongs to the 'Tools' forum as well as here, but whatever...

The "Weapon Changes" component in Item Revisions v3 relies on macro that automatically updates items' descriptions in accordance with changes applied to ITMs themselves.

It's essentially impossible to create a perfect code that can deduce bugs and fix them, so later I've added the debugging feature to the original code, that reports files with descriptions not matching the header, i.e. 2d4+3 for a sword that in truth deals 1d8+3.

Another lesser problem is that there're special items here and there that intentionally do not follow base rules, so they have to be accounted for manually.



So, after some thought I figured it will be much more productive for the community if modders check their mods and fix them locally, than me dealing with reports locally in IR's forum. Megamod board looks the best place of all - particularily since mods are often abandoned by authors and maintained/fixpacked by BWP folks. Basically, I'm just posting debugging code distilled from IR's latest update (waiting for G3 to back) that BWP maintainers may find useful for hunting down weapon-related bugs.

The 1st component reports files that have been found mismatching their descriptions.
The 2nd - checks whether ITMs' parameters match the ITM's weapon type plus enchantment.

The output can be found in weapons/debug folder. It's not absolute, but I estimate that it can reveal >95% of issues.

Attached Files


Edited by GeN1e, 12 November 2011 - 02:03 PM.

Retired from modding.


#2 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 12 November 2011 - 03:25 PM

before downloading....
is it game engine specific? item file version specific?
basically wanting to know if it will work on BG/BG:TOTSC prior to downloading

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm


#3 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 12 November 2011 - 03:30 PM

Weapon type detection is based on BG2 proficiencies, so I think it won't work on BG1.

Retired from modding.


#4 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 12 November 2011 - 06:04 PM

Weapon type detection is based on BG2 proficiencies, so I think it won't work on BG1.

bummer component 1 looked useful to double check that there weren't any missed mis-matches in the bg fixpack after the gtu is installed...

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm


#5 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 12 November 2011 - 06:40 PM

Well, sorry about that :rolleyes: But then IR wasn't supposed to be compatible with BG1 engine anyway. And BG1 items are way less in numbers than BG2's.

At least it found some stuff for inclusion into BG2Fixpack.

Retired from modding.