Previous Thread
Next Thread
Print Thread
Page 31 of 33 1 2 29 30 31 32 33
#106295 - 07/03/16 04:34 PM Re: QMC2 SVN news [Re: qmc2]  
Joined: Mar 2008
Posts: 1,016
Shideravan Offline
Very Senior Member
Shideravan  Offline
Very Senior Member

Joined: Mar 2008
Posts: 1,016
Originally Posted By qmc2
I've just added a so called "machine list database" to SVN. This SQLite3 DB is basically just a database version of the machine list cache (file), but it's much easier to use from a filtering Qt model, serving a Qt view. The model itself doesn't exist yet, but the database is filled with data (upon cache creation), so it can already be used for things like these:

Code:
rene@marvin:~/.qmc2> sqlite3 -batch ~/.qmc2/mame-machine-list.db << EOF
> .header on
> .mode column
> select * from mame_machine_list where cloneof='1942';
> EOF
id          description        manufacturer  year        cloneof     is_bios     is_device   has_roms    has_chds    players     drvstat     srcfile   
----------  -----------------  ------------  ----------  ----------  ----------  ----------  ----------  ----------  ----------  ----------  ----------
1942a       1942 (Revision A)  Capcom        1984        1942        false       false       true        false       2           good        1942.cpp  
1942abl     1942 (Revision A,  bootleg       1984        1942        false       false       true        false       2           good        1942.cpp  
1942b       1942 (First Versi  Capcom        1984        1942        false       false       true        false       2           good        1942.cpp  
1942h       Supercharger 1942  hack (Two Bi  1991        1942        false       false       true        false       2           good        1942.cpp  
1942p       1942 (Tecfri PCB,  bootleg       1984        1942        false       false       true        false       1           good        1942.cpp  
1942w       1942 (Williams El  Capcom (Will  1985        1942        false       false       true        false       2           good        1942.cpp

rene@marvin:~/src/qmc2> sqlite3 ~/.qmc2/mame-machine-list.db "select id from mame_machine_list where year like '201%'" | wc -l
45

rene@marvin:~/src/qmc2> sqlite3 ~/.qmc2/mame-machine-list.db "select id from mame_machine_list where players >= 2" | wc -l
8913

My plan is to allow the user creating his/her own filtered views, additional to the 4 built-in ones, all based on the same "DB filter model".

Nice! smile


"A user interface is like a joke. If you have to explain it, it's not that good."
#106346 - 07/04/16 09:33 AM Re: QMC2 SVN news [Re: qmc2]  
Joined: May 2008
Posts: 4,793
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,793
Germany
The model is currently being worked on... it will combine the data from the DB with other information that's loaded separately (ROM states, categories / versions, icons etc.). A "proxy model" will do the actual sorting and parts of the filtering job.

I'll let you know when there's something to test.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#106385 - 07/06/16 01:43 PM Re: QMC2 SVN news [Re: qmc2]  
Joined: May 2008
Posts: 4,793
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,793
Germany
It was harder than expected, but the model is basically working now. I ditched the proxy model idea as it turned out to be much too slow. Sorting is now implemented in the (base) model itself where also filtering will happen.

It's not ready for prime time yet, but when you build with WIP=1 (not recommended) you'll find a new menu item called "New filtered view..." in the "Tools" menu. This will open the new "machine list viewer" which uses this model. It's all preliminary so far, so don't expect too much of it yet. However, it's already pretty fast smile!


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#106421 - 07/07/16 06:47 PM Re: QMC2 SVN news [Re: qmc2]  
Joined: May 2008
Posts: 4,793
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,793
Germany
Many more things are working now... ranks are shown and can be changed in the same way as in the other views, items can be selected in *any* view (yes, you can have multiple of these views) etc. You still need to build with WIP=1 to get to it, but it's meanwhile worth trying smile.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#106458 - 07/09/16 11:28 AM Re: QMC2 SVN news [Re: qmc2]  
Joined: May 2008
Posts: 4,793
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,793
Germany
The new "machine list view(s)" can now be used in the same way as the 4 built-in ones, including item tagging. The most important missing features are the actual filtering / setting up custom filters you can choose from (next), changing visible columns, optional integration of custom views into the main-window (currently they are independent widgets) and a "tree-mode" ("flat-mode" only right now).


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#107844 - 11/07/16 01:09 PM Re: QMC2 SVN news [Re: qmc2]  
Joined: May 2008
Posts: 4,793
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,793
Germany
Latest code in SVN (r7821+) should speed up loading by >= 100ms for everyone. Besides some other optimizations there's a new "icon cache database" now which stores decompressed icon data (SQLite3 blobs in ICO format) that's already mapped to the corresponding machine IDs. This will be enabled by default but can be disabled in case it should hurt performance for you (unexpected). Disabling it will fall back to pre-0.70 behavior.

Here's my current benchmark:

Code:
15:04:43.536: M.A.M.E. Catalog / Launcher II v0.70, SVN r7823 (Qt 4.8.7, SDLMAME, Linux x86_64)
15:04:43.537: Phonon features enabled - using Phonon v4.9.0
15:04:43.538: SDL joystick support enabled - using SDL v2.0.4
15:04:43.539: processing global emulator configuration
15:04:43.540: creating template configuration map
15:04:43.541: template info: emulator = SDLMAME, version = 0.179, format = 0.2.9
15:04:43.685: image cache size set to 64 MB
15:04:43.701: emulator info: type = MAME, version = 0.179
15:04:43.702: 33766 supported (non-device) sets
15:04:43.703: loading catver.ini
15:04:43.730: shortcut map is clean
15:04:43.731: joystick map is clean
15:04:43.793: done (loading catver.ini, elapsed time = 00:00.090)
15:04:43.794: 10941 category / 36817 version records loaded
15:04:43.794: loading category.ini
15:04:43.797: done (loading category.ini, elapsed time = 00:00.003)
15:04:43.797: 1263 category records loaded
15:04:43.799: loading ROM state from cache
15:04:43.824: done (loading ROM state from cache, elapsed time = 00:00.025)
15:04:43.824: 36961 cached ROM states loaded
15:04:43.825: processing machine list
15:04:43.826: loading icons from cache database
15:04:44.241: done (loading icons from cache database, elapsed time = 00:00.414)
15:04:44.241: 11328 icons loaded
15:04:44.243: loading machine data from machine list cache
15:04:44.843: done (loading machine data from machine list cache, elapsed time = 00:00.600)
15:04:44.845: filling up rank cache from user data database '/home/rene/.qmc2/mame-user-data.db'
15:04:44.848: done (filling up rank cache from user data database '/home/rene/.qmc2/mame-user-data.db')
15:04:44.848: sorting machine list by rank in ascending order
15:04:44.978: restoring machine selection
15:04:44.986: done (processing machine list, elapsed time = 00:01.161)
15:04:44.986: 33696 machines, 70 BIOS sets and 3195 devices loaded
15:04:44.986: ROM state info: L:36961 C:32831 M:4098 I:11 N:21 U:0
15:04:44.987: loading favorites and play history
15:04:44.989: done (loading favorites and play history)
15:04:44.989: total start-up time: 00:01.453

Note that importing icons into the database will slow down initial icon loading slightly (since they are written to the database while they are loaded from a ZIP/7z archive or a folder). After that, loading icons from the cache database should make things markedly faster.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#108795 - 02/09/17 08:08 PM Re: QMC2 SVN news [Re: qmc2]  
Joined: May 2008
Posts: 4,793
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,793
Germany
Resurrecting this thread because it's important.

The format of the -listslots output has changed in MAME 'git latest'. Thanks to Tafoid I was informed fairly early about it, and QMC2 supports this beginning with SVN r7928. However, this means that you need the latest version of MAME now (or 0.183 in a few weeks).

The changed code hasn't been tested too thoroughly yet so I'd appreciate if you could test and report any issues with the device configurator here. Thanks smile!


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#108830 - 02/11/17 10:01 AM Re: QMC2 SVN news [Re: qmc2]  
Joined: May 2008
Posts: 4,793
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,793
Germany
Also, QMC2 now officially supports system- and software-manuals (i.e. the ones from progettosnaps.net - thanks to AntoPISA)!


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#108835 - 02/11/17 06:29 PM Re: QMC2 SVN news [Re: qmc2]  
Joined: May 2010
Posts: 27
r09 Offline
Member
r09  Offline
Member

Joined: May 2010
Posts: 27
Originally Posted By qmc2
Resurrecting this thread because it's important.

The format of the -listslots output has changed in MAME 'git latest'. Thanks to Tafoid I was informed fairly early about it, and QMC2 supports this beginning with SVN r7928. However, this means that you need the latest version of MAME now (or 0.183 in a few weeks).

The changed code hasn't been tested too thoroughly yet so I'd appreciate if you could test and report any issues with the device configurator here. Thanks smile!


I'm getting this error on startup:

19:23:36.178: FATAL: can't start MAME executable within a reasonable time frame, giving up

And the "slot options" tab is always empty. Could it be related to these changes?

This is on SVN rev 7939, running on 64-bit Windows 10 with latest MAME from the git repo.

#108836 - 02/11/17 06:34 PM Re: QMC2 SVN news [Re: qmc2]  
Joined: May 2008
Posts: 4,793
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,793
Germany
No, that shouldn't be related. Looks like the emulator doesn't start for whatever reason.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Page 31 of 33 1 2 29 30 31 32 33

Moderated by  qmc2 

Who's Online Now
2 registered members (Robbbert, Llaffer), 48 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,318
Posts107,539
Members4,734
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.029s Queries: 14 (0.009s) Memory: 5.0379 MB (Peak: 5.2699 MB) Zlib enabled. Server Time: 2017-04-27 03:14:50 UTC