metal, would there be any way to be able to save a variable even after the program has been restarted? This would be to create a passcode that the user would be able to change in settings, and allow it to be the same every time LISTOS was turned on.
Offline
LISTOS 2 Version 2.3 The settings app still reverts to "You guessed too high!" unfortunately... Anyone know why?
Offline
MelonInc wrote:
metal, would there be any way to be able to save a variable even after the program has been restarted? This would be to create a passcode that the user would be able to change in settings, and allow it to be the same every time LISTOS was turned on.
Sounds like something that Scratch 2.5 could do, with cloud data. So basically no.
Unless you mean when it's downloaded--then you'd just have to remove the script that deletes variables before startup, because anyone who's running it online will never log out (unless they press stop). Otherwise there's no way to save anything until cloud data is available.
But do keep in mind that you can't create other programs with that particular kind of modification of Cahfee; you'll have to stick with LISTOS, and you'll need to get a new copy of Cahfee 1.4 before making new programs.
Last edited by metal509 (2012-10-03 23:48:29)
Offline
I HAVE AN IDEA. I picked the most inefficient way possible to set off variables.
To call a variable, you must write "$", the variable name, then space. Period. No matter what.
In LISTOS 2.3, I noticed that whenever you hit the end of the line with a variable you forgot a space. I should've known this would be a common error.
Although it'll be painful and annoying to fix, I think what I'm going to do in the next update (hopefully Scratch 2.5 will be out by then) is set off variables as "$name$" rather than "$name ". MUCH easier to remember.
Offline
metal509 wrote:
Unless you mean when it's downloaded--then you'd just have to remove the script that deletes variables before startup, because anyone who's running it online will never log out (unless they press stop). Otherwise there's no way to save anything until cloud data is available.
Yes, this is what I meant. Cloud LISTOS 2 would be cool, but we have to wait until Scratch 2.0 comes out. (Or whatever the next version is...)
Offline
MelonInc wrote:
I'll try it when I can find my computer again... (On my phone right now) Maybe this is why none of my programs have worked correctly since 2.0! Well I hope this fixes it. Thanks again metal!
Lol, it doesn't fix it. Sorry.
Offline
metal509 wrote:
MelonInc wrote:
I'll try it when I can find my computer again... (On my phone right now) Maybe this is why none of my programs have worked correctly since 2.0! Well I hope this fixes it. Thanks again metal!
Lol, it doesn't fix it. Sorry.
NOOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!
Last edited by MelonInc (2012-10-04 00:19:51)
Offline
But now I have an idea! (Amazing, right?!) Maybe we could use the goto function more efficiently. Instead of having it set up as it is right now, do the real coding of this:
u command=Command:
if $command =gtn
goto gtn
endif
if $command =s
goto s
endif
if $command =l
goto l
endif
Offline
At last! I have finally figured out how to get settings and logout to work! This means that more advanced work on the OS can start!
LISTOS 2.3
LISTOS 2 AppMarket
LISTOS 2 Updates
Offline
MelonInc wrote:
Now that I finally got LISTOS 2 working, does anyone have a good idea for a first downloadable app?
wait wut? how are you gonna do downloadable apps? LOL just wondering.
that actually opens up a whole new idea for cahfee. extra code lists o.o
but of course you'd have to actually add that to the scratch program, so bah..
but the idea you just gave me is this:
have a separate program all coded in a special list, and then use a Cahfee command to start that program from the programming list! then, return back to the programming list when it's done. GENIUS GENIUS GENIUS! then for downloadables all you'd have to make is a code list and the program name and have it imported!!! WOOOOOOOOOOOOO I'M SMART LOL
except just one problem: for downloadables you'd have to add the startup option in cahfee. unless you just programmed them all beforehand. lol.
Offline
metal509 wrote:
MelonInc wrote:
Now that I finally got LISTOS 2 working, does anyone have a good idea for a first downloadable app?
wait wut? how are you gonna do downloadable apps? LOL just wondering.
that actually opens up a whole new idea for cahfee. extra code lists o.o
but of course you'd have to actually add that to the scratch program, so bah..
but the idea you just gave me is this:
have a separate program all coded in a special list, and then use a Cahfee command to start that program from the programming list! then, return back to the programming list when it's done. GENIUS GENIUS GENIUS! then for downloadables all you'd have to make is a code list and the program name and have it imported!!! WOOOOOOOOOOOOO I'M SMART LOL
except just one problem: for downloadables you'd have to add the startup option in cahfee. unless you just programmed them all beforehand. lol.
Woah! That's way more complicated then what I had in mind! All I was gonna do was make a new project, a new sprite, and then create a list called "Programming". Then make another list called "Apps", and when the green flag is clicked have the new sprite do a quick test to see if it is already in the Apps list. If it's not, then it just adds and inserts some code into Programming. After that I would just post it online with a cool background, and whenever someone downloads it and imports it into LISTOS, it runs the test, and then adds the code if it's not already in there. Of course I'll have to add a wait block on the broadcast exec script so it doesn't get messed up when it's converting the code.
Offline
MelonInc wrote:
Woah! That's way more complicated then what I had in mind! All I was gonna do was make a new project, a new sprite, and then create a list called "Programming". Then make another list called "Apps", and when the green flag is clicked have the new sprite do a quick test to see if it is already in the Apps list. If it's not, then it just adds and inserts some code into Programming. After that I would just post it online with a cool background, and whenever someone downloads it and imports it into LISTOS, it runs the test, and then adds the code if it's not already in there. Of course I'll have to add a wait block on the broadcast exec script so it doesn't get messed up when it's converting the code.
hahaha what in blazes i dont even get it but if you get it working let me know LOL
YMIBANWAH wrote:
I think we should make a text based rpg game for an app it would be fun.
YES YES YES YES YES!
YES!
AGREED! LET'S DO IT!
MelonInc wrote:
What is an rpg? I've heard about them a lot, just never knew what they were.
RPG stands for Role Playing Game. Usually there's a main character with a quest, he usually has skills and stuff. There's tons of potential diversity in the gameplay.
A few examples of RPGs:
Zelda
Metroid
Final Fantasy games
Chrono Trigger (SNES FTW!)
World of Warcraft (WoW)
Mass Effect
Fable 2
Fallout 3
The Elder Scrolls IV: Oblivion
stuff like that haha. very popular game type. they should require more than button pushing--they usually have puzzles too.
I think a text-based RPG would be amazing. In fact, Asgha10 actually started on one a long time ago in Cahfee 1.0, it can be found here. But it is very buggy as he didn't have much experience with Cahfee (and it was the first version of Cahfee).
Last edited by metal509 (2012-10-05 22:35:57)
Offline
Here's a basic movement engine for an RPG that I wrote in like 5 seconds
var x=0
var y=0
:movement
echo position: ($x ,$y )
u action=up, down, left, right
if $action =up
t>y $y +1
endif
if $action =down
t>y $y -1
endif
if $action =left
t>x $x -1
endif
if $action =right
t>x $x +1
endif
L movement
But the problem is, it's annoying without visuals. Maybe I'll have to include some basic pen control functions in the next version.
And I'll have to include multi-dimensional variables too, if that's even possible. Like lists/arrays.
Like for objects in a game, you'd need what it is, the x, and the y--instead of storing all this in three variables it'd be nice to store it in one.
Last edited by metal509 (2012-10-05 22:48:24)
Offline
Well maybe you and/or YIMBAWAHA can create a game, and I'll just keep working on the basics of LISTOS 2. Lol. And now that I have it working well, I'm going to start advertising and stuff.
Maybe for visuals in 1.5, use basic shapes and have them change size and stamp and stuff. It would be much faster and unless they include some incredible pen functions in the new Scratch, possibly even more efficient.
Offline
metal509 wrote:
And I'll have to include multi-dimensional variables too, if that's even possible. Like lists/arrays.
Like for objects in a game, you'd need what it is, the x, and the y--instead of storing all this in three variables it'd be nice to store it in one.
That would be so cool! But your game is going to become more complicated than that all variable based platformer!
Offline
Firedrake969 wrote:
I can help with the basic tools of List OS, as I'm making my own.
You already quit and need experience with Cahfee programming language that's what it's built in. I'm just making sure you understand.
Offline