Jump to content


unknown1138's Content

There have been 11 items by unknown1138 (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#44536 [ERROR][Tekkit server 3.1.2] Need help updating

Posted by unknown1138 on 26 October 2012 - 02:10 PM in General

Hey all,

I tried updating my computercraft 1.3 to the latest version of CC, but when I try to launch my tekkit server once I replaced the mod files, it gives me this error in the launcher.

2012-10-26 15:59:38 [SEVERE] java.lang.NoClassDefFoundError: afu
2012-10-26 15:59:38 [SEVERE]  at java.lang.ClassLoader.defineClass1(Native Method)
2012-10-26 15:59:38 [SEVERE]  at java.lang.ClassLoader.defineClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.security.SecureClassLoader.defineClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader.defineClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader.access$100(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader$1.run(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader$1.run(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.security.AccessController.doPrivileged(Native Method)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader.findClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.ClassLoader.loadClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.ClassLoader.loadClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.ClassLoader.defineClass1(Native Method)
2012-10-26 15:59:38 [SEVERE]  at java.lang.ClassLoader.defineClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.security.SecureClassLoader.defineClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader.defineClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader.access$100(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader$1.run(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader$1.run(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.security.AccessController.doPrivileged(Native Method)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader.findClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.ClassLoader.loadClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.ClassLoader.loadClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.Class.getDeclaredConstructors0(Native Method)
2012-10-26 15:59:38 [SEVERE]  at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.Class.getConstructor0(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.Class.newInstance0(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.Class.newInstance(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at cpw.mods.fml.common.modloader.ModLoaderModContainer.preInit(ModLoaderModContainer.java:107)
2012-10-26 15:59:38 [SEVERE]  at cpw.mods.fml.common.Loader.preModInit(Loader.java:235)
2012-10-26 15:59:38 [SEVERE]  at cpw.mods.fml.common.Loader.loadMods(Loader.java:607)
2012-10-26 15:59:38 [SEVERE]  at cpw.mods.fml.server.FMLBukkitHandler.onPreLoad(FMLBukkitHandler.java:134)
2012-10-26 15:59:38 [SEVERE]  at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:135)
2012-10-26 15:59:38 [SEVERE]  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438)
2012-10-26 15:59:38 [SEVERE]  at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
2012-10-26 15:59:38 [SEVERE] Caused by: java.lang.ClassNotFoundException: afu
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader$1.run(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader$1.run(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.security.AccessController.doPrivileged(Native Method)
2012-10-26 15:59:38 [SEVERE]  at java.net.URLClassLoader.findClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.ClassLoader.loadClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  at java.lang.ClassLoader.loadClass(Unknown Source)
2012-10-26 15:59:38 [SEVERE]  ... 36 more
2012-10-26 15:59:38 [SEVERE] Unexpected exception
java.lang.NoClassDefFoundError: afu
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at cpw.mods.fml.common.modloader.ModLoaderModContainer.preInit(ModLoaderModContainer.java:107)
at cpw.mods.fml.common.Loader.preModInit(Loader.java:235)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:607)
at cpw.mods.fml.server.FMLBukkitHandler.onPreLoad(FMLBukkitHandler.java:134)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:135)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.ClassNotFoundException: afu
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 36 more
2012-10-26 16:00:26 [INFO] Stopping server
2012-10-26 16:00:26 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
2012-10-26 16:00:26 [SEVERE]  at java.util.ArrayList.rangeCheck(Unknown Source)
2012-10-26 16:00:26 [SEVERE]  at java.util.ArrayList.get(Unknown Source)
2012-10-26 16:00:26 [SEVERE]  at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:424)
2012-10-26 16:00:26 [SEVERE]  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497)
2012-10-26 16:00:26 [SEVERE]  at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

Anyone knows how I can update my CC or how to fix this?

Kind regards,
unknown1138



#44528 Need some help 'end' expected (to close 'while' at line 3)

Posted by unknown1138 on 26 October 2012 - 01:30 PM in Ask a Pro

x = 0
if rs.getInput("top") then
while x ~= 13 do
  rs.setOutput("left",true)
  sleep(0.5)
  rs.setOutput("left",false)
  sleep(0.5)
  x = x+1
end
end

I think this script will do the trick :D/>



#44522 Need some help 'end' expected (to close 'while' at line 3)

Posted by unknown1138 on 26 October 2012 - 01:20 PM in Ask a Pro

Post your whole script or tell me what you want your script to do



#44519 Need some help 'end' expected (to close 'while' at line 3)

Posted by unknown1138 on 26 October 2012 - 01:11 PM in Ask a Pro

x = 13
if rs.getInput("top") then
while x >= 0 do
  rs.setOutput("left", true)
  sleep(0.5)
  rs.setOutput("left", false)
  sleep(0.5)
  return x = x - 1
  else os.reboot()
end
end

Please use code tags next time :D/>

The problem is that you are using an else while there is no if, you can't do that.



#44514 I need some halp! D:

Posted by unknown1138 on 26 October 2012 - 12:59 PM in Ask a Pro

A simple way of doing this automatically is by putting a turtle next to a disk drive which has a floppy with a file named startup (once you rclick on the turtle it will start and load that script).

This is one of my startup scripts so you can just edit it.
-- this will copy the file startup onto the turtle
if not fs.exists("startup") then
   fs.copy("disk/startup","startup")
end
-- this works the same as above but for the file receive.
if not fs.exists("receive") then
   fs.copy("disk/receive","receive")
end

-- this will open the rednet on your turtle automatically
rednet.open("left")
-- this will make the shell run the program receive
shell.run("receive")



#44510 [LUA/Java][ERROR] Program returns 38 as value and error in CMD

Posted by unknown1138 on 26 October 2012 - 12:41 PM in Ask a Pro

Hey all, I've written this script an for some reason I'm getting a java error on my server CMD and at my client's computer screen I get the value 38 returned when I start this script.

Could anyone tell me what is wrong with the script?

Screenshots
Spoiler

I'm using

Tekkit server 3.1.2

-- variables --
id = 0
state = 0
active = true
---------------
-- functions --
local function cl()
term.clear()
end
local function cp(a,B)/>/>
term.setCursorPos(a,B)/>/>
end
active = true
state = 0
while active == true do
while state == 0 do
  cl()
  cp(1,1)
  textutils.slowWrite("Please enter the ID to connect with.")
  cp(1,3)
  textutils.slowWrite("Computer ID: ")
  sleep(0.5)
  cmd = read()
  if tonumber(cmd) > 0 then
  id = cmd
   cp(1,4)
   textutils.slowWrite("Connecting with ID "..id..".")
   sleep(2)
   state = 1
  else
   cp(1,4)
   textutils.slowWrite("ID must be a number!")
   sleep(1)
   state = 0
  end
end
while state == 1 do
  cl()
  cp(1,1)
  print(":D/>/>_:)/>/>_:D/>/>_:)/>/>_:)/>/>_:)/>/>_-_")
  cp(1,2)
  print("-_ ELEVATOR CPP vBeta.1 -_")
  cp(1,3)
  print("-_-/>/>_-_-/>/>_-_-/>/>_-_-/>/>_-_-/>/>_-_-/>/>_-_")
  cp(1,5)
  write("CMD: ")
  comd = read()
  if comd == "up" then
   rednet.send(id,"up")
   cp(1,6)
   print("Command sent.")
  end
  if comd == "exit" then
   cp(1,6)
   textutils.slowWrite("shutting down...")
   sleep(2)
   cl()
   cp(1,1)
   print(":OS ROOT:")
   cp(1,3)
   active = false
  end
end
end

Thanks in advance



#44057 Place stairs in particular direction

Posted by unknown1138 on 24 October 2012 - 11:54 PM in Ask a Pro

View PostLyqyd, on 24 October 2012 - 09:45 PM, said:

What version of ComputerCraft are you using?

Version 1.3



#43973 Place stairs in particular direction

Posted by unknown1138 on 24 October 2012 - 07:53 PM in Ask a Pro

@Ditto

Quote

This is a possible solution. I am sure there are others, but I don't know what would work best for you. It seems like you have a grasp on it though.


Well I'm not really focusing on anything related to this, for now, but knowing this allows me to make some cool stuff ^_^/>



#43969 Place stairs in particular direction

Posted by unknown1138 on 24 October 2012 - 07:39 PM in Ask a Pro

@Ditto

turtle a pulls value
turtle b pulls value
turtle a puts new value back
turtle b is now running off the wrong value...

Couldn't this be solved by making the host send a signal through rednet to both turtles (when a value is modified) which checks wether the value is the same as in the host and if there is a difference to force the other turtle to "reboot" with the new value?

For future reference, you would want to use e.g. instead of i.e.
i.e. is a clarification or more detail
e.g. is an example

Didn't know about that, thanks.



#43954 Place stairs in particular direction

Posted by unknown1138 on 24 October 2012 - 07:16 PM in Ask a Pro

Well I have tried that, but it didn't work sadly. thanks though ^_^/>
Maybe someone else knows how to do this?

View PostOmegaVest, on 24 October 2012 - 07:04 PM, said:

I'm not sure, but I think down does not work quite right with rotation. Try (if you can) having it face the way you want them to face, and then place it in front of the turtle. I don't know this works, cause I've only really dealt with shells and things, but it might.

P.S. just a quick side-question, is it possible to "store" a variable so that multiple scripts can see the variable?
I.E. a stand-alone file that contains certains variables that other scripts can read (something like functions)



#43949 Place stairs in particular direction

Posted by unknown1138 on 24 October 2012 - 06:59 PM in Ask a Pro

Hey all,

I've been messing around with wireless turtles a bit and came up with the idea to make house-building programs and ran into some trouble.

The problem is that when I use
turtle.placeDown(turtle.select(2)) --slot 2 = stairs

that the turtle only places the stairs in one particular direction (north I guess).

now I want to know (if it is possible) how to place the stairs in different directions.
I tried it with turning the turtle in a different direction but this makes no difference.

Kind Regards,
unknown1138