How to use FORCESAVE to avoid save dialog
Hello everyone
Let me start by saying how much I appreciate this community. People have been very helpful in answering questions to my posts. I hope to be able to return the favor someday.
Here is my question: I'm implementing a hi score board and need to save the updated scores etc. The function is working exactly like I want it - BUT I hate this dialogue box that comes up every time I update the file. I am using a simple TXT file to save the data... so am using the command:
SAVE "TXT:HISCORES",HISCORE$I read the information on the SAVE command and have confirmed that I cannot use the extra FALSE argument at the end of the command (unlike with LOAD) SO.... I looked at the SOLIDGUNNER source code and see it has reference to a system variable FORCESAVE. Immediately before issuing the SAVE command the code sets FORCESAVE to TRUE. Alas I tried this in my code but the dreaded dialog box came up anyway. Is there an easy answer to my conundrum? Thanks in advance
I wrote a couple of functions that read and write arrays to PRG slots which might help: http://smilebasicsource.com/forum?fpid=2537#post_2537
Saving to a PRG slot is temporary though. You'll still need to use the save function at some point...
Maybe add a "save and quit" feature to your game, similar to the animal crossing games?
I think the ability is only granted to programs that are republished into the magazines. That way, users can't create "viruses" in their programs.JustGreat: Ah... this makes perfect sense as to "why" the annoying SAVE dialogs. Thanks!
I wrote a couple of functions that read and write arrays to PRG slots which might help: http://smilebasicsource.com/forum?fpid=2537#post_2537 Saving to a PRG slot is temporary though. You'll still need to use the save function at some point... Maybe add a "save and quit" feature to your game, similar to the animal crossing games?Ezman : This is a great idea! No reason that I need to save high scores until the user exits the program. I will definitely take a look at what you've done in your other post. THANKS!
Keep in mind that if you don't like the annoying sound that goes with the system save dialogue, you can turn SYSBEEP off before the save and on again afterward.
The system variable doesn't exist. No highlight, throws Undefined variable when strict is on.no. FORCESAVE does nothing in the normal version of SBWhat if you took force save out of the program, then put it back in all in the editor? If someone could somehow find a loophole in the forcesave it would be amazing. Does it even exist in our version?