Author Topic: Strange Battle Effects - Result of PrC Editing  (Read 3220 times)

xLostWingx

  • *
  • Posts: 801
  • No Comment
    • View Profile
    • FFVII Lost Wing Mod/Hacks
Strange Battle Effects - Result of PrC Editing
« on: 2011-03-30 18:24:18 »
I figure General is as good a place as any for this, because I'm certain its not a problem with PrC which is producing this, but rather something I've done or the game itself just doesn't want certain things to happen.  Here is a video of a battle that I placed where a Chocobo Encounter used to be.

http://www.youtube.com/watch?v=vH94B6b_N78

Here is a screenshot of the data in PrC for this battle.



I don't know whats happening here, of course I will continue to try and figure out the solution on my own, but perhaps someone has seen something like this before and already knows whats happening?  Thanks.

Armorvil

  • *
  • Posts: 621
  • Working on : FFVII Total Grudge
    • View Profile
Re: Strange Battle Effects - Result of PrC Editing
« Reply #1 on: 2011-03-30 18:59:12 »
First time I see this. Still, chances are it happens because you've made a battle formation with three enemies, and some have a high poly count (especially that land worm). Since you mod the PSX version, my guess is it can't handle that much. Try to remove one or two enemies, and the battle should be fixed.

I'm no expert, but I bet it's the cause. After all, worms like those are always alone in the original.
« Last Edit: 2011-03-30 19:04:08 by Armorvil »

nfitc1

  • *
  • Posts: 3013
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Strange Battle Effects - Result of PrC Editing
« Reply #2 on: 2011-03-30 19:47:15 »
That is the most awesome battle EVAR! XD

*Ahem* It might be a problem with the flags. So little is known about what they each do so having the wrong one(s) set might make it go awry like that.

Bosola

  • Fire hazard!
  • *
  • Posts: 1749
    • View Profile
    • My YouTube Channel
Re: Strange Battle Effects - Result of PrC Editing
« Reply #3 on: 2011-03-30 22:21:55 »
I gave up on new encounters when I couldn't coax H0512 into working properly when I restored EVERY BYTE PC LET ME.

Grr.

Anyway, there's virtually nothing known about those flags. Terence Ferguson has done some work on Scene-specific AI, so he might know if some of these flags are used in tandem with those scripts. Otherwise? I think my battle error thread lists a few empirical findings (e.g. "weird bug X means you should fiddle with flag Y in some... way"). That, I'm afraid, is about it.

nfitc1

  • *
  • Posts: 3013
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Strange Battle Effects - Result of PrC Editing
« Reply #4 on: 2011-03-31 14:33:43 »
I took a look at the enemy and formation battle flags and it seems like only five of the bits have any significance in either of them.

For enemy flags, It does load the entire thing as a DWord, but then that gets AND'd by 1F and stored at 0x9AB0DC + ( enemy_formation_number + 4 ) * 68h + 4. I don't know the significance of that address or the structure it's in.

Formation flags are handled differently. It seems like only 10h, 8, 4, and 2. The standard formation flag set is FFEDh.
In the brief look I gave it, if flag 0010 is set then the battle will force a pre-emptive battle if the battle type is 0. Seems a bit strange to me that that isn't just set in the battle type byte, but whatever.

xLostWingx

  • *
  • Posts: 801
  • No Comment
    • View Profile
    • FFVII Lost Wing Mod/Hacks
Re: Strange Battle Effects - Result of PrC Editing
« Reply #5 on: 2011-03-31 17:25:59 »
Thanks for all the information everyone.  I am taking a day or two off from working on my project, but I will let you know if and how I fix this battle (which hopefully will work for every Chocobo Lure Boss Battle).  Thanks again.
===============================

EDIT:  Armorvil +1  -  I made a formation with a Landworm, a formation with Dyne, a formation with a Bullmotor, and a formation with a Land Worm and a Bullmotor.  They all worked.  I am gonna see if a formation with Dyne and the Landworm works next, but having all three enemies in one formation seems to have been the problem.  But I needed to have the Chocobo Lure equipped in order to get into battles with the first two formations (the two that previously had chocobos in them) so the concept works!  Hopefully I didn't replace the chocobos required for Blue/Green, but that can be fixed.
« Last Edit: 2011-04-01 03:26:39 by xLostWingx »