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  

#267291 Scoreboard API?

Posted by ReBraLaCC on 30 May 2017 - 04:50 AM in Ask a Pro

And ive made a whole api for making scoreboards, it is not the best but it does its job

http://www.computerc...363#entry261363



#266308 count down from x number help (SOLVED)

Posted by ReBraLaCC on 15 April 2017 - 01:54 PM in Ask a Pro

or do it easier and do it like

for a = 4,1,-1 do
print(a)
end



#266296 fs.list Filters?

Posted by ReBraLaCC on 15 April 2017 - 10:05 AM in Ask a Pro

there is a function in an api, i thought it was fs that gives you a boolean when the file is a directory... i think it is fs.isDirectory(path)



#265927 Door Lock Code Issues

Posted by ReBraLaCC on 30 March 2017 - 09:17 AM in Ask a Pro

the error is caused because you ended the if statement 1 line above it and i dont know if it matters but you have "read ("*")" and i think it should be "read("*")"



#264354 The Office

Posted by ReBraLaCC on 03 February 2017 - 11:41 AM in Media

a map?



#263348 paintutils loadAnim/drawAnim

Posted by ReBraLaCC on 04 January 2017 - 06:24 AM in APIs and Utilities

with drawAnim() just for shorter code and i dont know if it is faster but its easier because lua kinda does the if statement for you
x = x or 1
y = y or 1
delay = delay or 0.25
loop = loop or false



#263145 upload files to pastebin

Posted by ReBraLaCC on 28 December 2016 - 05:37 PM in Ask a Pro

View PostKingofGamesYami, on 28 December 2016 - 05:14 PM, said:

You can't. Pastebin's API doesn't allow it.

Oh... Well thanks for the quick answer!



#263143 upload files to pastebin

Posted by ReBraLaCC on 28 December 2016 - 05:00 PM in Ask a Pro

I want to change an existing post on pastebin (that i created ofcourse) inside of CC, but i don't know how..

I know how to get something of pastebin without using the pastebin program..

and if you want to know my account is attached with my twitter profile if that is important


-- thanks ReBraLa



#262201 Chat system

Posted by ReBraLaCC on 25 November 2016 - 12:21 PM in Ask a Pro

if im not mistaking almost everything can be found on the wiki... about the range of modems and how to send/receive messages



#261592 trace - Simple stack traces for errors

Posted by ReBraLaCC on 08 November 2016 - 03:22 PM in Programs

ohh this looks usefull instead of having to rerun the program everytime :)



#261363 [COMMAND-PC] Scoreboard API

Posted by ReBraLaCC on 03 November 2016 - 09:08 AM in Command Programs

You have probably seen my old post with the program that you needed 'costum' formatting for... but now, that's no more. Say hello to

The first release of my ScoreBoardAPI (a.k.a SAPI)

Download: SAPI

Documentation: Pastebin


NOTE:

If you find any bugs tell me, and dont go into the code your self..

And every world you need to run [apiname].init() per world not every progam..

Also, if you have any ideas also tell me!

EDIT added "simple" documentation



#261223 Diamond Monitors

Posted by ReBraLaCC on 30 October 2016 - 07:40 PM in Suggestions

dont get the reason really for diamond monitors... you can make monitors pretty big, and use a program called stitch by kingofgamesyami to connect monitors to make them even bigger



#260789 WOS

Posted by ReBraLaCC on 19 October 2016 - 06:02 PM in Operating Systems

pastebin?



#260553 Redirection - New Trailer and Steam Release Date!

Posted by ReBraLaCC on 12 October 2016 - 06:53 PM in General

damn dan, that game looks really good!



#260497 Help me please

Posted by ReBraLaCC on 11 October 2016 - 02:36 PM in Ask a Pro

you did
  drawMenu1()
instead of what it should be like
  drawMenu1 = function()



#260312 TT.OS - The ultimate OS in CC!

Posted by ReBraLaCC on 06 October 2016 - 07:09 PM in Operating Systems

Option for people to help with translations? Could help with a dutch translation :)



#260055 returns of os.loadAPI()

Posted by ReBraLaCC on 29 September 2016 - 04:14 PM in Ask a Pro

 ReBraLaCC, on 29 September 2016 - 04:01 PM, said:

-- Snip

Solved the getting version with this
local file = fs.open(gamePath.."api-versions","r")
local versions = textutils.unserialise(file.readAll())
file.close()
function getVersion(api)
if versions[api] then
  return versions[api]
else
  return 0
end
end



#260054 returns of os.loadAPI()

Posted by ReBraLaCC on 29 September 2016 - 04:01 PM in Ask a Pro

 KingofGamesYami, on 29 September 2016 - 03:54 PM, said:

No. os.loadAPI will always return true or false. You could write your own os.loadAPI (or just modify the existing one) to make it return values.

Okay, I'll think about something! question know any reason why it won't add the str from
for k,v in pairs(apis) do
  str = v..","..str
end
add("Loaded:",str)
add("Total APIs: #"..total)
to the log?



#260051 returns of os.loadAPI()

Posted by ReBraLaCC on 29 September 2016 - 03:46 PM in Ask a Pro

So I was curious if you could get other returns other than true from os.loadAPI()

here was the code i had:
local gamePath = "Jetpack/"
local apiPath = gamePath.."api/"
apis = {"log"}
os.loadAPI(apiPath.."log")
local add = log.add

log.set(gamePath.."logs","log-"..os.day(),".gl")
function loadAPIs()
str = ""
add("Loading APIs...")
for k,v in pairs(fs.list(apiPath)) do
  if v ~= "log" then
   os.loadAPI(apiPath..v)
   table.insert(apis,v)
  end
  total = k
end
for k,v in pairs(apis) do
  str = v..","..str
end
add("Loaded:",str)
add("Total APIs: #"..total)
end
loadAPIs()

maybe i could just make a function in each API to get the version but i was wondering if there was a way :)

-- ReBraLa

** Indention was better, website edited it like this

*** Have a return in the API as
local version = 1.3213123
return version



#260005 Rate the Above User's Avatar!

Posted by ReBraLaCC on 28 September 2016 - 10:31 AM in Forum Games

9.99876246/10 southpark! If it was a screen from the minecraft episode it would be even better so ;)



#259766 width and heigth

Posted by ReBraLaCC on 22 September 2016 - 05:15 PM in Suggestions

View PostLignum, on 22 September 2016 - 03:05 PM, said:

You can do this:
local width = ({term.getSize()})[1]
local height = ({term.getSize()})[2]

I tried todo that and it didnt work.... hmm (version 1.79pr3?)



#259760 width and heigth

Posted by ReBraLaCC on 22 September 2016 - 02:47 PM in Suggestions

couldn't there be some function added like term.getWidth and term.getHeigth, i know that there is term.getSize()

but it would be easier to do it like this
string.rep("-",term.getWidth)

than to do it like

w,h = term.getSize()
string.rep("-",w)



#259566 LDDFM - An API-based file manager for your programs!

Posted by ReBraLaCC on 19 September 2016 - 01:27 PM in APIs and Utilities

could you also add a filter for hidden files?



#259230 While true do help!

Posted by ReBraLaCC on 11 September 2016 - 04:18 PM in Ask a Pro

X = true
while X do
st = read()
m = peripheral.wrap("left")
rednet.open("right")
id, message = rednet.receive()
m.setTextScale(1)
m.setCursorPos(1,1)
m.write(message)
if st == "end" then
  X = false
end
end

Like that, or you just use break instead of X = false



#258503 Micropaint: Experimental painting program for tiny pixels

Posted by ReBraLaCC on 27 August 2016 - 04:45 PM in Programs

This happened when i clicked on Crop:
Posted Image

Comes out at this function: drawMagCode()