Jump to content

Bug in Near Infinity's search feature


Guest Parol

Recommended Posts

Guest Parol
Posted

Hi!

Not sure where to post about this. I think I found a bug in Near Infinity search feature. Using the current latest version and BG1EE 2.6.6.0 without SoD installed, if you click on REPMAN.CRE and then on "Find..." --> "references to this file" at the bottom of the right side of the window, the results that pop up are BANDIT.CRE, not REPMAN.CRE (whose name is, like BANDIT.CRE, "Bandit")

It's the first time I noticed a search bug in NI.

Guest Parol
Posted

It's the script name that they share, both "Bandit". But there are other creatures with that script name, like BANDITC.CRE, BOUNTY2.CRE and CREDUS.CRE.

AR6100.BCS contains e.g. CreateCreature("BANDIT",[323.334],S), and it's only be BANDIT.CRE that gets created in game, not any other creature with the "Bandit" script name.

So it seems that Near Infinity believes CreateCreature uses the script name when the game apparently relies on the CRE file name.

Posted

Looks like Near Infinity's "references to this file" system works via simple text search. It doesn't take into account context, just if the text it is searching for is present. For cre files it also searches for the script name, (if it isn't "" or "None"), so that's where the false hits are coming from. I guess it's a feature request for @argent77 to make the search a bit more selective.

Posted

Yes, that's a known limitation of the reference search. I can try to improve it, but false positives cannot always be avoided since it's not possible to evaluate the context in all situations (e.g. references in creature scripts, or matches in 2DA files).

Guest Parol
Posted

Ok, thanks for checking! I think performance concerns might trump the presence of a few false positives when they're easily identifiable from the results window, like in this case, and not too numerous. (Otherwise, the time lost letting the software cut down on false positives might be regained from less clicking on results only to notice they're incorrect)

False negatives are more problematic anyway. Are there known ones?

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...