@petitgamer ... use PTCUtilites or Notepad ++ or something. It isn't that hard to program through your computer. http://micutil.com/ptcutilities/top_e.html
And you need to tell us how you're having problems, other wise we can't help you much.
Eos OS: http://conlogxl.forumotion.com/t12-eos-os-v10
3DS FC: 3695-0514-5044
Ok, so is there any possible way to save various variable to MEM$?
Here is my idea on the matter. You can combine a bunch of strings together into a single string (convert numbers to strings with STR$), and separate each one in the final string with a character you wouldn't use.
That looks to be an overly complicated solution to a simple problem. I like Morphtroid solution better. Then again, I'm a simpleton. If it's not simple, I'm not interested. Check out my implementation of Morphtroid Algorithm. It's doable in 6 lines.
Keeping in mind that a variable, ignoring negative, is 6 digit max, we can fit 42 values in a string, so let's do that. MEMVAR[] is the array to hold all variables.
'Init
DIM MEMVAR[42]
MEM$="x"*256
'SAVE
FOR I=0 TO 41:MEM$=SUBST$(MEM$,I*6,6,RIGHT$("000000"+STR$(MEMVAR[I]),6)):NEXT
SAVE "MEM:TEST1"
'LOAD
LOAD "MEM:TEST1"
FOR I=0 TO 41:MEMVAR[I]=VAL(MID$(MEM$,I*6,6)):NEXT
Alternatively,
'SAVE
MEM$="":FOR I=0 TO 41:MEM$=MEM$+RIGHT$("000000"+STR$(MEMVAR[I]),6):NEXT
what circumstances make "VAL" an illegal function call?
Don't know. I got Missing operand, Type Mismatch, and Syntax Error. Illegal function call probably means the error lies somewhere else. Can you post a short code, preferably less than 7 lines, that duplicates the error?
This is a nifty idea I read on another forum:
You can also save data with GRP files! (that's the correct file type, right?)
Colors range from 0 to 255, more than enough space for you to assing a color for each number from 0 to 9 and each character from A to Z and other things.
GRP files have enough space for 255*191 pixels, that's 191 times the space you have in a MEM file.
Just put pixels on the screen in the correct order and save them as a GRP file, then you can load it and decipher it back to numbers and strings.
That looks to be an overly complicated solution to a simple problem.
Yeah, it was more of a general idea that anyone could use without having to know the length of data or at what character position in the string. Just a combiner for saving, and a parser for loading.
Discostew
3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew
Oh yea! I just found a very well done 3D game called "raycaster" made on petit computer! I figured out how to edit the map! Just a little added to this could make a "petitcraft" in 3D! I can make rooms and shaped and various other things by editing thhe map, you should try! 1=block, 0=air. Goto @mapdata
Edit:
I'm probably going to just scrap the memory saving feature for now and work on other features(like a botton based menu system). i am also working on some console games, which I will make sure I master before I start using sprites.
I was programing today and was so used to saving my program I overwrited all my data on the the programing. I am trying to recreate it. Good news is I don't have to rewrite screens and sprites the longest part.
I'm not saying let's kill all the stupid people, I'm just saying let's take off the warning labels, and see what happens.
Friend Code: 1075-1228-4183
Forums
Topic: Petit Computer
Posts 721 to 740 of 9,620
Please login or sign up to reply to this topic