Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RoomSpawnpoint #110

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open

Conversation

SrLicht
Copy link

@SrLicht SrLicht commented Sep 24, 2024

Description

Describe the changes
Fixes RoomSpawnPoint when used in Surface and also changing the spawn eventarg to WaitingForPlayers.

What is the current behavior? (You can also link to an open issue here)

What is the new behavior? (if this is a feature change)

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:
Proof what the change is working and dont brake the position

PillsSpawnPoints its a List of RoomSpawnPoints where some are in Surface
imagen

imagen


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

* Preventing use of TransformPoint(Offset) in Surface Room

* Added more delay
@SrLicht
Copy link
Author

SrLicht commented Sep 24, 2024

I fixed uwu @Josephfallen

@Josephfallen
Copy link

Thank you @SrLicht I'll look over it once I finish my code :)

@SrLicht
Copy link
Author

SrLicht commented Sep 24, 2024

Thank you n-n

I've already tested the changes and they work before my items appeared in Y 2000 and now they appear correctly in Surface

@Josephfallen
Copy link

@SrLicht If you want it reviewed you have to make it public

Copy link

@Josephfallen Josephfallen left a comment

Choose a reason for hiding this comment

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

If tested, It looks good

Copy link

@VALERA771 VALERA771 left a comment

Choose a reason for hiding this comment

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

If tested

After so much testing for a while, if CustomItems spawn too early they are not properly registered and spawn but without being custom items, also the locker spawn does not work because the base game did not finish generating all the lockers on the map yet, by adding this delay all those problems were eliminated.  I also thought it was fair to add a Try catch Log.Error in case there is any error when spawning custom items, currently if there is any you have no way of knowing.

Translated with DeepL.com (free version)
@SrLicht
Copy link
Author

SrLicht commented Oct 5, 2024

I was too lazy to type the commit from my damn cell phone so I used a translator.

Co-authored-by: Alex Rouse <alex@leronix.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants