I use a charpane.php override (Lost's charpane.ash), and when I use a "relay_" script (FamiliarFeeder) where I can switch my familiar, the new charpane.php (with the new familiar image) is shown in the main pane instead of my "relay_" script.
What happens is:
- I select FamiliarFeeder from the top pane drop-down
- I press the "switch familiar" button on the page created by FamiliarFeeder
- FamiliarFeeder reloads, notices the button has been pressed, calls use_familiar(), and re-creates the page
- the charpane.php override is shown in the main pane instead of the page created by FamiliarFeeder.
After the "switch familiar" button is pressed, I think this is what happens in KoLmafiaASH.getClientHTML() :
- FamiliarFeeder is executed, launches the familiar switch, then generates the page, which is stored in KoLmafiaASH.serverReplyBuffer.
- the familiar switch causes a refresh of charpane.php
- the charpane.php override is executed, causing KoLmafiaASH.getClientHTML() to wipe KoLmafiaASH.serverReplyBuffer, which is then filled by the page generated by charpane.ash.
- KoLmafiaASH.serverReplyBuffer is send to the relay browser, with the contents of charpane.ash instead of the expected relay_FamiliarFeeder.ash
I'm only guessing this is how it goes: I have no idea of what synchronized() does.
I also have no idea of how to prevent this.
What happens is:
- I select FamiliarFeeder from the top pane drop-down
- I press the "switch familiar" button on the page created by FamiliarFeeder
- FamiliarFeeder reloads, notices the button has been pressed, calls use_familiar(), and re-creates the page
- the charpane.php override is shown in the main pane instead of the page created by FamiliarFeeder.
After the "switch familiar" button is pressed, I think this is what happens in KoLmafiaASH.getClientHTML() :
- FamiliarFeeder is executed, launches the familiar switch, then generates the page, which is stored in KoLmafiaASH.serverReplyBuffer.
- the familiar switch causes a refresh of charpane.php
- the charpane.php override is executed, causing KoLmafiaASH.getClientHTML() to wipe KoLmafiaASH.serverReplyBuffer, which is then filled by the page generated by charpane.ash.
- KoLmafiaASH.serverReplyBuffer is send to the relay browser, with the contents of charpane.ash instead of the expected relay_FamiliarFeeder.ash
I'm only guessing this is how it goes: I have no idea of what synchronized() does.
I also have no idea of how to prevent this.