Skip to content

Commit 34697bf

Browse files
committed
VERSION{v1.8.5.3}
Fixed a problem with the tutorial button.
1 parent 26d3010 commit 34697bf

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

LuaMenu/widgets/gui_campaign_saveload.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ local SAVE_DIR = "Saves/campaign"
2121
local SAVE_DIR_LENGTH = string.len(SAVE_DIR) + 2
2222
local AUTOSAVE_DIR = SAVE_DIR .. "/auto"
2323

24+
-- Never ask for commander name on first campaign start.
25+
local DEFAULT_COMMANDER_NAME = "Commander"
26+
2427
--------------------------------------------------------------------------------
2528
-- data
2629
--------------------------------------------------------------------------------
@@ -452,7 +455,7 @@ function CampaignSaveWindow.PromptInitialSaveName()
452455
local Configuration = WG.Chobby.Configuration
453456
if not Configuration.campaignSaveFile then
454457
local lobby = WG.LibLobby.lobby
455-
local commName = (lobby and lobby.myUserName) or Configuration.suggestedNameFromSteam
458+
local commName = (lobby and lobby.myUserName) or Configuration.suggestedNameFromSteam or DEFAULT_COMMANDER_NAME
456459
if commName then
457460
WG.CampaignData.StartNewGame()
458461
WG.CampaignData.SetupNewSave(commName, 2)

LuaMenu/widgets/gui_tutorial_handler.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ local function StartTutorial()
2828
if tutorialPrompt then
2929
tutorialPrompt.Remove()
3030
end
31+
WG.CampaignSaveWindow.PromptInitialSaveName()
3132
WG.Chobby.interfaceRoot.OpenSingleplayerTabByName("campaign")
3233
WG.CampaignHandler.OpenPlanetScreen(TUTORIAL_PLANET)
3334
WG.CampaignHandler.StartPlanetMission(TUTORIAL_PLANET)

0 commit comments

Comments
 (0)