Jump to content


Photo

Remove the clear fog of war (Stats: 148 EXPLORE) from a PC


14 replies to this topic

#1 Grammarsalad

Grammarsalad
  • Modders
  • 403 posts
  • Gender:Male

Posted 20 December 2016 - 10:17 PM

Is it possible to remove the clear fog of war stat from a pc temporarily?  

 



#2 lynx

lynx
  • Modders
  • 2800 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 20 December 2016 - 11:21 PM

You could try setting it to 0, but I'd wager it's just an extra check. Blinding the pc would have a similar effect though.


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Market android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...

#3 Grammarsalad

Grammarsalad
  • Modders
  • 403 posts
  • Gender:Male

Posted 21 December 2016 - 05:18 AM

You could try setting it to 0, but I'd wager it's just an extra check. Blinding the pc would have a similar effect though.

But how can i do that? Maybe I'm being dense but i can't find an opcode or script action that does this.

And yeah, i know that blinding will do basically the same thing. But I'm trying to get around an engine limitation where wacky things happen if there are more than 8 characters with clear fog of war ( somebody, I think randomly, loses it. Or maybe the 9th creature just doesn't get it. I have to test more to find out exactly.)

I have a few spells that grant clear FoW for summoned creatures, but you can have this issue if you have a familiar active and a wizard eye. It can also presumably conflict with Argent77's genie mod. My solution was to control exactly who loses cfow by making the caster lose it for the duration of the spell.

Edit: maybe blinding the caster also sets explore to 0?

Edited by Grammarsalad, 21 December 2016 - 05:20 AM.


#4 argent77

argent77
  • Modders
  • 606 posts
  • Gender:Male

Posted 21 December 2016 - 05:54 AM

I don't think there is anything we can do modding-wise. This is an engine limitation or bug, and has to be fixed on that level. It appears party members are always within the first 8 creatures with working "Clear fog of war". If the total amount of creatures with "Clear fog of war" exceeds 8 then one or more non-party creatures are randomly chosen (by race condition?) whenever you load a save or enter a new area.

It also affects the cutspy helper creature which is used in many cutscene sequences. You can experience this issue even in an unmodded game if you have a full party with familiar while watching the cutscene where Irenicus takes control over Spellhold (at chapter 3 start). The cutspy instance near Imoen does not work.

Blinding a character won't help as it only limits the range of the "Clear fog of war", but doesn't remove it completely.
 



#5 Grammarsalad

Grammarsalad
  • Modders
  • 403 posts
  • Gender:Male

Posted 21 December 2016 - 04:20 PM

. .bummer

#6 Avenger

Avenger
  • Modders
  • 3652 posts
  • Gender:Male
  • Location:Hungary

Posted 22 December 2016 - 02:55 AM

The visual range could be lowered, but this will affect more than fog of war. Opcode: 262



#7 Grammarsalad

Grammarsalad
  • Modders
  • 403 posts
  • Gender:Male

Posted 26 January 2017 - 10:06 PM

The visual range could be lowered, but this will affect more than fog of war. Opcode: 262


Sorry for the necro, but I'm just seeing this.

Would setting visual range to zero remove the fog of war from the character if set to zero?

#8 Galactygon

Galactygon

    Nostradoctopus

  • Modders
  • 712 posts
  • Gender:Male
  • Location:Hungary

Posted 27 January 2017 - 06:22 AM

Note that this issue has been filed both internally and publicly as Issue 25065. Let's keep our fingers crossed that this issue will be fixed in the next patch.


Posted Image

Posted Image

#9 Ardanis

Ardanis

    A very GAR character

  • Modders
  • 2482 posts
  • Gender:Male
  • Location:Saint-Petersburg, Russia

Posted 27 January 2017 - 10:46 AM

Hope dies the last... I had brought up the cutspy issue couple times, but it never got fixed for some reason, so I suspect there were serious grounds for letting it away.


Edited by Ardanis, 27 January 2017 - 10:47 AM.

"Uguu~ Boku Ayu."

Before you start breaking wall tiles with your bare fists, ask yourself first - do you truly need it?

#10 Grammarsalad

Grammarsalad
  • Modders
  • 403 posts
  • Gender:Male

Posted 28 January 2017 - 04:48 PM

*casts emotion: hope*

#11 jastey

jastey
  • Gibberlings
  • 6387 posts
  • Gender:Female

Posted 31 January 2017 - 08:18 AM

And here was I, thinking giving my custom familiar cfow was a great idea. :(

 

Still, I would like to ask in this thread: Why is the effect of cfow removed by "ctrl+R", but other effects are not? Can someone enlighten me how the engine decides which effects to remove and which to ignore when cheat-healing is performed?


Edited by jastey, 31 January 2017 - 08:18 AM.


#12 kjeron

kjeron
  • Members
  • 30 posts

Posted 31 January 2017 - 08:36 AM

And here was I, thinking giving my custom familiar cfow was a great idea. :(

 

Still, I would like to ask in this thread: Why is the effect of cfow removed by "ctrl+R", but other effects are not? Can someone enlighten me how the engine decides which effects to remove and which to ignore when cheat-healing is performed?

It is any "limited" effect, any effect attached to the creature without timing mode 9.

It is the same removal applied by Death, Export(including Pregeneration), and Opcode 17(w/bit 17 of param2).



#13 subtledoctor

subtledoctor
  • Modders
  • 1903 posts
  • Gender:Male

Posted 31 January 2017 - 08:47 AM

It is any "limited" effect, any effect attached to the creature without timing mode 9.
It is the same removal applied by ... Export(including Pregeneration),


Interesting. This might solve a mystery that's been plaguing me for like a year.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#14 jastey

jastey
  • Gibberlings
  • 6387 posts
  • Gender:Female

Posted 31 January 2017 - 09:03 AM

Thank you!



#15 Avenger

Avenger
  • Modders
  • 3652 posts
  • Gender:Male
  • Location:Hungary

Posted 01 February 2017 - 10:03 AM

You can't easily increase the number of cutspies, not without a performance loss (that would also affect pathfinding, which practically makes this an unsolvable problem). Luckily the issue here is the exact opposite (temporarily ignore cutspy effect). So, there is no theoretical limitation.





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users