Configuring paths #1


  • New
  • Other
Open
Assigned to _ForgeUser7474392
  • _ForgeUser5606773 created this issue Mar 14, 2012

    How do I configure uIRCBridge with the paths feature of CraftIRC? I'm trying to do something like this:

    CraftIRC/config.yml

    paths:
    # Relay chat from uIRCBridge (Herochat - CraftIRC integration) to #testcraft
      - source: 'Global'
        target: 'testcraft-irc'
    # Relay chat from #testcraft to 'Global'
      - source: 'testcraft-irc'
        target: 'Global'
    

    uIRCBridge/config.yml

    uIRCBridge:
      bridges:
        testcraft-irc: Global
    

    Obviously this doesn't work because 'Global' isn't a valid endpoint.

  • _ForgeUser5606773 added the tags New Other Mar 14, 2012
  • _ForgeUser5606773 posted a comment Mar 15, 2012

    Yes, that makes it much clearer. Thank you! However, I'm still having some issues.

    1. ubercraft-bridge to ubercraft-irc does not obey formatting, nor does ubercraft-irc to ubercraft-bridge

    2. My second bridge (Staff channel) doesn't seem to work at all. When it tries to relay from game to irc, nothing happens. When it tries the opposite, this error is outputted in the console:

    2012-03-15 12:40:13 [SEVERE] java.lang.NullPointerException
    2012-03-15 12:40:13 [SEVERE] 	at com.ensifera.animosity.craftirc.CraftIRC.delivery(CraftIRC.java:716)
    2012-03-15 12:40:13 [SEVERE] 	at com.ensifera.animosity.craftirc.RelayedMessage.post(RelayedMessage.java:219)
    2012-03-15 12:40:13 [SEVERE] 	at com.ensifera.animosity.craftirc.RelayedMessage.post(RelayedMessage.java:201)
    2012-03-15 12:40:13 [SEVERE] 	at com.ensifera.animosity.craftirc.Minebot.onMessage(Minebot.java:426)
    2012-03-15 12:40:13 [SEVERE] 	at org.jibble.pircbot.PircBot.handleLine(PircBot.java:1100)
    2012-03-15 12:40:13 [SEVERE] 	at org.jibble.pircbot.InputThread.run(InputThread.java:95)
    2012-03-15 12:40:13 [WARNING] [CraftIRC] error while relaying IRC message: ASdf
    

    uIRCBridge/config.yml

    uIRCBridge:
      bridges:
        ubercraft-bridge: Global
        ubercraft.staff-bridge: Staff
    

    CraftIRC/config.yml

    paths:
      - source: 'ubercraft-bridge'
        target: 'ubercraft-irc'
        formatting:
          chat: '%foreground%%prefix%%sender%%foreground%: %message%'
      - source: 'ubercraft-irc'
        target: 'ubercraft-bridge'
        formatting:
          chat: '%grey%[IRC]%yellow%%sender%%foreground%: %message%'
          
      - source: 'ubercraft.staff-bridge'
        target: 'ubercraft.staff-irc'
        formatting:
          chat: '%green%[STAFF]%prefix%%sender%%o%: %message%' 
      - source: 'ubercraft.staff-irc'
        target: 'ubercraft.staff-bridge'
        formatting:
          chat: '%grey%[IRC]%yellow%%sender%%foreground%: %message%'
    

    Edited Mar 15, 2012
  • _ForgeUser7474392 posted a comment Mar 15, 2012

    Can you change ubercraft.staff-bridge and ubercraft.staff-irc to ubercraft-staff-bridge and ubercraft-staff-irc? Maybe the issue is with the '.' (i don't have how to test it right now).

    I am aware of the lack of formatting support. It will be added in the next few days.

  • _ForgeUser5606773 posted a comment Mar 15, 2012

    Thank you for the quick reply. I tried changing from '.' to '-' and it works now. I'm looking forward to formatting support in the upcoming release. Thank you for this plugin.


To post a comment, please login or register a new account.