[INACTIVE][INFO/MISC] teclp v1.22 - live player updates for tectonicus [531]

Discussion in 'Inactive/Unsupported Plugins' started by wallnuss, Feb 7, 2011.

  1. Offline

    wallnuss

    teclp

    Live player updates for tectonicus

    Version: v1.22

    What does it do? teclp updates the positions of your players on your tectonicus map dynamically.

    ===MAJOR UPDATE COMING SOON===

    Howto:
    • Setup tectonicus:
    • Setup teclp:
      • Download teclp.zip (link further below).
      • Unzip teclp.zip.
      • Copy the content to yout plugins folder.
      • Switch into the plugins/teclp directory and edit the config.yml (More infos under options).
      • Have fun.
    • Options:
      • distance-for-update: Values between 1 to 100, should be good.
        Low values: teclp updates often.
        High values: teclp updates seldom.
        Explanation: If a player moves more then the given distance. All players locations will be updated.
      • worlds:
        Each world for which teclp should create a tectonicus players.js must be specified.
        In the following form.
        Code:
        worlds:
                 world: #First world
                      - '/Path/to/output/'
                     - '/Path/to/second/output/'
                 nether: #Second world
                      - 'C:\Windows\path\to\output\' 
        You can add as many worlds and as many output paths for them as you wish.
      • debug: Default value false.
        If true gives you additional informations about whats happening.

    Features:

    • Live update for players positions (only tectonicus supported).
    • Variable update frequency (distance-for-update).
    • Multiple outputs for one world.
    • Multiple worlds supported.
    Download teclp: Here jar only
    Source Code: github


    Changelog:
    • Version 1.0
      • First public release.
    • Version 1.01
      • Fixed warp/teleport bug.
    • Version 1.10
      • Added cavemap support.
    • Version 1.11
      • Fixed multiple outputs
      • Added multiple worlds (Not yet fully functional)
    • Version 1.2
      • Fixed multiple worlds
      • Added proper error messages.
    • Version 1.21
      • Fixed TSLC
    • Version 1.22
      • some small fixes and refactoring
    Planned/Feature Requests:

    • Hide/display player command. LOW
    • Fixed/Low update frequency for large servers. LOW
    Know Bugs:

    • Depending on the plugin you use, you might need to do a manual reload before teclp sees multiple worlds.
     
    harakiwi, Hrdkr and Steve Cole like this.
  2. Offline

    fulafisken

    Thanks, this is what i've been looking for. Now i just have to get that map generator to work on my headless machine first...
     
  3. Offline

    wallnuss

    What linux are you running ;-) I've written the tutorial so I should be able to help.
     
  4. Offline

    The Fold

    Thanks for this :) I've read your thread over on minecraftforum.net and I'm getting the same problem as a lot of people in that I'm using a VPS with Ubuntu 8.04 x64 and keep getting the error:

    Code:
    Exception in thread "main" java.lang.ExceptionInInitializerError
        at tectonicus.rasteriser.lwjgl.LwjglRasteriser.<init>(LwjglRasteriser.java:101)
        at tectonicus.rasteriser.RasteriserFactory.createRasteriser(RasteriserFactory.java:24)
        at tectonicus.TileRenderer.<init>(TileRenderer.java:147)
        at tectonicus.TectonicusApp.run(TectonicusApp.java:446)
        at tectonicus.TectonicusApp.main(TectonicusApp.java:635)
    Caused by: java.lang.RuntimeException: org.lwjgl.LWJGLException: No display mode extension is available
        at org.lwjgl.opengl.Display.<clinit>(Display.java:136)
        ... 5 more
    Caused by: org.lwjgl.LWJGLException: No display mode extension is available
        at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:641)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:133)
    xvfb-run xrandr produces:

    Code:
    Xlib:  extension "RANDR" missing on display ":99.0".
    RandR extension missing
    If I can get this running headless then it will take the whole render process out of my day :)
     
  5. Offline

    wallnuss

    I know this bug and I have an idea what produces it buuut i don't know yet how to solve it. But i will seee to it.

    There is aproblem between xrandr and xvfb
     
  6. Offline

    Tempelchat

    Works great for me! (win7 x64)

    Autoupdate on the map would be cool.
     
  7. Offline

    wallnuss

    I'm going to think about that but tec is very resource expensiv and it will probably just kill your server if every second the tiles are updated ...
    So if you are using linux you can just run a cronjob every 12h/24h and update your map.
    Under windows I don't know how to accomplish it but just google.
     
  8. Offline

    Hrdkr

    Hey, wallnuss, how fast players' location is getting updated? Also, it shows only logged in users, right?
     
  9. Offline

    wallnuss

    Yeah it shows only logged in players. After one player has moved 10 blocks in one direction all players are updated and you will see the updated positions after pressing f5 on your map. For real live player status there are missing some features on tectonicus side but that as close as I could get.
     
  10. Offline

    Hrdkr

    Oh, I've just tested it and it looks like it updates location immediately! Good. I'm kinda requesting one more option: I have several maps (actually two: one regular and one showing the caves). Snapshots of course are stored in different locations. It would be great if Teclp will update a players' location on all the maps.
    --- merged: Feb 8, 2011 7:17 PM ---
    One finding. If player warps, his location aren't updates.
     
  11. Offline

    wallnuss

    Hm K I will look into it but as soon as he moves it should be updated. I will add the option for multiple outputs tomorrow.
     
  12. Offline

    M1sT3rM4n

    The only thing I am concerned about this is the lag that it might cause. Then again, I haven't really tested this plugin yet so can't speak :p
     
  13. Offline

    wallnuss

    If you are experiencing any lags after actiating teclp just turn up the distance-for-update: variable to somethin like 50 or 100. But general it should not generate any lags becauses it produces not really much overhead, but I don't know how it's scales for really big servers 100+ I will need to look into it, and add a low-update-frequency variable.
     
  14. Offline

    Hrdkr

    Yep, it updates. But sometimes player warps to home and don't move, being AFK.
    No lags on Debian 6.0 x64 have been noticed, works pretty good.
    --- merged: Feb 8, 2011 7:58 PM ---
    Link to this thread is added to Minepedia's Tectonicus article.
     
  15. Offline

    wallnuss

    Hm I'm curious are you doing the rendering process also on your Debian machine ? And if yes is it a headless machine ? Because I Have a lots of users who have problems with tec on debian system. (debian is missing a one line bugfix arrg)
     
  16. Offline

    Hrdkr

    Yes, I'm a running a Debian Squeeze x64 machine for a long time, but it is not headless. Technically it is, but it runs X Server, accessible by XDMCP.
    So, initially I've got a "PBuffer" error, but has quickly resolved that issue, modifying VPS instructions from the Minepedia to my own. And also made an additional how-to there. Seems like it was kind of driver issue. Hope it'll help somebody.
     
  17. Offline

    wallnuss

    Hm could you do me one favour ? could you install xvfb ans give me the output of "xvfb-run -a xrandr" and maybe per mail your xorg.conf ?
     
  18. Offline

    Hrdkr

    Sure. Here it is:
    Code:
    :~$ xvfb-run -a xrandr
    Xlib:  extension "RANDR" missing on display ":99.0".
    RandR extension missing
    Haven't xorg.conf predefined on my machine.
     
  19. Offline

    wallnuss

    K thank you, it seems to be a general problem on all debian 5.0 based distros. I will need to compile xvfb by myself arrg
     
  20. Offline

    Hrdkr

    Squeeze is 6.0, though. I think a hand compile actually will do the trick.
     
  21. Offline

    wallnuss

    ATM I'm compiling xvfb with the ubuntu 10.04 patches. I takes some time but in a few hours I should know more.
     
  22. Offline

    Hrdkr

    Sounds like you are compiling OpenOffice.org packages.
     
  23. Offline

    wallnuss

    Hmph I have to compile the whole xserver arrg and I'm doing it the second time because something was wrong the last time. I Hope that it will work this time...
    --- merged: Feb 9, 2011 8:57 PM ---
    So I have managed to compile it on a Debian Lenny system and updated my tutorial http://www.minecraftwiki.net/wiki/T..._distributions.2C_also_Ubuntu_before_10.04.29
    Have fun and report back.

    Also OrangyTang is working on a Software Renderer, so all this shouldn't be needed soon.
     
  24. Offline

    Hrdkr

    Just have upgraded to the latest teclp. Cave map players' location autoupdate seems isn't working for me, dunno the reason.
    Config is very easy, here it is:
    Code:
    tec-output: "/somepath/minecraft\ map\ snapshots/regular/" #On windows pls escape you backslashes e.g. C:\\bukkit\\ on linux simply /var/www/map/
    distance-for-update: 10 # After how many blocks to update (10 default)
    cave-map: "yes" #yes if you want a second output
    cave-map-path: "/somepath/minecraft\ map\ snapshots/caves/" # For more informations look at tec-output
    On the regular map all is working fine, even after warping.
    Suddenly, I am requesting a feature to have a possibility to define multiple maps for autoupdate. Seems like it may be a regular, a cave map and a night map (and many more can appear in the future) .
     
  25. Offline

    wallnuss

    @Hrdkr I'm planning that feature. Expect it for the next update. It will be integrated along multiworld support.

    Do you need support for multiple worlds or also support for multiple maps of the same world ?

    nvm I will implemening endless output for an endless number of worlds. Yeah


    If you start bukkit you should get a message if teclp has activated cave-map output. It should look like TECLP: Cavemap = yes cavemap-output: /path/to/cavemap/ .
     
  26. Offline

    Hrdkr

    Yep, it did.
    Code:
    TECLP: output: /somepath/minecraft map snapshots/regular/ update each 10.0 blocks
    TECLP: Cavemap = yes cavemap-output: /somepath/minecraft map snapshots/caves/
     
  27. Offline

    wallnuss

    Hm weird but I should be done with the new implementation this evening (UTC+1/GMT)
    --- merged: Feb 12, 2011 6:28 PM ---
    I'm sorry but atm I struggling with yaml (arrrrg), so no update this evening but if I get it to do what I want, teclp will support multiple outputs per world and multiple worlds. Maybe I will giveup on yaml and just go for Java.properties.
     
  28. Offline

    theifdark

    I get this error? I have a 64 bit windows 7

    Feb 13, 2011 11:14:15 PM org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\teclp.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:79)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:117)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:82)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:171)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:158)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:110)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:77)
    ... 8 more
    Caused by: while scanning a double-quoted scalar
    in "<reader>", line 1, column 13:
    tec-output: "C:\Server\maps\world\" #On wind ...
    ^
    found unknown escape character S(83)
    in "<reader>", line 1, column 17:
    tec-output: "C:\Server\maps\world\" #On windows ...
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalarNonSpaces(Scanne
    rImpl.java:1486)
    at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalar(ScannerImpl.jav
    a:1434)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchFlowScalar(ScannerImpl.ja
    va:846)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchDouble(ScannerImpl.java:8
    35)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:343)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    3)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(P
    arserImpl.java:592)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    --- merged: Feb 14, 2011 5:17 AM ---
    my current config is

    tec-output: "C:\Server\maps\world\"

    I also tryed

    tec-output: "C:\Server\maps\world"
     
  29. Offline

    wallnuss

    Yeah that problem is known. You will need to escape your path e.g. "C:\\Server\\maps\\world\\".

    I'm sorry that multiworld support isn't there yet, but I'm ill at the moment and I will see to it when I'm better
     
  30. Offline

    Hrdkr

    No problem, we'll be waiting.
     

Share This Page