generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: I'm cloning some of the windows command line into Roblox.

Previous Thread :: Next Thread 
thelastbunny is not online. thelastbunny
Joined: 07 Aug 2009
Total Posts: 2879
05 Aug 2011 02:41 AM
Any suggestions?

I've got the echo, set, dir and cd command set up completely, working variables and everything.

I plan on doing the 'tree' command next, but I'm not sure how to make it say:

>Part
>Model
>>Part

Instead of:

>Part
>Model

I'm taking suggestions and solutions for the 'tree' command. You can see the current version in my place.


⅟½⅓¾⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞
Report Abuse
bombpaw is not online. bombpaw
Joined: 15 Mar 2009
Total Posts: 3484
05 Aug 2011 02:51 AM
I like turtle....soup.

~*Pokes*~
Report Abuse
ModZuka is not online. ModZuka
Joined: 29 Jul 2011
Total Posts: 149
05 Aug 2011 04:37 AM
Why are you doing this if you don't understand the concept of recursion?
Report Abuse
bunnybunn264 is not online. bunnybunn264
Joined: 04 Oct 2010
Total Posts: 5409
05 Aug 2011 05:40 AM
NO! Make it use bash syntax pls
Report Abuse
thelastbunny is not online. thelastbunny
Joined: 07 Aug 2009
Total Posts: 2879
05 Aug 2011 01:06 PM
@Mod

I'm a perfectly capable scripter, I posted this REALLY late last night, and I can't do ANY math at night for some reason. ( I struggle with even the most basic math )

I can do that now...

But seriously, I don't even have a Unix command shell ready to use, so I think I'll keep it windows.

I can add non-windows commands though, if you want.

⅟½⅓¾⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
05 Aug 2011 01:35 PM
@bombpaw: "I like turtle...soup"

GO ROT IN A CAGE >:O
Report Abuse
bombpaw is not online. bombpaw
Joined: 15 Mar 2009
Total Posts: 3484
05 Aug 2011 01:56 PM
D:

~*Pokes*~
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
05 Aug 2011 01:59 PM
AND THEN DIE AFTER YOU ROT
Report Abuse
thelastbunny is not online. thelastbunny
Joined: 07 Aug 2009
Total Posts: 2879
05 Aug 2011 02:32 PM
I wish this forum was always on topic...

⅟½⅓¾⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
05 Aug 2011 02:33 PM
If it was, no one would come here.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
05 Aug 2011 04:08 PM
Bash is better than Windows's command line.
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
05 Aug 2011 05:53 PM
Count = 1

function PrintTree(Object)
local Stuff = Object:GetChildren()
print(">" .. Object.Name)
Count = Count + 1

for i = 1, #Stuff do
print( string.rep(">", Count) .. Stuff[i].Name)

if Stuff[i]:GetChildren() then
PrintTree(Stuff[i])
end

end

Count = 1
end


I think that would work...
~The Master~
Report Abuse
dap300 is not online. dap300
Joined: 23 Nov 2009
Total Posts: 4738
05 Aug 2011 05:55 PM
Bash == WindowsCommandLine * math.huge

~~ Proud CAF member. ~~
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
05 Aug 2011 05:59 PM
No it wouldn't...

Count = 1


function TreeRep(Object)
local Stuff = Object:GetChildren()
print(string.rep(">", Count) .. Object.Name)
Count = Count + 1

for i = 1, #Stuff do

if Stuff[i]:GetChildren() then
RepTree(Stuff[i])
else
print( string.rep(">", Count) .. Stuff[i].Name)
end

end
end


function PrintTree(Object)
if Object:GetChildren() then
RepTree(Object)
elseif Object == nil then
print("Object is nil")
else
print(string.rep(">", Count) .. Object.Name)
end

Count = 1
end


That's better.

~The Master~
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
05 Aug 2011 11:46 PM
chdir
cls
color
title
pause
date
find





______________________________________
~pwnedu46~
-I lost the game.-
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image