File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ local SAVE_DIR = "Saves/campaign"
2121local SAVE_DIR_LENGTH = string.len (SAVE_DIR ) + 2
2222local 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 )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments