Skip to content

Fix quests in parties not working in LAN worlds#207

Open
Ars102987 wants to merge 5 commits into
GTNewHorizons:masterfrom
Ars102987:master
Open

Fix quests in parties not working in LAN worlds#207
Ars102987 wants to merge 5 commits into
GTNewHorizons:masterfrom
Ars102987:master

Conversation

@Ars102987

Copy link
Copy Markdown

Was only tested with 1 online and 1 offline (cracked) account in LAN, probably requires more testing in more cases (as for example LAN using RadminVPN)

Was not tested with dedicated server, but in LAN worlds claiming rewards and detecting quest completion is working (only the UI is a bit buggy)

@Ars102987 Ars102987 changed the title Fixed quests in parties not working in LAN worlds Fix quests in parties not working in LAN worlds May 6, 2026
@Ars102987

Copy link
Copy Markdown
Author

Only thing i didnt fix is that in the party UI it shows default skin and uuid instead of nickname, but it is only cosmetic.

@koolkrafter5
koolkrafter5 requested a review from a team May 6, 2026 14:05

@cubefury cubefury left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR, The UUID changes are good! As discussed on discord, the isComplete check might be a bit of a patch that could break other stuff. Let's try revert this to the original check and see if it still works as intended. We can address the cosmetic issues later on!

return completeUsers.contains(uuid);
if (completeUsers.contains(uuid)) return true;

DBEntry<IParty> party = PartyManager.INSTANCE.getParty(uuid);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this part

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will try it right now and tell you the outcome

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Original TaskBase.java) compiled successfully, exact steps: 1. Launch two prism launcher GTNH instances; 2. Create new world and open it to LAN 3. Join with the second account 4. Create party with second account and invite the first (host) account 5. Accept the invite 6. Go back to second account and get 64x dirt for the first quest 7. It completes but the reward cant be claimed on the nonhost acconut

(Modified TaskBase.java) compiled successfully (Same steps till the No 7) 7. It completes and you can claim reward on both accounts

But i found an bug that for some reason allowed me to claim the reward 3x times

Steps: 1. Launch two prism launcher GTNH instances; 2. Create new world and open it to LAN 3. Join with the second account 4. Create party with second account and invite the first (host) account 5. Accept the invite 6. Go back to second account and get 64x dirt for the first quest 7. Claim on second account 8. Claim on the host account (first) 9. Go back on the second account and reopen the quest menu (and wait around 5s), and you can again reclaim the already claimed reward 10. Step 8 (infinite dupe bug)

Dont really know what is the reason

@Dream-Master

Copy link
Copy Markdown
Member

@Ars102987 any news . pr has conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants