Openrct2: Plugins Support For Server

Created on 24 Mar 2016  路  8Comments  路  Source: OpenRCT2/OpenRCT2

Would great ideas to add Plugins support for server everyone want this feature this mean: add-on commands, plugin loader and more.

epic feature plug-in

Most helpful comment

yes

All 8 comments

In what way? Its open source so anyone can maintain their own fork with extra features on the server side. Obviously we will try to make the code more... hook / DI friendly to make it easier over time.

yes, so people can code to make commands and api for multiplayer server

what would be an example of a plugin that you are wanting

yes

Support for plug 'n play plugins/scripts is welcome. Not everyone has C/C++ knowledge, and scripts are an useful alternative. Now I can't think of any plugin-ideas at this moment. But I'm sure others can, and will.

RCT2 already had a plug-in system, I think we should extend that support*. I like being able to unload them, and I also think a proper plug-in system increases the chances they work well with each other.

OpenTTD's NewGRF system is more of a mod system, and because of that doesn't allow unloading. We could even allow both, as mods usually allow modifying more aspects of the game.

  • Things that could be converted to plug-ins (after full implementation):
  • Land types (surface and edge)
  • Music tracks (possibly allowing them to tie to a style, or creating a new one)
  • Ride entrance styles
  • Entertainer styles

And going further, possibly even

  • Ride modes
  • Track types

Just an idea, maybe add a predefined script like " if (!command)
{
ingame text message to player
}
Command example "!help or /help or /admin
As you can define the command yourself you can use it for ideas like "!goal, !stats, !maps, ..." and as there is an web api you can easy add scores to a webpage and link to it with a ingame command.
Example !help shoes commands on this server (!help,!web,!maps)
If you type !web it will show the website link of this server ingame for more information. You can do many more stuff. Just take a look on the OpenTTD servers. There are commands normal on every good server.
Maybe also add a file for a welcome message.
At OpenTTD the server is using script files with ingame commands that are "hardcoded" like server cmd. "say, pm, ...."
# Show a MOTD
say "Welcome..."

Also nice idea would be autoexec scripts or timed events.

You can learn C++ or C# in http://www.programmr.com/practice/
Codecademy should add C++ or C# Course

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ocalhoun6 picture ocalhoun6  路  3Comments

Superjustinbros picture Superjustinbros  路  3Comments

nuclearslurpee picture nuclearslurpee  路  3Comments

J0anJosep picture J0anJosep  路  3Comments

qwertychouskie picture qwertychouskie  路  3Comments