- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
-
Content Count
143 -
Joined
-
Last visited
-
Days Won
5
Posts posted by Ta©ti Tac0Z
-
-
looks cool!
i allways forget how EEPROMS and OS's works a bios seach for any filesystem that have the file /init.lua right?
-
terms:
the working directory: "the path that the shell is currently in (eg: if in the shell it says: "/home #" the working directory whould be "/home")
file-root (root): "is the root foldire of the virtuel computers filesystem "/" if not chanched in the mods code. all you need to know is that root means "/"
your program install/downloads the file on the working directory say for instane i am in "/home" when i start the program the files is going to be installed in that foldire then (eg "/home/0-41-0.mb3d") altho when you are deleteing the files you do not delete them from the working directory (eg: the program is trying to delete: "0-41-0.mb3d" insted of "/home/0-41-0.mb3d".
toavoid OC to write the files to the working directory we write "/" infront of all the paths when downloading so we tell the mod to write the files at the root ("/") insted of just the working directory a good practese is to all ways incluce a "/" first sense its not all functions who uses the working direcrtory forintance "fs.remove()" doesn't
this is a working version:
local c = require("component") local computer = require("computer") local internet = require("internet") local fs = require("filesystem") local p = c.printer3d args = {...} link = "https://raw.githubusercontent.com/LordNocturnus/sf-" folder = "/master/" imax = 0 local TIMEOUT = 4 -- in seconds for i = 0, imax do local url = link .. i .. folder .. "list.txt" local status, connection = pcall(internet.request, url) if not status or not connection then print("Download of " .. url .. " failed.") else local startTime = computer.uptime() while true do local response, isFinished = pcall(connection.finishConnect) if response and isFinished then local f = io.open("list.txt", "wb") -- print(status) -- print(response) print(isFinished) -- print(connection) for chunk in connection do f:write(chunk) end f:close() break elseif computer.uptime() - startTime > TIMEOUT then print("Request to " .. url .. " timed out") os.exit() else os.sleep(0.25) end end end for line in io.lines('list.txt') do print(line) local url = link .. i .. folder .. line .. ".mb3d" local status, connection = pcall(internet.request, url) if not status or not connection then print("Download of " .. url .. " failed.") else local startTime = computer.uptime() while true do local response, isFinished = pcall(connection.finishConnect) if response and isFinished then local f = io.open("/"..line .. ".mb3d", "wb") -- print(status) -- print(response) print(isFinished) -- print(connection) for chunk in connection do f:write(chunk) end f:close() break elseif computer.uptime() - startTime > TIMEOUT then print("Request to " .. url .. " timed out") os.exit() else os.sleep(0.25) end end end cords = {} for i in string.gmatch(line,"([^-]+)") do cords[#cords+1] = tonumber(i) end print(cords[1],cords[2],cords[3]) -- printer(cords[1],cords[2],cords[3]) -- do something with the file file = "/"..string.format("%d-%d-%d.mb3d", cords[1],cords[2],cords[3]) fs.remove(file) print(file) end end
i added the tihng i was talking about:
adding a "/".. on line 77 and on line 53
am happy to help
btw, the 3d files that the program downloads sems to be curupted.
-
Hi, next time please post code inside:
--code windows like this one witch makes it 10 times easyer to read (by useing the </> icon while also chanceing html to lua in the drop down menu when useing the </> button)
for my convines (and for others am going to do this for you):
local c = require("component") local computer = require("computer") local internet = require("internet") local fs = require("filesystem") local p = c.printer3d args = {...} link = "https://raw.githubusercontent.com/LordNocturnus/sf-" folder = "/master/" imax = 0 local TIMEOUT = 4 -- in seconds for i = 0, imax do local url = link .. i .. folder .. "list.txt" local status, connection = pcall(internet.request, url) if not status or not connection then print("Download of " .. url .. " failed.") else local startTime = computer.uptime() while true do local response, isFinished = pcall(connection.finishConnect) if response and isFinished then local f = io.open("list.txt", "wb") -- print(status) -- print(response) print(isFinished) -- print(connection) for chunk in connection do f:write(chunk) end f:close() break elseif computer.uptime() - startTime > TIMEOUT then print("Request to " .. url .. " timed out") os.exit() else os.sleep(0.25) end end end for line in io.lines('list.txt') do print(line) local url = link .. i .. folder .. line .. ".mb3d" local status, connection = pcall(internet.request, url) if not status or not connection then print("Download of " .. url .. " failed.") else local startTime = computer.uptime() while true do local response, isFinished = pcall(connection.finishConnect) if response and isFinished then local f = io.open(line .. ".mb3d", "wb") -- print(status) -- print(response) print(isFinished) -- print(connection) for chunk in connection do f:write(chunk) end f:close() break elseif computer.uptime() - startTime > TIMEOUT then print("Request to " .. url .. " timed out") os.exit() else os.sleep(0.25) end end end cords = {} for i in string.gmatch(line,"([^-]+)") do cords[#cords+1] = tonumber(i) end print(cords[1],cords[2],cords[3]) -- printer(cords[1],cords[2],cords[3]) -- do something with the file file = string.format("%d-%d-%d.mb3d", cords[1],cords[2],cords[3]) fs.remove(file) end end
ok then when thats done let me see...
-
sorry didn't mean to Resend that? Maybe it was in my School computers feet and send it some how
-
32 minutes ago, Piorjade said:
What? The comment you quoted doesn't really clear up or negate what I've said. My comment you've quoted is basically the answer for your quote.
13 hours ago, noahthegame said:"
(and yes You May not comment this Line please)
well i did...
33 minutes ago, Piorjade said:Anyway, you don't seem like a person someone can talk to normally. You don't seem to appreciate help from others other than using a solution but still crying about something and answering other posts that don't fit your expectations with passive-aggressive comments so I'm done with you.
I recommend you not to post anything on this forum if you plan on being stubborn.
omfg i... come on? what have i done to you exacly dude?
6 hours ago, noahthegame said:yeah... you are really late i susjecst you should have read the post up to this point before you writen your post
all what i did was answering your qestion: yes you are late
36 minutes ago, Piorjade said:I'm not interested in reading up posts which consist of passive-aggressive comments from the person that created the thread as you seemed not to appreciate the help of others and just cry and complain constantly.
you just amitted you didn't read evrey thing and even said you didn't want nor plan two?!
it ain't my problem you then comes along and try to help when the problem you answered is answered
i may also add for the 3. time that mr. molinko is the sourse of the conflict i don't see the idea in more joining in. i amitted that my thread was a misstake but even tho one more have now joined the party
-
6 hours ago, Piorjade said:
OC's way of limiting GPU calls, making pixel-by-pixel drawing incredibly slow, is actually kind-of realistic. (it's only more extreme to compensate for good server performance)
One way, which was already suggested, is to buffer every pixel and only draw the changes.
Additionally to that you'd have to create some sort of algorithm, which groups pixels together to reduce GPU calls.
6 hours ago, noahthegame said:my problem was OC's apillity to Update screens and Why there was so aggressive limits in genual (and yes You May not comment this Line please)
i think i made my self clear....
6 hours ago, Piorjade said:Anyway, if you're interested in a double buffering library that allows you to create multiple buffers, I've created one a day ago with a very simple "algorithm" to group the pixels together. (Although I DO NOT only draw the changes; I might add that if I have the motivation for it.)
a guy all ready showed me a buffering api witch works and witch am useing, you didn't look back before you writen this did you?
6 hours ago, Piorjade said:I might also add that if you plan on creating a window-based desktop environment and you see that the windows don't follow your mouse as fast as you drag them, it is not the fault of slow drawing (at least if you have a good double buffering library), instead it's the fact that the computer doesn't process events as fast as CC but maybe you already know that.
exacly...
6 hours ago, Piorjade said:(Sorry if I jumped into this conversation too late)
yeah... you are really late i susjecst you should have read the post up to this point before you writen your post
-
5 hours ago, Molinko said:
Best part of the whole thread.
true
-
9 minutes ago, Luca_S said:
"make [...] processors faster" sounds like you are giving someone the command to do so, which is not good when asking questions.
I whould have tryed to save my position in this argument but that point is simply to good You are right
(i gave up quteing at this time...)
The thread was not related to any program when this thread was made i was still on the CC side of the community i did rellate it to a program later tho with the checker patten thing i made
"it was a joke yes" he lied While thinking about hes math was crappy and forgot how many ticks Per secount minecraft haves. No qestions was asked after that, sens the man infront of him sems to be able to read hes mind.
"..." the man lost hes apillity to talk, turned around and walked away
"the tree post here..."
ye i guess
my problem was OC's apillity to Update screens and Why there was so aggressive limits in genual (and yes You May not comment this Line please)
conclusion:
- i suck at forums
- you are right in all most all your points in You lates post
- i suck at forums ohhh Wait i Ran out of ideas... Why did i make a list...
-
17 minutes ago, Luca_S said:
Doesn't that make you think if you should ask questions in a different way?
It does but that doesn't mean that guy is allowed to shit on me also you was not a part of this argument and i don't Think You want to be. So please just stop. I get the point i don't know how to use forums in a productive manner.
may i add that nobody as told me exacly what to do insted, the complain i made in the start of this thread was meant as a qestion more then anything becuse i knew that somebody whould currect me
all what poeple have Said is that i complain to much, as far as i know this is in the programing tab not in The qestions tab technicly i chould say this just was a Big complaint. i Got a warning before (2 years ago) i belive i Said some body was "an asshole" becuse he Said i was am sure the modurator Will find a reson to kick me out
Molinko does/did not hande this well nether does/did i, i should expect asshole behaveier when i has asshole behaveier:
this did not come out well (at all) and was really childish by me:
2 hours ago, noahthegame said:Altho molinkos reaction was not at all better:
2 hours ago, Molinko said:I'd give you another if I could.
I see molinko has stop posting now even tho i Can see he Saw evrey thing all ready ("molinko reacted to this") hes trying to stop the argument witch is smart of him and i should be just as smart, right now i am waiting for the guy who managed to hold him self out of this argument when my issue is fixed I'll point out the answer (gulden cob button) and leve the thread be (deleted it if posible)
-
good to know
-
-
the code is currenly 400lines long i there for don't want to post (and becuse even if it doesn't look like it i worked a lot for this project) it here the code is located on my private webserver i don't want to give the hole community what i worked hard on am going to send you the url as a personal message i hope you understand
-
Shit Sorry bomb block Said he was one of you am Sorry up curse when You Said mod You meant modification not modutator am Sorry. When thats Said You are begging to get a bad resolut when You say:
1 hour ago, Molinko said:P.s Its not my intention to sound like a butthole..
You are basicly saying: "p.s i know am a butthole live with it"
i know my learning skills is about at the zero mark but starting out with and i qoute: Noah, sometimes, you're just wrong/"don't get it"
is a great Way to not Being a Leading member i see You used the "deleted" efect on it now tho, how conviniend
Also as a addisinal thing
1 hour ago, Molinko said:I attempt to answer questions from people seeking assistance
This is the assistance You have given me in this entire thread:
2 hours ago, Molinko said:Noah, sometimes, you're just wrong/"don't get it", and that's okay.Fingercomp has tried to demonstrate that although OC has some limitations, they're there for arguably good reasons. Many of your issues in your initial post can be addressed with a config change. As for the buffer library, fingercomp was mentioning that's it's a Singleton. What he's trying to say basically is that the buffer data, or state, will be preserved from one program to the other. If you didn't know this you might think it was a bug... Basically what I'm trying to say is that you could use the forums more appropriately by asking better and more concise questions rather than a string of appearent complaints while also ignorant of the full capabilities of the mod.P.s Its not my intention to sound like a butthole..
Ohhh Wait that is a compliant
also this thread was not meant as a complaint more of a am-complaining-about-some-thing-now-currect-me-please-becuse-i-know-am-wrong and i was my game is pushing 50fps becuse of tjat buffer API am makeing lemmings in OC it works great
-
1 hour ago, Molinko said:
Noah, sometimes, you're just wrong/"don't get it"
Thanks for reminding me
1 hour ago, Molinko said:Noah, sometimes, you're just wrong/"don't get it", and that's okay. Fingercomp has tried to demonstrate that although OC has some limitations, they're there for arguably good reasons. Many of your issues in your initial post can be addressed with a config change. As for the buffer library, fingercomp was mentioning that's it's a Singleton. What he's trying to say basically is that the buffer data, or state, will be preserved from one program to the other. If you didn't know this you might think it was a bug... Basically what I'm trying to say is that you could use the forums more appropriately by asking better and more concise questions rather than a string of appearent complaints while also ignorant of the full capabilities of the mod.
P.s Its not my intention to sound like a butthole..
You are in genural late if You looked on the recent post you'll see that my issues about the optimiazion as been adreest for long time ago
1 hour ago, Molinko said:As for the buffer library, fingercomp was mentioning that's it's a Singleton
Yes the problem now is that i can't fiqure out how to reset the singleton, am i allowed to ask how to reset it?
1 hour ago, Molinko said:P.s Its not my intention to sound like a butthole..
Well am Sorry but You kindof are at the monument, and You are doing a bad job at hiddeing it. I fell like in the event that You fell like You should write that isn't it just Best to just stop there?
it makes it even worse if You are bomb block from CC witch i have the idea that You are
1 hour ago, Molinko said:Basically what I'm trying to say is that you could use the forums more appropriately by asking better and more concise questions rather than a string of appearent complaints
... if i had 10 pence evrey time somebody Said that... i Got banned from reddit (i belive it was) in 4 days becuse of 4 poeple downvoted my qestion nobody Said anything. It's great to get reminded tho Thanks
1 hour ago, Molinko said: -
i'll make a screen recording tomorrow then i can show you the glicthy ness that comes after secout run
-
you mean like this, right:
gfxb.clear() gfxb.drawChanges(true)
if so then that doesn't work still nothing is drawen secount run
-
i tryed to do buffer.clear() but got a tryed to call a nil value
EDIT: buffer.close() i meant
-
i think i have found a bug in the that buffering api it works once but then i need to restart the computer for it to work again? do i need to close the buffer before my program ends or some thing?
-
1 hour ago, Fingercomp said:
OpenComputers has a font.hex file, which is the font that's used to render characters on the screen. Since OC 1.6, asie's funscii font is used.
ok, then
1 hour ago, Fingercomp said:OC sets significant limits the GPU, which make it much harder to do more advanced graphics. You can optimize the calls at the cost of high RAM usage — storing data in a buffer and only drawing the cells that changed since the last buffer flush. It isn't really an easy thing to implement yourself, so you might want to use a buffering library someone else made — here's one that definitely works, for example. I was also making one, but it's not yet ready.so that
so i can see that buffer api thing have the standart gpu functions so i give the infomation to the buffer (eg buffer.set(2,2,0xff0000, 0, " ")) and the buffer api will only do a gpu.set opration when it has to limting unnessary gpu.set's? is that how that works?
-
0.04 sec
but the hole idea is to being able to draw pixel per pixel
you're looking in opencomputers source do you have any idea where OC gets the charector textures from? from unicode i know but is there some kind of unicode api or some thing?
-
cm = require("component") term = require("term") term.clear() mx,my = cm.gpu.getResolution() gpu = cm.gpu i = -1 startTime = computer.uptime() --while true do for x = 1,mx do for y = 1,my do i = i + 1 if i == 0 then color = 0xff0000 elseif i == 1 then color = 0x00ff00 elseif i == 2 then color = 0x0000ff else color = 0xffff00 i = -1 end gpu.setBackground(color) gpu.set(x,y," ") end end gpu.setBackground(0) term.clear() time = (computer.uptime()-startTime) --print(os.time(), startTime) print("it took") print(time) --end
(i forgot to add a require for computer)
that program draws a "checker-patten" (i belive its called) on the screen and prints how long time it takes in IRL sec as we can see the secs sems to avg. at 3.65 sec! (while useing the createive APU) so there most be a way to optimize this, right?
-
On 8/17/2018 at 5:53 PM, Fingercomp said:
But even with all of these limits, OC can run a lot of programs, including graphical shells, 3D games, reactor control systems. It allows you to send HTTP requests to the real websites, and open raw TCP sockets to interact with network services. It can display 320x200 images. It can even play videos — inside the game, and on the default OC settings!
all that but the resolotion thing computercraft can do as well but thats off topic tho
its true there is no RAM limit made by CC's code (CC have low resolution and 4bit color insted tho)
also the only way i can think of that 320X200 images is posible is with costom charectors
On 8/17/2018 at 5:53 PM, Fingercomp said:I think T2 setup allows you to call gpu.get one thousand times every tick
T2 means tier 2 right?
well yeah it only outputs some values from memory
On 8/17/2018 at 5:53 PM, Fingercomp said:Or 256 gpu.sets
hmmm you're sure about this? where is the source? a while back i tryed to make a image format but it ran so slowly so it was unuseable i guess my format was extremly unoptimized then, now i made a format in CC witch runs both video (about 5/10 fps) and music at the same time
-
but if thats the case what is the defrence betwine the processors then? i tested it once and there was a defrence of the speed
am really sad that OC (funny i said that about CC two hmmmm... at least CC only limits resolution and color) is doing so much to optimise servers the call limit makes it so am only allowed to call a screen command 4 times a sec even the 70/80's computers chould do 40 times that i know that whould breake a minecraft server at least have a singerplayer mode or some thing so i can breake my own computer then, if i chould i whold make my own perfect computer mod but emmm... but that ain't going to happen right now is it?
also once again: CC pulled it off why can't OC then?
-
right... how lovely... ONLY ONE COMPONENT CALL PER TICK!!! JESUS duckING CRIST... that most be a joke, right?
advancedLoader - Better BIOS
in Programs
Posted
ok thanks