Active Threads | Active Posts | Unanswered Today | Since Yesterday | This Week
MAME Jump to new posts
Re: Ap2000 signs of life Golden Child 09/23/20 05:55 AM
I managed to convert the ap2000 driver into using my luaprinter routines to do the page saving:

They look a little "squashed" since the aspect ratio is off because it's 120x72. 120x144 would probably look more normal.

Some page samples:

[Linked Image from i.imgur.com]
[Linked Image from i.imgur.com]

putting the first page into gimp and stretching it to 120x144:
[Linked Image from i.imgur.com]

testing to see how many lines on a page:
[Linked Image from i.imgur.com]
61 3,113 Read More
MAME Jump to new posts
Re: Any easy way to draw text on a bitmap? Vas Crabb 09/22/20 08:02 PM
Originally Posted by Just Desserts
That would require a library for parsing "normal" fonts (as opposed to the custom BDF format that MAME uses) and rasterizing them to glyphs. Don't think we can do that.

BDF isn’t custom, it’s a published standard from Adobe. It must be close to 40 years old now. And yeah, what ArBee said. Depending on the target MAME can rasterise fonts for the UI. On Linux, BSD, etc. where there’s no font server as such it uses an SDL library to handle TrueType fonts directly. On Windows it can use Win32 or DirectWrite, and on macOS it uses CoreText. Of course, MAME’s approach to fonts is dumb. It rasterises characters at a fixed size and then scales them, so hinting doesn’t work, and it can’t deal with combining characters at all.
3 114 Read More
MAME Jump to new posts
Re: Any easy way to draw text on a bitmap? R. Belmont 09/22/20 07:31 PM
We actually *do* rasterize fonts (both BDF and TrueType) to glyphs though. It's just that nothing outside of the UI uses them right now.
3 114 Read More
MAME Jump to new posts
Re: Any easy way to draw text on a bitmap? Just Desserts 09/22/20 06:37 PM
That would require a library for parsing "normal" fonts (as opposed to the custom BDF format that MAME uses) and rasterizing them to glyphs. Don't think we can do that.
3 114 Read More
MAME Jump to new posts
Any easy way to draw text on a bitmap? Golden Child 09/22/20 06:33 PM
Hi guys,

I was wondering if there's an easy way to draw text on a bitmap.

There's a function in luaengine.cpp that looks like it could be used but I'm having trouble with the includes and wanted something that wouldn't depend on ui.
Code
screen_dev_type.set("draw_text", [this](screen_device &sdev, sol::object xobj, float y, const char *msg, sol::object color, sol::object bcolor) {

...
	mame_machine_manager::instance()->ui().draw_text_full(sdev.container(), msg, x, y, (1.0f - x),
			justify, ui::text_layout::WORD, mame_ui_manager::OPAQUE_, textcolor, bgcolor);
		});

I'm not particular about the font, just something that's readable to indicate status.

I suppose I could just load a rom character set and use that...
3 114 Read More
MAME Jump to new posts
Re: Amiga heads, enter Just Desserts 09/22/20 07:34 AM
No
33 6,900 Read More
MAME Jump to new posts
Re: Amiga heads, enter Isamu 09/22/20 07:20 AM
Just wanted to pop in and say hello to everyone. Hope you're all doing well. Still an Amiga fan and admit I haven't played any Amiga games lately but I plan to get back into them soon. Been a while but has Amiga emulation in MAME improved at all since the last post in here?
33 6,900 Read More
MAME Jump to new posts
Re: Question: changing years on systems release. That70sguy 09/21/20 11:35 PM
[Linked Image from i.pinimg.com]

[Linked Image from i.pinimg.com]
[Linked Image from i.pinimg.com]
Micromint MPX-16 launched on 1983 or before

[Linked Image from i.pinimg.com]
[Linked Image from i.pinimg.com]
Philips NMS 9100 launched on 1988 or before

[Linked Image from i.pinimg.com]

[Linked Image from i.pinimg.com]
Olystar 20F launched on 1990 or before

Originally Posted by That70sguy

[Linked Image from i.pinimg.com]
Leading Edge Model D launched on 1985 or before
Vintropedia listed date 1985

Leading Edge Model M launched on 1985 or before


Correction for Leading Edge Model M
[Linked Image from i.pinimg.com]

[Linked Image from i.pinimg.com]

[img]https://i.pinimg.com/564x/eb/e2/87/ebe28724c4e1902dd5a1d7e42e4f90c8.jpg[/img]
[img]https://i.pinimg.com/564x/28/21/dc/2821dca1c06eeb0c30615df5243b4c33.jpg[/img]
Leading Edge Model M launched on 1986 or before
18 1,113 Read More
MAME Jump to new posts
Re: Question: changing years on systems release. That70sguy 09/21/20 09:48 PM
My use of resorce for theTexas Instruments Graphing Calculators for a guide, are from Datamath Texas Instruments site.

for the bootleg of TI-83 Plus, TI-84 Plus, TI-83 Plus Silver Edition and TI-84 Plus Silver Edition
The Great Graphing Calculator Ripoff blog dated 2019
stated: was first discussed back in 2015.

TI-73 Explorer (possibly bootleg) Datamath dated 2008 - 2009

TI-83PLUS (possibly bootleg) Datamath dated 2006 - 2008

TI-83PLUS SE the original press release dated 2002 (bootleg possibly 2004 or after)

TI-84PLUS (possibly bootleg) Datamath dated 2011

TI-84PLUS SE (possibly bootleg) Datamath dated 2011

TI-84PLUS CSE
TI-84 Plus C Silver Edition 4.0 Datamath dated 2013

TI-84 Plus C Silver Edition 4.2 Datamath dated 2014
18 1,113 Read More
MAME Jump to new posts
Re: mame 0.224 astro blaster John IV 09/21/20 08:49 PM
I added spacfury to the 2020 bench runs. We hit a 97% slowdown w/ the discrete audio. smile

http://www.mameui.info/Bench.htm
22 1,126 Read More
MAME Jump to new posts
Re: mame 0.224 astro blaster John IV 09/21/20 06:18 PM
Yes, spacfury took the biggest hit (8 am PST build):

mame elim2 -bench 90
Average speed: 357.03% (89 seconds)

mame zektor -bench 90
Average speed: 324.26% (89 seconds)

mame spacfury -bench 90
Average speed: 184.01% (89 seconds)
22 1,126 Read More
MAME Jump to new posts
Re: Question: changing years on systems release. That70sguy 09/21/20 02:04 PM
[Linked Image from i.pinimg.com]
Olivetti M15 launched on 1987 or before
Vintropedia listed date 1987

[Linked Image from i.pinimg.com]
Sanyo MBC-16 launched on 1985 or before

[Linked Image from i.pinimg.com]

[Linked Image from i.pinimg.com]
Sanyo MBC-16LT launched on 1989 or before

[Linked Image from i.pinimg.com]

[Linked Image from i.pinimg.com]
Leading Edge Model D launched on 1985 or before
Vintropedia listed date 1985

Leading Edge Model M launched on 1985 or before
18 1,113 Read More
MAME Jump to new posts
Re: mame 0.224 astro blaster Haze 09/21/20 10:28 AM
it might be worth adding one or more of the Sega vector games eg spcfury to your benchmarks if you haven't already, that also took quite a hit so it will be interesting to see how performance changes over time.

22 1,126 Read More
MAME Jump to new posts
Re: mame 0.224 astro blaster Stiletto 09/20/20 10:33 PM
awesome!
22 1,126 Read More
MAME Jump to new posts
Re: mame 0.224 astro blaster Sky25es 09/20/20 10:10 PM
What a difference! Those results are indeed impressive!
22 1,126 Read More
MAME Jump to new posts
Re: Ap2000 signs of life Golden Child 09/20/20 09:59 PM

I managed to get something working that would save the printer output bytes to separate files so you could launch a viewer on them, like gv for postscript output.

A delay of 30 seconds will separate files.


Code
lp0 = manager:machine().luaprinters[1]
filenamebase=lp0:getprintername()
filenamecount=0
idlewaitperiod=30*60
idlecount=0


function feedchars(ch)
local idleflag=0
repeat
nextchar = lp0:getnextchar()
if nextchar >= 0 then 
  idleflag=1
  if f == nil then
    filenamecount = filenamecount+1
    currentfilename = filenamebase..string.format("%04d",filenamecount)..".ps"
    f=io.open(currentfilename,"w")
    idlecount=0
  end
  f:write(string.char(nextchar))
 end 
until nextchar < 0
if idleflag==0 then
  if f~=nil then
    idlecount=idlecount+1 
    if idlecount%(60*5)==0 then print ("idle: "..idlecount/60) end
  end
else
  idlecount=0 -- reset idlecount
end
if idlecount > idlewaitperiod then
  idlecount=-1
  f:close()
  f=nil
  os.execute('gv "'..currentfilename..'" &')
  print('gv '..currentfilename)
end
end

function framedispatch() for i,j in pairs(dispatchlist) do j() end end
emu.register_frame(framedispatch)
dispatchlist={feedchars}



Code
idle: 5.0
idle: 10.0
idle: 15.0
idle: 20.0
idle: 25.0
idle: 30.0
gv 2020-09-20 14-14-25 ct486-board4-lpt-lpt-centronics-luaprinter0004.ps
61 3,113 Read More
MAME Jump to new posts
Re: mame 0.224 astro blaster John IV 09/20/20 07:58 PM
Originally Posted by Sky25es
Originally Posted by John IV
Datapoint w/ tip of trunk 6700K at 4.5Ghz:

mame64 astrob -bench 90
Average speed: 179.84% (89 seconds)


179.84% at 4.5ghz ??? Wow, It's incredible !!

With my 4790k O.C.'d to 4.8ghz I get roughly 145% 😮


mame64 astrob -bench 90
Average speed: 349.09% (89 seconds)

w/ couriersud's change today.
22 1,126 Read More
MAME Jump to new posts
Re: mame 0.224 astro blaster Sky25es 09/20/20 07:42 PM
Wow! Great news! Thanks R.Belmont.
Btw. The amount of changes and advances in the last versions of Mame is just incredible.
Many thanks to all devs and congrats. 👍
22 1,126 Read More
MAME Jump to new posts
Re: mame 0.224 astro blaster R. Belmont 09/20/20 03:53 PM
Couriersud just checked in some changes that roughly triple the performance of this driver without hurting correctness, so the next release should be better for you.
22 1,126 Read More
MAME Jump to new posts
Re: TMS-09xx/1xxx thread (was New Dumps) Mr. Do 09/19/20 09:32 PM
Originally Posted by ssj
I found some scans for the Microvision handhelds on my hard drive, I believe they were done by ranger_lennier although not completely sure. They have pretty decent quality if anyone fancies doing some artwork for them. After the driver improvements hap did a while back would be pretty cool to have nice artwork to go with it especially the screen overlays which are a must for several of the games.

I uploaded them all here in case someone is interested:
https://www34.zippyshare.com/v/yO24be4g/file.html



Very cool... thank you!! These will be interesting to do... can't say "when" at this point, but it's on the list.
3,638 2,283,880 Read More
MAME Jump to new posts
Re: Ap2000 signs of life Golden Child 09/19/20 02:55 PM

Just for fun, I wanted to see if I could get some color postscript output from the win95 printer drivers using the QMS Colorscript 230 drivers.

Setting the spool settings to Print directly to printer and disable bidirectional support because it would put 0x14 characters into the printout.

Using the "printer" centronics device and then using mame's File manager and setting the printout to a file to save out the data.


Once done, using gv (ghostview) under Ubuntu to view the output. (I had to apt install gv)

[Linked Image from i.imgur.com]
[Linked Image from i.imgur.com]
[Linked Image from i.imgur.com]
[Linked Image from i.imgur.com]

What I'd like to do is to figure out some way to have it watch the printer, when there's a long pause in the output, say 15 seconds or so, then save everything to a file, so it can run gv automatically.
61 3,113 Read More
MAME Jump to new posts
Re: TMS-09xx/1xxx thread (was New Dumps) ssj 09/19/20 12:11 AM
I found some scans for the Microvision handhelds on my hard drive, I believe they were done by ranger_lennier although not completely sure. They have pretty decent quality if anyone fancies doing some artwork for them. After the driver improvements hap did a while back would be pretty cool to have nice artwork to go with it especially the screen overlays which are a must for several of the games.

I uploaded them all here in case someone is interested:
https://www34.zippyshare.com/v/yO24be4g/file.html
3,638 2,283,880 Read More
MAME Jump to new posts
Re: ex- USSR and Soviet Bloc hardware shattered 09/18/20 08:29 PM
ProDOS is almost working on agat9 (crashes after reading disk directory):

[Linked Image from i.imgur.com]
377 332,027 Read More
MAME Jump to new posts
Re: Ap2000 signs of life Golden Child 09/18/20 06:34 PM
So if I add to my list of printers in the constructor, I get a whole bunch of devices in my list.

It seems to be initializing a bunch of devices that don't actually get used. It must be enumerating every possible device that uses the luaprinter.

Code
luaprinter::luaprinter(device_t& thisdevice, int testvalue){ 
	m_lp_mydevice = &thisdevice; 
	time(&m_lp_session_time);  
	initvalue = testvalue;

	addtoprinterlist( *this);
	printf("yes you can");
	printf(" device = %s ",thisdevice.tag());
	fflush(stdout);
	printf("count = %d\n",count());  // the size of the printerlist
	fflush(stdout);
	
	};


with one luaprinter device I get 19 items:

Code
./mame64 ct486   -hard1 hd128MB  -debug  -board4:lpt:lpt:centronics luaprinter -confirm_quit -ramsize 64M 
-board3:ide:ide:1 hdd -hard2 hd128MBpt -board3:ide:ide:1 hdd
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 1
...
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 9
    _/      _/    _/_/    _/      _/  _/_/_/_/
   _/_/  _/_/  _/    _/  _/_/  _/_/  _/       
  _/  _/  _/  _/_/_/_/  _/  _/  _/  _/_/_/    
 _/      _/  _/    _/  _/      _/  _/         
_/      _/  _/    _/  _/      _/  _/_/_/_/    

mame 0.224	
Copyright (C) Nicola Salmoria and the MAME team

Lua 5.3	
Copyright (C) Lua.org, PUC-Rio

yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 10
yes you can device = :board2:comat:serport0:luaprinter count = 11
yes you can device = :board2:comat:serport1:luaprinter count = 12
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 13
yes you can device = :board4:lpt:lpt:centronics:ap2000 count = 14
yes you can device = :board4:lpt:lpt:centronics:lx810l count = 15
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 16
Debug Build: Disabling input grab for -debug
Debug Build: Disabling input grab for -debug
Debug Build: Disabling input grab for -debug
[MAME]> 
"hd128MB" approximately matches the following
supported software items (best match first):


"hd128MBpt" approximately matches the following
supported software items (best match first):

DEVICE START CALL luaprinterlist

DEVICE START CALL luaprinterlist

DEVICE START CALL setprintername

DEVICE RESET CALLED
DEVICE RESET CALLED


MAME debugger version 0.224 (mame0224-205-g69406ddcc71-dirty)
Currently targeting ct486 (PC/AT 486 with CS4031 chipset)
[MAME]> yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 18
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 19


and if I add a second luaprinter device I get 35 total devices.


Code
/mame64 ct486  -hard1 hd128MB  -debug  -board4:lpt:lpt:centronics luaprinter -confirm_quit -ramsize 64M
 -board3:ide:ide:1 hdd -hard2 hd128MBpt -board3:ide:ide:1 hdd -board2:comat:serport1 luaprinter
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 1
...
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 8
yes you can device = :board2:comat:serport1:luaprinter count = 9
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 10
yes you can device = :board2:comat:serport1:luaprinter count = 11
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 12
yes you can device = :board2:comat:serport1:luaprinter count = 13
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 14
yes you can device = :board2:comat:serport1:luaprinter count = 15
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 16
yes you can device = :board2:comat:serport1:luaprinter count = 17
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 18
yes you can device = :board2:comat:serport1:luaprinter count = 19
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 20
    _/      _/    _/_/    _/      _/  _/_/_/_/
   _/_/  _/_/  _/    _/  _/_/  _/_/  _/       
  _/  _/  _/  _/_/_/_/  _/  _/  _/  _/_/_/    
 _/      _/  _/    _/  _/      _/  _/         
_/      _/  _/    _/  _/      _/  _/_/_/_/    

mame 0.224	
Copyright (C) Nicola Salmoria and the MAME team

Lua 5.3	
Copyright (C) Lua.org, PUC-Rio

yes you can device = :board2:comat:serport1:luaprinter count = 21
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 22
yes you can device = :board2:comat:serport0:luaprinter count = 23
yes you can device = :board2:comat:serport1:luaprinter count = 24
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 25
yes you can device = :board4:lpt:lpt:centronics:ap2000 count = 26
yes you can device = :board4:lpt:lpt:centronics:lx810l count = 27
yes you can device = :board2:comat:serport1:luaprinter count = 28
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 29
Debug Build: Disabling input grab for -debug
Debug Build: Disabling input grab for -debug
Debug Build: Disabling input grab for -debug
[MAME]> 
"hd128MB" approximately matches the following
supported software items (best match first):


"hd128MBpt" approximately matches the following
supported software items (best match first):

DEVICE START CALL luaprinterlist

DEVICE START CALL luaprinterlist

DEVICE START CALL setprintername

DEVICE RESET CALLED
DEVICE RESET CALLED
m_rs232_rxbaud read=7
rs232_rxbaud read=7


MAME debugger version 0.224 (mame0224-205-g69406ddcc71-dirty)
Currently targeting ct486 (PC/AT 486 with CS4031 chipset)
[MAME]> 

>g
[MAME]> yes you can device = :board2:comat:serport1:luaprinter count = 32
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 33
yes you can device = :board2:comat:serport1:luaprinter count = 34
yes you can device = :board4:lpt:lpt:centronics:luaprinter count = 35
Average speed: 99.93% (1 seconds)


Well, I guess as long as it works I'll keep it outside the constructor.
61 3,113 Read More
MAME Jump to new posts
Re: Ap2000 signs of life Golden Child 09/18/20 04:15 PM

I thought, why not try to send the printed PNG to the printer:


dofile('../../luaprinter2.lua') -- start up my imagewriter interpreter

(print something to the page)

manager:machine().lp[1]:savepage()
print(manager:machine().lp[1]:getprintername())
os.execute('lpr ~/"Downloads/mamegit/mame/snap/ct486/2020-09-18 08-59-47 ct486-board4-lpt-lpt-centronics-luaprinter Page 0.PNG"')

and lpr sends the PNG file to the printer.

Ubuntu uses cups, I don't know how it would work on windows.
61 3,113 Read More
Page 1 of 7 1 2 3 4 5 6 7
Who's Online Now
2 registered members (robcfg, 1 invisible), 34 guests, and 1 spider.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,811
Posts115,965
Members4,914
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3