- ComputerCraft | Programmable Computers for Minecraft
- → gfcwfzkm's Content
gfcwfzkm's Content
There have been 28 items by gfcwfzkm (Search limited from 29-March 23)
#197786 OneOS Version 2 - The All in One Operating System
Posted by gfcwfzkm on 07 November 2014 - 11:24 AM in Operating Systems
bios:500:Domain not permitted
What does that mean? :c
#170646 OneOS Version 2 - The All in One Operating System
Posted by gfcwfzkm on 30 March 2014 - 03:18 PM in Operating Systems
My shell programs crashes, when its hidden (not directly opened, in the background). It print's me the error:
java.lang.String cannot be cast to java.lang.Number
The shell Program runs fine when the Shell window is always in the front opened
EDIT:// Can you maybe add the new multitasking-stuff for the 'Tabs' in 1.6?
#170639 Cannot read Sensor (OpenPeripheralAddons)
Posted by gfcwfzkm on 30 March 2014 - 02:53 PM in Ask a Pro
i changed the code. is it "cleaner" now? I get now a realy strange error: Too long without yielding
And no linenumbers or something like that.
local radar = peripheral.wrap("top") --Radar Pos local x,y = 1,1 --Monitor Cursor Position local players --Spieler Tabelle local monitor = peripheral.wrap("left") --Monitor Pos local timer0 = os.startTimer(1) os.queueEvent("key") --Auf Tastenanschlag warten print("Radarsystem gestartet") while true do local event, param = os.pullEvent() if param == timer0 then monitor.clear() players = radar.getPlayerNames() for num,target in pairs(players) do monitor.write(target) x, y = monitor.getCursorPos() y = y + 1 monitor.setCursorPos(1,y) end x,y = 1,1 timer0 = os.startTimer(1) end if param == 16 then error("Radarsystem beendet") else os.queueEvent("key") end end
Well, i think the for-loop looks now better. But what means that error?
#170630 OneOS Version 2 - The All in One Operating System
Posted by gfcwfzkm on 30 March 2014 - 01:59 PM in Operating Systems
#170623 Cannot read Sensor (OpenPeripheralAddons)
Posted by gfcwfzkm on 30 March 2014 - 01:32 PM in Ask a Pro
im trying to read a Sensor from OpenPeripheralAddons. I already could do read something in the lua prompt.
But now i wanted to make a lua program that refresh all 1.5 seconds. But now it cant read the usernames
in the lua shell, i typed in: print(textutils.serialize(p.getPlayerNames()))
and that works.
Now i wanted to print this on a monitor. But now my code dont works and i dont understand why
local radar = peripheral.wrap("top") local x,y = 1,1 local monitor = peripheral.wrap("left") local timer = os.startTimer(1.5) local counter = 0 print("Radarsystem online") while true do local event, param = os.pullEvent("key") if param == "timer" then monitor.clear() counter = table.getn(radar.getPlayerNames()) if counter ~= 0 then for i=0,counter,i+1 do monitor.write(radar.getPlayerNames()[i]) --is doing nothing :/ x,y = monitor.getCursorPos() y = y + 1 monitor.setcursorPos(1,y) end end timer = os.startTimer(1.5) elseif param == 16 then print("closing program...") error("Radar System Closed") end end
i hope you pro's can see my fault
Thanks
gfc
#170491 OneOS Version 2 - The All in One Operating System
Posted by gfcwfzkm on 29 March 2014 - 07:21 PM in Operating Systems
"mouse scrolling" dont works when i want to "select program" for opening a file
when i select the shell, it just opens the shell and dont run the selected program.
in the settings->startup i just can select real installed programs. not my own shell programs.
Well, just some ideas...
mfg
gfc
#170259 OpenPeripheral Terminal Glass print a picture/icon
Posted by gfcwfzkm on 28 March 2014 - 08:03 PM in Ask a Pro
i have a little problem/question:
I want to use the OpenPeripheral Terminal Glass to print a picture/Icon. Is that possible?
I already found the command '.addIcon' but i dont understand how to use it :/
Can you pro's explain it to me (maybe a little tiny simple sample? thats the best way for me to understand something)
Thank you all =)
gfc
#167590 OneOS Version 2 - The All in One Operating System
Posted by gfcwfzkm on 09 March 2014 - 04:14 PM in Operating Systems
Would be nice if you can fix it =)
#167023 OneOS Version 2 - The All in One Operating System
Posted by gfcwfzkm on 04 March 2014 - 11:16 PM in Operating Systems
The error:
startup:298: bad argument #1: value expected
I would like to see when the Programs work without to include the OS-apis. like a compatibility mode to provide that all other CC-Apps run on it =)
Im realy missing a good shell...
#166700 Cant wrap a Wireless Modem
Posted by gfcwfzkm on 02 March 2014 - 09:01 PM in Ask a Pro
By the way, got a little question...
in the code im 'waiting' to receive a message from the Wireless-Modem.
That means the program is "stopped" until it get something. But how can i break this too? like by using a 1 second-timer?
#166697 Cant wrap a Wireless Modem
Posted by gfcwfzkm on 02 March 2014 - 08:51 PM in Ask a Pro
#166695 Cant wrap a Wireless Modem
Posted by gfcwfzkm on 02 March 2014 - 08:48 PM in Ask a Pro
when i try to wrap a monitor, i get the error:
MinerControl.lua:5: attemp to call nil
http://pastebin.com/ZfAKV2tF
It only fails when im using the modem at the back
#166620 Custom Font
Posted by gfcwfzkm on 02 March 2014 - 01:30 AM in Suggestions
Something like:
local charTable = {0xE,0x1B,0x11,0x11,0x11,0x11,0x1F} --(5x7 - 'Empty Battery' Char)
os.loadChar(charTable,0x0) -->1: the table with the values for the new Char, 2: the Binary location where the char is located
And then:
print("Battery status: "..os.getChar(0))
=)
mfg
gfc
#166594 OneOS Version 2 - The All in One Operating System
Posted by gfcwfzkm on 01 March 2014 - 09:34 PM in Operating Systems
My biggest Problem is, that the "Shell"-App isnt very good working/looking. Would be nice if it looks&works like the normal CraftOS Shell.
And i could not load custom APIs while the OS is running (Could not load the openCCSensor API)
My Favorite OS =D
#166498 OneOS Version 2 - The All in One Operating System
Posted by gfcwfzkm on 28 February 2014 - 10:27 PM in Operating Systems
But its a real nice OS
#166290 using string.match with a table (variables)
Posted by gfcwfzkm on 26 February 2014 - 09:32 PM in Ask a Pro
im trying to find a 'word' in a variable and i want to use table(s) cause there are many of these 'words'. But my Problem is, that it does nothing
Maybe its cause i still got some problems with for-loops and string.match()
for ii,xx in pairs(badNPC) do if string.match(Str,ii) == true then term.setTextColor(colors.blue) return true end endI want that it change the Textcolor if the variable 'Str' is in the table 'badNPC'. But well, it dont works good :/
(Here my Complete Code)
http://pastebin.com/paC8kRRx
What could be the solution for this?
Thanks for the Help
gfcwfzkm (Pascal)
- ComputerCraft | Programmable Computers for Minecraft
- → gfcwfzkm's Content