Jump to content


gfcwfzkm's Content

There have been 28 items by gfcwfzkm (Search limited from 29-March 23)


By content type

See this member's


Sort by                Order  

#197786 OneOS Version 2 - The All in One Operating System

Posted by gfcwfzkm on 07 November 2014 - 11:24 AM in Operating Systems

I cannot install OneOS. When i run the installer, i get:
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

I found a little bug too.
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?



#170644 Cannot read Sensor (OpenPeripheralAddons)

Posted by gfcwfzkm on 30 March 2014 - 03:16 PM in Ask a Pro

Aww, right. Thanks, it works now =)



#170639 Cannot read Sensor (OpenPeripheralAddons)

Posted by gfcwfzkm on 30 March 2014 - 02:53 PM in Ask a Pro

yes :/

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

its a program to print some text on my terminal glasses and then it quit's. nothing special or big.



#170629 Cannot read Sensor (OpenPeripheralAddons)

Posted by gfcwfzkm on 30 March 2014 - 01:50 PM in Ask a Pro

i learned it in VB.net and C. And there, the table starts from '0' (makes more sense) so i thinked that this is in lua the same.

But well, its still not printing the players... :/



#170623 Cannot read Sensor (OpenPeripheralAddons)

Posted by gfcwfzkm on 30 March 2014 - 01:32 PM in Ask a Pro

Hi Pro's

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 :o

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

I like the OneOS. But here some suggestions:
"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



#170440 OpenPeripheral Terminal Glass print a picture/icon

Posted by gfcwfzkm on 29 March 2014 - 12:15 PM in Ask a Pro

=) Thanks

(problem solved) =D



#170414 OpenPeripheral Terminal Glass print a picture/icon

Posted by gfcwfzkm on 29 March 2014 - 09:47 AM in Ask a Pro

ok. So the addIcon is not able to print own pics. hmm.... Its possible to set a pixel in TerminalGlass?
Oh and the addIcon-Command dont work. It just give error's back.



#170294 OpenPeripheral Terminal Glass print a picture/icon

Posted by gfcwfzkm on 28 March 2014 - 09:58 PM in Ask a Pro

And heres the problem: the usage.
i dont know how to use it. what do they mean with "id" and "meta" ?



#170259 OpenPeripheral Terminal Glass print a picture/icon

Posted by gfcwfzkm on 28 March 2014 - 08:03 PM in Ask a Pro

Hello Pro's

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

When i klick "run with" and select the Shell, the program doesnt start in the shell. just the shell in the basic directory and i have to navigate myself in the shell.
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 Filemanager crashes when i try to open the DISK B where the Disk: "goldrunner" by nitrogenfingers - is in.
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...



#166711 Cant wrap a Wireless Modem

Posted by gfcwfzkm on 02 March 2014 - 10:13 PM in Ask a Pro

Thanks =)



#166700 Cant wrap a Wireless Modem

Posted by gfcwfzkm on 02 March 2014 - 09:01 PM in Ask a Pro

(facepalm) thanks.
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

is it wrong? Got it from: http://computercraft...Modem_%28API%29



#166695 Cant wrap a Wireless Modem

Posted by gfcwfzkm on 02 March 2014 - 08:48 PM in Ask a Pro

Hi,

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

Hi, i would like to see if its possible to load "a custom character" to the font of CraftOS (limited to... 16 or 32 Chars).
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

Realy nice OS =)
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 :o (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

Found a Bug in the Shell-App: When i 'cd' to a directory (like Programs or rom), the commands dont work anymore (No such program - Error)

But its a real nice OS



#166296 using string.match with a table (variables)

Posted by gfcwfzkm on 26 February 2014 - 10:10 PM in Ask a Pro

I cant use == cause the variable contains behind some numbers (from the NPCs). Now i changed string.match(Str,ii) to string.match(Str,xx) but it still dont wanna work :/

Posted Image



#166290 using string.match with a table (variables)

Posted by gfcwfzkm on 26 February 2014 - 09:32 PM in Ask a Pro

Hi CC_Forum,

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 :o
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
  end
I 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)



#166288 Upload LuaProgram from Terminal To PC/Cloud

Posted by gfcwfzkm on 26 February 2014 - 09:24 PM in Ask a Pro

Thanks =)
I always thinked that pastebin just can download code...



#166275 Upload LuaProgram from Terminal To PC/Cloud

Posted by gfcwfzkm on 26 February 2014 - 08:07 PM in Ask a Pro

Hi,

i want to upload/copy a luaprogram that i wrote on a CC-Terminal to my PC. But its on a Server. Is there a way/solution to upload the Code?

Thanks =)

gfc