caiiiycuk / js-dos

The best API for running dos programs in browser
https://js-dos.com
1k stars 123 forks source link

I have a DOS game, and an error occurs when calling the local save file. What could be the cause? #314

Closed NightMingGit closed 1 week ago

NightMingGit commented 3 weeks ago

image image

caiiiycuk commented 3 weeks ago

HI, thank you for testing. Can you please write bugs with more context. Provide jsdos file to test and your integration code. It's not clear what happening.

NightMingGit commented 3 weeks ago

HI, thank you for testing. Can you please write bugs with more context. Provide jsdos file to test and your integration code. It's not clear what happening.

https://www.123pan.com/s/sFV5jv-g2ivd.html

This is my game file. I hope you can help me take a look at the issue. When I try to use the save feature, I encounter this error.

caiiiycuk commented 3 weeks ago

I can't download it, cause I don't have any account here (it's not free?). Btw, Why you need to do cs.persist()? js-dos player manage saves automatically.

NightMingGit commented 3 weeks ago

image When I click this button, I encounter this error. this new download url https://drive.google.com/file/d/1_aQJkrfmxoZrH-ylwaewBM1OMvB0ZzbI/view?usp=sharing

caiiiycuk commented 1 week ago

This happens when there is no changes in FS.

caiiiycuk commented 1 week ago

I will try to remove this error message in next release, however it should not affect normal execution of player, so I am closing this.

NightMingGit commented 10 hours ago

I will try to remove this error message in next release, however it should not affect normal execution of player, so I am closing this. I am still experiencing this error issue with version 8.1.4, which prevents me from saving. Additionally, I noticed that there is no .jsdos data in the indexdb. Snipaste_2024-07-08_14-38-27 Snipaste_2024-07-08_14-41-33

caiiiycuk commented 2 hours ago

Version 8.1.4 does not contains this cange, cause it's too small fix. It should not prevent you from saving, this is just console message. This happens when game does not save any changes onto disk. Maybe you miss something in game, I mean did you use some save/load menu (inside game)?