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: 99
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: 846
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: 99
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: 99
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: 202
Have you found any solution yet, Carsten?
2016-02-28 13:47
Burglar

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

Registered: Aug 2010
Posts: 99
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
algorithm
iAN CooG/HVSC
Oswald/Resource
fx
Dymo
skull
The Human Co../Maste..
Oxbow/Xenon
Guests online: 31
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.7)
4 Comaland  (9.6)
5 Comaland 100%  (9.6)
6 Wonderland XII  (9.5)
7 Fantasmolytic  (9.5)
8 Rocketry  (9.4)
9 GoatLight  (9.4)
10 We Are All Connected  (9.4)
Top onefile Demos
1 Treu Love [reu]  (9.5)
2 Daah, Those Acid Pil..  (9.4)
3 Dawnfall  (9.3)
4 Led Board  (9.3)
5 One-Der  (9.2)
6 Hardware Accelerated..  (9.2)
7 Safe VSP  (9.1)
8 Ächzzeit  (9.1)
9 Goatbeard  (9.1)
10 Black Magic  (9.0)
Top Groups
1 Censor Design  (9.4)
2 Booze Design  (9.4)
3 Oxyron  (9.3)
4 Crest  (9.3)
5 Nostalgia  (9.2)
Top Musicians
1 Jeroen Tel  (9.7)
2 Rob Hubbard  (9.7)
3 LMan  (9.7)
4 Drax  (9.6)
5 Linus  (9.5)

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