Jump to content




[MC 1.4.6/1.4.7][CC 1.48/1.481][SP/MP]Operator Panel is back(need bukkit porter)


60 replies to this topic

#41 iRiky

  • Members
  • 24 posts

Posted 16 July 2012 - 09:19 AM

i have a problem with a small program
os.loadAPI("/rom/apis/op")
op.open(op.getSide())
local gen=math.random(1,37)
if gen=="1" then op.spawnItemAtPos(-134,66,797,125)
elseif gen=="2" then op.spawnItemAtPos(-134,66,797,125:1)
elseif gen=="3" then op.spawnItemAtPos(-134,66,797,125:2)
elseif gen=="4" then op.spawnItemAtPos(-134,66,797,125:4)
elseif gen=="5" then op.spawnItemAtPos(-134,66,797,125:5)
and i always get
bios:206: [string "random"] 5: ")" expected
could the program spawn blocks like 125:9 or like so ??

#42 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 16 July 2012 - 10:36 AM

Gen is never a string
if gen=="1" then [...]
remove the "

#43 iRiky

  • Members
  • 24 posts

Posted 16 July 2012 - 12:03 PM

ok but this don't change anything i still get the same error D:

#44 iRiky

  • Members
  • 24 posts

Posted 17 July 2012 - 09:32 AM

what i can do to solve this problem ???

#45 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 17 July 2012 - 12:31 PM

Unless your program is called bios the problem is not on your side. AT least not directly.

Try replacing the line
local gen=math.random(1,37)
with
local gen = 3

Do you sill get an error?

YES --> Then the problem seems to be in a wrong call of functions
op.spawnItemAtPos()
or in the code of these functions (Error not on your side)

NO --> Then the problem seems to be in a wrong call of functions

math.random(1,37)

or in the code of these functions (Error not on your side)

#46 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 17 July 2012 - 04:40 PM

The error is really obvious:
op.spawnItemAtPos(-134, 66, 797, 125:1)
Why did you put a colon there? It should be:
op.spawnItemAtPos(-134, 66, 797, 125, 1)


#47 xuma202

  • Members
  • 288 posts
  • LocationBonn Germany

Posted 17 July 2012 - 06:56 PM

Well sometime you cannot see the wood for the trees. :P/>

#48 iRiky

  • Members
  • 24 posts

Posted 23 July 2012 - 12:17 PM

MysticT i love you xD :)/>

#49 allquan

  • Members
  • 34 posts

Posted 24 July 2012 - 11:51 AM

here is something more, that you can do with this addon :)/>



#50 Corbald

  • Members
  • 19 posts

Posted 06 August 2012 - 02:42 AM

Nevermind, I see what's going on, now. I thought you were using the OP to sense something then display the results with something like the GL monitors.. I see that you are using it to replace the blocks in the display with blocks with another texture.

#51 Sariaz

  • Members
  • 107 posts

Posted 23 September 2012 - 07:49 AM

AMAZING can't wait to finish normal computercraft ideas then ill be able to have a changeable arena, insta refilling spleef, easy randomly generated maze, you could also build a random ore generator and have fun excavating, and have it place in spawners if u want a non pvp arena SO AWESOME great add-on!!!!!

#52 BrolofTheViking

  • Members
  • 55 posts

Posted 14 October 2012 - 03:27 PM

Is this going to be updated at some point?

Because this is awesome, and I would really love to use it on a server I host

#53 sylphio

  • Members
  • 20 posts

Posted 25 January 2013 - 05:37 PM

thank you for the peripheral :-)

Just found a bug.. if any player wrote something that begin with a single c on his chat line.
This mod create a out of stream.



23:35:44
CONSOLE:
[INFO] java.lang.StringIndexOutOfBoundsException: String index out of range: 2


23:35:44
CONSOLE:
[INFO] at java.lang.String.substring(Unknown Source)


23:35:44
CONSOLE:
[INFO] at louitzie.OP.OP.serverChat(OP.java:70)


23:35:44
CONSOLE:
[INFO] at cpw.mods.fml.common.network.NetworkRegistry.handleChat(NetworkRegistry.java:327)


23:35:44
CONSOLE:
[INFO] at cpw.mods.fml.common.network.FMLNetworkHandler.handleChatMessage(FMLNetworkHandler.java:400)


23:35:44
CONSOLE:
[INFO] at iv.a(NetServerHandler.java:706)


23:35:44
CONSOLE:
[INFO] at cu.a(SourceFile:44)


23:35:44
CONSOLE:
[INFO] at cg.i(TcpConnection.java:347)


23:35:44
CONSOLE:
[INFO] at cg.c(TcpConnection.java:544)


23:35:44
CONSOLE:
[INFO] at ch.run(SourceFile:93)


23:35:44
CONSOLE:
Dralic has left.


23:35:44
CONSOLE:
[INFO] Dralic lost connection: disconnect.genericReason


23:35:44
CONSOLE:
[INFO] Unloading Player: Dralic

#54 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 08 February 2013 - 06:23 AM

ID conflict within IC2 and the config dont change the id, no apand no help file when installed SSP 1.46 CC 1.481

#55 allquan

  • Members
  • 34 posts

Posted 08 February 2013 - 10:06 PM

Yes finaly! Now i can use my Holodeck again :) Thank you

Suggestion: Could it be possible to teleport a player to another Dimension?

#56 bobster71

  • Members
  • 36 posts

Posted 09 February 2013 - 05:20 PM

Hey, I like this mod heaps but I haven't been able to get it working in MC147 yet. I have tried everything, I think its conflicting with ic2's id's. You need to add a config file or change the id. I would realy like to get it working.
Keep it coming.
Bobster71

#57 ds84182

  • Members
  • 184 posts

Posted 09 March 2013 - 09:06 AM

View Postlouitzie, on 28 April 2012 - 09:21 AM, said:

/
\

#58 Raznog

  • New Members
  • 1 posts

Posted 12 March 2013 - 10:06 AM

bukkit porting is not needed anymore just download the mcpc realse and place the mod in the mods folder

#59 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 23 March 2013 - 04:07 PM

Will this work on CC versions higher than 1.48?

#60 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 23 March 2013 - 04:12 PM

Apparently not.. Since my MC crashed..





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users