Menu

Plugins

S P
2001-09-21
2001-09-28
  • S P

    S P - 2001-09-21

    Hi, i just started Jamud (after having problems with saving chars, but it's fixed now). I was reading the help files and it seems the command, "plugins" doesn't work. Any ideas why this is so? None of the plugins i have are initiating.

    Thanks in advance.

     
    • Christopher (siege) O'Brien

      Yo,

      have you made sure that the comment tags surrounding the entries in jamud.xml are removed?

      And what is/isn't the command doing? Is there any output at all? If you're able to log in, that means at least one plugin must be working (the Standard Server), and if you're using commands then the Standard Commands plugin must be working.

      -siege

       
      • S P

        S P - 2001-09-23

        Yeah, i did remove the comments tag so that the plugins would get loaded. For instance, I downloaded the Snoop plugin, uncommented the tag that would load it, and ran the mud. Doing "help plugins" (in the mud), i assume tells you how to start, list... the plugins (says in the help file), but the command "plugins" doesn't work. I tried the example listed in the help file and mud won't recognize the command.

         
        • Christopher (siege) O'Brien

          plugins is a granted command.

          In your playerfile there's a section entitled "COMMANDS", add "plugins;" to the end of that list, and you should be good to go. You might also want to add "boot;"

          This is what you want to have:

          <COMMANDS>boot;plugins;</COMMANDS>

           
    • S P

      S P - 2001-09-24

      K, thanks. I made the changes and now i can use the plugins command.

      For jamudsnoop, i read the use.txt file and uncommented the it so it loads. But it seems that it's not loading (where should i place the /src dir it comes with it). I tried doing "plugins start jamudsnoop"  (and a bunch of other names like "snoop"...) but that didn't work either. Any ideas?

      Thanks again.

       
      • Christopher (siege) O'Brien

        the plugin command uses the index of the plugin as the identifier to start/stop or get info about it.

        Do a "plug list" and then find out what number jamudsnoop is. Then just "plug start x" where x is that number.

        Also, if you're doing this on a *nix machine, make sure your DISPLAY environment variable is set, or java won't be able to find any place to draw the GUI for that particular plugin. On windows, you shouldn't have any problem at all.

        -siege :-)

         
        • S P

          S P - 2001-09-24

          The problem isn't starting it on the list, it won't even show up. I'm using Windows ME, and have the mud stored in C:\jamudxml. No matter where i place the files from jamudsnoop, it won't load the pluging (i also tried chaning the directory for it to look for). For now, i made a new folder in C:\jamudxml named plugins, then put all of the files for Jamudsnoop in it (it has a subfolder of C:\jamudxml\plugins\src, where the source files are).

          Thanks

           
          • Christopher (siege) O'Brien

            The jamudsnoop.jar file is the only one you should be concerned with in attempting to load the snoop plugin.

            The plugin tag has a CLASS, JAR, and AUTO attributes.

            CLASS is the name of the class which is the plugin

            JAR is the filename of a jar containing the CLASS listed above. This is optional. If you have the class specified in the CLASS param in your classpath, you don't need to tell it to load it from a jar file, but if you attempt to load a CLASS not in the classpath, and don't list a jarfile, you'll see an error about unable to load a class.

            AUTO is either true or false (defaults to false). This means "does this plugin start automatically".

            So you're saying that the plugin isn't loading at all. Are you telling me that there's an error message on the jamud console? Because there are two possibilities in loading a plugin; it'll either succeed, or it'll fail and the mud won't start. If the mud is starting, I'd re-examine the jamud.xml ini file to ensure that everything's kosher.

            What is the *exact* PLUGIN entry for jamudsnoop that you're using?

             
            • S P

              S P - 2001-09-28

              I have,

              <PLUGIN CLASS="com.jamu
              d.plugins.jamudsnoop.JamudSnoop" JAR="plugins/jamudsnoop.jar" AUTO = "true" />

              in jamud.xml

              I saved the jamudsoop.jar file in c:\jamudxml\plugins\jamudsnoop.jar

              I then load the mud, (it does load, no errors)
              do
              "plugins" it shows:

              Currently Loaded Plugins
              [0] Jamud Standard Commands          STARTED
              [1] Jamud Standard Server            STARTED

              It doesn't even list the jamudsnoop plugin to start it.

              -linner

               
              • Christopher (siege) O'Brien

                Gotta say, I'm stumped. I just downloaded a fresh version of all the associated stuff, unzipped and uncommented, and it's all there. I tried screwing with small parts that might cause problems, and they all resulted in fatal errors. I just can't seem to replicate the problem.

                Only thing I can think to ask is what JRE you're using.
                After that I can just say "good luck debugging", because I don't have a win2K box to try and test this on.

                 
    • S P

      S P - 2001-09-24

      oh yeah, does it make a difference if i have, AUTO = "TRUE", in there or not? The use.txt file doesn't have it, but the original jamud.xml that told me to just remove the comment tags does. I tried both ways, still didn't work.

       

Log in to post a comment.

MongoDB Logo MongoDB