VOGONS

Common searches


Save States - Proof of concept

Topic actions

Reply 161 of 227, by tikalat

User metadata
Rank Member
Rank
Member
003

direct3d.cpp
+ Allow stretch-to-window Direct3D fullscreen feature (autofit=true + aspect=true + fullscreen=original)

dosbox.cpp
+ Add 'autofit' option



004

midi.cpp
+ Do manual device reset (turn off notes, controllers) on open
(seems to fix random Roland VSC -system- crashes from bad VSC states)

Test build (new dosbox.conf included)
http://www.sendspace.com/file/3g9kr8

TODO:
- May add new mixer savestate idea (only save/load devices that are created)
- May add Innova savestate
- May add Adlib savestate
- Look at paging again
- Experimenting with something called win32 shark_cheater (see ngemu forums - ePSxe_shark) (can't contact original author but seems free source) (modifying for possible relocatable RAM)

Attachments

  • Filename
    dosbox-svn-daum___diff.7z
    File size
    19.62 KiB
    Downloads
    221 downloads
    File comment
    ykhwong svn-daum 2012-05-21
    File license
    Fair use/fair dealing exception

Reply 162 of 227, by robertmo

User metadata
Rank l33t++
Rank
l33t++
tikalat wrote:

- Experimenting with something called win32 shark_cheater (see ngemu forums - ePSxe_shark) (can't contact original author but seems free source) (modifying for possible relocatable RAM)

You can always use gamewizard32 with dosbox if that is what you are looking for.

Reply 163 of 227, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

is there one diff against current SVN of Dosbox? If I understand correctly it is against Yhkwongs which has countless other patches...

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 164 of 227, by tikalat

User metadata
Rank Member
Rank
Member

You can always use gamewizard32 with dosbox if that is what you are looking for.

Thanks! Must check this out. 😀

Krondor ch4 is brutally hard. 1st dungeon and my team is already half-slaughtered.

is there one diff against current SVN of Dosbox? If I understand correctly it is against Yhkwongs which has countless other patches...

Unfortunately only diff is against ykhwong build.

If I can get svn to compile, I'll look it over,

Reply 165 of 227, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

That would be great. I'd really like to give it a try on OSX and am not sure whether yhkwongs source will built without a hassle...

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 166 of 227, by tikalat

User metadata
Rank Member
Rank
Member
005

render.cpp
+ Fix fps loadstate mistake
001 - dosbox svn

Full POD support
- Only savestate support. Zero fixes added.

Test builds (dosbox + ykhwong)
http://www.sendspace.com/file/pkxgaz

Dosbox win32 build works okay here. Multi-diffs now attached.
(tested meaning various Krondor states load from CMOS okay)

Attachments

  • Filename
    ___release.7z
    File size
    50.16 KiB
    Downloads
    217 downloads
    File license
    Fair use/fair dealing exception

Reply 167 of 227, by tikalat

User metadata
Rank Member
Rank
Member
svn-daum
006
+ add adlib POD (all versions)
+ use new mixer sub-POD ID enforcement (cut down on accidental loadstate crashes)

svn-dosbox
002 = same additions

Test build
http://www.sendspace.com/file/q25c3v

(Edit: fixing run-time crash error)
(Edit2: done fixing)

Attachments

  • Filename
    ___release.7z
    File size
    56.29 KiB
    Downloads
    221 downloads
    File comment
    multi-diff
    File license
    Fair use/fair dealing exception

Reply 168 of 227, by Gamecollector

User metadata
Rank Oldbie
Rank
Oldbie

Sometimes after the load state - the restored video mode is wrong. 720x576x8 in the place of 640x480x8, two black borders (right and bottom). Tested game - Supaplex.
The glitch isn't constant, from the same save the result may be wrong or right...

Asus P4P800 SE/Pentium4 3.2E/2 Gb DDR400B,
Radeon HD3850 Agp (Sapphire), Catalyst 14.4 (XpProSp3).
Voodoo2 12 MB SLI, Win2k drivers 1.02.00 (XpProSp3).

Reply 169 of 227, by tikalat

User metadata
Rank Member
Rank
Member

That's an odd bug. If the console is mentioning '720x576x8', it means the game attempted some type of resolution switch - there's a special case exception iirc though.

I'll check it out (currently absorbed by other projects). Does it happen at any place in the game (menus, in-game, loading, title)?

The svn-daum debugger window input doesn't work either but don't know why (svn-dosbox is okay).

Reply 170 of 227, by ykhwong

User metadata
Rank Oldbie
Rank
Oldbie
tikalat wrote:

The svn-daum debugger window input doesn't work either but don't know why (svn-dosbox is okay).

Sorry, the current svn-daum build of debugger is broken. (Alt-pause won't work for debugging) Please try 20120220 one which should work.

Reply 172 of 227, by Gamecollector

User metadata
Rank Oldbie
Rank
Oldbie
tikalat wrote:

That's an odd bug. If the console is mentioning '720x576x8', it means the game attempted some type of resolution switch - there's a special case exception iirc though.

Your current build write the videomode info only after the video mode switch.
Loading of the savestate isn't considered as such switch.
So - just the "state 1 loaded!"
By the way, the glitch can be seen in the window mode too...

Reply 173 of 227, by ykhwong

User metadata
Rank Oldbie
Rank
Oldbie
robertmo wrote:

ykhwong is there any place where we can post bugs about your builds?
can it be here DOSBox SVN Builds
or you want to start a separate thread about your build only?

I understand that this is going off-topic. This thread must be about the development of save states, not specifically about a bug report of my builds.
Actually there's currently no place to post bugs on my website due to some server limitations. I couldn't afford it for a long time.
Either way is okay to me though my releases are not officially supported here by dosbox developers.

Reply 174 of 227, by laxdragon

User metadata
Rank Member
Rank
Member

Perhaps you could consider hosting your branch on github. They offer a bug tracker and so on.

These days I prefer git for all my revision control needs.

laxDRAGON.com | My Game Collection | My Computers | YouTube

Reply 175 of 227, by tikalat

User metadata
Rank Member
Rank
Member
svn-daum 007
svn-dosbox 003


render.cpp / render.h
+ Add scrn_ratio to savestate
+ Fix loadstate problems with aspect ratio

Test build:
http://www.sendspace.com/file/h0yiti

NOTES:
This should fix the original + aspect ratio window size problems (use original screen ratio)

Attachments

  • Filename
    ___release.7z
    File size
    56.71 KiB
    Downloads
    231 downloads
    File comment
    multi-diff
    File license
    Fair use/fair dealing exception

Reply 176 of 227, by Gamecollector

User metadata
Rank Oldbie
Rank
Oldbie

Good. Supaplex wrong video mode is fixed.

Asus P4P800 SE/Pentium4 3.2E/2 Gb DDR400B,
Radeon HD3850 Agp (Sapphire), Catalyst 14.4 (XpProSp3).
Voodoo2 12 MB SLI, Win2k drivers 1.02.00 (XpProSp3).

Reply 177 of 227, by tikalat

User metadata
Rank Member
Rank
Member
004  svn-dosbox

dos_files.cpp
+ add loadstate crash protection

cpu.cpp
+ use new cpu core switching idea

First one fixes a hang bug that happened with virtual files.

Second one lets you save using dynamic core. Exit. Switch to simple core. Reload state and continue (ex. debugger)

Test build:
(Removed per policy request)

NOTE:
I plan on creating a new thread for specifically ykhwong svn-daum support. Continuing the savestate + improvements over there.

Attachments

  • Filename
    ___release.7z
    File size
    37.41 KiB
    Downloads
    198 downloads
    File comment
    svn-dosbox 3780
    File license
    Fair use/fair dealing exception

Reply 178 of 227, by tikalat

User metadata
Rank Member
Rank
Member

Continuing the save state improvements

008

cpu.cpp
+ Use new loadstate idea (safely allows switching cores)

dos_files.cpp
+ Add safety check for loadstates (virtual files - CON, AUX, PRN)

glide.cpp
+ Add gulikoza's recent texture fix

Test build
http://www.sendspace.com/file/jcr07x

Attachments

  • Filename
    svn-daum 2012-05-21.7z
    File size
    27.99 KiB
    Downloads
    208 downloads
    File license
    Fair use/fair dealing exception

Reply 179 of 227, by tikalat

User metadata
Rank Member
Rank
Member

Thanks to robertmo + Qbix for helping out. 😉

Super'ish patch.

009
munt
+ Add mt32.partials conf line
(can change max partials from 32 -> 0-256)



010
vga.h
+ Amstrad video mode fix

innova.cpp / innova.h / reSID
+ Savestate POD (ex. Ultima 6)

3781-3782 svn fixes
+ IRQ0 (M.U.L.E), Mouse (Settlers 2)

tester

NOTE:
Actually have an idea for paging. Remove all existing vars. Create just skeleton shells and keep a list of them. Per module.

Then loadstate each one up and get the crazy amount of ptrs to line up.

TBD when I want to play around with Win 3.1 again.

Attachments

  • Filename
    svn-daum 2012-05-21.7z
    File size
    35.04 KiB
    Downloads
    202 downloads
    File license
    Fair use/fair dealing exception