| |
Scarzix
Registered: Aug 2010 Posts: 143 |
VICE or similar cycle "perfect" emulator for screenshot?
Question: is there a way to get VICE or other "almost perfect emulater" to run a PRG for eg. 100 frames and then produce a screenshot automatically?
Scenario:
1) Run assembler
2) Spawn VICE ( or other near perfect emulator ) with PRG from assembler
3) Run for xxx frames
4) Save screen (including border colors/rastersplits) as a bitmap file (fileformat is not an issue)
I need to call this from within a program automatically. So a Commandline interface or a Dll perhaps. Writing my mainprogram in C# so a slow, but "true emulation" is needed.
Hope someone has a solution?
Cheers,
Scarzix/Offence |
|
... 18 posts hidden. Click here to view all posts.... |
| |
MagerValp
Registered: Dec 2001 Posts: 1055 |
You can use expect to send the z command until the r command ends up at the right cycle count (100 * 312 * 63). Use a decreasing step count depending on how many cycles are left. |
| |
Scarzix
Registered: Aug 2010 Posts: 143 |
Very interesting MagerValp, will check that out once I get the connection to work. |
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
run CCS64, skip 99 frames in stepmode, then save pic.
is all i know. |
| |
Scarzix
Registered: Aug 2010 Posts: 143 |
SIDWAVE, this has to be controlled from another program that loads and steps through the C64 program. So if thats going to work, it has to have some commands that can be called by a program and not a user as I am putting this inside a server where there is nobody logged in. |
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
IMO its simply a missing feature of VICE.
i dont know what you need carsten, but if you record whole thing on video with a tool, then maybe you could edit videofile instead ? |
| |
Digger
Registered: Mar 2005 Posts: 420 |
Have you found any solution yet, Carsten? |
| |
Burglar
Registered: Dec 2004 Posts: 1027 |
argh, there was a commandline option added to vice for this (make screenshot after N cycles), but I just cannot find the thread... |
| |
chatGPZ
Registered: Dec 2001 Posts: 11088 |
yup, i am using it extensively for automated testing now.... one thing that doesnt work yet is combining it with -console, so it will always pop up a gui window atm. will look into that later ;) |
| |
Burglar
Registered: Dec 2004 Posts: 1027 |
x64 +cart -warp -limitcycles 19000000 -exitscreenshot "screenshot.png" "bla.d64" |
| |
Scarzix
Registered: Aug 2010 Posts: 143 |
cool, that looks easy, gonna try that on my solution soon then |
Previous - 1 | 2 | 3 - Next |