Author Topic: Stuck on a few things.  (Read 3522 times)

IHBP

  • Architect of Kajar
  • Chronopolitan (+300)
  • *
  • Posts: 379
    • View Profile
Stuck on a few things.
« on: November 25, 2023, 03:27:51 pm »
Got heavy back into working on CT plus. I pounded out most of the bug list without much trouble, but I got a couple things I could use some help with please.

Normally the fight with Lavos is a one way trip, but I had most endings deposit you back in the game to continue. I worked out all the bugs except one, using the Epoch (no wings) to fight Lavos causes a hard lock next time you go to the world map.
Obviously some flags are set that dont play nice with the overworld. but I can't tell what they are.

Second I need Grand Dream to work with a second weapon, specifically 2D.

Lastly I noticed that some characters have idle animations. Do we know anything about these? like the delay timer or animation used?

Boo the Gentleman Caller

  • Guru of Life Emeritus
  • Hero of Time (+5000)
  • *
  • Posts: 5267
    • View Profile
Re: Stuck on a few things.
« Reply #1 on: November 25, 2023, 05:09:19 pm »
I can't help, as I'm not much of a techie, but... I commend the effort to pick this back up. I'm pumped for you and this is one of the things I'm always looking for and excited to hear about!!!

IHBP

  • Architect of Kajar
  • Chronopolitan (+300)
  • *
  • Posts: 379
    • View Profile
Re: Stuck on a few things.
« Reply #2 on: November 26, 2023, 07:52:25 pm »
Well you'll love what is coming next.

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1764
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Stuck on a few things.
« Reply #3 on: November 27, 2023, 05:19:33 pm »
I'm busy trying to crack out as many words as I can in a one month period, I'll get back to you after that. In the meantime:

- Do you have any freespace left in bank $C1 (0x10000-0x1FFFF)?
- Which characters, and where are the idle animations?
- Do you have any notes on the flags set during that sequence, or where it takes place?

IHBP

  • Architect of Kajar
  • Chronopolitan (+300)
  • *
  • Posts: 379
    • View Profile
Re: Stuck on a few things.
« Reply #4 on: November 27, 2023, 08:35:36 pm »
1: There is no remaining space in that bank. I assume thats for the Grand Dream?
2: Not all characters but some will blink if left idle, human Glenn will shift back and forth (glitchy)
    This suggests that not only is an animation designated there, but a timer as well probably
     about once a minute.
3. I assume they are flags related to the Epoch as no other method triggers it. But the overworld
    really doesnt like it.
4. Good luck with your many words.

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1764
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Stuck on a few things.
« Reply #5 on: November 28, 2023, 04:41:25 pm »
2) Overworld or location? PCs only? Is it limited to in party?

IHBP

  • Architect of Kajar
  • Chronopolitan (+300)
  • *
  • Posts: 379
    • View Profile
Re: Stuck on a few things.
« Reply #6 on: November 28, 2023, 05:39:00 pm »
I just noticed Ayla blinks about once a minute on location maps, Lucca does not. I havent checked the other characters but I will tonight.

Vehek

  • Errare Explorer (+1500)
  • *
  • Posts: 1756
    • View Profile
Re: Stuck on a few things.
« Reply #7 on: November 28, 2023, 09:33:04 pm »
I don't know where it determines how long before it plays the blink animation, but this is where the animation is selected.
Code: [Select]
C0/A23D:        B98016          LDA $1680,Y
C0/A240:        C921            CMP #$21
C0/A242:        F00F            BEQ $A253
C0/A244:        A921            LDA #$21
C0/A246:        998016          STA $1680,Y
C0/A249:        A900            LDA #$00
C0/A24B:        998116          STA $1681,Y
C0/A24E:        A900            LDA #$00
C0/A250:        990116          STA $1601,Y
C0/A253:        60              RTS
I don't think there's any difference in which animation will play between player characters. If there's an issue, maybe there's something wrong with human Glenn's animation data, causing it to pick inappropriate animation frames, or the frames it calls haven't been set up.
« Last Edit: November 28, 2023, 09:51:58 pm by Vehek »

IHBP

  • Architect of Kajar
  • Chronopolitan (+300)
  • *
  • Posts: 379
    • View Profile
Re: Stuck on a few things.
« Reply #8 on: November 29, 2023, 11:53:02 am »
Yeah Glenn has two frames of that particular animation don't line up. I fixed his goofy walk and run animiation so I might fix that one too eventually

IHBP

  • Architect of Kajar
  • Chronopolitan (+300)
  • *
  • Posts: 379
    • View Profile
Re: Stuck on a few things.
« Reply #9 on: December 01, 2023, 03:26:54 pm »
I'm one step closer to figuring out why the game crashes on the overworld if you beat Lavos with the wingless Epoch.

Beating the shell then using the portal resets whatever flag(s) are causing trouble. Unfortunately the portal sets about 20 flags.

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1764
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Stuck on a few things.
« Reply #10 on: December 01, 2023, 04:07:23 pm »
Can I get your lastest patch and a relevant SRM file?

IHBP

  • Architect of Kajar
  • Chronopolitan (+300)
  • *
  • Posts: 379
    • View Profile
Re: Stuck on a few things.
« Reply #11 on: December 02, 2023, 11:14:59 am »
Also I want to force Frogs name to be Glenn by event. The memory location for Frogs name is 7E2C3B-7E2C40 but I dont know what values make those specific letters.
« Last Edit: December 02, 2023, 12:39:54 pm by IHBP »

trig

  • Level ** (100)
  • *
  • Posts: 100
    • View Profile
Re: Stuck on a few things.
« Reply #12 on: December 02, 2023, 05:28:13 pm »
I think the letters are bytes, 0xa0 + offset of the letter (A=0,B=1,etc) in this string:
Code: [Select]
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!?/“”:&()’.,=-+%  ♥ ∞#♪
https://bisqwit.iki.fi/jutut/ctcset.html

so i wanna say Glenn is a6c5bec7c700 (note null terminator)
« Last Edit: December 02, 2023, 05:59:24 pm by trig »

IHBP

  • Architect of Kajar
  • Chronopolitan (+300)
  • *
  • Posts: 379
    • View Profile
Re: Stuck on a few things.
« Reply #13 on: December 02, 2023, 05:36:45 pm »
Yup that did it. Thanks!

IHBP

  • Architect of Kajar
  • Chronopolitan (+300)
  • *
  • Posts: 379
    • View Profile
Re: Stuck on a few things.
« Reply #14 on: December 16, 2023, 08:16:44 pm »
Does anyone know how to expand the uncompressed graphics packet index? It currently goes to x07 but I'd like it to go to x09