Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > VICE or similar cycle "perfect" emulator for screenshot?
2015-06-13 11:18
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....
 
2015-06-19 11:41
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.
2015-06-19 13:26
Scarzix

Registered: Aug 2010
Posts: 143
Very interesting MagerValp, will check that out once I get the connection to work.
2015-06-19 21: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 21:55
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.
2015-06-21 02: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 19:47
Digger

Registered: Mar 2005
Posts: 420
Have you found any solution yet, Carsten?
2016-02-28 12:47
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...
2016-02-28 14:32
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 ;)
2016-02-28 15:38
Burglar

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

Registered: Aug 2010
Posts: 143
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
Acidchild/Padua
iAN CooG/HVSC
Logiker/VCC
Zoid
Zorch
Krill/Plush
Shake/Role
t0m3000/ibex-crew
Exile/Anubis
Guests online: 294
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 No Bounds  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 Party Elk 2  (9.7)
2 Cubic Dream  (9.6)
3 Copper Booze  (9.5)
4 Rainbow Connection  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Onscreen 5k  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Nostalgia  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.4)
2 Magic  (9.4)
3 hedning  (9.2)
4 Newscopy  (9.1)
5 Elwix  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.045 sec.