tmdisplay

Game development with Board Game Arena Studio
Post Reply
User avatar
alkinor
Posts: 8
Joined: 15 May 2014, 17:40

tmdisplay

Post by alkinor »

Hello,

I've got a question about tmdisplay in gameoptions.inc.php, here is mine :

Code: Select all

100 => array(
        'name' => totranslate('Game setup'),
        'values' => array(
            0 => array( 'name' => totranslate('Dice Hospital'),
                        'tmdisplay' => totranslate('Base game')),
            1 => array( 'name' => totranslate('Dice Hospital + Experimental Medicine Mini-expansion'),
                        'tmdisplay' => totranslate('Experimental Medicine'),
                        'nobeginner' => true
                    ),
        ), 
    ),
    101 => array(
        'name' => totranslate('Hard mode'),
        'values' => array(
            0 => array( 'name' => totranslate('Disabled'),
                        'tmdisplay' => totranslate(''),
                        ),
            1 => array( 'name' => totranslate('Opening crisis'),
                        'tmdisplay' => totranslate('Opening crisis'),
                        ),
            2 => array( 'name' => totranslate('Nationwide Epidemic'),
                        'tmdisplay' => totranslate('Nationwide Epidemic'),
                        ),
            3 => array( 'name' => totranslate('Resistant Superbug'),
                        'tmdisplay' => totranslate('Resistant Superbug'),
                        ),
            4 => array( 'name' => totranslate('Opening crisis + Nationwide Epidemic'),
                        'tmdisplay' => totranslate('Opening crisis + Nationwide Epidemic'),
                        ),
            5 => array( 'name' => totranslate('Opening crisis + Resistant Superbug'),
                        'tmdisplay' => totranslate('Opening crisis + Resistant Superbug'),
one.')
                        ),
            6 => array( 'name' => totranslate('Nationwide Epidemic + Resistant Superbug'),
                        'tmdisplay' => totranslate('Nationwide Epidemic + Resistant Superbug'),
                        ),
            7 => array( 'name' => totranslate('Opening crisis + Nationwide Epidemic + Resistant Superbug'),
                        'tmdisplay' => totranslate('Opening crisis + Nationwide Epidemic + Resistant Superbug'),
                        ),
        ), 
I've got two options : Game setup (Base game or Base game + an expansion) and Hard mode with different values.

I want to display in the lobby "Game setup"'s value + "Hard mode"'s value, for example :
"Base game" "Nationwide Epidemic + Resistant Superbug"
But, with this configuration, it only displays "Nationwide Epidemic + Resistant Superbug".

Is it possible to have both options's tmdisplay ?
User avatar
Bids
Posts: 72
Joined: 02 April 2019, 18:10

Re: tmdisplay

Post by Bids »

Hmm, I have similar options and it does display several tmdisplays so I think this should work.
One thing that you have different between both is the " , " but not sure if that would make a difference.
Does it work for "Experimental Medicine", "Opening Crisis" ? or the first one never appears?
For example for Bids, several options can be displayed next to each other in the lobby and my code looks the same as yours (although I never have a tm display for the '0' option)
User avatar
alkinor
Posts: 8
Joined: 15 May 2014, 17:40

Re: tmdisplay

Post by alkinor »

Now it works, even if I've not changed anything and I've done some refresh with control panel's "reload game options configuration" and F5 with the browser.
It may require additional time to display correctly...
Everything is OK, that's the principal ;)
User avatar
Bids
Posts: 72
Joined: 02 April 2019, 18:10

Re: tmdisplay

Post by Bids »

Aah yes you always need to reload game options manually ;) glad it works now
Post Reply

Return to “Developers”