I've retired my use of BIxxxx (so it can be deleted from the database and registered by another user in the future).
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
Quote from: Ardanis on October 21, 2009, 09:39:13 PMTo find the culprit quickly, if there is any, try searching for bgmain.exe in the main game folder or use --change-log bgmain.exe.WeiDU 211 can't changelog bgmain.exe (it can only changelog stuff in the override). I can send trufa a fixed version if he wishes it. Are you using Vista or Win7 by chance?
Quote from: Baronius on October 23, 2008, 07:06:10 PMFirst, just a quick note: SOURCE_SIZE in WeiDU returns the size of the complete "patched" resource, doesn't it?SOURCE_SIZE returns the initial size of the file (and is not correct if you use INNER_ACTION or similar). BUFFER_SIZE returns the current size.
QuoteThe fact that the base of FR_ROV (DEITM049.ITM ) and NEJ (mentioned by you) is relatively old, it's possible that some older files in these mods were made with an early item editor which might have generated faulty indices to feature blocks in extended headers. Of course, I would like to emphasize that this is also just an assumption.I recall that CTB had (or still has) such a broken file as well, so that one falls under "old tools" as well (don't these mods predate even IEEP?). I guess somebody at SHS knows which files are broken in both CTB and NEJ.
Quote from: Baronius on October 10, 2008, 04:49:41 PMIt ignores the problem if an invalid value is returned (exactly what you do with "ELSE 0"I'd guess that the game (being coded in C++) simply blits the file in memory and then uses pointer arithmetic to read the various effect blocks, thus reading past the end of the actual file if fed wrong positions (causing random behavior, generally without crashing visibly). WeiDU had a similar unchecked memory access in SET_2DA_ENTRY, which used to randomly work fine and crash before I enabled safe arrays.). (I would've guessed that the game crashes when a referenced feature block doesn't exist, but if this inconsistent deitm049.itm works for people, then my guess was wrong and the game just ignores such problems). I didn't test how exactly the game handles item files that are invalid in this way, but it's a general fact that the file structure specifications are stricter than the implementation that deals with these files. This allows the game to be more fault-tolerant when it's possible (for example, a missing dialogue file doesn't cause any crash, but an area without a tileset cannot be tolerated
).
Quote from: Baronius on October 07, 2008, 05:34:54 PMI meant that you make a pinned topic about the patch, and link to that topic in every new thread about the problem. Honestly, I don't think it's such a horrible burden for a mod author to reply with a link e.g. once per day (and it's probably an exaggeration that such reports are posted in every day by players). It especially shouldn't be considered a burden, because it's about fixing a bug, a problem.In my case, ar0100.bif isn't a bug, and the only critical bug I'm aware of was never reported
Quote<...>I'm not really interested in bickering back and forth about how The IA Way is good vs. how The IA Way is bad, so I'll leave you to your sense of victory.
Quote from: Baronius on October 07, 2008, 04:05:24 PMToD vs. UB is a wrong example. UB applies a typical antipattern which introduces very serious incompatibility risks. The only case when such errors should be fixed in other mods (rather than in the mod which introduces them) is when the mod which introduces them isn't supported any more.I wouldn't call neither UB nor FR_ROV maintained, since their author and maintainer are (almost) retired. True, JC and/or SC could fix them by authority (I'd have done so if I were an admin). The reason why this doesn't happen beats me, but I suppose it's related to a misguided sense of copyright. Incidentally, in the case of FR_ROV, the mod's forum contains the fix as an attachment in a post (not even a pinned one), but it hasn't been applied since forever.
If FR_ROV isn't supported any more, then you're right that fixing the problem in other mods is okay. In fact, even if it was supported but a quick reaction is required, it's OK to fix bugs like this (as they don't introduce any further risks, the file is corrupt and that's all).
QuoteOn a side note, there is no problem with a lot of threads, because that is why patches can be released. Once it's done, it can just be linked in every thread (and obviously there won't be hundreds of threads, just a few tens at most). The patch can be added as a pinned topic.I find your argument misguided. Between threads, bumps, and unrelated bumps, there are at least 300 people who have failed to read the pinned topic before asking about ar0100.bif.
QuoteThis is exactly the fundamental difference between your and e.g. BWL's Improved Anvil's philosophy.I believe that FR_ROV was made in 2002 with some older teambg tool (not IEEP). I doubt that this type of file corruption is something you must watch out for in newer mods. Also, "Be liberal in what you accept, and conservative in what you send." (Jon Postel, RFC 760).
Even if the file works correctly in-game, there are still two major problems:
(1) If the problem hasn't been revealed yet, such "ELSE 0" instructions just keep in hidden further. This prevents/hinders the detection of corrupt, buggy files in (possibly widely used) mods.
Quote(2) The mod which would have failed without "ELSE 0" tried to do something with the corrupt file, which means it wanted to add/extend/modify content. In other words, modifying that file is supposed to be a feature of the mod, something which belongs to its content.I don't understand this from a grammar POV. Do you mean that it's morally wrong for Spellpack to alter FR_ROV, or that Spellpack will have broken features?
for all effects
read the opcode
read another parameter
if (opcode = X) and (parameter = Y) then
doSomething()