Frederik wrote:
Well for myself I have no issues with the program, so i don't know where the mistakes could be.
What I meant with that i don't use the libraries directly is that I don't know API and stuff like that yet; I just use the ICE commands:
Code: CloseAll()
OpenVar(PRGMNAME,"w",TYPE) //slot is 1
Write(DATA,SIZE,1,1)
SetArchiveSatus(1,1)
That is incorrect. OpenVar returns an opaque handle that should be passed to other functions: you cannot just use the value of '1' as the internals of the library may change at any point, causing your code to crash immediately. Additionally, you need to verify that the return of OpenVar is not zero, as 0 means it failed to open.
Thank you, I want to rewrite folders now and I have three questions.
Does anyone know how to execute code from an appvar in ICE?
Until now the packed folder stores the data in itself (in the program), would you store it somwhere else for example in an appvar?
Can I get the name of the program I'm executing?
I found a strange bug:
This just archives A but not B
Code: iB
CloseAll()
Open("FOLDERS","r")→F
OpenVar("B","w",6)→B
OpenVar ("A","w",5)→A
SetArchiveSatus (1,A)
SetArchiveSatus (1,B)
But this works well?!? Code: iB
CloseAll()
OpenVar("B","w",6)→B
Open("FOLDERS","r")→F
OpenVar ("A","w",5)→A
SetArchiveSatus (1,A)
SetArchiveSatus (1,B)
Does anyone know why this happens?
The
new version is uploaded. I hope it works now.
how do i make a new folder
Isaiah_Idiot wrote:
how do i make a new folder
Its in the file archive page
here is a direct link to the GIF: https://www.cemetech.net/media/archives/screenshots/2022/06/Demo_cesium_TJUOU5x.png
Sorry if my questions are a little dumb, I found your program today and it's great, I love that it actually allows me to sort all my little games and screensavers.
If I want to "edit" a folder, do I just unpack it, delete the folder, and then create a new folder with all the new stuff or different name I want?
Can I just change the name directly (I'm using Cesium, idk if that makes a difference).
Is this going to destroy my calculator's memory? Is it copying all the programs to the directory and therefore writing in a different section of the drive, or is it just changing the programs' adresses (again, apologies if my question is dumb, I'm not very familiar with computers nor with how flash storage operates).
Also, do any of you have suggestions for what I should name the folders so that they appear at the bottom of my screen when I unpack something (other than just writing z[Folder Name], which is what I'm using rn).
Btw, I'm not getting any bugs so far, so great work!
It's great to hear that. Thx!
Yes indeed, to edit a folder you need to unpack it, delete the old folder and create a new one.
A folder always remembers it's original name: You can actually create a backup this way. Rename a packed folder e.g. "SRCFILES" -> "BACKUP" and unpack it then. "BACKUP" will stay the way it is and an unpacked "SRCFILES" will reappear. (NOTE: If you unpack BACKUP again, it will overwrite all changes to the programs with the backuped version)
A folder "swallows up"/copies the programs and does not just change addresses, so the garbage collector appears every once in a while. I personally always keep my folders archived since I also use Cesium.
Right now your only option to sort is "ZNAME"... (Maybe I should change that)
Thank you so much for the explanation, as said earlier, I'm a little dumb, and the fact that you guys can make amazing stuff like this really awesome.
I will be patiently waiting for a sorting update!!!
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum