Author Topic: Working out the unknown scene.bin data  (Read 3159 times)

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Working out the unknown scene.bin data
« on: 2009-03-24 18:21:41 »
A few discoveries that I have made:

0x0C of formation data determines whether an enemy can be targeted in battle, as well as a few other things. When this is set to E7, the enemy is untargetable but visible, and does not have to be killed for the battle to end (example: the helicopter in the Rufus battle). When it is E6 the enemy is again untargetable and still doesn't have to be killed for the battle to end, and it is also invisible (example: the lorry in the Palmer battle). I've tried this with MPs and Guard Hounds and got the results I expected.

0x04 (possibly 0x04-05) of battle setup 1 has something to do with how long it takes to escape from battles; the higher the number the better. It might be the amount of turns the player has to spend trying to escape, but I haven't confirmed anything.

0x010 (possibly 0x010-0x011) determine whether the battle is escapable. Formations with FD at this offset can be escaped, whereas formations with other values here (F9 and E9 seem to be the most common) are unescapable.

I actually found the last two a while ago, but I don't think I advertised them very well. My apologies if any of this is old news.  :|

nfitc1

  • *
  • Posts: 3013
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Working out the unknown scene.bin data
« Reply #1 on: 2009-03-24 23:29:00 »
0x04 (possibly 0x04-05) of battle setup 1 has something to do with how long it takes to escape from battles; the higher the number the better. It might be the amount of turns the player has to spend trying to escape, but I haven't confirmed anything.

I think this is a function dependent on the level of the battle party, but you're right that the higher the number the longer it takes to escape from it. It's not rounds, but probably indicates a hidden timer somewhere.

0x010 (possibly 0x010-0x011) determine whether the battle is escapable. Formations with FD at this offset can be escaped, whereas formations with other values here (F9 and E9 seem to be the most common) are unescapable.

It's possible this is a set of flags and just 0x40 is the "escapable" flag (1 = escapable; 0 = no escape). Like how the special properties on attacks and items are.

I added this info to the wiki for ya.

hotdog963al

  • *
  • Posts: 236
  • Horse
    • View Profile
    • Horse HQ
Re: Working out the unknown scene.bin data
« Reply #2 on: 2009-03-25 18:51:51 »
Nice finds :)

Would be handy to make a battle non-escapable from the scene level, saves messing with the fields :3

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: Working out the unknown scene.bin data
« Reply #3 on: 2009-03-25 22:43:22 »
I'm going to look for some more flags for the target restrictions. I'm still having trouble with the monsters in the Hojo battle (actually, I've just come back to it after a month or so). The Poodler and Bad Rap samples have the target restriction E3; I'll hopefully get round to experimenting with that.

I'll also have a go at finding out things about the data called "battle setup 2" in the wiki. I know that some of the values there control the camera in battle; I'd be interested to see which ones.