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

Ace admin plugin changes #977

Closed
wants to merge 2 commits into from
Closed

Ace admin plugin changes #977

wants to merge 2 commits into from

Conversation

acriaf
Copy link
Contributor

@acriaf acriaf commented Aug 27, 2018

Some more changes for the plug-in. Including a new class/file for plug-in commands.

Copy link
Member

@Mag-nus Mag-nus left a comment

Choose a reason for hiding this comment

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

There might be a better way to get more complex data to plugins instead of using new GameMessageSystemChat(message, ChatMessageType.Broadcast);.

If we use the gameMessageSystemChat, the plugin user will see the data requested by the plugin in their main chat window.

Another option could be to send the binary data using specific opcodes, and listen for those specific opcodes in the plugin and parse accordingly.

/// <summary>
/// Will return all Points of Interests from the DB
/// </summary>
public List<PointsOfInterest> GetAllPointsOfInterests()
Copy link
Member

Choose a reason for hiding this comment

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

GetAllPointsOfInterests should probably add to the POI Cache, since it's pulling from the database anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Plug-in does Eat the message so it will not go to the Chat Windows. Currently that line is commented out so I can see what is being sent.
POI Cache, I did have that, I Will add it back.


return null;
}

Copy link
Member

Choose a reason for hiding this comment

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

Whats up with a lot of these weird empty lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will fix the empty lines.

@Mag-nus
Copy link
Member

Mag-nus commented Aug 27, 2018

In regards to PlugInCommands.cs,

I can't help but wonder if this info is better exposed via the debugging API that's being worked on.

At some point, most of the server information will be available via an API that uses a web front end. I think that would be a bit easier to use than a plugin for active server information and diagnostics.

@acriaf
Copy link
Contributor Author

acriaf commented Aug 27, 2018

I agree that the active server information and diagnostics will be easier and better suited for the API.
The Plug-in is being written to assist with in-game specific functions with a few exceptions (e.g. creating a new account).

@Mag-nus
Copy link
Member

Mag-nus commented Sep 3, 2018

Closing this one.

We can revisit after the diagnostics API is a bit more developed.

@Mag-nus Mag-nus closed this Sep 3, 2018
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.

None yet

2 participants