Guidebook

Guidebook

6M Downloads

Game Stage conditions don't work in multiplayer.

SuperKael opened this issue ยท 4 comments

commented

Simply as the title says. I am testing on my own dedicated server, and any element I tag with a game stage condition never appears. It works perfectly fine in singleplayer, just not in multiplayer. All of my configs are are the same on both my client and server, including the xml file containing the book.

Example that works in singleplayer, but not in multiplayer:

<book title="Test Guidebook">
	<conditions>
		<stage-unlocked name="test_stage" stage="test_stage" />
	</conditions>

        <chapter>
		<page id="Test Page 1" condition="test_stage">
			<title>Test Page 1</title>
		</page>
	</chapter>
	<chapter condition="test_stage">
		<page id="Test Page 2">
			<title>Test Page 2</title>
		</page>
	</chapter>
</book>

In singleplayer, both pages appear if and only if I have the test_stage. In multiplayer, neither of them appear regardless of whether or not I have the test_stage.

commented

Wow, thanks! That was very fast! I submitted the issue just before heading to bed, and I wake up to find it fixed. Anyways, I just tested and confirmed that it's working now, thank you!

commented

Hmmm I just tested, it works for me. What versions of Guidebook and GameStages are you using?

EDIT: Maybe found an issue -- if I open the book BEFORE setting the stage, the conditions are not re-evaluated later... Debugging...

commented

Seems I was using the client-side stages wrong.... Game Stages is a ... special API, it seems. It has different ways to access server-side data from client-side data, and I didn't realize that, so I was using the server-side method.

commented

v2.7.1 is up on curseforge, awaiting review. Since I believe the curseforge team are off-work at this time of day, it may take some 3-5 hours before it's approved. It has been approved already.