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

Solve Threading Issues / Support quests with parallel execution of events. #3

Closed
Pychnight opened this issue Dec 13, 2017 · 1 comment
Assignees
Labels
Blocker bug Critcal Part 1 First part of the write

Comments

@Pychnight
Copy link
Owner

Pychnight commented Dec 13, 2017

Task List

Ensure support for parallel event Execution | #1 and #5
Ensure Plugin Stability (Prevent Crashing, Make thread safe as possible, I will be running this 24/7)

Fix Crashing with events that loop for long periods of time. (if you abort a quest while the quest is executing a loop it will cause server crashes)

Redesign Parties functionality, Add Team support and new lua events.

Redesign AddTrigger Functionality to support new parallel event execution code and ensure you can add it at any point of the file.

Example

AddTrigger(1, false, "1")

1= Wait(TimeSpan.FromSeconds(2))

1.Callback = function() party:SendMessage("Slime Counter: ".. slimeamt, Color.Magenta) end

Won't execute however this example will work.

1= Wait(TimeSpan.FromSeconds(2))

1.Callback = function() party:SendMessage("Slime Counter: ".. slimeamt, Color.Magenta) end

AddTrigger(1, false, "1")

Other examples quests should be able to do..

Example Filling room with water, while spawning sharks then having anther trigger checking to see when the water is at 30% filled in the room, and the main trigger is waiting for the player to reach X location.

Example 2: Requires 2 players to flip the switch at the same time in 2 different locations to open a door.

@tbarela
Copy link
Collaborator

tbarela commented Apr 25, 2018

Marking this one as closed. New Task based system isn't bound by the limitations of the old callback queues.

@tbarela tbarela closed this as completed Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocker bug Critcal Part 1 First part of the write
Projects
None yet
Development

No branches or pull requests

2 participants