Jump to content


Photo

IWDEE: File format changes


21 replies to this topic

#16 Galactygon

Galactygon

    Nostradoctopus

  • Modders
  • 721 posts
  • Gender:Male
  • Location:Sweden

Posted 04 January 2017 - 11:08 AM

I've got one question about foot circle size in SPLPROT.2da. Entry 13 "Huge Creatures" looks for a footcircle size of greater than 3. The various animation .ini files use another system for determining footcircle size; most creature animations use 16 as their foot circle size. Huge creatures such as giants have foot circle sizes of 48 or more in their .ini files. What is the correlation between the two scales (SPLPROT.2da vs. ini files)?


Posted Image

Posted Image

#17 lynx

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

Posted 04 January 2017 - 11:10 AM

Sounds like a factor of 16.


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

#18 Avenger

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

Posted 06 January 2017 - 11:12 AM

Normally a factor of 16 yeah. But one is the circle size the other is the actual personal space which is taken up in the search map. The circle size is really just the circle size (a visual parameter). So they can differ for some creatures, mostly upright creatures like giants got a smaller personal space than equally huge, but flattened body creatures


Edited by Avenger, 06 January 2017 - 11:14 AM.


#19 Galactygon

Galactygon

    Nostradoctopus

  • Modders
  • 721 posts
  • Gender:Male
  • Location:Sweden

Posted 08 March 2017 - 12:30 PM

After extensive testing I can verify that the "0x102 circlesize" pseudostat actually looks at the "personal_space" attribute of .ini files, which is independent of the "circlesize" attribute in .ini files. "circlesize" determines the size of the foot circle graphic that you see/can click on and uses a refined scale (i.e. 16 for most animations incl. PC avatars). "personal_space" on the other hand affects pathfinding and (im)passability and uses a much rougher scale. Most creature animations (i.e. PC avatars) have their "personal_space" set to 3. Giants and similar creatures have their "personal_space" set to 5 (footcircle is 24) while BG2 dragons have their "personal_space" set to 13 (footcircle is 72).

 

Based off of these values (72 -> 13, 24 -> 5, 16 -> 3) personal_space is graphically equivalent to roughly circlesize divided by 5.5-5.2. Note that these two parameters need to be independently set in each .ini file so it's possible to have a large foot circle with a small personal_space and vice versa. EE's opcode 342 allows you to override personal_space size which is useful to simplify pathfinding when a large number of actors are present (by setting personal_space to 0).


Edited by Galactygon, 08 March 2017 - 01:39 PM.

Posted Image

Posted Image

#20 Gwendolyne

Gwendolyne
  • Members
  • 116 posts
  • Gender:Male
  • Location:France

Posted 08 March 2017 - 09:01 PM

That's the way I found to allow my unicorns and warhorses mounts to follow their paladins, even with bigger selection circles. ;)

 

Only in Enhanced games...


CARPE DIEM...



In progress : Menace sur le Royaume de Diamant Éternel

#21 Galactygon

Galactygon

    Nostradoctopus

  • Modders
  • 721 posts
  • Gender:Male
  • Location:Sweden

Posted 08 March 2017 - 11:37 PM

Warning: I've experienced issues with EE's opcode 342 when personal_space is set to 0 and those effects are removed or the creature is killed/destroyed. An impassable block will appear at the location of the creature that cannot be removed.


Posted Image

Posted Image

#22 Gwendolyne

Gwendolyne
  • Members
  • 116 posts
  • Gender:Male
  • Location:France

Posted 09 March 2017 - 01:02 AM

Thanks for the warning. That's a good point to know.

 

But as I use brand new creature animations, I coded the personal space in their ini file. And for classical ToB game (with IA), I claimed for "small circle" in the IA listing thread instead of the large ones I use in EE. Otherwise, my mounts were blocked in too many maps. And as unicorns can only teleport themselves once per pay...


CARPE DIEM...



In progress : Menace sur le Royaume de Diamant Éternel



Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users