View Issue Details

IDProjectCategoryView StatusLast Update
0002811FSSCPPilot datapublic2013-03-26 08:37
ReporterFUBAR-BDHR Assigned Tokarajorma  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version3.6.19 
Summary0002811: $Default Campaign File Name: in game_settings.tbl not working
DescriptionPretty much what the title says. Table is parsed but the default campaign is set to the first one in alphabetical order on the list.
Steps To ReproduceCreate a simple game_settings.tbl with

#CAMPAIGN SETTINGS

$Default Campaign File Name: <something>

#end

Replace <something> with something that isn't freespace2.fc2 or the first campaign (name not .fc2 file) you have in alphabetical order. I suggest doing the wrong thing and actually putting the .fc2 extension so you hit the mprintf and get a log entry.

Create a new pilot, go to the campaign room, not the currently selected campaign is not the one you specified.

TagsNo tags attached.

Activities

MjnMixael

2013-03-18 14:12

manager   ~0014780

Could not reproduce this in this way.

BtA currently has 2 campaigns. 'Mefistofele' and 'Slaves of Chaos'. SoC is the $Default Campaign, but is second alphabetically. However, upon creating a new pilot SoC is selected as the default campaign.

To note, we have the Freespace2 campaign ignored in BtA, but I get no errors or messages saying that it couldn't be found or hinting that FSO was trying to find it.

niffiwan

2013-03-24 09:08

developer   ~0014823

I can't reproduce either using the following game_settings.tbl with ST:R.

#CAMPAIGN SETTINGS

$Default Campaign File Name: SilentThreat.fc2 (or str.fc2)

#Ignored Campaign File Names

$Campaign File Name: freespace2.fc2

#end


Can you provide any more information on how to reproduce this issue?

MjnMixael

2013-03-25 00:07

manager   ~0014828

Retested, this time removing the #Ignored Campaigns section. That does it. Apparently having Freespace2.fc2 as the default campaign is overriding any $Default Campaign table setting.

FUBAR-BDHR

2013-03-25 04:22

developer   ~0014830

Well since TBP has no freespace2.fc2 file that should not be the issue here. I am getting a different default campaign in another test directory so alphabetical does seem to be ruled out.

MjnMixael

2013-03-25 04:54

manager   ~0014831

We need more information then, bud. My tests with 'Freespace 2', 'Mefistofele', and 'Slaves of Chaos' campaigns - (freespace2.fc2, bta_1.fc2, and bta_1d.fc2 respectively.)

1) $Default is SoC, none ignored. FS2 was the default.
2) $Default is SoC, FS2 ignored. SoC was the default.
3) $Default is Mef, FS2 ignored. Mef was the default.
4) 'Slaves of Chaos' renamed to 'ASlaves of Chaos' and 'Mefistofele' renamed to 'AMefistofele'. $Default is ASoC, none ignored. FS2 was the default.
5) 'Slaves of Chaos' renamed to 'ASlaves of Chaos' and 'Mefistofele' renamed to 'AMefistofele'. $Default is ASoC, FS2 ignored. ASoC was the default.

karajorma

2013-03-25 11:15

administrator   ~0014832

I'll set up a TBP folder and try this myself tomorrow.

karajorma

2013-03-26 08:37

administrator   ~0014842

You were both right actually. Any new pilot was set to have Freespace2 as the default. If that didn't exist, you'd get the first alphabetical campaign. But campaign names are sorted, not campaign file names and anything with The in the name is advanced to the next word.

karajorma

2013-03-26 08:37

administrator   ~0014843

Fix committed to trunk@9602.

Related Changesets

fs2open: trunk r9602

2013-03-26 05:24

karajorma


Ported: N/A

Details Diff
Fix Mantis 2811 (Default Campaign File Name was not used). Affected Issues
0002811
mod - /trunk/fs2_open/code/playerman/managepilot.cpp Diff File

Issue History

Date Modified Username Field Change
2013-03-16 07:31 FUBAR-BDHR New Issue
2013-03-16 07:31 FUBAR-BDHR Assigned To => karajorma
2013-03-16 07:31 FUBAR-BDHR Status new => assigned
2013-03-18 14:12 MjnMixael Note Added: 0014780
2013-03-24 09:08 niffiwan Note Added: 0014823
2013-03-24 09:08 niffiwan Status assigned => feedback
2013-03-25 00:07 MjnMixael Note Added: 0014828
2013-03-25 04:22 FUBAR-BDHR Note Added: 0014830
2013-03-25 04:22 FUBAR-BDHR Status feedback => assigned
2013-03-25 04:54 MjnMixael Note Added: 0014831
2013-03-25 11:15 karajorma Note Added: 0014832
2013-03-26 08:37 karajorma Note Added: 0014842
2013-03-26 08:37 karajorma Changeset attached => fs2open trunk r9602
2013-03-26 08:37 karajorma Note Added: 0014843
2013-03-26 08:37 karajorma Status assigned => resolved
2013-03-26 08:37 karajorma Resolution open => fixed