• 0

    posted a message on Direwolf20's Modded Lets Play series
    There seems to be a problem with turtles, i created a mining turtle and told it to tunnel it went through the first steps moved forward and froze my game.here is the info from the error log
    2013-12-13 18:31:05 [WARNING] [Minecraft-Server] Can't keep up! Did the system time change, or is the server overloaded?2013-12-13 18:31:10 [INFO] [STDOUT] computercraft: Error running task.2013-12-13 18:31:10 [INFO] [STDERR] java.lang.ThreadDeath2013-12-13 18:31:10 [INFO] [STDERR] at java.lang.Thread.stop(Unknown Source)2013-12-13 18:31:10 [INFO] [STDERR] at dan200.computer.core.ComputerThread$1.run(ComputerThread.java:153)2013-12-13 18:31:10 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)2013-12-13 18:31:16 [FINE] [NEIPlugins] IItemListLoaded.onItemListLoaded(): Furnace Fuel fix (FurnaceRecipeHandler)2013-12-13 18:31:16 [FINE] [NEIPlugins] FirstTickHandler - client side finish2013-12-13 18:31:20 [INFO] [ForgeModLoader] [PfF]: Parsing 0xFF3232322013-12-13 18:33:59 [INFO] [Minecraft-Client] [CHAT] Giving Cravingpine 1 of Diamond Pickaxe +5 Attack Damage2013-12-13 18:34:34 [INFO] [ForgeModLoader] [THAUMCRAFT] Restoring client configs.2013-12-13 18:34:34 [INFO] [MapWriter] connection closed2013-12-13 18:34:34 [INFO] [MapWriter] waiting for 212 tasks to finish...2013-12-13 18:34:36 [INFO] [MapWriter] done
    although here is the previous crash
    2013-12-13 18:14:30 [WARNING] [Minecraft-Server] Can't keep up! Did the system time change, or is the server overloaded?2013-12-13 18:14:30 [WARNING] [OpenBlocks] Trying to propagate invalid map data 02013-12-13 18:14:41 [FINE] [NEIPlugins] IItemListLoaded.onItemListLoaded(): Furnace Fuel fix (FurnaceRecipeHandler)2013-12-13 18:14:41 [FINE] [NEIPlugins] FirstTickHandler - client side finish2013-12-13 18:15:10 [INFO] [ForgeModLoader] [PfF]: Parsing 0xFF3232322013-12-13 18:15:13 [INFO] [Minecraft-Client] [CHAT] Giving Cravingpine 64 of Block of Coal2013-12-13 18:16:00 [WARNING] [Minecraft-Server] Can't keep up! Did the system time change, or is the server overloaded?2013-12-13 18:17:33 [INFO] [ForgeModLoader] InvTweaks: net.minecraft.client.gui.GuiTextField2013-12-13 18:17:33 [INFO] [ForgeModLoader] InvTweaks: successfully transformed setFocused/func_73796_b2013-12-13 18:18:41 [INFO] [ForgeModLoader] [THAUMCRAFT] Restoring client configs.2013-12-13 18:18:41 [INFO] [MapWriter] connection closed2013-12-13 18:18:41 [INFO] [MapWriter] waiting for 208 tasks to finish...2013-12-13 18:18:43 [INFO] [MapWriter] done
    i am thoroughly stumpedthe Giving Cravingpine 64 of Block of Coal was me testing the turtle. because the previous crash didnt keep my turtle's label. also it took away its diamond pick i had on it.UPDATE: i cheated in a turtle and all is good. seems to have a problem if i craft one legit
    Posted in: Let's Plays
  • 0

    posted a message on ComputerCraft Program Library
    Quote from xlilcasper

    Here is my network code using bundled cables. This uses cables 0-9 leaving 7 other cables still useable in the same bundle.


    --[[
    Network API by XLilCasper. Original idea from D0han
    All API can be accessed directly or though network.
    Basic useage is
    network.sendStr(0xFF,"Hello World")
    Will send Hello World to all connected computers that are listening
    To set your computer to listen use
    local data = network.waitForData()

    You can set your computers network ID with
    network.setid(XXX) where XXX is a number 0-254, computers default to an ID of 0.

    Finaly by default data is sent out the back. You can change this with
    network.setDataSide(side)

    --]]

    sDataSide = "back"
    computerid = 0x00
    fThrottle = 0.2 --This was the fastest that worked for me. This gives us 5 Bps or 40 bps

    Dec2BinTable = {}
    b = {}

    packetHeaders = {
    ['trans'] = {0x1, 0x11},
    }
    ------------borrowed code------------------------
    for n=1,8 do
    table.insert(b, 0)
    end
    for n=0,255 do
    table.insert(Dec2BinTable, 0)
    Dec2BinTable[n] = b[1] .. b[2] .. b[3] .. b[4] .. b[5] .. b[6] .. b[7] .. b[8]
    b[8] = b[8] + 1
    for n2=1,7 do
    if b[9-n2] == 2 then
    b[9-n2] = 0
    b[8-n2] = b[8-n2] + 1
    end
    end
    end
    ------------end of borrowed code------------------
    function getDataClock()
    return rs.testBundledInput(sDataSide,256)
    end

    function networkReady()
    os.startTimer(3*fThrottle)
    event = os.pullEvent()
    if event == "redstone" and getDataClock() then
    return false
    elseif event =="timer" then
    return true
    end
    end

    function sendByte(byte)
    local bits = Dec2BinTable[byte]
    local wires=0
    for n=0,7 do
    if (string.sub(bits,n+1,n+1) == "1") then
    wires = wires + (2^(7-n))
    end
    end
    rs.setBundledOutput(sDataSide,wires+256)
    sleep(fThrottle)
    rs.setBundledOutput(sDataSide,0)
    sleep(fThrottle)
    end

    function readByte(timeout)
    if (timeout) then
    timeStarted = false
    os.startTimer(timeout/2)
    end
    while true do
    event, param = os.pullEvent()
    if event == "key" and param == 197 then --Exit on pause/break
    return "Exited"
    elseif event == "redstone" then
    --print("Redstone - " .. rs.getBundledOutput(sDataSide))
    if getDataClock() then --Clock fired
    --print("clock fired")
    local byte=0
    for n=0,7 do
    if rs.testBundledInput(sDataSide,2^n) then byte=byte+(2^n) end
    --print("Bit " .. n .. "= " .. tostring(rs.testBundledInput(sDataSide,2^n)))
    end
    return tonumber(byte);
    end
    elseif event =="timer" and timeStarted and timeout then
    break
    elseif event =="timer" and timeout then
    timeStarted=true
    os.startTimer(timeout/2)
    end

    end
    return nil
    end

    function sendStr(addr, data, tries)
    tries = tries or 3
    while not networkReady() do
    sleep(3*fThrottle)
    end
    sendByte(0x01)
    sendByte(0x11)
    sendByte(addr)
    sendByte(#data)
    sendByte(0x02)
    for n=1,#data do
    sendByte(string.byte(string.sub(data, n,n)))
    end
    sendByte(0x04)
    --print("Data sent, wait for ack")
    local ack = readByte(10*fThrottle)
    if ack then
    if ack == 0x06 then
    --print("Got ack")
    return true
    elseif ack == 0x15 then -- failed, try a resend
    --print("Got failed")
    tries=tries-1
    if (tries <=0) then
    return false
    else --We still have tries left, retry
    return sendStr(addr,data,tries)
    end
    else --Unknown error, abort.
    --print("Got unknown " .. ack)
    return false
    end
    else
    --We timed out
    return false
    end
    end

    function waitForData()
    local bExit = false
    local packs = { 0x00, 0x00}
    while not bExit do
    event, param = os.pullEvent()
    if event == "key" and param == 197 then --Exit on pause/break
    bExit = true
    end
    newByte = readByte()
    --print("got byte " .. tostring(newByte))
    if newByte then
    table.remove(packs, 1)
    table.insert(packs, newByte)
    for index, val in pairs(packetHeaders) do
    if (packs[1] == val[1]) and (packs[2] == val[2]) then
    newByte = readByte()
    if (newByte == computerid) or (newByte == 0xff) then --It is our id or it is a broadcast
    if (val[2] == packetHeaders["trans"][2]) then --Incomeing trasnmition
    --print("Incoming data")
    local str = readPacket()
    return str
    end
    end
    end
    end
    end
    sleep(0.1)
    end
    end

    function readPacket(len)
    local failed = 0
    if not len then
    len = readByte() -- if we don't have a lenght it should be the next byte
    end
    --verify that the next byte is 0x02 and that our text is starting. This is here so we can have larger then 255 packets later
    if (readByte() == 0x02) then
    packet = {}
    for n=1, len do
    table.insert(packet, readByte())
    end
    --we are done getting our string next byte should be the end transmition
    endByte = readByte()
    if endByte and endByte == 0x04 then
    sleep(3*fThrottle)
    sendByte(0x06)
    --Convert back to a string
    local str = ""
    for index, val in ipairs(packet) do
    str = str .. string.char(val)
    end
    return str
    else
    sendByte(0x15) --send transmition failed.
    return false
    end
    else
    return nil
    end
    end

    --Create API
    network = {
    ["setid"] = function( _id )
    computerid=tonumber(_id)
    end,
    ["getid"] = function( )
    return computerid
    end,
    ["sendStr"] = function( _addr, _data, _tries )
    return sendStr(_addr, _data, _tries)
    end,
    ["waitForData"] = function( )
    return waitForData()
    end,
    ["sendByte"] = function( _byte )
    return sendByte(_byte)
    end,
    ["readByte"] = function( _timeOut )
    return readByte( _timeOut )
    end,
    ["getDataSide"] = function( )
    return sDataSide
    end,
    ["setDataSide"] = function( _side )
    sDataSide = _side
    end,
    }



    Anyway of doing this using observer patter, or and event type system, where the program can still recieve input while waiting for incoming data???
    Posted in: Mods Discussion
  • 0

    posted a message on ComputerCraft Program Library
    here is some bitwise operators for computer craft.. this is part of my dev library im using to create a router machine for internet sytle communications between several computers via bundledcables

    i didnt write these, found them on some website

    function bit(p)
        return 2 ^ (p - 1)  -- 1-based indexing
    end
    
    -- Typical call:  if hasbit(x, bit(3)) then ...
    function hasbit(x, p)
        return x % (p + p) >= p       
    end
    
    function setbit(x, p)
        return hasbit(x, p) and x or x + p
    end
    
    function clearbit(x, p)
        return hasbit(x, p) and x - p or x
    end
    
    function bitor(x,y)
        local p = 1; local z = 0; local limit = x > y and x or y
        while p <= limit do
            if hasbit(x, p) or hasbit(y, p) then
                z = z + p
            end
            p = p + p
        end
        return z
    end
    Posted in: Mods Discussion
  • 2

    posted a message on [1.8.1] Moar Diamonds!!
    Quote from the2b

    it has a password to prevent leeching. I used to do a lot of BitTorrent filesharing, and it always got leeched. this is to prevent that. I joined yesterday because I had just created a mod that i wanted up here for others to use, and i needed to join for that. I'll be posting a video of this (and my other mod, Everlit Mines) on my youtube channel, possibly on this post, when i get a chance. just haven't yet.

    sorry, looks good, havnt tried it, you should put a note around the download link stating the reason for the password. i officially withdraw my previous jaded comments. is this your first mod. if so keep up the learning process. im working on a project in development right now. pm me for details if you want
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.8.1] Moar Diamonds!!
    not going to use
    here is why:

    1. password protected epic fail
    2. you joined yesterday
    3. no solid proof, i.e. pics

    imho Unsuccessful troll is Unsuccessful

    ib4 mispelling

    edit however i do like that you included the original unmodified? class for easy mod removal.
    Posted in: Minecraft Mods
  • 0

    posted a message on Risugami's Mods - Updated.
    Quote from Darrk Harris

    Having same issue but with linux mint.


    ok i removed openjdk, installed sun java, finally got an explanation

    Exception in thread "Minecraft main thread" java.lang.NoClassDefFoundError: ModLoader
    	at aam.<init>(aam.java:61)
    	at aam.<clinit>(aam.java:10)
    	at net.minecraft.client.Minecraft.a(SourceFile:259)
    	at l.a(l.java:28)
    	at net.minecraft.client.Minecraft.run(SourceFile:629)
    	at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.ClassNotFoundException: ModLoader
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    	... 6 more


    for some reason using file roller it copies everything but modloader.class

    Fixed i installed mc (midnight commander) and copied from one archive to the minecraft.jar it all works now, seems to be an error with File Roller!!!
    Posted in: Minecraft Mods
  • 0

    posted a message on Risugami's Mods - Updated.
    Ok Removed .minecraft folder completely reinstalled minecraft, ran game it works, installed modloader, and yes i removed the META folder from jar. ran minecraft again and it freezes on the logo screen. i am using sun java 6, on ubuntu 11.04. if that helps any, i cannot get the launcher to run from cli so capturing system.out output is moot. i dint know if this is a linux thing or the same for everyone
    Posted in: Minecraft Mods
  • 0

    posted a message on Sugar Cane On Sand
    Quote from Nbord

    Already posted, about 20 minutes ago, here.

    [Edit for Discussion] I like them this way. It seems more realistic to me.

    Agreed sorry i got excited should have searched posts first
    Posted in: 1.8 Update Discussion
  • 0

    posted a message on Sugar Cane On Sand
    Can plant reeds or sugar cand on sand now



    also love the exanded biomes, they are freaking huge
    Posted in: 1.8 Update Discussion
  • 0

    posted a message on is it possible to input a directly into playerCloakUrl as a value?
    Quote from DeCoolJB

    He's a friend of mine that wants me to finish the mod :smile.gif:
    But anyways, I seriously need this code

    I'm using MCP but I can't reobfuscate and that crap. Even though I bind the environment path or whatever it is it won't work. I had another friend send me the decompiled Minecraft.jar
    That means I can't recompile it. That means I can't test.

    So please, could you help someone who wants to finish this :smile.gif:


    Try Somthing Like File.ToUri.ToUrl()
    Posted in: Mods Discussion
  • 0

    posted a message on [1.7.3] Aether Collaboration Mod - V1.02 - NEW MOBS, FIXES, ITEMS AND FEATURES!
    also blue slimes drop aare fun
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.7.3] Aether Collaboration Mod - V1.02 - NEW MOBS, FIXES, ITEMS AND FEATURES!
    A couple of issues, first slowsand seems to have been replaced with gravel, when i go to the nether and return through my portal it creates a new portal in the normal world, also when i die in the aether, it spawns me in the nether, under a lava fall. very frustrating
    Posted in: Minecraft Mods
  • 0

    posted a message on is this a dungeon bug
    Here is an underwater dungeon

    seed -6682181093681531192
    location 41,71,-4
    also there are some floating land around the area
    Posted in: Survival Mode
  • 1

    posted a message on is this a dungeon bug
    Quote from Frostbite

    Probably faked, you can tell because the floors aren't completely mossy cobblestone


    dungeon floors arenot completely mossy cobble anyways
    Posted in: Survival Mode
  • 0

    posted a message on is this a dungeon bug
    yes seed plox!
    Posted in: Survival Mode
  • To post a comment, please .