Menu

Show posts

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

Messages - devSin

#1
Near Infinity and WeiDU are not fooled by multiple symbols for the same value (nor is the game, but it rarely uses the IDS files anyway). Near Infinity will pick the first symbol it finds that corresponds to the listed value, and WeiDU will choose the last symbol. WeiDU (older versions at least) doesn't handle the first row in IDS files (the first row is always assumed to be a header and gets skipped), and an exception will fire if you try to overload STATE.IDS symbols (say APPEND 0x00000000 STATE_WHYISTHISHERE) and view CRE files in NI (the IDSFlag datatype can't handle multiple symbols for the same bit).

In BG/TotSC, the values for the DIALOG_DEFAULT and DIALOG_HOSTILE locations are off (I believe 61 is _HOSTILE and 62 is _DEFAULT). When a creature is hostile, clicking on the Talk icon and then clicking on the creature runs the DIALOG_HOSTILE string in the text console (the dialogue assigned to the creature is never checked when hostile). If a neutral creature is clicked on and spoken to, if none of the state triggers in the dialogue evaluate to true, then the DIALOG_DEFAULT string is displayed in the console. IIRC, there are two additional _DEFAULT slots following that seemed to be originally intended to pick between the strings based on some condition, but these are totally unused.

All the EXISTENCE (IDLE_) slots work; they just run the attached string (usually sound only, with no string data) at random intervals (the game isn't too good at only picking one, so lots of times, multiple sounds from the list will fire).

Everything between a run of certain soundset strings and the next run are part of the previous slot group (e.g., BATTLE_CRY goes all the way up to BATTLE_CRY5 and then switches to ATTACK). The BG2 IDS should have mostly appropriate mappings (although BG2 adds some additional slots, all the common ones remain identical between the original and the sequel).

Note that MORALE corresponds to morale failure, and UNHAPPY_BREAKING corresponds only to party members failing their happiness check (it only plays when the engine periodically checks happiness and finds a party member past their breaking point); BioWare confused the two a lot, so many NPCs won't play their morale failure sounds (since they're assigned to the breaking point slot).
#2
Quote from: pasco95 on August 08, 2008, 11:30:40 PMDo you have to assign a .2da to it?
No, it will work just fine without.

Quote from: pasco95 on August 08, 2008, 11:30:40 PMCan I add an effect to the creature to change the colour? I've tried it with effect (50) character colour 1 but it only lasts for a second then reverts back to the standard colour, i've set the time to 7600 which should be an hour right but it only flashes up.
That's probably one of the color pulses (the pulse speed determines how long it stays, but IIRC, it only goes up to 255). There's two RGB tint effects that can be used to apply a solid tint to the entire character animation; one uses a brighter method, and the other is darker. Keep in mind that this tint is an overlay (you'd mostly want to use a brighter color than you normally would to prevent it looking like a nondescript blob) and will effect the whole animation (weapons and anything else part of the final model); it's not perfect, but you should be able to easily make the thing almost entirely black.

There's also a solid color glow that can provide a more subtle variation (since the minotaur doesn't have palette locations, any of the low-value locations in the effect should alter the whole animation IIRC - I'd just use "Major color" or one of the armor locations). You should be able to use RGB 0,0,0 to get a slightly brighter minotaur (or you can try a very light pink or orange).

I'm not able to look for the specific opcodes at the moment; you can check the IESDP, and I believe some of the trolls (SoA's small ice trolls and ToB's fire trolls) and possibly the slayer shadows use the bright tint effect if you want to see the correct usage. You'll probably have to mess around with it a bit to get something tolerable (these effects work best on lighter animations like the trolls, which are originally a pretty faint green - the color changes aren't even visible on the shadows where BioWare tried to give a slight red tint), however.
#3
Modder's Workshop / how to "Face(X)" the PC
February 27, 2008, 10:48:01 PM
If you don't know where the PC is going to be, you could always do something stupid like have your NPC ReallyForceSpell(Player1,FAKE_SPELL_DOES_NOTHING) Wait(1) StartDialog("DLG",Player1). Spellcasting should have the character zip around to face the target (you have to create the fake spell, though). (There are probably other actions that cause the actor to face the target without causing stupid feedback, but I can't come up with any off hand and don't want to look at BG IDS files right now, sorry.)
#4
Or the Staff of Arundel from Joluv (+3 and gives her bonus spells or something). The problem I have with two-handed is that there aren't any really good spears or staves in SoA (until the Staff of the Woodlands at the very, very end), and they usually don't give any good bonuses. With sword and shield, she gets the benefits of the single-handed weapon and any bonuses from the shield (and there are some very worthwhile shields in SoA). By the time you get the +6 spear in ToB, it'll pretty much be the end of the game.

Without a good AC, the Iron Skins will wear off fairly quickly with her on the front lines, and it won't really protect her from enemy spells (whereas she could have a shield with magic or elemental resistance bonuses). But she can wear most any armor in the game, so the shield isn't strictly necessary for improving AC, and the extra damage from a two-handed weapon could help since she's not terribly great in combat.
#5
Full armor; I don't waste the strength bonus on her, instead giving it to Viconia.

By the end of Chapter 3, she usually has time with Belm (scimitar +2) and Blackblood (club +3), with red dragon plate and an appropriate shield (either red dragon or the shield you get from Amaunator).

Before that, I tend to keep her with "sword" and shield as often as possible (the AC benefit is better than poor THAC0 dual-wielding or slow attacks with a two-handed weapon IMO).
#6
Baldur's Gate and TotSC / AR1010: cruft or missing?
December 03, 2007, 01:09:44 AM
AR1010 is the bottom level of the ice island (TotSC). Inaccessible in the original game, it's restored by BG1UB and FotD.

The WED and bitmaps for the area weren't shipped, so there wouldn't ever be any reason to troll around in AR1010.ARE.
#8
Option 2 (or Option 1 if you really want to spend the time). At this point, there just isn't any good cause for breaking backwards compatibility. For better or worse, WeiDU is what it is, and without any foundational improvement, there just doesn't seem to be any benefit here.

The easiest solution is to wrap the new backup hierarchy inside an old-world backup hierarchy (you maintain a backup structure WeiDU v185 expects and also have the WeiDU v200 backup in the same "numbered" directory as the old-world backup). I don't know anything about how WeiDU is handling backups to know if this would work, and you'd have to take care to synchronize the two (you don't want the user uninstalling with v185 and then uninstalling again with v200), but this is a fairly typical stone to throw at the backwards compatibility albatross.
#9
It's part of the actual program code; the source file itself is not available. What you found is more likely the location of strings used for assertions than the location where container handling is done.

You can change some simple values in the compiled executable, but you won't be able to do anything worthwhile (and adding anything is out of the question).
#10
Container types are hardcoded; there's not much difference beyond the search sound and icon, but piles are handled differently.

You'll never get a pile that respects any region polygons (a pile is simply a point on the ground where contents of the container may be placed). The engine creates fake piles for lots of stuff (most of which you'll never see).

You should be able to change the highlight frame of your container icon to mimic the normal highlighting effect (instead of the cyan border that normal item icons have, you could just use a cyan overlay).
#11
But then you have to update the vertex index of every other structure in the ARE. No thanks. ;)

I think setting the bounding rect coords to 0 or -1 should work fine (you shouldn't even have to touch the vertices), but why bother when you can just change the type to pile (unless the container has items and you don't want to delete them, but then I'm not sure what you'd be trying to do)?
#12
I'd be worried about the game purging the pile (I can't remember the specifics of what it does and does not decide to periodically erase), but it does seem like a neat solution (you have to use a custom BAM that doesn't have the highlight frame).

I just use the pile type to get rid of containers I don't want anymore (easier than deleting them); I wouldn't have thought to do it this way.
#13
Improved Anvil / Call For Help with BG2 scripts
May 25, 2007, 02:13:42 PM
Try using Near Infinity. It has its own GUI script editor and should be easier to use.
#14
Improved Anvil / Unfixed bugs of vanilla game
May 20, 2007, 03:12:34 PM
These will always fail. The problem is with the way the engine handles external targets run on the caster -- the ability and effect are set to target elsewhere, but the actual summoning effects "link" back to the caster (out of necessity; the engine needs to target the caster to determine the allegiance of the summoned character). Normally, effects that target self bypass these sorts of resistances, but trying to affect the caster when the caster isn't the target doesn't correctly bypass the immunities (even though the script has it cast on the caster, the engine still treats it differently).

In short, the spell will fail even if the target is an enemy or a point on the ground. You'll see this behavior if you have Imoen cast Minor Globe and then try to cast Monster Summoning (you should get the "Spell Ineffective" message). The solution is to set the power level for these types of effects to 0 (thereby allowing them to bypass the immunity to spell level effects of the globe). This won't resolve the problem when the protection is a Spell Immunity or other spell that doesn't protect by spell level, but it should fix the Globe of Invulnerability funk.

I believe the fixpack fixes this (along with some other power issues that can cause problems).
#15
Improved Anvil / cloak of non-detection
May 18, 2007, 02:22:24 AM
You'd have to change the spells' type so that True Seeing and similar wouldn't remove the delayed cast spell effects (along with the current non-detection and other effects), but yeah, I can see that as a workaround. I do agree that it's not exactly optimal (having continuos application of any spell like that -- where the effect isn't instantaneous like True Seeing or Find Traps -- is kludgy at best).
#16
Improved Anvil / cloak of non-detection
May 17, 2007, 09:28:27 PM
Quote from: Sikret on May 17, 2007, 04:00:30 PMI actually know a good way to fix the spell's bug, but as I said, I'm not willing to. The spell will become cheesy if fixed.
How so? I'd assume using protection from spell for the named spells, but that's not really a fix (non-detection shouldn't protect against true seeing dispelling any illusions). The school and type of invisibility spells could be changed, which really would work, but then you end up with illegal spells (as far as canon AD&D goes). Neither of these really present as a satisfactory solution.
#17
Improved Anvil / cloak of non-detection
May 17, 2007, 02:50:53 PM
Quote from: Sikret on May 17, 2007, 07:33:33 AMAh, I see. So, the spell's duration doesn't matter all, eh?
Yeah, it would still be worthless if it lasted the entire game. I believe some clerics in the default game do cast Invisibility Purge instead of True Seeing, so it would have been useful there, but it's not something that happened often enough to ever make memorizing non-detection worthwhile.

Quote from: Sikret on May 17, 2007, 07:33:33 AMI can fix this bug, but I'm not sure if it is worth the attempt. Perhaps, it's better to keep the spell as weak as possible (as it is now). It's a cheesy spell after all. What's your opinion?
It's really tricky. The non-detection effect itself is hardcoded, so there's not a whole lot you can do without some ugly hackery (we don't touch this at all in the fixpack). You could change the items to always cast the appropriate spell (instead of applying the effects directly); this would make non-detection from any source always suck (at least it'd be consistent :) ), with the exception of hide in shadows, but I don't think there's much point to it.

I might suggest changing the type of non-detection to non-combat (13) from illusionary protections (it doesn't really seem like an illusionary protection to me), but then you'd get behavior where invisibility and other illusions will be dispelled while the non-detection remains (which may make it seem even more broken to players).
#18
Improved Anvil / cloak of non-detection
May 16, 2007, 04:47:04 PM
The problem is that non-detection blocks only the "detect invisibility" effect. In the game, only one or two of the low-level divination spells dispel invisibility this way (and non-detection will successfully block them, regardless of where the invisibility came from).

All of the higher level spells, however, also remove all illusionary protections and divination spell effects (they use the same effects that magic attack spells like Breach and Pierce Magic use). Non-detection doesn't block this, so any effects from these types of spells are automatically removed; since items don't contain school and type information, effects that were applied directly by the item won't be removed (the non-detection blocks any detect invisibility effects, and the remove protections effects don't find anything to dispel).
#19
Improved Anvil / Wing Buffet
May 15, 2007, 04:25:26 PM
Yeah, you can set it to 0 or just pick one (I can't remember which one I use). There shouldn't be any effect from this other than not having Spell Shield block it -- secondary type has very few implications, and then only for a small handful of the available types (spell, specific, and combat protections for the true magic attacks, illusionary protections for true seeing and similar spells, and magic attack for spell shield). Offensive damage spells are deflected by the ToB Cloak of Mirroring, so I'd suggest 0 or disabling (11, I think) -- both will give the same result.

I think there are a few other spells where the type is erroneously set to magic attack (possibly dragon breath weapons, but I can't remember). So until Sikret decides whether to change them or leave them as is, always memorize Spell Shield! :)
#20
Improved Anvil / Wing Buffet
May 14, 2007, 09:21:13 PM
IIRC, the spell is defined as a magic attack (secondary type 4). (It was probably a simple copy/paste error.) Just change the secondary type to offensive damage (or maybe disabling or battlefield; whatever seems most appropriate).