Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1749.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index413a.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.200e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index413a.html.zxx&h^pOKtext/htmlISO-8859-1gzip@pWed, 11 Mar 2020 00:01:20 GMT0 0Pw&h^p Refresh objects command

Author Topic: Refresh objects command  (Read 1370 times)

TheNattak

  • Garula
  • *
  • Posts: 203
  • Gender: Male
  • Mike
    • View Profile
    • Return of the Dark Sorcerer
Refresh objects command
« on: August 29, 2012, 06:22:06 PM »
Question:
Does the 'Refresh objects' command ($45) serve any purpose at all?
I see it used all the time in the code after showing and hiding objects, but it doesn't seem to do anything at all...

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Refresh objects command
« Reply #1 on: September 02, 2012, 12:40:44 AM »
Well, if you don't think it does anything, go ahead and get rid of it. You probably won't like the results, though.

119 bugs fixed and counting.

assassin

  • Bane of Retards
  • *
  • Posts: 1,033
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: Refresh objects command
« Reply #2 on: September 02, 2012, 01:32:06 AM »
per the Event Commands doc:
http://www.angelfire.com/al2/imzogelmo/Event_Commands.txt
its "description is dubious".

what does it do, then?  i know from map alterations that if you do just do Command $73, which refreshes immediately after making its changes, you don't need to do Command $75 (Refresh map) afterwards.  but if there are any instances of Command $74 in there, which doesn't refresh immediately, you will have to perform Command $75 after.

but i can't find any object commands equivalent to $73 and $74, so i'm not sure how analogous Command $45 is to $75.

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Refresh objects command
« Reply #3 on: September 02, 2012, 01:12:13 PM »
Let's see if we can figure stuff out then:
Code: [Select]
Refresh objects
(gen. act. 45)

C0/9CE2: A901    LDA #$01
C0/9CE4: 8D9807  STA $0798
C0/9CE7: 4C5C9B  JMP $9B5C

Doing searches for all instances of $0798 gives only 1 with a read, C0/9A75. The code following this will execute only if $0798 is zero. Sadly, I have nothing else on this, though I was now able to do some code optimizations to PB's assembly of the bank. :tongue:

119 bugs fixed and counting.