Jump to content


Ziriee's Content

There have been 17 items by Ziriee (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#196754 whats wrong with the fs.write?

Posted by Ziriee on 22 October 2014 - 07:38 PM in Ask a Pro

How do you just put 1MB of data on a computercraft computer I always have atleast 90% space free



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

Posted by Ziriee on 25 September 2014 - 07:18 PM in Operating Systems

I use CCEmuRedux and I always get this error at random points of the download
Posted Image



#192407 My [Sexy] Little File Storage Program

Posted by Ziriee on 27 August 2014 - 08:39 PM in Programs

I read your code...
You need to work on compacting your code, you can use tonumber(value) to convert to a number and you can use os.pullEvent("char") for your menu.
Also you don't need to write "if value==true" or "if value==false", you can use "if value" and "if not value"



#191987 OrangeOS v0.4

Posted by Ziriee on 23 August 2014 - 06:12 PM in Operating Systems

Well I accidentally posted this and I added one about 30 seconds after posting this



#191985 OrangeOS v0.4

Posted by Ziriee on 23 August 2014 - 06:10 PM in Operating Systems

OrangeOS v0.4
This is my new one and only OS
Screenshots:
Spoiler

Features:
Spoiler

Changelog:
Spoiler
Install:

Spoiler



#191969 [OrangeOS] Weird function bug

Posted by Ziriee on 23 August 2014 - 03:18 PM in Ask a Pro

View PostBomb Bloke, on 23 August 2014 - 02:52 PM, said:

Is this an OS you're building yourself, or one you've found from somewhere? If it was initially written by someone else, it may not be compatible with your version of ComputerCraft.

I can tell you that the "window" API is mostly called by the "term" API. If "window" is erroring, it's likely because you called a term function incorrectly.

I can also tell you that the "rough description" in that screenshot is wrong - an attempt to index nil doesn't mean that "part of a table doesn't exist" so much as it means "the object you're trying to treat as a table in the first place doesn't exist".

I am building the OS by myself, also even after using
os.loadAPI("data/api/bar")
This happens:
Spoiler

View PostZiriee, on 23 August 2014 - 03:14 PM, said:

View PostBomb Bloke, on 23 August 2014 - 02:52 PM, said:

-snip
-snip-
I found the problem, it was in the bar api itself



#191966 [OrangeOS] Weird function bug

Posted by Ziriee on 23 August 2014 - 01:31 PM in Ask a Pro

So, I am having a weird bug, where I got window:57: expected number, then I removed a 'local' from 1 variable in the bar api and then I started to have even a weirder bug.
Spoiler
You can get the whole OS here:
pastebin run cYQF9usm



#184522 Multi-Level Cactus Farm

Posted by Ziriee on 18 June 2014 - 04:17 PM in Turtle Programs

function forwards()
  while not turtle.forward() do
    turtle.attack()
  end
end
Example how to make the turtle not get stuck at mobs



#153237 Acces Denied...

Posted by Ziriee on 17 November 2013 - 02:27 PM in Ask a Pro

while zaehler <= anzahl do
  if tostring(list[zaehler]) ~= "rom" then
	fs.delete(tostring(list[zaehler]))
  end
  zaehler = zaehler + 1
end

Try that. It will check if it's trying to remove the rom.



#150701 Simulation Game Problems

Posted by Ziriee on 27 October 2013 - 11:30 AM in Ask a Pro

View Postsens, on 27 October 2013 - 10:40 AM, said:

I think you should put this check around the whole checkFallDown() function:

if map[y][x] > 0 then
Great! Now it works how it's supposed to! Hooray!



#150663 Simulation Game Problems

Posted by Ziriee on 27 October 2013 - 08:38 AM in Ask a Pro

View PostZiriee, on 27 October 2013 - 08:26 AM, said:

View PostBomb Bloke, on 27 October 2013 - 03:37 AM, said:

The write command on line 69 is causing the error (if you add a .."" to the end of what you pass to those write functions, then they'll fail with more useful errors).

It wants to write categoriesn[ i]["char"]. This value is set by whatever the third parameter you pass to the addCategory() function is, but when you're calling that function you're only passing two parameters: hence categoriesn[ i]["char"] is always set to nil and that write statement fails.
Thanks. A lot. it was indeed fail on my side with the addCategory()'s third parameter.
It fixed it a bit, but now it crashes on powder:77: attempt to index ? (a nil value) but when I open lua and write categories[elements[map[1][7]]][map[1][7]]["gravity"] It normally says 1 D:



#150659 Simulation Game Problems

Posted by Ziriee on 27 October 2013 - 08:26 AM in Ask a Pro

View PostBomb Bloke, on 27 October 2013 - 03:37 AM, said:

The write command on line 69 is causing the error (if you add a .."" to the end of what you pass to those write functions, then they'll fail with more useful errors).

It wants to write categoriesn[ i]["char"]. This value is set by whatever the third parameter you pass to the addCategory() function is, but when you're calling that function you're only passing two parameters: hence categoriesn[ i]["char"] is always set to nil and that write statement fails.
Thanks. A lot. it was indeed fail on my side with the addCategory()'s third parameter.



#150545 Simulation Game Problems

Posted by Ziriee on 26 October 2013 - 12:49 PM in Ask a Pro

*bump*



#150530 Simulation Game Problems

Posted by Ziriee on 26 October 2013 - 11:21 AM in Ask a Pro

View Postsens, on 26 October 2013 - 10:37 AM, said:

After a quick read-thru, I noticed a potential issue: "activecat" and "elen" used on lines 69 & 70 are never initialized.
You are correct, now it changes the background color, but crashes with the same error after that and doesn't print the thing I want it to print.



#150518 Simulation Game Problems

Posted by Ziriee on 26 October 2013 - 10:03 AM in Ask a Pro

View PostZudoHackz, on 26 October 2013 - 09:53 AM, said:

Are you getting an error?
bios:155: bad argument: string expected, got nil



#150517 Simulation Game Problems

Posted by Ziriee on 26 October 2013 - 09:59 AM in Ask a Pro

Yes.



#150514 Simulation Game Problems

Posted by Ziriee on 26 October 2013 - 09:48 AM in Ask a Pro

So, I am trying to make a simulation game, but I am having problems with some bugs that I can't figure out. Anyone care to check it out?

Raw code: pastebin