Author Topic: [REQ] warn if add/replace item doesn't exist in game  (Read 1749 times)

Offline agb1

  • Planewalker
  • *****
  • Posts: 30
[REQ] warn if add/replace item doesn't exist in game
« on: February 08, 2016, 01:07:03 PM »
Example - today I found that Big Picture component 1750 uses REPLACE on some creatures' inventory slots to equip weapons on them that are only added to the game if you also install a different component (35).  If that other component is not installed, those REPLACE actions currently complete without error, but the items do not exist in the game.  Throwing an error or at least a warning in this case would help to discover these types of overlooked dependencies at install time.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: [REQ] warn if add/replace item doesn't exist in game
« Reply #1 on: February 09, 2016, 12:45:56 PM »
I can add a MODDER check for this, but doing it the way you suggest would break unbugged mods (e.g., ones that ADD/REPLACE before COPY), so, no.

Offline agb1

  • Planewalker
  • *****
  • Posts: 30
Re: [REQ] warn if add/replace item doesn't exist in game
« Reply #2 on: February 09, 2016, 01:05:47 PM »
A warning wouldn't break existing mods, would it?  If they COPY after add/replace, it would INSTALL WITH WARNINGS... but it would still install.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: [REQ] warn if add/replace item doesn't exist in game
« Reply #3 on: February 09, 2016, 01:13:13 PM »
It would INSTALL WITH WARNINGS over things that are perfectly fine, also known as false warnings. Edit: if you want false warnings, that's what MODDER is for.
« Last Edit: February 09, 2016, 01:13:51 PM by Wisp »

Offline agb1

  • Planewalker
  • *****
  • Posts: 30
Re: [REQ] warn if add/replace item doesn't exist in game
« Reply #4 on: February 09, 2016, 02:03:04 PM »
To avoid false warnings, could WeiDU remember each item added/replaced and then check FILE_EXISTS_IN_GAME for each at the end of the WeiDU session (just prior to AT_EXIT)?

In the example from my original post, this would result in INSTALLED WITH WARNINGS for 1750 if you installed 1750 in a separate WeiDU session from 35, but it would result in SUCCESSFULLY INSTALLED for 1750 if you installed both components in the same WeiDU session.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: