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

Add ability to fall back to scripts named after MapId.PortalName #207

Closed

Conversation

Seeker1437
Copy link

  • this allows running portal script even if the script node is unset in the WZ

Copy link
Owner

@P0nk P0nk left a comment

Choose a reason for hiding this comment

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

I can see the usefulness in this feature, I'm just worried of decreased performance. This change means we will read from the file system for every single portal that is loaded (to check if a script exists).

I'll accept it, but I won't think twice about removing if it turns out to be a measurable performance hit.

Some minor improvements to be fixed before I approve.

src/main/java/scripting/portal/PortalScriptManager.java Outdated Show resolved Hide resolved
src/main/java/server/maps/PortalFactory.java Outdated Show resolved Hide resolved
src/main/java/server/maps/PortalFactory.java Outdated Show resolved Hide resolved
@Seeker1437 Seeker1437 requested a review from P0nk June 17, 2024 19:49
@ShadowGarden7
Copy link

When will this be merged?

@P0nk
Copy link
Owner

P0nk commented Aug 28, 2024

When will this be merged?

Shortly. I haven't been too active lately but am now getting back into things.
I want to test this myself before I merge.

@Seeker1437
Copy link
Author

Sorry for trying to help.

@Seeker1437 Seeker1437 closed this Aug 28, 2024
@Seeker1437 Seeker1437 deleted the feature/portal-fallback-support branch August 28, 2024 12:09
@ShadowGarden7
Copy link

Wow. Okay.

@Seeker1437
Copy link
Author

Sorry, just was waste of everyone's time. Also maybe he will fix the network implementation. He's doing it completely wrong.

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