This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
xXNinjaMXx's profile picture

Ninja's Programs (Taking Request)

Started by xXNinjaMXx, 08 April 2012 - 03:03 PM
xXNinjaMXx #1
Posted 08 April 2012 - 05:03 PM
xXNinjaMXx

Hello Everyone i'm going to be doing request whether it is a short function or a full program. I need a way to check if my lua is good enough for now and will be doing this for a while taking them on one at a time.


To request a a program fill out the following this will be used to determine the importance of the program and determine and Estimated Time because I do have a life infact as most people do:

SpoilerProgram Name:
What Will the Program Be Used For:
Program Description:


Releases

SpoilerCurrently None


Current Programs/Project

Spoiler

[left]Instant Message System: 50% Done[/left]
[left]Shape Builder: 1% Done[/left]
EatenAlive3 #2
Posted 08 April 2012 - 07:37 PM
Try my idea that I posted on your last thread:
SpoilerProgram Name: Shape Builder
What Will the Program Be Used For: Creating perfectly calculated structures of varying sizes via turtles.
—- Program Description —-
After starting the program, a list of several options would be shown: Sphere, Cylinder, Cone, Cuboid, Pyramid. After the user selects one, it asks for the dimensions of the shape, and the mode (dig or build.) Sphere, for example, would take a radius, and if mode is set to build, would build a sphere, or if set to dig, would dig out a spherical room. When completed, the program ends.
xXNinjaMXx #3
Posted 09 April 2012 - 01:43 AM
Try my idea that I posted on your last thread:
SpoilerProgram Name: Shape Builder
What Will the Program Be Used For: Creating perfectly calculated structures of varying sizes via turtles.
—- Program Description —-
After starting the program, a list of several options would be shown: Sphere, Cylinder, Cone, Cuboid, Pyramid. After the user selects one, it asks for the dimensions of the shape, and the mode (dig or build.) Sphere, for example, would take a radius, and if mode is set to build, would build a sphere, or if set to dig, would dig out a spherical room. When completed, the program ends.
It's in the projects section
djblocksaway #4
Posted 13 April 2012 - 06:22 AM
Heres My Idea :P/>/>

SpoilerProgram Name: ASCII Creator
What its for: Making ASCII Art On CC
What It Does:
It gives you a gui and you can select where you want certain text to be or dots, Example (so you can select the S and change them to whatever u like and than save it and run it and it will show what u made (Basically An ASCII Art Maker For CC)
(Its hard to explain)
+———————————————+
| SSSSSSSSSSSSSSSSSSSSSSSSSS|
| SSSSSSSSSSSSSSSSSSSSSSSSSS|
| SSSSSSSSSSSSSSSSSSSSSSSSSS|
|SSSSSSSSSSSSSSSSSSSSSSSSSS|
+———————————————+
BigSHinyToys #5
Posted 14 April 2012 - 09:32 AM
Heres My Idea :P/>/>

SpoilerProgram Name: ASCII Creator
What its for: Making ASCII Art On CC
What It Does:
It gives you a gui and you can select where you want certain text to be or dots, Example (so you can select the S and change them to whatever u like and than save it and run it and it will show what u made (Basically An ASCII Art Maker For CC)
(Its hard to explain)
+———————————————+
| SSSSSSSSSSSSSSSSSSSSSSSSSS|
| SSSSSSSSSSSSSSSSSSSSSSSSSS|
| SSSSSSSSSSSSSSSSSSSSSSSSSS|
|SSSSSSSSSSSSSSSSSSSSSSSSSS|
+———————————————+
I like this idea and I'm working on it right now. here is screen shot and Unfinished code
Picture
Spoiler
code ver 0.1

note:
use up and down to navigate the menu.Press enter to confirm Currently only new and exit work so use them.
new will make a lot of "1' appear on the screen use up down left right to move cursor around and press letters or other characters to add them to the grid.to exit program press Ctrl and use the menu to return to your work grid press Ctrl and the menu will disappear.
Spoiler

--[[
ASCII art editer
by Big SHiny Toys
]]
------- varibals ---------
local curX,curY
local winX,winY
local picX,picY
local picT = {}
local MMSelset = 1
local ver = 0.1
--------- end ------------
------- functions --------
local function redrawfull(off1,off2)
term.clear()
if off1 == nil then off1 = 0 end
if off2 == nil then off2 = 0 end
for i = 1 , picX + off1 do
  for v = 1 , picY +  off2 do
   term.setCursorPos(i,v)
   write(picT[i][v])
  end
end
end
local function CustomExit()
term.clear()
winX,winY = term.getSize()
term.setCursorPos((winX/2)-(string.len("Thank you for trying ACSII art")/2),(winY/2)-1)
write("Thank you for trying ACSII art")
term.setCursorPos((winX/2)-(string.len("Idear from Troll")/2),(winY/2))
write("Idear from Troll")
term.setCursorPos((winX/2)-(string.len("By Big SHiny Toys")/2),(winY/2)+1)
write("By Big SHiny Toys")
sleep(2)
term.clear()
term.setCursorPos(1,1)
error()
end
local function redrawXY()
end
local function save()
end
local function load()
end
local function Newgrid(x,y)
for i = 1 , x do
  picT[i] = {}
  for v = 1 , y do
   picT[i][v] = "1"
  end
end
end
local function menue2() -- save - load - new - exit 6 lines
local crnX,crnY = term.getSize()
local selected = 1
while true do
  if selected > 4 then selected = 1
  end
  if selected < 1 then selected = 4
  end
  term.setCursorPos(crnX-9,crnY-6)
  write("+-------+")
  term.setCursorPos(crnX-9,crnY-5)
  if selected == 1 then write("|> Save |") else write("|  Save |") end
  term.setCursorPos(crnX-9,crnY-4)
  if selected == 2 then write("|> Load |") else write("|  Load |") end
  term.setCursorPos(crnX-9,crnY-3)
  if selected == 3 then write("|> New  |") else write("|  New  |") end
  term.setCursorPos(crnX-9,crnY-2)
  if selected == 4 then write("|> Exit |") else write("|  Exit |") end
  term.setCursorPos(crnX-9,crnY-1)
  write("+-------+")
  while true do
   e,e1,e2,e3,e4,e5 = os.pullEvent()
   if e == "key" then
    if e1 == 200 then -- up key
	 selected = selected-1
	 break
    end
    if e1 == 208 then -- down key
	 selected = selected+1
	 break
    end
    if e1 == 29 then -- Ctrl
	 return
    end
    if e1 == 28 then -- enter key
	 if selected == 3 then
	  Newgrid(20,10)
	  picX,picY = 20,10
	  return
	 end
	
	 if selected == 4 then
	  CustomExit()
	 end
    end
   end
  end
end
end
---------- end -----------
------- Main Menue -------
-- load - new - help - exit
local function Mmenue()
MMSelset = 1
local s1 = "ACSII Art ver "..ver
local s2 = "--- Main Menue ---"
while true do
  if MMSelset > 4 then MMSelset = 1
  end
  if MMSelset < 1 then MMSelset = 4
  end
  winX,winY = term.getSize()
  term.clear()
  term.setCursorPos((winX/2)-(string.len(s1)/2),1)
  write(s1)
  term.setCursorPos((winX/2)-(string.len(s2)/2),3)
  write(s2)
  if MMSelset == 1 then
   term.setCursorPos((winX/2)-(string.len("  Load  ")/2),5)
   write("> Load <")
  else
   term.setCursorPos((winX/2)-(string.len("  Load  ")/2),5)
   write("  Load  ") 
  end

  if MMSelset == 2 then
   term.setCursorPos((winX/2)-(string.len("  new  ")/2),6)
   write("> New <")
  else
   term.setCursorPos((winX/2)-(string.len("  new  ")/2),6)
   write("  New  ") 
  end
 
  if MMSelset == 3 then
   term.setCursorPos((winX/2)-(string.len("  Help  ")/2),7)
   write("> Help <")
  else
   term.setCursorPos((winX/2)-(string.len("  Help  ")/2),7)
   write("  Help  ") 
  end
 
  if MMSelset == 4 then
   term.setCursorPos((winX/2)-(string.len("  Exit  ")/2),8)
   write("> Exit <")
  else
   term.setCursorPos((winX/2)-(string.len("  Exit  ")/2),8)
   write("  Exit  ") 
  end
 
  while true do
   e,e1,e2,e3,e4,e5 = os.pullEvent()
   if e == "key" then
    if e1 == 200 then -- up key
	 MMSelset = MMSelset-1
	 break
    end
    if e1 == 208 then -- down key
	 MMSelset = MMSelset+1
	 break
    end
    if e1 == 28 then -- enter key
	 if MMSelset == 2 then
	 local temvar1,tempvar2 = term.getSize()
	  Newgrid(temvar1-1,tempvar2-1) -- term.getSize()
	  picX,picY = temvar1-1,tempvar2-1
	  return
	 end
	
	 if MMSelset == 4 then
	  CustomExit()
	 end
    end
   end
  end
end
end
---------- end -----------
------- Main loop --------
Mmenue()
redrawfull()
curX,curY = 1,1
term.setCursorBlink(true)
term.setCursorPos(curX,curY)
while true do
e,e1,e2,e3,e4,e5 = os.pullEvent()
if e == "key" then
  if e1 == 200 then -- up key
   curY = curY -1
  end
  if e1 == 29 then -- Ctrl key
   term.setCursorBlink(false)
   menue2()
   redrawfull()
   term.setCursorPos(curX,curY)
   term.setCursorBlink(true)
  end
  if e1 == 208 then -- down key
   curY = curY +1
  end
  if e1 == 203 then -- left key
   curX = curX-1
  end
  if e1 == 205 then -- right key
   curX = curX+1
  end
  if curX > picX then curX = picX
  elseif curX < 1 then curX = 1
  end
  if curY > picY then curY = picY
  elseif curY < 1 then curY = 1
  end
  term.setCursorPos(curX,curY)
end
if e == "char" then
  picT[curX][curY] = e1
  write(picT[curX][curY])
  term.setCursorPos(curX,curY)
end
end
---------- end -----------

when I am happy with it i will make a thread for it.
(feed back is appreciated)
HyperPwner #6
Posted 13 September 2012 - 09:25 PM
Program Name: Metroid ASCII style
What Will the Program Be Used For: Playing Metroid
Program Description: A ASCII port of Metroid for the NES. It MUSTNT have an API download, unless it has to
evilguard #7
Posted 14 September 2012 - 04:41 AM
Here is a programs i already requested. I really thing that would be a useful one for smp.

http://www.computercraft.info/forums2/index.php?/topic/4034-request-gps-madness/

SpoilerProgram Name:GPS satellite maker!
What Will the Program Be Used For: Set-up Gps satellite up in the sky.
Program Description: Put a turtle down, run programs, give actual position of the turtle. Then put 4 computer, 4 modem, 1 disk and 1 disk reader in the turtle. The programs ask or say what slot is any item. Then it go max altitude in the sky and build the GPS satellite. Then come back.

Addition : it could be nice to set-up a way to choice of programs to install into a computer. For example i did set-up a chat system for my little village on smp. so making the turtle go and set-up the programs up in the sky could be nice.
Left4Cake #8
Posted 14 September 2012 - 11:17 PM
This is something I have tried to do myself but I hit a few road bumps and life is busy right now, So I wouldn't mind if someone beat me to it.



name: html parser api
what will the program be used for: Trying to make my own varation on "rednet"
what will the progame do: Replace HTML tags with plain text equivalent, like <br /> with new line. Also if it could save all urls to a single array, and may be if when it was said and done if each line of the newly parsed page was in an array at a different value.