Share your repls and programming experiences

← Back to all posts
My OS(Like) thing called MyCMD V 1.3
EpicGamer007 (548)

MyCMD V 1.3

has been released. This is actually based the latest version of TextAPL and I made some changes to it which includes

  • I changed the name to MyCMD
  • The style changed to a Command Line style(IDK what to call it)
  • I removed the file manager and replaced so that it actually created REAL txt files and not just some text in an ArrayList
  • Added a die you can roll
  • Added a coin you can flip
  • I added a bit of Color
  • And finally changed the "Guessing game" to be MUCH simpler(in code)

Thanks to @DynamicSquid for telling me what this should be called(lol, I was so confused).

If you have any ideas to make it better or new features to add(Because it still is really small), Please tell me in the comments!

Thank you to all upvotes and comments

Also, I added some secret commands in it(Thanks @CodeLongAndPros for the suggestions). If you find one and tell me in the comments, I will give you an upvote. Also, absolutely NO cheating by looking in the code.

Quick correction: The time command was supposed to show PST time but it was one hour ahead, fixed that to the correct PST time.

Quick correction 2: Now you can enter HELP or HeLp or hElP because it automatically converts the string to lowercase!

THANK YOU ALL SO MUCH, I HAVE HIT 50 CYCLESSS. I feel so proud, thank you all.

Commentshotnewtop
EpicGamer007 (548)

Thank you @SilentShadowBla , @ZanderSlack1 , @DannyIsCoding , @AmazingMech2418 , @HenryZelonka1 , @awesome10 , @ImplodingBug , @DragonBoi759 , @Jakman , @Ganesha1 , and @lightningrock for upvoting this post. It really means a lot to me.I know others have but they have already seen the new version but I would just like to inform you about MyCMD's latest Update V 1.4 which you can fine here. This has a lot of new stuff and is MUCH better than this. I hope you will enjoy that as well! :)

awesome10 (221)

@DynamicSquid oh :( how do they work? me too busy fighting ender dragon (see status or bio or whaterver)

DynamicSquid (3565)

@awesome10 they are only local to the user

DynamicSquid (3565)

@awesome10 According to @AmazingMech2418:

What happens is that Repl.it creates a randomized file system on the user's end for every time a user views the repl while for the owner, the file system is always in /home/runner. /home/runner is the only file system path that actually will save in a given repl and all other randomly generated paths will disappear on reload or page close. The only way to allow other people to access the /home/runner file system is to use a server and within the server, based on requests from the client, write to files and read files.

EpicGamer007 (548)

@DynamicSquid Thank you for explaining, I wish i knew how to do that :(

AmazingMech2418 (900)

@AbhayBhat @awesome10 To allow the file system to save, you can simply make a basic server. I've never created a server in Java (I'm honestly not sure if Repl.it would support that anyways), but it is fairly simple to create a Node.js server using Express. Then, you can make all i/o requests simply requests to the server which handles the files on its own end. It is possible to embed a server in an application like this (I made a whole template about it in JavaScript), but it might just be easier to make the server a separate repl.

EpicGamer007 (548)

@AmazingMech2418 Thanks for explaining as well. I believe JS or php would work either, right?

AmazingMech2418 (900)

@AbhayBhat You're welcome! And, yes, JS or PHP would work for this. I personally prefer JS, but really, anything you can use to create a server can be used.

ImplodingBug (5)

@ImplodingBug Using an module to get and display data(like wget in bash) you can get data from a web server in PHP, and then depending on the get statement display different things.

TheDrone7 (1326)

Shall I suggest giving an extra space after the >> to make it look better.

EpicGamer007 (548)

@TheDrone7, Sure! I will do that for 1.5!

king2010 (1)

Abhay do you wach bnha/mha if so could you make a mha game. your probably wonderimg why I cant do its because im noob I just started coding 2 days ago

EpicGamer007 (548)

@king2010 I have watched MHA but I am not that interested. Maybe I will in the future. Thanks for the suggestion :)

EpicGamer007 (548)

@awesome10 YAY! wait.. for some reason, even though you made a file, it does not come up for me, i wonder what happened :(.

awesome10 (221)

oh no they keep deleting my files !!! :(((((((( (i know i have a lot of mouths dont judge)

EpicGamer007 (548)

@awesome10 hmmm, i still don't get it. I think we have to do something with php or stuff.(which IDK)

EpicGamer007 (548)

@awesome10 Heyyy, you found a secret command. I gave you upvote and please tell me you didn't cheat.

awesome10 (221)

@AbhayBhat do you mean i forgot to write a coin?

EpicGamer007 (548)

@awesome10 Did you read the description, if you find a secret command(one not listed in the help menu and not an INVALID command), you get an upvote if you tell me in the comments.

awesome10 (221)

@AbhayBhat oh it was an accident xD

EpicGamer007 (548)

@awesome10 flip without anything was the secret command :)

awesome10 (221)

@AbhayBhat oh. i mean, upvotes are good... so thanks! i should do this...

awesome10 (221)

@AbhayBhat how do you upvote a person?

awesome10 (221)

@AbhayBhat lol i wont idk where to look

EpicGamer007 (548)

@awesome10 I just upvote the message. That works, right?

ImplodingBug (5)

Good job! Just remember that people may be able to add text files to your repl via the system you made. Also I would look into making a Java interperter.

EpicGamer007 (548)

@ImplodingBug I am perfectly ok with that, in fact, I want people to do that. :)

EpicGamer007 (548)

@ImplodingBug, Also thank you for the upvote!

Jakman (454)

Good. Would you like to help me finish the original project?

EpicGamer007 (548)

@Jakman Sorry, can't now, maybe at 3.

Jakman (454)

@AbhayBhat it is 4:33 over here. you mean 3 in the morn'?

EpicGamer007 (548)

@Jakman It is 2:34 for me, I mean 3 my time or 5:00 your time.

Jakman (454)

@AbhayBhat sounds good. Ill keep the timezones in mind.

EpicGamer007 (548)

@Jakman, Hey did you see my invite to the Game project, if you are available, lets work on it.

Jakman (454)

@AbhayBhat i am. I will be there now.

EpicGamer007 (548)

@Jakman Hey Im back, sorry I took so long.

EpicGamer007 (548)

@Jakman Hey, I did some stuff to the Menu in our project, when you first get on, check it out.

CodeLongAndPros (1357)

Funny how the roll command is only found when the die argument is passed...

EpicGamer007 (548)

@CodeLongAndPros I do not understand what you are saying. My java knowledge is puny

EpicGamer007 (548)

@CodeLongAndPros UNIX? No Windows. But apparently repl Java on Ubuntu(Whatever those are)

CodeLongAndPros (1357)

@AbhayBhat Ok, so in Unix, there are command line programs. Each program can take any number of arguments:

cat main.py
ls -l .

Your's says 'command not found' when I supply roll with no arguments, opposed to roll dice

EpicGamer007 (548)

@CodeLongAndPros OHHHH, i mean, if you look at my code, i just tell the Dice object to roll if the user types in roll dice and it is case sensitive

CodeLongAndPros (1357)

@AbhayBhat I could see that, but if they just type in roll, it would be funny to see:

Err: Cannot roll nothing.
Please supply a compatible object to roll.
CodeLongAndPros (1357)

@AbhayBhat Yes. You should also do funny error messages for the others as well.

EpicGamer007 (548)

@CodeLongAndPros Ok, Thank you for the suggestion, I will continue to work on this adding more features as time goes along :).

CodeLongAndPros (1357)

@AbhayBhat Also, if they enter roll {obj} say:
Err: Cannot roll {obj}: Invalid roll format

EpicGamer007 (548)

@CodeLongAndPros Also, that never passes the "die" argument. its literally
if(input.equals("roll die'){ new Die().roll(); }

EpicGamer007 (548)

@DynamicSquid Thank you for telling me what to call it :)