EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: Language selection in 1G1R mode  (Read 2746 times)

unexpectedpanda

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 74.0 Firefox 74.0
    • View Profile
Language selection in 1G1R mode
« on: 21 March 2020, 23:14 »

Hi folks,

I'm attempting to build a dat for CLRMAMEPro's 1G1R mode that includes language data. Is there are way in the dat to format the language parameter so CLRMAMEPro understands multiple languages as a list/array/set instead of a string, without duplicates showing up? So for example the following entries:

Code: [Select]
language="En, De, Ja, Th"
language="En, Fr, Ja, No, Zh"

Would ideally be interpreted by CLRMAMEPro in 1G1R mode as:

  • De
  • En
  • Fr
  • Ja
  • No
  • Th
  • Zh

And not:

  • En, De, Ja, Th
  • En, Fr, Ja, No, Zh

Thanks  :)
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 80.0.3987.149 Chrome 80.0.3987.149
    • View Profile
Re: Language selection in 1G1R mode
« Reply #1 on: 22 March 2020, 08:30 »

most likely you need multiple release elements

release name="xxx" region="EUR" language="De"
release name="xxx" region="EUR" language="En"
Logged

unexpectedpanda

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 74.0 Firefox 74.0
    • View Profile
Re: Language selection in 1G1R mode
« Reply #2 on: 22 March 2020, 09:40 »

Cheers Roman, that did the trick :)
Logged

Florin9doi

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 80.0.3987.163 Chrome 80.0.3987.163
    • View Profile
Re: Language selection in 1G1R mode
« Reply #3 on: 11 April 2020, 12:57 »

Hello Roman,
Inspired by this thread I've tried to do something similar, but the languages parameter seems to have no effect to me: when selecting a single language, clrmamepro still search for roms without that language. For example: when I select English, it still shows Es+It Roms.

I'm attaching a test file and results
« Last Edit: 11 April 2020, 16:59 by Florin9doi »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 81.0.4044.92 Chrome 81.0.4044.92
    • View Profile
Re: Language selection in 1G1R mode
« Reply #4 on: 11 April 2020, 17:59 »

The 1G1R algorithm is not a filtering algorithm which simply takes the languages or regions which you enabled. This seems to be the major misunderstading when it comes to 'weird' effects with a selection (see other posts here regarding 1g1r).
Another thing is that concatenated regions/languages are not the sum of the single entries...so "Australia" is something completely different than "Europe, Australia"...

The algorithm takes the enabled regions and languages and depending on their order it calculates a score for each set. If a set has clones and multiple releases, it picks the release with the best score.

In your specifc example the "GameA (Europe, Australia) (Es,It) (v1.60)" simply gets a bigger score than GameA (Australia) (En,Fr,De,Es,It).....because "Australia" is a not enabled region.
Logged
Pages: [1]   Go Up
 

Page created in 0.119 seconds with 19 queries.

anything