[RELz] Just Another Vision Mod

Post » Sat Feb 19, 2011 2:20 am

There always was something I thought lacking in those "vision mods", and it was item highlight. So, initially I decided to "upgrade" someone's mod, and, as always, it goes to "better write from scratch myself". So, a couple of days, CTDs, bughunting and testing later, here it comes - http://fallout3nexus.com/downloads/file.php?id=15276.

What is/can be highlighted:

  • Non-empty containers
  • Weapons
  • Ammo
  • Armor
  • Aids (food, chems, drinks)
  • Books (skill mostly)
  • Misc clutter


Some quirks that I stumbled upon when coding highlight part, mostly dealing with FormLists:
  • Finding dynamic reference in formlist, added from GetFirstRef/GetNextRef with ListAddReference, is only possible via result index returned from ListRemoveForm (and adding it again at same index, of course), as ListGetFormIndex always returns 0, even when item IS in list.
  • Deleting from end of FormList (with more that 1 member) is causing CTD on accessing this list afterwards in any way, i.e. adding to it, removing, etc.
  • Listing actors (and sometimes objects) via GetFirstRef/GetNextRef can avoid some objects for a long time, entering/leaving cell not helps, don't know what causing this.
  • There is always at least 1 item in most of Nuka-Cola fridges and first-aid boxes, even when emptied by the player, GetNumItems always returns at least 1 for them, don't know what is causing this either.


I welcome any ideas how to improve the mod, and/or fix bugs mentioned above or in nexus description.
User avatar
Chantel Hopkin
 
Posts: 3533
Joined: Sun Dec 03, 2006 9:41 am

Return to Fallout 3