Not to be a dick or anything but Lua is not an acronym it actually means "moon" in Portuguese so you don't have to write it in caps
- ComputerCraft | Programmable Computers for Minecraft
- → darkrising's Content
darkrising's Content
There have been 84 items by darkrising (Search limited from 10-February 22)
#178392 Self-Replicating Turtle - Revisited
Posted by
darkrising
on 14 May 2014 - 12:02 AM
in
Turtle Programs
Not to be a dick or anything but Lua is not an acronym it actually means "moon" in Portuguese so you don't have to write it in caps
#176011 [1.62+] LogOS -- Development has restarted!
Posted by
darkrising
on 01 May 2014 - 12:24 AM
in
Operating Systems
shell.run("LogOS/darkchat", user1, 10, true)
should beshell.run("LogOS/darkchat", user1, 10, "true")
#174524 [1.62+] LogOS -- Development has restarted!
Posted by
darkrising
on 20 April 2014 - 03:16 PM
in
Operating Systems
I added some arguments to darkchat (username, channel, auto update) so you can launch it a bit easier and pass along the username to it directly
Thought it would make your life easier!
#173102 Dark Retriever - Program Downloader / Library
Posted by
darkrising
on 13 April 2014 - 12:42 AM
in
Programs
lukasdragon, on 13 April 2014 - 12:02 AM, said:
darkrising, on 12 April 2014 - 10:50 PM, said:
lukasdragon, on 12 April 2014 - 10:46 PM, said:
As long as you give me credit, I don't mind
If you take a look at my Github you will find a program versions file that's where the dark retriever gets its info.
Like in my example above:
["server"]={ --program name
["GitURL"]="https://raw.github.com/darkrising/darkprograms/darkprograms/darksecurity/server.lua", --direct url to the program.
["Version"]=6.301, --version
["Type"]="program", --category
["Name"]="Dark Programs Server", --Actual name of the program
["Description"]="Dark Programs Base Security Server", --A small description of what it does or is
["Author"]="Darkrising", --Author
["Package"]="Dark Security", --Package the program is located
},
So if you had a program called potato
["potato"]={
["GitURL"]="http://www.some.url.com/potato",
["Version"]=1.0,
["Type"]="program",
["Name"]="An epic potato program",
["Description"]="Potatos are epic",
["Author"]="MrPotato",
["Package"]="PotatoPrograms",
},
Edit also for auto-update:
From my api I have this function
function gitUpdate(ProgramName, Filename, ProgramVersion)
if http then
local getGit = http.get("https://raw.github.com/darkrising/darkprograms/darkprograms/programVersions")
local getGit = getGit.readAll()
NVersion = textutils.unserialize(getGit)
if NVersion[ProgramName].Version > ProgramVersion then
getGit = http.get(NVersion[ProgramName].GitURL)
getGit = getGit.readAll()
local file = fs.open(Filename, "w")
file.write(getGit)
file.close()
return true
end
else
return false
end
end
And my program calls it in the form of:
if AutoUpdate == true then
if ((dark.gitUpdate("server", shell.getRunningProgram(), Version) == true) or (dark.gitUpdate("dark", "dark", dark.DARKversion) == true)) then
os.reboot()
end
end
#173075 Dark Retriever - Program Downloader / Library
Posted by
darkrising
on 12 April 2014 - 10:50 PM
in
Programs
lukasdragon, on 12 April 2014 - 10:46 PM, said:
As long as you give me credit, I don't mind
If you take a look at my Github you will find a program versions file that's where the dark retriever gets its info.
#171458 [Closed] [1.6.4] DarkServerUK - Computorz Server
Posted by
darkrising
on 03 April 2014 - 04:48 PM
in
Servers

DSUK4 or Computorz is our in-game computer focused pack.
Why choose us?
+Active admins
+Mature players
+Friendly staff
+99.9% uptime
+Fully dedicated EU hardware
Sounds good, how do I get on your server?
This server does not have a whitelist, all you have to do is grab the configs, download the mods and join!
You can find the mod list, configs and IP on our wiki.
(There was a status image here but this forum doesn't like the file extension)
More information can be found on our wiki or website.
If you need help please contact us though our forums, teamspeak, IRC irc.darkserver.co.uk #thedarkserver (or our web client) or twitter @thedarkserver
This server has closed. I'll leave this up for future reference.
#159043 (Openperipherals For Mc 1.6.2) Robot / Mech Target Program
Posted by
darkrising
on 02 January 2014 - 04:14 PM
in
Programs
kelevra.1337, on 02 January 2014 - 04:11 PM, said:
I also made some mech Utils lately, including a basic prefire system, getting and sorting a list of mobs nearby and such.
If youre interested in using/improving it i could post the pastebin here
Sounds interesting, ye sure drop me a pastebin link
#158539 Dark programs: Base security / Remote login / Keycards / Server & multipl...
Posted by
darkrising
on 30 December 2013 - 11:10 AM
in
Programs
Kwok, on 22 December 2013 - 01:07 PM, said:
I installed a server and promoted myself to a admin. Then I installed the Client on a other one. It seemed as it works, but when i enter my nickname and password (and press Enter) nothing happend. The client is shown in the list of the server.
I fixed this, dunno what was going wrong but it is working now, you may have to re-download the program though.
#156266 Dark programs: Base security / Remote login / Keycards / Server & multipl...
Posted by
darkrising
on 13 December 2013 - 01:07 PM
in
Programs
gknova61, on 13 December 2013 - 12:54 PM, said:
Edit: I fixed this issue, the client now checks for distance of the server, if it doesn't match the one in the database, the granted message is rejected.
#154853 Dark Retriever - Program Downloader / Library
Posted by
darkrising
on 02 December 2013 - 02:46 PM
in
Programs
LBPHacker, on 02 December 2013 - 02:35 PM, said:
Thanks
The reason they're stored as double numbers is because my program's auto updater compares the version of the program to the downloaded one.
#154828 Dark Retriever - Program Downloader / Library
Posted by
darkrising
on 02 December 2013 - 11:34 AM
in
Programs
This program is a program downloader with an easy to use gui and startup script generation.
It's probably easier to show you...








So yeah, as seen from the images, everything is split down into author -> package -> program.
You navigate the menu items by using up, down, left and right arrows. When your are in the program information window you just hit enter to download! Simple!
To download just type: pastebin get N22T449A dr
If you want your programs added to Dark Retriever just take a look at my github and submit a pull request.
The format for adding a program is:
--GitURL can be any URL, but it must be direct
["server"]={
["GitURL"]="https://raw.github.com/darkrising/darkprograms/darkprograms/darksecurity/server.lua",
["Version"]=6.301,
["Type"]="program",
["Name"]="Dark Programs Server",
["Description"]="Dark Programs Base Security Server",
["Author"]="Darkrising",
["Package"]="Dark Security",
},
#154753 Dark programs: Base security / Remote login / Keycards / Server & multipl...
Posted by
darkrising
on 01 December 2013 - 12:34 PM
in
Programs
Edit: To all those having problems, just re-download either the installer or Dark Retriever to get the most up to date links.
#154522 Dark programs: Base security / Remote login / Keycards / Server & multipl...
Posted by
darkrising
on 29 November 2013 - 08:46 PM
in
Programs
CraveMode, on 25 November 2013 - 06:24 PM, said:
parallel :22: dark:356: attempt to index ? (a number value)
UPDATE: Well, I went and redone this later and it seems to be working now. Loving it!
Another Update: Started our own server for 1.6.4 and the script works flawlessly. Just incase anyone saw this message previously and thought it might be broken.
Thanks for it!
Yeh I was renaming some things on github, so probably that was the cause, thought noone was using the update at that time haha
#154423 [Solved] Help sorting a table with the values inside the table
Posted by
darkrising
on 28 November 2013 - 07:39 PM
in
Ask a Pro
db = {
things = {
["thing"] = {
name = "bla",
owner = "bla",
someOtherValue = "bla",
}
["another_thing"] = {
name = "bla",
owner = "bla",
someOtherValue = "bla",
}
}
}
ordertbl = {}
--Insert the things.thing.name into the table instead
for name,data in pairs(db.things) do
table.insert(ordertbl, data.name)
end
--Then sort that and use it to call the data
table.sort(ordertbl)
...
#154421 [Solved] Help sorting a table with the values inside the table
Posted by
darkrising
on 28 November 2013 - 07:11 PM
in
Ask a Pro
db = {
things = {
["thing"] = {
name = "bla",
owner = "bla",
someOtherValue = "bla",
}
["another_thing"] = {
name = "bla",
owner = "bla",
someOtherValue = "bla",
}
}
}
ordertbl = {}
--Insert the tables from db.things into an ordered table
for name,data in pairs(db.things) do
table.insert(ordertbl, db.things[name])
end
How would I sort the new ordertbl by things[thing].name ?
#153619 Dark programs: Base security / Remote login / Keycards / Server & multipl...
Posted by
darkrising
on 21 November 2013 - 05:08 PM
in
Programs
coolmark1995, on 19 November 2013 - 03:26 PM, said:
It's been a while since I've worked on this program, but I'm thinking of getting back in and releasing some new updates.
Do you mean like a list of computer ID currently associated with the server, or more of a live update type deal. The client computers do send their ID to the server (as far as I remember)
#148178 Is It Just Me Or Does Everything Seem Quiet...
Posted by
darkrising
on 06 October 2013 - 11:20 PM
in
General
#148031 Is It Just Me Or Does Everything Seem Quiet...
Posted by
darkrising
on 05 October 2013 - 10:13 PM
in
General
As for GTA V, unless it comes out on PC then meh.
It would be cool to find a decent new sandbox game...
#147840 Is It Just Me Or Does Everything Seem Quiet...
Posted by
darkrising
on 04 October 2013 - 05:17 PM
in
General
It seems like every useful program for CC has been made and the upcoming Minecraft patches are quite dull.
I guess the community needs something new...
What do you think?
#147307 (Openperipherals For Mc 1.6.2) Robot / Mech Target Program
Posted by
darkrising
on 30 September 2013 - 01:29 AM
in
Programs
I also added a yaw fix so the robot hits the player.
I'm working on a predictive movement program too but thought you might be interesting in what I have so far.
Code:
function run()
target = m.getPlayerData(id,player)
tarx = target.position.x
tary = target.position.y
tarz = target.position.z
ourx,oury,ourz = m.getLocation(id)
fix = ourx + tarx
fiy = oury + tary
fiz = ourz + tarz
m.aimAt(id,fix,fiy,fiz)
fp = cp - 5
m.fireLight(id)
print("Target X "..tarx)
print("Target Y "..tary)
print("Target Z "..tarz)
print("Our X "..ourx)
print("Our Y "..oury)
print("Our Z "..ourz)
print("Fixed X "..fix)
print("Fixed Y "..fiy)
print("Fixed Z "..fiz)
print("Yaw "..cp)
end
arg = {...}
if #arg == 0 then
print("Usage: <amount> <time> <player> <robot id> <side>")
return
end
player = arg[3]
id = tonumber(arg[4])
m = peripheral.wrap(arg[5])
for i = 1, arg[1] do
run()
sleep(tonumber(arg[2]))
end
If you don't know how to use OpenPeripheral Mechs, just place down a robot contoller next to a computer, right click to open it and place your robot inside, this will give it an ID.
You then wrap the peripheral and use the robot ID in each function you want to execute.
Screenshot:

Pretty cool huh?
Note: If you want an API list for the mechs I made one on my wiki!
#142585 Toraktu - A Server Template [ Automated ]
Posted by
darkrising
on 31 August 2013 - 09:56 AM
in
Programs
I have modified my chat program to work with Flare with send and receiving having a short delay, 1 or 2 seconds locally. I'm sure it could be optimised to work a lot faster but for now it works okay.
My current progress is on my github if you wish to check it out
#141200 Turtle Letter / Word Builder!
Posted by
darkrising
on 22 August 2013 - 09:18 AM
in
Turtle Programs
Screenshot:

To get this program just type: pastebin get mHZ07a1q letter
Then simply type: letter <word>
Example: letter darkrising
#139446 [Tables] Tables Multiple Values Per Key
Posted by
darkrising
on 11 August 2013 - 12:41 PM
in
Ask a Pro
JamiePhonic, on 11 August 2013 - 12:34 PM, said:
darkrising, on 11 August 2013 - 11:55 AM, said:
TableUsers={}
TableUsers[username]= {}
TableUsers[username].password = password
TableUsers[username].menu = menu
saveDB(TableUsers, PasswdDB)
Edit so line 35 would be
if (TableUsers[username].password == password) then --Login ok
i've realised that with a few minor tweaks, i can turn this into an API. if i get round to doing it, ill give you credit :-)
No problem, glad I could help
If you look at my DarkPrograms I use a similar method handling users and other information.
#139442 [Tables] Tables Multiple Values Per Key
Posted by
darkrising
on 11 August 2013 - 11:55 AM
in
Ask a Pro
TableUsers={}
TableUsers[username]= {}
TableUsers[username].password = password
TableUsers[username].menu = menu
saveDB(TableUsers, PasswdDB)
Edit so line 35 would be
if (TableUsers[username].password == password) then --Login ok
#139434 [Tables] Tables Multiple Values Per Key
Posted by
darkrising
on 11 August 2013 - 10:56 AM
in
Ask a Pro
function saveDB(tbl, filename)
local str = textutils.serialize(tbl)
local file = fs.open(filename, "w")
file.write(str)
file.close()
end
function loadDB(filename)
local file = fs.open(filename, "r")
local tbl = textutils.unserialize(file.readAll())
file.close()
return tbl
end
aTable = {"some values"}
saveDB(aTable, "filename")
aTable = loadDB("filename")
Something along those lines.
- ComputerCraft | Programmable Computers for Minecraft
- → darkrising's Content


