Skip to content

DokusCore/DokusCore--Trains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation



DokusCore Trains (v0.0.3) [BETA] - Trains for public transport!.


IN DEVELOPMENT

This plugin is in development and is only recommended to use to test!


Dependencies

This plugin is depending on the DokusCore Framework! Make sure that DokusCore is started before this plugin!

Server Prebuild:

If you do not want to build your own server you don't have to, we already did all
the work for you! Download our Prebuild server package and you will be setup
within minutes. You also do not have to worry about dependencies or if the plugins
are started in the right order. Just insert your server artifacts, change the .cfg
and config files to your liking and off you go! For more information on how to
set up a DokusCore server, see the following video: Installation video


Installation

Simply extract the DokusCore--Trains into your resources folder,
and start it via ensure DokusCore--Trains. Then go to the Modules.lua
file of DokusCore itself and at _Modules = { Trains } set it to true.
If left to false the core will create its own character on ID 1 and not the
multi characters plugin.


Plugin Information

This adds a train to your server that will loop around on the map. The train
will stop at every station along the way, and a round trip takes 35 minutes.
The train's route is made in such a way it feels realistic. The train speeds up
slowly and depending on the inclination, it can go faster or slower in speeding and
breaking.

Important To Note

The train is linked to a client as a host. If this host leaves the server, the train
will continue to drive but wound follow its route anymore, and it will not stop
at any stations. The host to this script will be the first to join, we recommend
using a dummy account or the host of the server that logs in first. Later this will
be reworked so that the trains sync up with all clients so that they continue to drive.


Discord

On our Discord you can find all Information about this
project, feel free to join. Here you can also interact with other playing and testing
the Core, as well as giving your suggestions and opinions.


Searching for Developers

Do you enjoy developing, and would you like to take part into the DokusCore
project ? Join our Discord and contact one of the Administrators.


Future ideas for this plugin

This plugin is just a blueprint of what is to come, at a later stage I will be
re-writing this plugin and extend it massively. On a later update, you will be able
to have multiple trains on the track, and to prevent a pool size error, only 1
train will be attached to 1 player's client. So the more players on the server, the
more trains on the track with a maximum limit.

You will be able to drive the train. You will not be able to spawn in the train
if you have the job like other scripts, this is simply too unrealistic. How it works
is, you will assign yourself as on duty at one of the train stations that hold an
NPC behind the ticket counter. The first train that arrives at the station
will stop and the NPC will step out of the train, from this moment on you take
over his shift and yours starts. The same go's for getting off duty, you will park
the train at one of the stations and then sign yourself off duty. The NPC will spawn
back in, walk to the trains and take over again.

You will be able to drive the train completely by yourself, or choose to let the train
drive itself via the route that is pre-programmed. This gives the train driver the
change to also walk through the train, and see if the travelers have a valid ticket.

Another thing will be the coal itself. You will need to shove the coal into the oven
of the train, or the train will grind to a halt. On the train route, there are
multiple coal fill stations, here you will be able to fill the train if the
tank is filled as these need to be manually filled by a player.

So a lot of nice things to come for the future of this plugin. For the rest
IT IS NOT RECOMMENDED TO RESTART THIS PLUGIN!! Not that it is not possible but
this will despawn the train and everyone in it will get stranded. After the plugin
starts again, it will simply start at Rhodes again and start its journey.

Releases

No releases published

Packages

No packages published

Languages