This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
louitzie's profile picture

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

Started by louitzie, 28 April 2012 - 08:11 AM
louitzie #1
Posted 28 April 2012 - 10:11 AM
Hello everyone

This is my first peripheral

It can be used to interact with the minecrraft world

Features

type help op for all features
here are some pictures




the recipe


place the op panel like the wireless modem and it will work

in multiplayer you'll need to click the block to make sure you are an op (else this block has too mutch power on servers)

example video

downloads: please comment

universal
Operator Panel 1.4.6_r1
Extract OPlua folder to mods

for players
last release
Controller_client 1.2.5_6.zip
old releases
Controller_client 1.2.5_5.zip
Controller_client 1.2.5_4.zip
Controller_client 1.2.5_3.zip
Controller_client 1.2.5_2.zip
Controller_client 1.2.5_1.zip
Controller_client 1.2.5_0.zip

Controller_client 1.2.3_3.zip
Controller_client 1.2.3_2.zip
Controller_client 1.2.3_1.zip
Controller_client 1.2.3_0.zip
for server admins
last release
Controller_server 1.2.5_6.zip
old releases
Controller_server 1.2.5_5.zip
Controller_server 1.2.5_4.zip
Controller_server 1.2.5_3.zip
Controller_server 1.2.5_2.zip
Controller_server 1.2.5_1.zip
Controller_server 1.2.5_0.zip

Controller_server 1.2.3_3.zip
Controller_server 1.2.3_2.zip
Controller_server 1.2.3_1.zip
Controller_server 1.2.3_0.zip

paste folder in the zip in the mods folder to install

changelog
_0
  • first release
_1
  • added configurable blockID
  • made the recipe able to disable in config
_2
  • temporary removed the config file
  • changed the recipe
  • made block textures update in SMP
_3
  • added help file
_4
  • stopped 1.2.3 development
  • added sendMessageToPlayer() method
  • you can now send message to computers from chat (SMP) see help for more details
_5
  • added configurable blockID
  • improved send from chat example "/cc0 example" to send "example" to computer 0 (see Controller/events)
_6
  • added api "op"
  • added help topic type "help op"
  • added a few sample programs in "Controller" folder
  • improved send from chat now message,sender,side
louitzie #2
Posted 28 April 2012 - 10:21 AM
/
LolHens #3
Posted 28 April 2012 - 10:31 PM
Could you make a config, to turn this recipe off?
Leo Verto #4
Posted 28 April 2012 - 11:15 PM
Recipe idea:
Stone Modem Stone
Stone Bedrock Stone
Stone Modem Stone

The bedrock is, so only operators can make it, for singleplayer it could be replaced with a diamond block.
WiolfCat7 #5
Posted 29 April 2012 - 12:09 AM
This doesnt even add anything. I looked and i installed it right and nothing apears to be added.
WiolfCat7 #6
Posted 29 April 2012 - 12:30 AM
nvm i installed it wrong
it works
louitzie #7
Posted 29 April 2012 - 09:37 AM
i don't know the block "stone modem stone" do you mean the wireless modem?
Holofire #8
Posted 29 April 2012 - 09:55 AM
He means if you layed it out on a crafting table, it would be:

Stone | Modem | Stone
—————————-
Stone | Bedrock | Stone
—————————–
Stone | Modem | Stone

EDIT: Oh, and this looks really good for what I want!

EDIT2: And the id config doesnt seem to work. Whatever I change it too, it still stays at id 210
Dirkus7 #9
Posted 29 April 2012 - 01:07 PM
It doesn't read from the config file, it has a conflict with another mod and if i change the ID of the controller, it keeps crashing. You have to fix that. I changed the config of the other mod, but it's annoying.
louitzie #10
Posted 29 April 2012 - 04:42 PM
It doesn't read from the config file, it has a conflict with another mod and if i change the ID of the controller, it keeps crashing. You have to fix that. I changed the config of the other mod, but it's annoying.

i shall look at it when i am home again
ds84182 #11
Posted 29 April 2012 - 07:55 PM
This literally took my peripheral.
ds84182 #12
Posted 29 April 2012 - 07:58 PM
But, their are some security problems. People could walk into a server and grief the whole world.
for x = 0, 5000 do
for z = 0, 5000 do
for y = 0, 256 do
–Place Bedrock or Air Here
end
end
end
louitzie #13
Posted 29 April 2012 - 09:03 PM
is that true?
when people click the controller on server the controller remebers their name and checks if they are op at the moment they want to modify the world
if the same person clicks back the block will forget his name and won't do anything. only information from the world will be given.
bobster71 #14
Posted 01 May 2012 - 03:06 AM
I have this installed, but I'm not sure how you use it. How do I call the routines? An example would really help.

Never mind I got it. You need to use "peripheral.call" for thoughs people not sure.
louitzie #15
Posted 01 May 2012 - 09:57 AM
yes you could also use

handle=peripheral.wrap(side)
handle.MethodName()
Holofire #16
Posted 01 May 2012 - 09:51 PM
I refuse to download until id config is in place :)/>/>
louitzie #17
Posted 02 May 2012 - 11:23 AM
whats wrong with the id?
wolfcat700 #18
Posted 04 May 2012 - 03:12 AM
dude. Two things: minecraft 1.2.5 forge isnt compatible with modloadermp. SECOND: you dont even give ANY of the commands you can use so nobody can even use it. I mean, could you at LEAST post how you USE the thing? I mean seriously nobody will even use this because you didnt give any commands you can use and I cant even believe that you didnt even give any info on how to use it, how its used, the only thing you gave is what it is used FOR. I dont even understand how people even use this with no info on HOW!
wolfcat700 #19
Posted 04 May 2012 - 03:14 AM
oh nvm sorry i just realiazed that there is a help file DERP for me:)
wolfcat700 #20
Posted 04 May 2012 - 05:34 AM
wait a minute where exactly IS the help file?
wolfcat700 #21
Posted 04 May 2012 - 05:40 AM
oh mah goahd i cant believe that I had an outdated version without the help file SO SOZ!
wolfcat700 #22
Posted 04 May 2012 - 05:53 AM
oh but also none of the commands work can you helpz? I tryed going to the 'Controller' directory but nothing still!

oh wait forgot to read the previous posts but if they dont help then idk what
wolfcat700 #23
Posted 04 May 2012 - 05:59 AM
Ok they didnt workiez how do you call them because i keep getting errors and mostly attempt to call nils which means ME NO ABLE TO USIEZ! I NEED HELP! sorry for yelling but I am getting a little annoyed and none of hte commands work so you have to give us an example PROGRAM not video with only a demonstration and no tutorials ok?
louitzie #24
Posted 04 May 2012 - 02:27 PM
if the peripheral is attached there is a folder "Controller" in the root of the computer type "list Controller" to list help files
louitzie #25
Posted 05 May 2012 - 12:28 PM
ok here is a little sample program for SSP
survivalmode must be on


w=peripheral.wrap("side")
while true do
x,y,z=w.getPlayerPos()
w.spawnCreatureAtPos(x,y,z,"Creeper")
sleep(3)
end

for SMP


player="playername"
w=peripheral.wrap("side")
while true do
x,y,z=w.getPlayerPos(player)
w.executeCommand("gamemode "..player.." 0")
w.spawnCreatureAtPos(x,y,z,"Creeper")
sleep(3)
end

now gues what it does

function parameters are explained in Controller/help
darkhog #26
Posted 31 May 2012 - 12:10 PM
Could you make it if we spawn item at position where chest or large chest is located, it'll add item to chest's inventory instead of spawning it in world? Also with stack making, so for example if we have blue wool in chestes and we spawn another blue wool into it, it'll add it to stack (unless stack is maxed out)?

Also, could you make config file for server owners so they can enable/disable certain functionalities for normal players, e.g. forbiding block deletion/addition, but allowing of getting player's/block's position?
louitzie #27
Posted 31 May 2012 - 06:04 PM
1 i'am sorry i forgot to add op.open(side) to help file

2 i'll make it so you can enable/disable functions on servers
DerrikeG #28
Posted 31 May 2012 - 06:41 PM
This peripheral is great, but the recipe seems to be off by default and the configuration file it generates doesn't include the option to turn it on, making it impossible to obtain unless I spawn it in.
louitzie #29
Posted 31 May 2012 - 07:10 PM
are you sure the disk drives id is default the recipe depends on that
arbot #30
Posted 03 June 2012 - 05:06 PM
This doesn't appear to do anything when installed on a Tekkit server.

I extracted the zip directly into the mods folder, which gave me a ClassNotFound error.

I moved the mod_Controller.class from the Controller folder to the mods folder above, and I don't get any errors, but it doesn't seem to add anything.
What gives?
Xfel #31
Posted 03 June 2012 - 05:08 PM
The tekkit server runs on bukkit. Non-ported mods are not compatible.
arbot #32
Posted 03 June 2012 - 05:16 PM
The tekkit server runs on bukkit. Non-ported mods are not compatible.

I've noticed that there are no mods marked ported or unported; that's why I'm trying them.
Ones that aren't ported I've noticed will still add items, they are just impossible to obtain.

EDIT: Installing this on a Tekkit server makes any wood-based crafting recipes just make grass.
Edited on 03 June 2012 - 05:20 PM
Iscariah #33
Posted 18 June 2012 - 02:26 AM
The tekkit server runs on bukkit. Non-ported mods are not compatible.

I've noticed that there are no mods marked ported or unported; that's why I'm trying them.
Ones that aren't ported I've noticed will still add items, they are just impossible to obtain.

EDIT: Installing this on a Tekkit server makes any wood-based crafting recipes just make grass.

Really? :(/>/> That's not good, I just wanted to try this on my Tekkit installation. Thanks for the warning.
xuma202 #34
Posted 01 July 2012 - 11:29 AM
Maybe you can add a config file where you can block commands for some users. So that you not only have the OP with access to every command the not OP with access to no commands.
louitzie #35
Posted 01 July 2012 - 05:55 PM
Maybe you can add a config file where you can block commands for some users. So that you not only have the OP with access to every command the not OP with access to no commands.
ops have access to all commands others.
only informative like getBlockID commands will work for other users
xuma202 #36
Posted 01 July 2012 - 08:13 PM
Right! My main focus is on the getPlayerPos() is it or is there a way to make this usable by everyone?
Why not have config where you can set a list of users that have acces to a command:


[command()]
user123
Notch
direwolf20
[command2()]
Nerd
user123
theADMIN
allquan #37
Posted 07 July 2012 - 10:36 AM
wow what a nicce addon!


Could you maybe add support for ic2? Creating Blocks and Items could cost energy.



Anyway i just try to programme a holo deck :P/>/>

short video of it:

http://www.youtube.com/watch?v=7Ko7ryW6hjw&feature=youtu.be
Mr909 #38
Posted 09 July 2012 - 07:13 PM
Although I feel kinda bad, I do have some ideas (just throwing them out there) if you're interested:

Detecting number of hostile/nonhostile mobs within a region and remove mobs over a certain number (good for creating "safety" zones, like an area near spawn, also could be used to create really fun dungeons)
Checking on/off state of blocks, not just redstone states but maybe even door states as well.
Healing/damaging a player
Feeding/un-feeding a player
Giving/taking experience from a player
Turning players around, changing the yaw/pitch/angle of their view, and/or teleporting them to a location or to a player (SUPER good for a more detailed version of allquan's holo-deck setup. Virtual Reality WITHIN Mine Craft :)/>/> )

Edit: Thought of a few more-

Direct inventory controls (Wiping a player's inventory, searching a player's inventory for items, giving items directly to a specific inventory location. Don't think you said this was implemented, but it would be nice to do it without server commands.)
Wolvan #39
Posted 10 July 2012 - 11:22 AM
@Mr909 I think you can already give/take experience for example. There is a server command you can use for that. just use OP-Panels executeCommand function
Mr909 #40
Posted 10 July 2012 - 07:23 PM
Yes, but the advantage of doing it automatically has some very interesting applications. You could, for example, design a program that can turn items into experience using inventory reading mechanics and a lava-pit. Most of what this is best at, from what I see, is automating or truncating server commands.

I want to make a Virtual Reality game, is that so wrong? D:
Just messing.

EDIT: Oh, wait, now I understand what you're saying. I haven't been able to look at it yet and I was only looking at the functions listed. Thank you. That clears up quite a few of them.
iRiky #41
Posted 16 July 2012 - 10: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 ??
xuma202 #42
Posted 16 July 2012 - 11:36 AM
Gen is never a string

if gen=="1" then [...]
remove the "
iRiky #43
Posted 16 July 2012 - 01:03 PM
ok but this don't change anything i still get the same error D:
iRiky #44
Posted 17 July 2012 - 10:32 AM
what i can do to solve this problem ???
xuma202 #45
Posted 17 July 2012 - 01: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)
MysticT #46
Posted 17 July 2012 - 05: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)
xuma202 #47
Posted 17 July 2012 - 07:56 PM
Well sometime you cannot see the wood for the trees. :P/>/>
iRiky #48
Posted 23 July 2012 - 01:17 PM
MysticT i love you xD :)/>/>
allquan #49
Posted 24 July 2012 - 12:51 PM
here is something more, that you can do with this addon :)/>/>

http://www.youtube.com/watch?v=TnHJvDdkCpw&feature=youtu.be
Corbald #50
Posted 06 August 2012 - 03: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.
Sariaz #51
Posted 23 September 2012 - 08: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!!!!!
BrolofTheViking #52
Posted 14 October 2012 - 04: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
sylphio #53
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
FuuuAInfiniteLoop(F.A.I.L) #54
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
allquan #55
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?
bobster71 #56
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
ds84182 #57
Posted 09 March 2013 - 09:06 AM
/
\
Raznog #58
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
TheOddByte #59
Posted 23 March 2013 - 04:07 PM
Will this work on CC versions higher than 1.48?
TheOddByte #60
Posted 23 March 2013 - 04:12 PM
Apparently not.. Since my MC crashed..
Ben1701A #61
Posted 24 August 2015 - 01:21 PM
is it available for forge 1.7.10? :o/> pls say yes or im doomed