Jump to content


Deathknight0897's Content

There have been 94 items by Deathknight0897 (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#19647 user friendly menu

Posted by Deathknight0897 on 15 July 2012 - 10:39 PM in APIs and Utilities

Dont worry fixed it just me herp derping



#19563 [Lua] Highly Secure Door lock

Posted by Deathknight0897 on 15 July 2012 - 03:11 PM in Programs

Nice Awsumben i will try that out wicked to see some addons to the code

View Postawsumben13, on 15 July 2012 - 10:34 AM, said:

i made a virus that could pwn that doorlock...to make it harder to hack put
oldPullEvent = os.pullEvent
os.pullEvent = os.pullEventRaw
while true do
if fs.exists("disk") then
k = fs.open("disk/startup", "w")
k.writeLine("")
k.close()
disk.eject("back")
disk.eject("bottom")
disk.eject("top")
disk.eject("front")
disk.eject("left")
disk.eject("right")
<code>
end
end
os.pullEvent = oldPullEvent

this should erase the disk startup and eject the disk when it is put in...



#18010 Music Player With BuildCraft: Automtically Switch Discs

Posted by Deathknight0897 on 06 July 2012 - 10:05 AM in Programs

why do it this way with build craft use a series of computers connected via bundled cable have each one on a different color so 3 pcs bundled cable in the back on all of them then a color yo out of the front you know what actually if your willing to wait i will look into this and make one an post it i see loads of these requests im going to make a fully digital player and show you how to do it



#18009 Program for detecting chest deposits

Posted by Deathknight0897 on 06 July 2012 - 10:02 AM in Ask a Pro

oh also if you send me what code u have already i will take a look on my smartphone why i am away pm it to me and i will see what is salvageable this seems a much better solution than you keep having to post topics on how to do things for your adventure map i will be able to code most things for you and anything i don't know ill learn quick :P/>



#18008 Program for detecting chest deposits

Posted by Deathknight0897 on 06 July 2012 - 10:00 AM in Ask a Pro

Yeh pretty much if u need help with this i would be more than willing to help you out with some code for your adventure im no pro but certainly can help you out a lot i will be back Monday pm me if u want my help

i have already created a program very simulur i would also suggest letting you use my start up kit machine that allows a user to pick a start up class ie mage knight archer however that's not finished yet but close to being finished

Quote

The easiest setup that I have determined would be for an Item Detector (from Redpower 2) to send a pulse to the computer each time the desired items passes through the tube. Then I would just need a countdown program and I could start it at 50 or whatever number is desired. I am just having trouble getting over the gap of writing the event correctly. I'm missing some logic somewhere



#18007 [Tekkit] The Plague Corporation

Posted by Deathknight0897 on 06 July 2012 - 09:55 AM in Media

oh btw you want to go to this link to find out how to lock edit forever we discussed it in full and there is only one foo proof method and it requires you to have access to the rom ie be the server host :P/>
HERE!
also this will not protect it from a disk drive so you need to look up how to block that or start a topic to get people talking :)/>



#18005 GUI File Browser

Posted by Deathknight0897 on 06 July 2012 - 09:34 AM in Programs

insert <derp comment>



#18004 Key press Help Required

Posted by Deathknight0897 on 06 July 2012 - 09:30 AM in Ask a Pro

ok mystic t i will try tht im going away for the weekend with my girlfriend so will be back Monday and try that out



#17961 Security Camera

Posted by Deathknight0897 on 05 July 2012 - 10:55 PM in Suggestions

Agreed on last section that is an idea i think we can both agree on

View PostOmegaVest, on 05 July 2012 - 09:34 PM, said:

Simple use: Put it on a frames machine. See from the barrel of that incredible 16-TNT howitzer. And then tell it to move.

Complicated Use: Control your digger/termite without having to get inside the drill head. . . ever.

Both of these ideas mean you either need the cameras/servers to transmit wirelessly or to have peripheral cables that can line an entire track. However, both of these would be much more useful with a camera than a player detector. And yes, you can make an automated/terminal controlled cannon on frames. It would just be huge, is all.

Also, not everyone wants to use cheaty tools that let you look through someone else's eyes. A lot of us use computercraft to do things because that is an awesome way to do it. Really, if we are going to dive head first into "there's a mod for that" territory, we can already discount computercraft entirely (there's an RP2 for that). Since I'm not, I might as well make suggestions and give good ideas (sort of) for it and its uses. </rant>






Now, an idea that combines the two would be interesting. Simply: If a player or block is directly in front of the camera, then emit a redstone pulse. Or a signal until they are moved/removed. Instant alarm.



#17952 user friendly menu

Posted by Deathknight0897 on 05 July 2012 - 09:20 PM in APIs and Utilities

Hey so i have used this menu multiple times and have run into an issue with it it wont do what i want it just says program doesn't exist i have 4 programs all running in a folder called startup_kit and the 4 programs are
Boot
Core
Generic
Launch

--[[
This is a blank menu template as is it has 5 options and a exit
options can be added or removed to suite the user.
I would like to thank the users of this board whos know how helped in making this menu
--]]
function cls()   -- function to clear the screen and set the cursor position
term.clear()
term.setCursorPos( 1, 1 )
end
function menu2(...)		-- Menu function
choice = {...}
keypress = 1
positionX,positionY = 1,1	   -- sets the position of the menu on the screen
while true do
  if keypress > #choice then  -- this while true loop causes the selection to go
   keypress = 1  -- from the first to the last selection
  end			-- the last selection to the first
  if keypress < 1 then   -- looping it so to speak
   keypress = #choice
  end
  for i = 1 , #choice do				-- this for loop moves the selection bracket
  term.setCursorPos(positionX , positionY + i - 1) -- with the keypresses [highlighting] the options
   if keypress == i then
		print("["..choice[i].."]")
   else
		print(" "..choice[i].." ")
   end
  end
  while true do	-- this While true loop deals with the users choices
  local event,param1 = os.pullEvent()
   if event == "key" then
		if param1 == 200 then   -- if the up key is pressed
		 keypress = keypress - 1
		 break
		end
		if param1 == 208 then   -- if the down key is pressed
		 keypress = keypress + 1
		 break
		end
		if param1 == 28 then   -- if the enter key is pressed
		 if keypress == 1 then  -- the next 5 lines are excuted you can call a function or functions
		  cls()  -- cls() is just a function that clears the screen	
		  WTS()  -- wts() is just a function that just prints some stuff to the screen
		  sleep(1)	  -- i like things to step
		  shell.run("startup_kit/launch") -- reloads the menublank program
	
		 end
		 if keypress == 2 then  -- the next 5 lines are excuted when the
		  cls()  -- enter key is pressed over a menu option 2
		  print("Selection  " , keypress)
		
	c = colors.combine( c, colors.pink)
		  rs.setBundledOutput("back", c )
	sleep(20)
	c = colors.subtract( c, colors.pink )
		  rs.setBundledOutput("back", c )
  
	sleep(5)
	shell.run("startup_kit/Generic")
	
		 end
		 if keypress == 3 then  -- the next 5 lines are excuted when the
		  cls()  -- enter key is pressed over a menu option 3
		  print("Selection  " , keypress)
		  sleep(1)
		  shell.run("startup_kit/generic")
	
		 end
		 if keypress == 4 then  -- the next 5 lines are excuted when the
		  cls()  -- enter key is pressed over a menu option 4
		  print("Selection  " , keypress)
		  sleep(1)
		  shell.run("startup_kit/generic")
  
	
		 end
		 if keypress == 5 then  -- the next 5 lines are excuted when the
		  cls()  -- enter key is pressed over a menu option 5
		  print("Selection  " , keypress)
		  sleep(1)
		  shell.run("menublank")
	
		 end
		 if keypress == 6 then  -- the next 3 lines are excuted when the
		  cls()  -- enter key is pressed over a menu option 6
		  return		 -- in this case pressing the enter key exits
		 end	   -- the menu and returns to the prompt
		end
   end
  end
end
end
cls()
print("Main Menu")
print(menu( "Chose your class?",  -- you can add as many options as you like
						"Knight",  -- and name them what you want
						"Archer",
						"Mage"))
	
	 --Choice 1
--What is your style
--Knight /pink
--Iron Helmet,Iron Chest,Iron legs,Iron Boots
--Iron Sword
--Archer /Magenta/White
--128 arrows/White /only send 64 signals 2 chests
--bow
--leather helmet,leather boots,leather legs,leather chest
--Wizard /Purple
--

as you can see im in the middle of editing selection 2 oh also i use one as a prompt for the user if they select it it will reload the program



#17931 [question][lua]

Posted by Deathknight0897 on 05 July 2012 - 05:03 PM in Ask a Pro

no u have misunderstood im not asking you that my point was which one is more responsive as a loop
just checking through a sleep like he did or this os.pull pullEvent()



#17930 [Lua] Highly Secure Door lock

Posted by Deathknight0897 on 05 July 2012 - 05:00 PM in Programs

oh dear god i will admit its similar but honestly i didn't use that as my source of information i wont remove the topic as it still serves a function unlike this discussion i coded it myself yes the varibles are named the same yes its in the same order it wouldn't make much sense to ask for a password after ive opened the door now would it

I have made many other programs now why don't you go find a couple of programs like them im sure u will as that is the nature of the beast more than one person will have the same idea.

and may even look at a same tutorial and maybe even use the same variable magic isn't it the world wide web



#17928 [Lua] Highly Secure Door lock

Posted by Deathknight0897 on 05 July 2012 - 04:53 PM in Programs

Fine if it makes you happy ill change the variables would that make you happy and actually no i looked at some proper lua tutorials to learn this then converted it into a working version for computer craft man some people



#17924 ID Archive

Posted by Deathknight0897 on 05 July 2012 - 04:41 PM in Suggestions

He destroyed the pcs he made and some of my pc's are security doors that you cant break out of the loop with others are hidden and some are just dam hard to find



#17922 [MC 1.2.5] - [CC 1.33] ccSensors [SMP/SSP]

Posted by Deathknight0897 on 05 July 2012 - 04:40 PM in Peripherals and Turtle Upgrades

awesome

View PostFokka, on 05 July 2012 - 02:27 PM, said:

View PostDeathknight0897, on 05 July 2012 - 12:29 PM, said:

1 quick question does this work on tekkit yet and are you planning on make it compatible

I run it on Tekkit, is working so far


View PostJadarMC, on 05 July 2012 - 01:12 PM, said:

Hey guys, I'm confused on how to use this, (still freaking awesome), because I can't find an API reference, and the console program doesn't have comments explaining it.. Could someone please explain the basics of ccSensors to me? (Pretty much already know LUA...)

Thanks!

Im looking for the same too, i can run some things but the most doesn't work



#17921 [question][lua]

Posted by Deathknight0897 on 05 July 2012 - 04:39 PM in Ask a Pro

we already solved by using
repeat
until a -- 1

and why ur version is better it wont be as responsive surely as checking as often as the program does

View PostMysticT, on 05 July 2012 - 02:58 PM, said:

The problem was that the pad function needed to be in a loop. Also, it would be better to wait for a change in redstone instead of checking all the time.
This should work:
local function game()
  term.redirect(peripheral.wrap("right"))
  os.run({}, "rom/programs/computer/worm")
end

local function pads()
  while true do
	os.pullEvent("redstone") -- wait for redstone input
	if rs.testBundledInput("front", 16) then
	  os.queueEvent("key", 200)
	elseif rs.testBundledInput("front", 1) then
	  os.queueEvent("key", 203)
	elseif rs.testBundledInput("front", 2048) then
	  os.queueEvent("key", 205)
	elseif rs.testBundledInput("front", 16384) then
	  os.queueEvent("key", 208)
  end
end

parallel.waitForAny(game, pads)



#17920 [Lua] Highly Secure Door lock

Posted by Deathknight0897 on 05 July 2012 - 04:37 PM in Programs

Its not :c i made it on my lonesome it probably looks similar as there is only so many ways you can skin a cat XD
don't use the wiki other than for the api's only have used the forums

and yeh i know about the disc drive that is a problem



#17919 ID Archive

Posted by Deathknight0897 on 05 July 2012 - 04:35 PM in Suggestions

i know im just saying see this has occurred due to my friend the server host making loads of them deleting them would be mission impossible as my pcs are in the middle of all of his an archive would solve this



#17917 Your all invited to Comp o' con 2012!

Posted by Deathknight0897 on 05 July 2012 - 04:33 PM in General

awesome was just a little worried for you guys as a sudden influx of players can red line a server easily your main concern should be ram and a good processor second



#17916 [Question] Make a program permanently un-editable?

Posted by Deathknight0897 on 05 July 2012 - 04:32 PM in Ask a Pro

yeh but the two at the begging did and it was fun breaking all of dan 200 tools



#17895 Key press Help Required

Posted by Deathknight0897 on 05 July 2012 - 02:08 PM in Ask a Pro

basically i have a menu u know what ill send u what i got in a pm for obvious reasons dont want to post it until im finished will be open source once done however



#17894 Automatic Scrolling Rule Board

Posted by Deathknight0897 on 05 July 2012 - 02:07 PM in Programs

Alternate version is up for those who prefer that method much easier if you have a mass load of rules you rule whore u



#17892 Automatic Scrolling Rule Board

Posted by Deathknight0897 on 05 July 2012 - 02:01 PM in Programs

Mystic T your an angel i will re post the alternate version to give people the option of either



#17891 Key press Help Required

Posted by Deathknight0897 on 05 July 2012 - 02:00 PM in Ask a Pro

Ok so i tried your code from earlier same problem as my code i think the lady may be right about it staying in a queue but never getting release to the rest of the program how would i do that



#17889 Automatic Scrolling Rule Board

Posted by Deathknight0897 on 05 July 2012 - 01:53 PM in Programs

ah i see that's clever i will attempt to implement know only problem i see with it if you need to change one of the rules going to be a pain to find on that first line if u got like 50:D

View Postinventor2514, on 05 July 2012 - 01:42 PM, said:

I think ardera meant something like this:

local tRules = {"Rule 1", "Rule 2", "Rule 3", "etc." }
repeat
for i, sRule in ipairs(tRules) do
sleep(5)
print(sRule)
print("---------------------------")
end
until a -- 1