Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Campaign] Can not set maptitle #1638

Open
Spikeone opened this issue Nov 14, 2023 · 2 comments
Open

[Campaign] Can not set maptitle #1638

Spikeone opened this issue Nov 14, 2023 · 2 comments
Labels

Comments

@Spikeone
Copy link
Member

It's currently not possible to localize the shown campaign names in the "Choose mission" screen and below the map preview. It should be possible to localize those names.

@Flamefire
Copy link
Member

Currently the name shown is that of the map as stored in the map file.
Can you provide an example how this should look like in the mission file (i.e. in https://github.com/Return-To-The-Roots/s25client/blob/master/data/RTTR/campaigns/world/campaign.lua)?

@Spikeone
Copy link
Member Author

Spikeone commented Mar 15, 2024

@Flamefire

---- Campaign lua version ------
function getRequiredLuaVersion()
    return 1
end

rttr:RegisterTranslations(
{
    en =
    {
        name = 'World campaign',
        shortDescription = 'Original world campaign',
        longDescription= 'The original world campaign from the gold edition.\n\nYou have to conquer the whole earth.',
        mapName1 = 'Africa',
        mapName2 = 'Australia'
    },
    de =
    {
        name = 'Welt Kampagne',
        shortDescription = 'Orginale Welt Kampagne',
        longDescription= 'Die orginale Welt Kampagne aus der Gold Edition.\n\nErobere die ganze Welt.',
        mapName1 = 'Afrika',
        mapName2 = 'Australien'
    }
})

campaign = {
    version = 1,
    author = "Bluebyte",
    name = _"name",
    shortDescription = _"shortDescription",
    longDescription = _"longDescription",
    image = "<RTTR_GAME>/GFX/PICS/WORLD.LBM",
    maxHumanPlayers= 1,
    difficulty = "easy",
    mapFolder = "<RTTR_GAME>/DATA/MAPS2",
    luaFolder = "<RTTR_RTTR>/campaigns/world",
    maps = {
        {"AFRICA.WLD", _"mapName1"},
        {"AUSTRA.WLD", _"mapName2"}
    }
}

Maybe something like that I'd guess

@Spikeone Spikeone added the lua label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants