Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
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: 116
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: 859
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: 116
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: 116
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: 210
Have you found any solution yet, Carsten?
2016-02-28 13:47
Burglar

Registered: Dec 2004
Posts: 781
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: 7780
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: 781
x64 +cart -warp -limitcycles 19000000 -exitscreenshot "screenshot.png" "bla.d64"
2016-02-28 17:06
Scarzix

Registered: Aug 2010
Posts: 116
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
Guests online: 42
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.6)
4 Lunatico  (9.6)
5 Comaland 100%  (9.5)
6 Incoherent Nightmare  (9.5)
7 Wonderland XII  (9.5)
8 Comaland  (9.5)
9 Fantasmolytic  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 Dawnfall V1.1  (9.7)
2 Globe 2016 [reu]  (9.7)
3 Daah, Those Acid Pil..  (9.4)
4 Treu Love [reu]  (9.4)
5 Dawnfall  (9.3)
6 One-Der  (9.2)
7 Hardware Accelerated..  (9.2)
8 Goatbeard  (9.2)
9 Safe VSP  (9.2)
10 Ächzzeit  (9.1)
Top Groups
1 Censor Design  (9.4)
2 Booze Design  (9.4)
3 Oxyron  (9.3)
4 Crest  (9.3)
5 Nostalgia  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Mitch  (9.8)
3 Mr Zero Page  (9.8)
4 Snacky  (9.8)
5 Janitor  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2016
Page generated in: 0.317 sec.