Jump to content


subtledoctor

Member Since 05 Apr 2013
Offline Last Active Dec 28 2023 06:57 AM

Posts I've Made

In Topic: NearInfinity

12 February 2023 - 07:44 AM

Any idea what the limits are for what files can be opened in NI? I've been having trouble loading savegame files from a heavily modded game... I noticed that as the game progressed it became harder to open the savegame. Eventually I could open heavily modded savegames in an instance of NI attached to a game with no mods installed - I could not follow any resources but at least I could see what effects were on a character. Now my savegame will not open in any instance of NI.

 

The .gam file is quite large, at 10 MB, compared to <1 MB for the average unmodded .gam file.. On the other hand, my computer has 16 GB of memory so 10 MB is really not that big.

 

Is the file size an issue, or could it be down to something else? (E.g. number of effects on the characters, or something like that.)


In Topic: Refinements HLAs, modularized and on BG2EE

10 February 2023 - 05:59 AM

Here's a question, before I upload that:

 

Would it be worth it to separate wands and scrolls and handle them separately? I guess it would be fairly easy, now. I don't have a particular use-case... maybe some kind of technologist or luck-based kit could use wands, but actually casting spells from scrolls would still be out of bounds? Or maybe priests of Oghma or Deneir could use arcane scrolls, being so studious, but would not go around flashing wands at people?

 

Hmm. I suppose why not?


In Topic: Refinements HLAs, modularized and on BG2EE

07 February 2023 - 07:45 AM

Incidentally, I might be going back to using op181 for Use Magical Device, instead of setting SPECIFIC values. Even with workarounds to make the SPECIFIC thing work with SoD and such, I've still had occasional intermittent problems with characters using scrolls and wands. Op181 is not perfect, but if it has problems in-game, those problems will tend to be smaller and more manageable.

 

The method I've landed on at the moment works like this:

 

  • -- Any wands that are normally usable by non-wizards (with the exception of the Wand of the Heavens) are changed from type 35 to type 13. Type 13 is labeled "Food" and is used for e.g. the Goodberry consumable item. Type 13 "food" items can have charges just like wands, they are used from item quickslots just like wands. If you change the Wand of Magic Missiles to type 13 you can use it until it has 1 charge, then sell it to a store and buy it back, and what you buy back will be a wand with x charges, where x is determined by the .STO file's setting for how many charges it gives wands. (And this is responsive to mods like Low Magic World which change .STO files to sell wands with fewer charges.) The mod changes all stores and containers to buy/sell/store type 13 items if they already bought/sold/stored type 35 items. One unavoidable consequence of this is, if you use a Wand Case mod, you will be able to put Goodberries and other type 13 items into a wand case.
  •  
  • -- Any scrolls that cast spells but are not arcane scrolls you can also learn spells from, are changed from type 11 to type 8. Type 8 is labeled "Keys" and includes mostly just various keys. Even though most in-game keys don't do it, type 8 "key" items can cast spells and be used from item quickslots, just like scrolls. They of course do not have scrolls' hardcoded inventory UI function to learn spells, which is why the only scrolls being changed this way are green "use by anyone" scrolls and blue "cast a priest spell" scrolls. The mod changes all stores and containers to buy/sell/store type 8 items if they already bought/sold/stored type 11 items. One consequence of this - and admittedly it is slightly more consequential than the first change - is that you will be able to put keys into a scroll case.
  •  
  • -- Once the wands and scrolls already usable by non-wizards are separated into their own categories, the leftover wizard scrolls and wands are made usable by anyone. Then, for party members, every joinable non-wizard/non-bard NPC gets a permanent op181 effect making them unable to use type 35 and type 11 items (wizard-only wands and scrolls). For Charname, this is applied by script in the various areas that start each campaign in BGEE, SoD, BG2EE, ToB, EET, BP1, BP2, and IWDEE. A spell with op321 and op206 canceling and protecting from the "don't use" spell is added to every wizard kit CLAB table, so that anyone with the op181 spell who dual-classes to wizard will gain the ability to use arcane scrolls.
  •  
  • -- Finally, that same spell in wizard CLAB tables can be applied anywhere else in the game - as an HLA in Refinements, as a combat skill in Scales of Balance, as a kit ability for priests of Mystra in Faiths & Powers, etc.

 

The one limitation this adds compared to the current implementation is that divine wands and scrolls will still be governed by their usability flags. A thief with UMD will not be able to cast Restoration from a scroll. The rationalization for this is that arcane casters are deemed to have in a sense "hacked" some secrets of the universe, and do magic by intelligence; there is no god around to stop a wizard from doing their magic. By contrast, divine magic is a direct grant of power from a god, and those gods will not extend this grant to faithless thieves who happen to have figured out how to operate a wand. (To apply this to divine items as well would require a new item type(s) and I'm not sure there are any more that have the required characteristics... I think type 0 would work for divine scrolls, but I'm not sure about wands, and anyway there are a LOT of type 0 items in the game so the mish-mash of what fits in which container would become more chaotic.)

 

I've externalized this into a portable .tpa file that can be easily used by all different mods. I haven't pulled the trigger and actually uploaded release versions with this change, yet. I will either a) install and test it on my own game, and see how it performs myself - which may take weeks or months, since I am in the middle of an EET game with the old method - or b) make beta "pre-release" versions that other players can use and, essentially, test, at their own discretion.


In Topic: Refinements HLAs, modularized and on BG2EE

07 February 2023 - 06:51 AM

It's my oversight from PR https://github.com/U...inements/pull/4. I've send a new one, tested BG2EE installation, hopefully this will fix it.

 

Merged the new one.
 


In Topic: A few questions

06 December 2022 - 11:45 AM

2) I don't have the files handy so I cannot check. You could quickly install the mod and look at them in NI, though.

 

4) Don't quote me on this (see below), but it sounds like "physical protections" means spells with the "combat protections" secondary type, e.g. Shield, Stoneskin, PfMW, etc. "Specific protections" might reasonably refer to spells with the "specific protections" secondary type, e.g. Protection from Fire, Protection from Magic Energy, etc. And I would guess that "magical protection" then refers to spells with the "spell protections" secondary type, e.g. Spell Deflection, Globe of Invulnerability, Spell Trap, etc.

 

1), 3), 5) - I am not the author of any of this and so I am not qualified to make editorial comments about how or why things were set up the way they are. I only took over basic maintenance of the mod to get it installing on BG2EE and to allow installation of HLAs for individual classes.