—– Oops —–
It seems this peripheral is bussy with upgrading.
What's done:
+ Connecting PDA to a server
When the server is destroyed, the pda will give a message.
+ Every PDA has his own MAC-Address.
Yet not OP… Does the recipe include a battery (if ic2 is installed), a wireless modem, whaat else?
Tell me… what would be an unconfigurable config file? (The opposite to the configurable config file you proposed)
Null Pointer Exception if you click the peripheral with the item PDA and the peripherla isn't mounted.
Rebooting and changing Icon seems to hang the PDA?
Running your example program hangs the PC, console errors about the peripheral not being detached, might be related to the problem above( i think this is a CC bug?, i've encountered something like this with another addon, also bricks your PC - ctrl+s,r,t won't work.)
I had to move your receiver API in the rom folder, your mod is not mounting your lua file(s)
You should add a way to wrap pda io into a term-like object so that we can use term.redirect (and similar) on it.
Possible in the Next version:
https://dl.dropbox.c...27_13.36.23.png
There was a bug with the text-size. And now you can do receiver.setTextAt(0, 2, "Hello world", id) :D/>/>
very cool siri in minecraftUsing the new vew version, none of my code is getting passed to the pda - just shows no channel/tite and as if its disconnected - but tooltip shows otherwise..
I see you removed setName, i just replaced that with setTitle, not sure what's going on - could be because i mess with the configs again
Had to rewrite my program, Still the name and title is not working using the new functions, just shows No connection/Title
Also the peripheral still doesnt properly unmount, correctly and bricks the PC.I can see the log in my console.
Image of Name/Title bug - im using receiver.setChannel("blah") & receiver.setTitle("blahblah") - program still runs but wont let the custom channel and title show. The mouseover tooltip on the pda will show correctly tho. The 1st version i could set name/title and it would display on the PDA's Gui just fine.
Because as in 0.2 you need to use:
receiver.setTitle("blahblah", ID)
Add id, and it should work.
About the PDA ID: Glitch will be fixed soon.
I'm gonna think to rewrite the PDA System… Again… :D/>/>
Still working on this or is it dead already? Title cannot be adjusted like i stated above.
Also you never fixed the bug where the peripheral disables the comp from rebooting or shutting down.
console error below.
ComputerCraft: Error running task.
java.lang.RuntimeException: You didn't mount this location
at dan200.computer.core.Computer$PeripheralWrapper.unmount(Computer.java:259)
at TileEntityPrinter.detach(TileEntityPrinter.java:504)
at dan200.computer.core.Computer$PeripheralWrapper.detach(Computer.java:119)
at dan200.computer.core.Computer$63.execute(Computer.java:2080)
at dan200.computer.core.ComputerThread$1$1.run(ComputerThread.java:68)
at java.lang.Thread.run(Unknown Source)
I will continue if CC is for 1.3.2
Then I will make it also SMP.
pdat = {ln = 0,icn = 1,scrn = {},}
for i,v in pairs(rs.getSides()) do
if peripheral.getType(v) == "receiver" then
pdamtd = peripheral.wrap(v) break
end end
pdfnc = {
rdln = function(pda)
local txtln,t_vnt = ""
if pdamtd.connected() > 0 then
pdamtd.setText(0,"Enter text",pda)
repeat t_vnt = {os.pullEvent()}
if t_vnt[1] == "pda_char" then
txtln = txtln..t_vnt[3]
pdamtd.setText(0,txtln,t_vnt[2])
elseif t_vnt[1] == "pda_key" and t_vnt[3] == 14 then
txtln = txtln:sub(1,#txtln-1)
pdamtd.setText(0,txtln,t_vnt[2])
end
until t_vnt[1] == "pda_key" and t_vnt[3] == 28
pdamtd.setText(0,"Entered...",t_vnt[2])
else txtln = read() end
return txtln
end,
wrtln = function(pda,txtln)
print(txtln)
if pdamtd.connected() > 0 then
pdat.ln = pdat.ln+1
pdat.scrn[pdat.ln] = txtln
local ndx = pdat.ln-19
for i = 1,20 do
if pdat.scrn[ndx] then pdamtd.setText(i,pdat.scrn[ndx],pda) end
ndx = ndx+1
end
end
end,
}
if pdamtd then
if tArgs[1] then pdamtd.setChannel(tArgs[1])
else print("Enter Channel") pdamtd.setChannel(read()) end
print([[Test loop activated, use pda
on receiver to connect, press
1-5 to test pda functions,
Shift+S to test a read/write
"X" on pda to exit]])
else print("No pda receiver present") end
repeat
t_vnt = {os.pullEvent()}
if t_vnt[1] == "pda_connected" then
pdamtd.setIcon(4,t_vnt[2])
pdamtd.setText(0,"Welcome to C-Provider",t_vnt[2])
elseif t_vnt[1] == "pda_key" and t_vnt[3] == 2 then
pdat.icn = math.fmod(pdat.icn,8)+1
pdamtd.setText(0,"Changing icon to "..pdat.icn,t_vnt[2])
pdamtd.setIcon(pdat.icn,t_vnt[2])
elseif t_vnt[1] == "pda_key" and t_vnt[3] == 3 then
pdamtd.setText(0,"Receiving an alert",t_vnt[2])
pdamtd.alert("Alert!",t_vnt[2])
elseif t_vnt[1] == "pda_key" and t_vnt[3] == 4 then
pdamtd.setTitle("New Title",t_vnt[2])
elseif t_vnt[1] == "pda_key" and t_vnt[3] == 5 then
pdamtd.setText(pdat.ln,textutils.serialize({pdamtd.connected()}),t_vnt[2])
elseif t_vnt[1] == "pda_char" and t_vnt[3] == "S" then
pdfnc.wrtln(t_vnt[2],pdfnc.rdln(t_vnt[2]))
end
until t_vnt[1] == "pda_char" and t_vnt[3] == "X"
When you make a GUI in minecraft, the first render thing you write is the darkening effect. I'm not sure if you can make a GUI without that line of code but if you remove the line, it should not make the screen darker.Is there any way to reduce the amount of darkening that occurs when you use the PDA? It seems to be the same mechanism that happens for all other interfaces, but I'm fine with reducing the darkening of everything else too, if I can.
local tArgs = {...}
local pdat,tvnt,cnslID,pdamtd = {ln = 0,icn = 1,scrn = {},pda = {},},{},os.computerID()
for i,v in pairs(rs.getSides()) do
if peripheral.getType(v) == "receiver" then
pdamtd = peripheral.wrap(v) break
end end
local wrtpdln = function(txtln)
print(txtln)
if pdamtd.connected() > 0 then
for i = 1,math.ceil(#txtln/27) do pdat.ln = pdat.ln+1
pdat.scrn[pdat.ln] = txtln:sub((i-1)*27+1,i*27)
end
local ndx = pdat.ln-19
for i = 1,20 do
if pdat.scrn[ndx] then
for k,v in pairs(pdat.pda) do pdamtd.setText(i,pdat.scrn[ndx],k) end
end
ndx = ndx+1
end
for i,v in pairs(pdat.pda) do pdamtd.setIcon(3,i) pdamtd.setTitle("Text Update",i) end
end
end
local rdpdln = function()
local txtln = ""
if pdamtd.connected() > 0 then
write("input from PDA")
for i,v in pairs(pdat.pda) do pdamtd.setIcon(5,i) pdamtd.setTitle("Enter Text",i) end
repeat tvnt = {os.pullEvent()}
if tvnt[1] == "pda_char" then txtln = txtln..tvnt[3]
elseif tvnt[1] == "pda_key" and tvnt[3] == 14 then
txtln = txtln:sub(1,#txtln-1)
end
for i = 0,math.floor(#txtln/27) do
pdamtd.setText(i,txtln:sub(i*27+1,(i+1)*27),tvnt[2])
end
until tvnt[1] == "pda_key" and tvnt[3] == 28
for i,v in pairs(pdat.pda) do pdamtd.setIcon(7,i) pdamtd.setTitle("...",i) end
pdamtd.setTitle("Entered",tvnt[2]) pdamtd.setIcon(6,tvnt[2])
else write("input>") txtln = read() end
return txtln
end
local function opnmdm()
for i,v in pairs(rs.getSides()) do
if peripheral.getType(v) == "modem" then
if not rednet.isOpen(v) then rednet.open(v) end
return true end
end
return false end
if pdamtd then
if tArgs[1] then pdat.chnl = tArgs[1]
else print("Enter Channel") pdat.chnl = read() end
local strtfl = fs.open("startup","w")
strtfl.writeLine("shell.run("rcpda",""..pdat.chnl.."")") strtfl.close()
pdamtd.setChannel(pdat.chnl)
print([[Test loop activated, use pda
on receiver to connect, press
keys on pda to register pda,
"X" on pda to exit]])
else print("No pda receiver present") end
repeat
tvnt = {os.pullEvent()}
if tvnt[1] == "pda_connected" then
pdamtd.setIcon(8,tvnt[2]) pdamtd.setTitle("Connected to terminal"..cnslID,tvnt[2])
pdamtd.setText(0,"Welcome to C-Provider",tvnt[2])
elseif tvnt[1] == "pda_key" then pdat.pda[tvnt[2]] = true
wrtpdln("Key: "..tvnt[3].." pressed on PDA "..tvnt[2]) pdamtd.setIcon(4,tvnt[2])
pdamtd.alert("Connected to terminal"..cnslID,tvnt[2]) end
until tvnt[1] == "pda_char" and tvnt[3] == "X"
local rcmdlst = {
[0] = "bmb",[79] = "place",[80] = "back",[81] = "ddn",[75] = "turnLeft",[76] = "tnl",
[77] = "turnRight",[71] = "placeUp",[72] = "dfd",[73] = "dup",[82] = "placeDown",
[83] = "drop",[74] = "rfl",[78] = "slct",[181] = "gpshst",[55] = "gpslct",[28] = "pckup",
[210] = "place",[211] = "dig",[199] = "dropUp",[207] = "dropDown",[201] = "up",[209] = "down",
[200] = "forward",[208] = "back",[203] = "turnLeft",[205] = "turnRight",[26] = "digUp",
[27] = "digDown",[51] = "suckUp",[52] = "suckDown",[45] = "trmn8RC",
}
local function setID() wrtpdln("Enter receiver ID") return tonumber(rdpdln()) end
shell.run('clear')
if not opnmdm() then wrtpdln("Modem Access Error") return false end
local rcID = nil
repeat rcID = setID() until rcID
wrtpdln("Receiver ID set to "..rcID)
wrtpdln("Press "h" for help")
for i,v in pairs(pdat.pda) do pdamtd.setIcon(4,i) end
repeat
tvnt = {os.pullEvent()}
if tvnt[1] == "pda_key" and rcmdlst[tvnt[3]] then rednet.send(rcID,rcmdlst[tvnt[3]])
pdamtd.setTitle("Sent ""..rcmdlst[tvnt[3]].."" to "..rcID,tvnt[2])
if tvnt[3] == 45 then rcID = setID() end
elseif tvnt[1] == "rednet_message" then wrtpdln(tvnt[2]..": "..tvnt[3])
for i,v in pairs(pdat.pda) do pdamtd.setIcon(2,i) pdamtd.setTitle("Message from "..tvnt[2],i) end
if tvnt[3]:find("^send") then rednet.send(tvnt[2],rdpdln()) end
elseif tvnt[1] == "key" and rcmdlst[tvnt[2]] then rednet.send(rcID,rcmdlst[tvnt[2]])
if tvnt[2] == 45 then rcID = setID() end
elseif tvnt[3] == "S" or tvnt[2] == "S" then rednet.send(rcID,rdpdln())
pdamtd.setIcon(1,tvnt[2]) pdamtd.setTitle("Rednet Sent",tvnt[2])
elseif tvnt[3] == "R" or tvnt[2] == "R" then rcID = setID() pdamtd.setIcon(8,tvnt[2])
elseif tvnt[3] == "h" or tvnt[2] == "h" or tvnt[3] == "H" or tvnt[2] == "H" then
wrtpdln("Use "R" change receiver Use "S" to send text")
wrtpdln("Change receiver to nil to exit rcpda")
wrtpdln("Use numberpad to control turtles: 284693 to digmove 5 to tunnel, 170 to place '.' Home End, to drop")
wrtpdln("Enter, <, >, to suck Del, [, ] to dig")
wrtpdln("Direction Keys and PgUp/Dn to move, rCtrl to exit")
end
until not rcID
local event, id, key = os.pullEvent()
if event == "pda_disconnected" then
print("disconnected")
end
The darkening as I said is defined in the source code itself. So i guess no mod can remove it.Is there any way to remove the darkening effect for menus for the entire game? I can't seem to find any mods for that.
Hi,
This Is a great idea! But this mod is not loaded by ModLoader…
You can give me the source?
Ahem. eloraam.com.First off, it's for Minecraft 1.2.5 and isn't being updated, so unless you're on minecraft 1.2.5 for some reason (Tekkit, redpower, better frame rates, whatever)…
Eloraam updates CCPortable now?Ahem. eloraam.com.First off, it's for Minecraft 1.2.5 and isn't being updated, so unless you're on minecraft 1.2.5 for some reason (Tekkit, redpower, better frame rates, whatever)…
Eloraam updates CCPortable now?Ahem. eloraam.com.First off, it's for Minecraft 1.2.5 and isn't being updated, so unless you're on minecraft 1.2.5 for some reason (Tekkit, redpower, better frame rates, whatever)…
Nah I'm pretty sure he was meaning, check there, there's an update for RedPower2 and no need to stay on 1.2.5 'for redpower'Eloraam updates CCPortable now?Ahem. eloraam.com.First off, it's for Minecraft 1.2.5 and isn't being updated, so unless you're on minecraft 1.2.5 for some reason (Tekkit, redpower, better frame rates, whatever)…
Oh hi, I´m back. ^_^/>
Today and tomorrow I will rewrite the mod to 1.5.1, currently I have changed the script to NBT, with other words: It's much faster and stable now. ;)/>