Jump to content


ReBraLaCC's Content

There have been 76 items by ReBraLaCC (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#258393 [FIXED] Cannot serialize type function?

Posted by ReBraLaCC on 25 August 2016 - 12:51 PM in Ask a Pro

well i can understand that but where does it say that?


-- FIXED
with drawbuttons 0-0



#258390 [FIXED] Cannot serialize type function?

Posted by ReBraLaCC on 25 August 2016 - 12:27 PM in Ask a Pro

So I'm making an API for the map i'm making so it would be a bit simpler to do everything :)/>/>
But I ran in to this error
Cannot serialize type function

And I have no idea why this happens

So if you guys could see what I'm doing wrong :)/>/>

API: -- called Utils..
Spoiler

Program itself:
Spoiler

I've added the thing at Utils.addButton (in the program not API) because i think somewhere these is the problem :(/>/>

Thanks already for taking a look

-- ReBraLa



#258293 MiniatureCraft 2.x Alpha Edition

Posted by ReBraLaCC on 22 August 2016 - 11:37 AM in Games

Thought i would give this a try, Downloaded everything and when i run it nothing happens.. gyazo

I don't know what happens inside of there so fix it please :)



#258199 Keybindings?

Posted by ReBraLaCC on 20 August 2016 - 10:43 AM in Ask a Pro

View PostBomb Bloke, on 20 August 2016 - 10:21 AM, said:

....

Thank you very much! You only had a lil typo but i fixed it :) going to leave this here... thats what i need it for :)



#258197 Keybindings?

Posted by ReBraLaCC on 20 August 2016 - 10:01 AM in Ask a Pro

So i've been trying to get like ctrl+u and other keys to do things but the way i've tried it didn't work :(

while true do
 ev = {os.pullEvent()}
 if ev[1] == "key" then
   ev2 = {os.pullEvent()}
   if ev2[1] == "key" then
    if ev[2] == keys.leftCrtl and ev2[2] == keys.u then
     return true
    end
   end
 end
end

i hope that there is maybe a simpler way to do this and a working one :)

thanks
-- ReBraLa



#258160 Minecraft Map....

Posted by ReBraLaCC on 19 August 2016 - 05:49 PM in Media

A Map?


Yes I've been working on a map..


Maybe you're rigt now asking, Why and what kind?


Well.. It's not going to be an adventure map or horror map or something like that...


No not at all... What it is going to be is a map that you need to code for :)


Well not really code but a bit like this Hour of Code

It lets you look at the code also, this will I be implementing also!


What should the name be of the map? Because I don't know :(


I hope I'll get this 'done' quickly, so i'm done with coding and can start building the map :)


Somewhere a link to a photo of the map......




-- ReBraLa :))



#258110 AdvancedOS

Posted by ReBraLaCC on 18 August 2016 - 07:51 PM in Operating Systems

hey.. no pics no clickss



#257896 ComputerCraft Wallpapers

Posted by ReBraLaCC on 12 August 2016 - 05:18 PM in Media

Those look awesome!



#257894 Scoreboard Program

Posted by ReBraLaCC on 12 August 2016 - 03:43 PM in APIs and Utilities

View PostLupus590, on 12 August 2016 - 03:14 PM, said:

Could you make it so that the colours API can be substituted where you would use your string based colours?

Thing is that not all the colors minecraft supports are available... so that won't work



#257891 Scoreboard Program

Posted by ReBraLaCC on 12 August 2016 - 02:29 PM in APIs and Utilities

A Lot of people are looking for a scoreboard program.

but those use monitors..


Ánd doesn't it look way better on the side of the screen?

Well that's what i thought!


So I've been working on a command program that creates a sidebar with what ever you want on it!


Screenshots:

Spoiler


Some information you need to know!

Spoiler


Loading a scoreboard file is the simplest thing in the world! just use 'scoreboard load <file>'


Formatting the file is a bit harder... See this example G31x0vAb


A list of all the colors

Spoiler


Okay now the fun part.... DOWNLOAD!!!!

pastebin get 11P0AHK4 scoreboard


and remember first 'scoreboard init'!!! Have fun!


CAUTION: The names as in Balance and such can't have spaces in between if you want spaces download a recourse pack that removes a letter as a space and use that letter!



#257709 Micropaint: Experimental painting program for tiny pixels

Posted by ReBraLaCC on 08 August 2016 - 03:36 PM in Programs

looks nice, ive been searching for a program like this! :)



#257661 Post Your Internet Speed!

Posted by ReBraLaCC on 07 August 2016 - 06:50 AM in General

Maybe the worst wifi ever....

Attached Thumbnails

  • Attached Image: image.png



#255763 RandString - a random string generator API

Posted by ReBraLaCC on 08 July 2016 - 03:05 PM in APIs and Utilities

Question, what will this be usefull for? because if you're using it for password encryption you need to save the password itself aswell, maybe usefull for a keycard but other idk :) nice code



#255727 Cobalt - a callback wrapper for ComputerCraft

Posted by ReBraLaCC on 07 July 2016 - 09:37 PM in Programs

damn, well made! This looks a lot like Löve as far as graphics go ;)



#255723 I cant use Peripheral.wrap. ...

Posted by ReBraLaCC on 07 July 2016 - 07:00 PM in Ask a Pro

need to define it and then do <def>.write(text)

<def> is the definition you gave it

would suggest looking at this http://computercraft.info/wiki/Monitor



#255504 Circles 2 - A Simple API that draws circles

Posted by ReBraLaCC on 04 July 2016 - 08:00 PM in APIs and Utilities

maybe idea to make filled circles
function filledCircle(rad,centerx,centery,color)
 for i = 1,rad do
  draw(rad-i+1,centerx,centery,color)
 end
end

maybe it works but its a prototype ;)
nice api!



#255192 Making a Multi Authentication Login System

Posted by ReBraLaCC on 30 June 2016 - 08:37 PM in Ask a Pro

It seems that you're trying to get an output from the programs program, thats all... would say create your own program list thing or just let it run, because center aint working :)



#255175 [SOLVED] Weird Bug

Posted by ReBraLaCC on 30 June 2016 - 04:21 PM in Ask a Pro

View PostDog, on 30 June 2016 - 04:19 PM, said:

You're overwriting the colors api on line 2. Rename your colors table to something other than colors...and it would probably be good to go ahead and localize w, h, and whatever name you settle on for your colors table.

Works! Thanks!



#255173 [SOLVED] Weird Bug

Posted by ReBraLaCC on 30 June 2016 - 03:57 PM in Ask a Pro

So I am trying to make a Rubik's Cube in CC and done some tests with the rendering of the pieces, something weird i found out was that if a launch the code first time it works great

And the second time I do it, it renders the cubes in black color (if i reboot the computer it works again)

Maybe there is something wrong with the code so that's why i've posted it here

w,h = term.getSize()
colors = {colors.white,colors.green,colors.yellow,colors.red,colors.blue,colors.orange}

local function renderCube(side)
for k,v in pairs(cube[side]) do
   drawPiece(cube[side][k],k)
end
end

function drawPiece(var,nPiece)
if nPiece == 1 then
   paintutils.drawFilledBox(w/2-2-5,h/2-2-2,w/2-2-2,h/2-2,var)
elseif nPiece == 2 then
   paintutils.drawFilledBox(w/2-2,h/2-2-2,w/2-2+3,h/2-2,var)
elseif nPiece == 3 then
   paintutils.drawFilledBox(w/2-2+5,h/2-2-2,w/2-2+8,h/2-2,var)
elseif nPiece == 4 then
   paintutils.drawFilledBox(w/2-2-5,h/2-2+2,w/2-2-2,h/2-2+4,var)
end
end

for a = 1,100 do
drawPiece(colors[math.random(1,6)],1)
drawPiece(colors[math.random(1,6)],2)
drawPiece(colors[math.random(1,6)],3)
drawPiece(colors[math.random(1,6)],4)
sleep(0.04)
end



#254924 Custum Turtle API

Posted by ReBraLaCC on 27 June 2016 - 09:12 AM in APIs and Utilities

View PostKingofGamesYami, on 26 June 2016 - 10:28 PM, said:

Ah, now I get it. I didn't even notice the misspelling x.x

:3



#254898 Custum Turtle API

Posted by ReBraLaCC on 26 June 2016 - 10:00 PM in APIs and Utilities

View PostKingofGamesYami, on 26 June 2016 - 09:56 PM, said:

2012.

http://computercraft...iki/Rednet_(API)

don't see a
rednet.brodcast()



#254896 Custum Turtle API

Posted by ReBraLaCC on 26 June 2016 - 09:53 PM in APIs and Utilities

rednet.brodcast() when has that been introduced?



#254847 [SOLVED] Problem with math.random()

Posted by ReBraLaCC on 26 June 2016 - 01:31 PM in Ask a Pro

View PostDog, on 25 June 2016 - 08:31 PM, said:

If you aren't sure which value will be larger, you can address that with something like this...
math.random(math.min(x - 1, x - spreadRad), math.max(x - 1, x - spreadRad))

View PostNanoBob, on 25 June 2016 - 08:21 PM, said:

View PostReBraLaCC, on 25 June 2016 - 07:46 PM, said:

View PostKingofGamesYami, on 25 June 2016 - 07:08 PM, said:

That error is caused by the second argument being less than the first argument.

thought of that, the fire code at the end is the code I am really using.... Ughhh errors that make no sense ;-;
It does in fact make sense. You call
math.random(x-1,x-spreadRad)

The first parameter, x is 35. And spreadRad (third parameter) is 5.
fire(35,19,5,5,13,6,colors.black)

So your math random is basicly
math.random(35-1,35-5)
Which results in
math.random(34,30)
Which is not valid since 30 is lower than 34. The second argument has to be higher in math.random()

Oh my gosh, you're totally right xD thanks!



#254802 License system

Posted by ReBraLaCC on 25 June 2016 - 07:49 PM in Ask a Pro

I dont get KST and the whole idea behind it



#254801 [SOLVED] Problem with math.random()

Posted by ReBraLaCC on 25 June 2016 - 07:46 PM in Ask a Pro

View PostKingofGamesYami, on 25 June 2016 - 07:08 PM, said:

That error is caused by the second argument being less than the first argument.

thought of that, the fire code at the end is the code I am really using.... Ughhh errors that make no sense ;-;