Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user fredrikr ! (Registered 2018-01-18) You are not logged in 
CSDb User Forums


Forums > C64 Coding > VICE or similar cycle "perfect" emulator for screenshot?
2015-06-13 13:18
Scarzix

Registered: Aug 2010
Posts: 134
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....
 
2015-06-19 13:41
MagerValp

Registered: Dec 2001
Posts: 904
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.
2015-06-19 15:26
Scarzix

Registered: Aug 2010
Posts: 134
Very interesting MagerValp, will check that out once I get the connection to work.
2015-06-19 23:08
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
run CCS64, skip 99 frames in stepmode, then save pic.
is all i know.
2015-06-20 23:55
Scarzix

Registered: Aug 2010
Posts: 134
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.
2015-06-21 04:46
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 ?
2015-08-20 21:47
Digger

Registered: Mar 2005
Posts: 253
Have you found any solution yet, Carsten?
2016-02-28 13:47
Burglar

Registered: Dec 2004
Posts: 782
argh, there was a commandline option added to vice for this (make screenshot after N cycles), but I just cannot find the thread...
2016-02-28 15:32
Groepaz

Registered: Dec 2001
Posts: 8367
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 ;)
2016-02-28 16:38
Burglar

Registered: Dec 2004
Posts: 782
x64 +cart -warp -limitcycles 19000000 -exitscreenshot "screenshot.png" "bla.d64"
2016-02-28 17:06
Scarzix

Registered: Aug 2010
Posts: 134
cool, that looks easy, gonna try that on my solution soon then
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Alex/Chromance
TomoAlien
ZeSmasher/F4CG
Guests online: 36
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.6)
4 The Shores of Reflec..  (9.6)
5 Comaland 100%  (9.6)
6 Lunatico  (9.6)
7 Incoherent Nightmare  (9.5)
8 Wonderland XII  (9.5)
9 Comaland  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 Pandemoniac Part 2 o..  (9.6)
2 FMX Music Demo  (9.6)
3 Merry Xmas 2017  (9.5)
4 Synthesis  (9.5)
5 Daah, Those Acid Pil..  (9.5)
6 Dawnfall V1.1  (9.5)
7 Dawnfall  (9.4)
8 Treu Love [reu]  (9.4)
9 Field Sort  (9.4)
10 Pro Memoria 4  (9.3)
Top Groups
1 Oxyron  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.3)
4 The Judges  (9.3)
5 Crest  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.5)
2 Newscopy  (9.4)
3 Peter  (9.3)
4 A Life in Hell  (9.2)
5 Elwix  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2018
Page generated in: 0.27 sec.