[INACTIVE][MECH] NextStation 0.2.2 - Your favourite stations announcement system [860]

Discussion in 'Inactive/Unsupported Plugins' started by DjDCH, Feb 28, 2011.

  1. Offline

    DjDCH

    [​IMG]

    NextStation - Version 0.2.2

    This plugin provide you the ability to make a stations announcement system for your subway network. It give you the faculty to announce the next station of your subway network, but also announce a station that you are currently entering.

    How it work:
    The magic of this system, is that you can choose to whether or not exit at the next station. If you decide to, your minecart will be deviated to exit at the station, and the station name will be announced. If you didn't decide to, you will simply continue on your way without receiving any message.

    How to install:
    The only thing you need to do is download the zip containing the jar and unzip it in the plugins directory. But, you will also need to install the Minecart Mania Core plugin.

    How to configure:
    If you want to configure this plugin, edit the nextstation.properties inside the directory NextStation, which is inside the plugins directory. If you want to edit the trigger_block value, use the enum name (from the class Material of Bukkit) or the item ID for this property value. Any undefined property in the configuration file will use its default value. Notice that in the auto-generate properties file, three values are commented because using it will remove the fancy colourizing.

    How to use:
    The operation of this plugin is based on two things, the triggering block and the sign code. You will need to respect these two rules to make your announcement system work correctly. By default, the triggering block is a Log block. You need to place this block under the track to correctly trigger the announcement. After this, you need to set one of these seven signs next to the triggering block:

    Announce
    This sign will simply display the reset of the text find on the sign. Usefull to display information on the player screen. No question is asked and no modification are made to the track.

    NextSation
    This sign will announce the next station to the player that passing next to it. It will also ask to the player if he want to exit at the next station. The player reply by typing /nextstation (or /exit, /e, /quit, /q) in the chat. No modification are made to the track.

    NextIntersect
    Same as NextSation, except the the sign will announce the next intersection. No modification are made to the track.

    NextTerminal
    Same as the NextSation or NextIntersect signs, except that the player will exit at this station. No question is asked and no modification are made to the track.

    Station
    If a player ask to exit, this sign will firstly curve the track to the left (if possible) or to the right (also if possible), so the player will exit at the station. Secondly, the station is announced. Notice that if there's no track to the left and to the right of the player, the plugin will ignore this station and will made no modification to the track. If the player didn't ask to exit, it will simply continue is way. If the track was previously curved, the track is reset to the straight position. No question is asked.

    Intersect
    Same as Station sign, except the sign will announce a intersection. The track modification work identically. No question is asked.

    Terminal
    This sign work same as both NextSation and NextTerminal, except it announce a Terminal. No question is asked and no modification are made to the track.

    Examples:
    Example of a next station announcement
    Example of a player that accept to exit at the next station
    Example of a player exiting at a station
    Example of a NextStation sign
    Example of a Station sign

    About the sign content:
    The first line need to be exactly the same as the selected sign code. Notice also, at the second line, the space at the end of the line. In other word, the text of the other three lines will be take and put together to form the station name. The rule to respect is: Always add the proper space at the end of each line if needed. There is an example of a sign content (where "_" is a space):
    Code:
    NextStation
    DjDCH's_
    Complex
    About the Station sign:
    The station sign is very picky. For the moment, it will only work in one way. What I want to say, if we take a look again to this example, is in this picture, the cart is coming from the left. If the player have choose to exit, he will be redirect to the bottom track. If he choose to not exit, he will be redirect to the right track. The rule to respect is: The player will always exit at his left or at his right. If there's no track at his left, the plugin will check at his right. If there's also no track at his right, the player won't exit.

    About the /nextstation (/exit) command:
    This command save your name to know when you will arrive to a station or a intersection if it exit you or not. Now you can add the station/intersection name (or a partial station/intersection name) as an argument of this command. You will exited only is the string that you send match the current station/intersection. This command can only be used when you are in a minecart. If you leave the minecart, the command will erase your name from its data, if you have used the command and you didn't exited before leaving the minecart.

    Todo:
    * Todo, etc. on my redmine
    * Add a configuration file
    * Add a debug mode
    * Complete the Javadoc
    * Implement all event hooks
    * Add a tutorial video (if somebody want to make it, tell me)
    * Never make other stupid mistake, ever.

    Default configuration file:
    Code:
    # Triggering block
    trigger_block=LOG
    
    # Flag definitions
    announce_flag=Announce
    next_station_flag=NextStation
    next_terminal_flag=NextTerminal
    next_intersection_flag=NextIntersect
    terminal_flag=Terminal
    station_flag=Station
    intersection_flag=Intersect
    
    # Text definitions
    # Colors flag:
    #  [WHITE]
    #  [BLACK]
    #  [DARK_BLUE]
    #  [DARK_GREEN]
    #  [DARK_AQUA]
    #  [DARK_PURPLE]
    #  [GOLD]
    #  [GRAY]
    #  [DARK_GRAY]
    #  [BLUE]
    #  [GREEN]
    #  [AQUA]
    #  [RED]
    #  [LIGHT_PURPLE]
    #  [YELLOW]
    not_in_minecart_text=[RED]You are not in a minecart. You cannot use this command.
    you_will_exit_next_text=[GRAY]You will exit/switch at the next station/intersection.
    you_will_exit_this_text=[GRAY]You will exit/switch at this station/intersection.
    next_station_text=[YELLOW]Next station: [AQUA]
    next_station_msg_text=[GRAY]Use the [WHITE]/exit[GRAY] command to exit at the next station.
    next_terminal_text=[YELLOW]Next station: [AQUA]
    next_terminal_msg_text=[GRAY]This is a terminal station. You will exit there.
    next_intersection_text=[YELLOW]Next intersection: [AQUA]
    next_intersection_msg_text=[GRAY]Use the [WHITE]/exit[GRAY] command to switch line at the next intersection.
    terminal_text=[YELLOW]Terminal station: [AQUA]
    station_text=[YELLOW]Station: [AQUA]
    intersection_text=[YELLOW]Intersection: [AQUA]
    announce_text=[YELLOW]
    
    Changelog:
    See changelog (open)
    Code:
    NextStation - Version 0.2.2
    ----------------------------
        * Build with Bukkit #716
        * Tested with CraftBukkit #860
    
        Minor features changes
        -----------------------
        * Add colors flag to configuration file
    
        Bug fixes/development issues
        -----------------------------
        * Fix the startup error caused by bad implementation of the plugin requirement script
    
    NextStation - Version 0.2.1
    ----------------------------
        * Build with Bukkit #681
        * Tested with CraftBukkit #766
    
        Bug fixes/development issues
        -----------------------------
        * Fix code for the new MinecartManiaCore version
    
    NextStation - Version 0.2
    ----------------------------
        * Build with Bukkit #652
        * Tested with CraftBukkit #670
    
        Major features changes
        -----------------------
        * Added the configuration file
        * Block, flag, text and message can be edited in the configuration file
        * Added Annouce, NextIntersection and Intersection flags
        * The player can now specify the station/intersection that he want to exit
    
        Minor features changes
        -----------------------
        * /NextStation became the main command, /exit is now an alias
        * Added the aliases /quit and /q. The aliases are now /exit, /e, /quit and /q
        * You cannot anymore used the /exit command if you are not in a minecart
        * The /exit command is reset when leving a minecart
    
    NextStation - Version 0.1.1
    ----------------------------
        * Build with Bukkit #432
        * Tested with CraftBukkit #493
    
        Bug fixes/development issues
        -----------------------------
        * Fix stupid error about mix getDisplayName/getName
    
    NextStation - Version 0.1
    ----------------------------
        * First release
        * Build with Bukkit #417
        * Tested with CraftBukkit #455
    
        Major features changes
        -----------------------
        * Added /exit command
        * Exit at a station if you asked for it
        * Next station and next terminal announcements
        * Station and terminal announcements at your arrival

    Download NextStation Version 0.2.2 (zip)
    Download NextStation sources version 0.2.2
    Other downloads (Older versions, release date, file sizes and md5 checksum)
    Thanks to you for supporting my plugin ! ;P
     
  2. Offline

    InfctedMushr00m

  3. Offline

    efstajas

    I used this plugin a long time, now I installed it again and I can't get it to work on build 935, simply nothing happens when I drive over a NextStation sign. Also no error in the console. :/
     
  4. Offline

    Termit

    yea,but if type /e, you will appear and the minecart will roll. Only announcement not work.
     
  5. Offline

    DjDCH

    Acknowledge. I will investigate.
     
  6. Offline

    riotherio

    Hi, when i install this plugin, i get the error that this jar file does not contain plugin.yml, it's wird...:eek:
     
  7. Offline

    TravitoDLM

    DjDCH,

    I love this plugin because I don't want my users to have to remember a bunch of /st values, but for a few MCM versions now, the station signs haven't worked at all for me. I've updated the config file with the new default and upgraded the plugin, but for the last several releases of CB, MCM and NS, I can get the announcements and the prompt for exit messages fine. It accepts my choice to exit but upon hitting the block, MCM asks me to tap the direction I wish to go. It should be noted that I use the whole MCM suite, except autocart, because my stationmasters use all of its functionality.

    Any advice? I can let you into my server if you want to diagnose it.
     
  8. Offline

    DragonMasterNYC

    I've been looking for a plugin like this to simplify the making of stations without the need for all the extra work since most of my users and admins don't fully understand how to properly work with red stone circuitry or track mechanics.

    Now I would like to install this plugin, but it needs the Minecart Mania Core which conflicts with some of my plugins. Not to mention every time I've tried it out it's only for one of the plugins like Autocart in the past. Meaning that I would need to remove all controlling blocks from the config or changing their values to blocks that you can't get.

    Right now I use PlgRailBoost in place of Autocart since its only 1 simple plugin. Not to mention I've never had any lag wile using this. Even after months of testing we still aren't sure why Minecart Mania lags our servers even if it was the only thing installed.

    So on that note is it possible to get this plugin without the Minecart Mania Core and without the need for a controlling block like the log. Maybe have it so that if a sign is above, under, or connected to the block below the track it will trigger messages or the track to switch.

    Any help will be appreciated pertaining to this issue, and thank you in advanced.
    Dragon
     
  9. Offline

    Sweet_Mafia

    Are you ever gonna update this plugin to 953?
     
  10. Offline

    DragonMasterNYC

    I'm sure he's a busy man, as an ex-dev I can understand this, but he should at least give us some type of status update.

    But if he can't add what we are looking for, I'll just start a request thread. I Don't mean to bash your plugin DjDCH it has potential.

    I just think it's rude that you've been on as recent as yesterday and haven't even answered a single post.
     
  11. Offline

    lorenzo_p

    here's an idea I had for a plugin, then I found yours. maybe you can use some of these ideas for your plugin, or if you really want to, help me figure out how to write it myself. I'm to new to java. my idea, one button to press at the launch station, then the tracks route in the directions they need to for where you're going.


    not sure what I'm doing wrong, or if it's an outdated plugin, but the normal minecraft booster rails are stopping my cart.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  12. Offline

    Dev

    @DjDCH

    This is consistently one of the last plugins to update to the latest recommended build, which is a real shame, because it's such a simple and useful plugin.
     
  13. can you make it work with 1060
    and add that the player only can go out on a station
     
  14. Offline

    Luzius

    I´ve created an inofficial Update for NextStation.
    It work now for #1060
    (No essential changes at the source atm.. only update to 1060)
    All Credits goes to DjDCH

    NextStation 0.2.2 (Right Click the link and Save as...)
     

Share This Page