Jump to content


darkrising's Content

There have been 84 items by darkrising (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#178392 Self-Replicating Turtle - Revisited

Posted by darkrising on 14 May 2014 - 12:02 AM in Turtle Programs

Really nice, I like!

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

Hi, found a crash: line 91 in logos:

shell.run("LogOS/darkchat", user1, 10, true)
should be
shell.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

Hi, love this OS!

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

View Postlukasdragon, on 13 April 2014 - 12:02 AM, said:

View Postdarkrising, on 12 April 2014 - 10:50 PM, said:

View Postlukasdragon, on 12 April 2014 - 10:46 PM, said:

Do you mind me modifying it to allow some of my programs to be installed too?

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.
I tried to figure it out however what exactly do I need to change? here is my copy of your My repo

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:
Spoiler



#173075 Dark Retriever - Program Downloader / Library

Posted by darkrising on 12 April 2014 - 10:50 PM in Programs

View Postlukasdragon, on 12 April 2014 - 10:46 PM, said:

Do you mind me modifying it to allow some of my programs to be installed too?

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



Posted Image


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

View Postkelevra.1337, on 02 January 2014 - 04:11 PM, said:

Hey darkrising,

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

View PostKwok, on 22 December 2013 - 01:07 PM, said:

First of all: i´m a nooby Noob in Computercraft and my englisch is very bad.

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

View Postgknova61, on 13 December 2013 - 12:54 PM, said:

Potential security hole in your client. They don't check the ID of the computer sending the '#granted' message so you can just make a program sending that encrypted over and over until the redstone signal happens.

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

View PostLBPHacker, on 02 December 2013 - 02:35 PM, said:

I'll just stick to clapping and saying "awesome". I really like the design. One thing though: I'd store the versions as strings, as they are capable of holding more information than a double number.

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

Hello, as this program has got more and more complex I thought it deserved its own thread.

This program is a program downloader with an easy to use gui and startup script generation.

It's probably easier to show you...
Spoiler

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:
Spoiler



#154753 Dark programs: Base security / Remote login / Keycards / Server & multipl...

Posted by darkrising on 01 December 2013 - 12:34 PM in Programs

Ah, that could be a problem, I actually changed a heep of links in the programs, didn't realise people were still using them lol :P

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

View PostCraveMode, on 25 November 2013 - 06:24 PM, said:

Hey, I was trying to install your db lock program on a FTB Unleashed 1.5.2 server, trying to set up the server. I skip where to install as tutorial says and choose 1 for security, once it reboots, it gives the error
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

Never mind, I fixed it.

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

Hi, I would like to be able to sort a table by a value inside of it - not very well explained, but here's my code:

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

View Postcoolmark1995, on 19 November 2013 - 03:26 PM, said:

Hello Darkrising coolmark1995 here I was wondering is there a way to get the server to detect the computer id? it does not show computers on the network in the server

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

View Posttheoriginalbit, on 05 October 2013 - 10:16 PM, said:

View Postdarkrising, on 05 October 2013 - 10:13 PM, said:

It would be cool to find a decent new sandbox game...
StarMade :P

StarMade is a bit too glitchy at the moment :P



#148031 Is It Just Me Or Does Everything Seem Quiet...

Posted by darkrising on 05 October 2013 - 10:13 PM in General

CC for Terarria would be kinda cool or some similar thing.

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

As the title says, I think the Computercraft forums and Minecraft itself seem very quiet.

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

Hi all, this is just a simple program I wrote which allows the newly added robots from OpenPeripherals to shoot at a specific player.

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:
Spoiler

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:
Posted Image

Pretty cool huh? :P/>/>


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 been talking and sharing some ideas with TorakTu and have come up with a small prototype called Flare which allows Computercraft computers to communicate across the internet by using PHP scripts attached to a MySQL server. As it currently stands it is quite insecure as any computer can use any ID but I wish to implement a user login later down the line.

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

Hello, this is a small program I made which allows turtles to build letters or words into the world.

Screenshot:

Posted Image

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

View PostJamiePhonic, on 11 August 2013 - 12:34 PM, said:

View Postdarkrising, on 11 August 2013 - 11:55 AM, said:

line 69:
	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
You sir, Are AWESOME!
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

line 69:
	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

To store a table serialized just get a couple of functions:
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.