Skip to content

Commit bc8d220

Browse files
committed
Stellaris 3.99 CS support
1 parent 08a1b6c commit bc8d220

File tree

5 files changed

+63
-14
lines changed

5 files changed

+63
-14
lines changed

References/CopyAll/Maps/StellarisParserMap.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@
118118
}, {
119119
"DirectoryPath": "common\\country_customization",
120120
"PreferredParser": "DefaultParser"
121+
}, {
122+
"DirectoryPath": "common\\country_focus\\card_categories",
123+
"PreferredParser": "DefaultParser"
124+
}, {
125+
"DirectoryPath": "common\\country_focus\\focus_cards",
126+
"PreferredParser": "DefaultParser"
127+
}, {
128+
"DirectoryPath": "common\\country_focus\\focus_rewards",
129+
"PreferredParser": "DefaultParser"
121130
}, {
122131
"DirectoryPath": "common\\country_limits\\ownership_limits",
123132
"PreferredParser": "DefaultParser"
@@ -214,9 +223,15 @@
214223
}, {
215224
"DirectoryPath": "common\\galactic_focuses",
216225
"PreferredParser": "DefaultParser"
226+
}, {
227+
"DirectoryPath": "common\\gamesetup_settings",
228+
"PreferredParser": "StellarisWholeTextParser"
217229
}, {
218230
"DirectoryPath": "common\\game_concepts",
219231
"PreferredParser": "DefaultParser"
232+
}, {
233+
"DirectoryPath": "common\\game_concept_categories",
234+
"PreferredParser": "DefaultParser"
220235
}, {
221236
"DirectoryPath": "common\\game_rules",
222237
"PreferredParser": "DefaultParser"
@@ -292,6 +307,9 @@
292307
}, {
293308
"DirectoryPath": "common\\inline_scripts\\jobs",
294309
"PreferredParser": "StellarisWholeTextParser"
310+
}, {
311+
"DirectoryPath": "common\\inline_scripts\\output",
312+
"PreferredParser": "StellarisWholeTextParser"
295313
}, {
296314
"DirectoryPath": "common\\inline_scripts\\paragon",
297315
"PreferredParser": "StellarisWholeTextParser"
@@ -301,6 +319,9 @@
301319
}, {
302320
"DirectoryPath": "common\\inline_scripts\\pop_faction_types",
303321
"PreferredParser": "StellarisWholeTextParser"
322+
}, {
323+
"DirectoryPath": "common\\inline_scripts\\pop_resources",
324+
"PreferredParser": "StellarisWholeTextParser"
304325
}, {
305326
"DirectoryPath": "common\\inline_scripts\\relics",
306327
"PreferredParser": "StellarisWholeTextParser"
@@ -310,6 +331,9 @@
310331
}, {
311332
"DirectoryPath": "common\\inline_scripts\\ship_components\\weights",
312333
"PreferredParser": "StellarisWholeTextParser"
334+
}, {
335+
"DirectoryPath": "common\\inline_scripts\\solar_system_initializers",
336+
"PreferredParser": "StellarisWholeTextParser"
313337
}, {
314338
"DirectoryPath": "common\\inline_scripts\\starbase_modules",
315339
"PreferredParser": "StellarisWholeTextParser"
@@ -331,6 +355,9 @@
331355
}, {
332356
"DirectoryPath": "common\\inline_scripts\\trait\\subtitle",
333357
"PreferredParser": "StellarisWholeTextParser"
358+
}, {
359+
"DirectoryPath": "common\\inline_scripts\\zones",
360+
"PreferredParser": "StellarisWholeTextParser"
334361
}, {
335362
"DirectoryPath": "common\\intel_categories",
336363
"PreferredParser": "DefaultParser"
@@ -511,6 +538,9 @@
511538
}, {
512539
"DirectoryPath": "common\\species_rights\\slavery_types",
513540
"PreferredParser": "StellarisOverwrittenParser"
541+
}, {
542+
"DirectoryPath": "common\\species_rights\\subspecies_integration_types",
543+
"PreferredParser": "StellarisOverwrittenParser"
514544
}, {
515545
"DirectoryPath": "common\\specimens",
516546
"PreferredParser": "DefaultParser"
@@ -562,6 +592,9 @@
562592
}, {
563593
"DirectoryPath": "common\\terraform",
564594
"PreferredParser": "StellarisWholeTextParser"
595+
}, {
596+
"DirectoryPath": "common\\timeline_events",
597+
"PreferredParser": "DefaultParser"
565598
}, {
566599
"DirectoryPath": "common\\tradable_actions",
567600
"PreferredParser": "DefaultParser"
@@ -580,6 +613,12 @@
580613
}, {
581614
"DirectoryPath": "common\\war_goals",
582615
"PreferredParser": "DefaultParser"
616+
}, {
617+
"DirectoryPath": "common\\zones",
618+
"PreferredParser": "DefaultParser"
619+
}, {
620+
"DirectoryPath": "common\\zone_slots",
621+
"PreferredParser": "DefaultParser"
583622
}, {
584623
"DirectoryPath": "dlc_metadata",
585624
"PreferredParser": "DefaultParser"
@@ -994,6 +1033,9 @@
9941033
}, {
9951034
"DirectoryPath": "sound\\utopia",
9961035
"PreferredParser": "GenericWholeTextParser"
1036+
}, {
1037+
"DirectoryPath": "sound\\vo\\chinese",
1038+
"PreferredParser": "GenericWholeTextParser"
9971039
}, {
9981040
"DirectoryPath": "tools",
9991041
"PreferredParser": "DefaultParser"

src/IronyModManager.Parser.Common/Constants.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Created : 02-16-2020
55
//
66
// Last Modified By : Mario
7-
// Last Modified On : 02-12-2025
7+
// Last Modified On : 03-21-2025
88
// ***********************************************************************
99
// <copyright file="Constants.cs" company="Mario">
1010
// Mario
@@ -92,9 +92,9 @@ public static class Constants
9292
public const string ShaderExtension = ".shader";
9393

9494
/// <summary>
95-
/// The store cache root rolder
95+
/// The store cache root folder
9696
/// </summary>
97-
public const string StoreCacheRootRolder = "StoreCache";
97+
public const string StoreCacheRootFolder = "StoreCache";
9898

9999
/// <summary>
100100
/// The text extension
@@ -202,12 +202,12 @@ public static class HOI4
202202
public static readonly string AIAreas = MergePath(CommonPath, "ai_areas");
203203

204204
/// <summary>
205-
/// The ai strategy
205+
/// The AI strategy
206206
/// </summary>
207207
public static readonly string AIStrategy = MergePath(CommonPath, "ai_strategy");
208208

209209
/// <summary>
210-
/// The ai strategy planes
210+
/// The AI strategy planes
211211
/// </summary>
212212
public static readonly string AIStrategyPlanes = MergePath(CommonPath, "ai_strategy_plans");
213213

@@ -640,6 +640,11 @@ public static class Stellaris
640640
/// </summary>
641641
public static readonly string Ethics = MergePath(CommonPath, "ethics");
642642

643+
/// <summary>
644+
/// The gamesetup settings
645+
/// </summary>
646+
public static readonly string GamesetupSettings = MergePath(CommonPath, "gamesetup_settings");
647+
643648
/// <summary>
644649
/// The government authorities
645650
/// </summary>

src/IronyModManager.Parser/Definitions/IndexedDefinitions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Created : 02-16-2020
55
//
66
// Last Modified By : Mario
7-
// Last Modified On : 02-09-2025
7+
// Last Modified On : 03-21-2025
88
// ***********************************************************************
99
// <copyright file="IndexedDefinitions.cs" company="Mario">
1010
// Mario
@@ -773,7 +773,7 @@ public void UseSearch(string dbPath = Constants.EmptyParam, string dbPathSuffix
773773
/// <returns>System.String.</returns>
774774
protected virtual string ResolveStoragePath(string path)
775775
{
776-
return Path.Combine(path, Common.Constants.StoreCacheRootRolder);
776+
return Path.Combine(path, Common.Constants.StoreCacheRootFolder);
777777
}
778778

779779
/// <summary>

src/IronyModManager.Parser/Games/Stellaris/WholeTextParser.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Created : 02-18-2020
55
//
66
// Last Modified By : Mario
7-
// Last Modified On : 10-17-2024
7+
// Last Modified On : 03-21-2025
88
// ***********************************************************************
99
// <copyright file="WholeTextParser.cs" company="Mario">
1010
// Mario
@@ -40,7 +40,7 @@ public class WholeTextParser : Generic.WholeTextParser, IGameParser
4040
Common.Constants.Stellaris.DiploPhrases, Common.Constants.Stellaris.MapGalaxy, Common.Constants.Stellaris.NameLists, Common.Constants.Stellaris.SpeciesNames, Common.Constants.Stellaris.Portraits,
4141
Common.Constants.Stellaris.ComponentTags, Common.Constants.Stellaris.RandomNamesBase, Common.Constants.Stellaris.RandomNames, Common.Constants.Stellaris.StartScreenMessages, Common.Constants.Stellaris.MapSetupScenarios,
4242
Common.Constants.Stellaris.CountryContainer, Common.Constants.Stellaris.DiplomacyEconomy, Common.Constants.Stellaris.InlineScripts, Common.Constants.Stellaris.EconomicPlans, Common.Constants.Stellaris.SpeciesClasses,
43-
Common.Constants.Stellaris.Terraform
43+
Common.Constants.Stellaris.Terraform, Common.Constants.Stellaris.GamesetupSettings
4444
};
4545

4646
#endregion Fields
@@ -52,6 +52,8 @@ public class WholeTextParser : Generic.WholeTextParser, IGameParser
5252
/// </summary>
5353
/// <param name="codeParser">The code parser.</param>
5454
/// <param name="logger">The logger.</param>
55+
/// <seealso cref="T:IronyModManager.Parser.Common.Parsers.IDefaultParser" />
56+
/// <remarks>Initializes a new instance of the <see cref="T:IronyModManager.Parser.Common.Parsers.BaseParser" /> class.</remarks>
5557
public WholeTextParser(ICodeParser codeParser, ILogger logger) : base(codeParser, logger)
5658
{
5759
}

src/IronyModManager.Services/DeleteStores.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-

2-
// ***********************************************************************
1+
// ***********************************************************************
32
// Assembly : IronyModManager.Services
43
// Author : Mario
54
// Created : 06-26-2023
65
//
76
// Last Modified By : Mario
8-
// Last Modified On : 06-26-2023
7+
// Last Modified On : 03-21-2025
98
// ***********************************************************************
109
// <copyright file="DeleteStores.cs" company="Mario">
1110
// Mario
1211
// </copyright>
1312
// <summary></summary>
1413
// ***********************************************************************
14+
1515
using System;
1616
using System.Collections.Generic;
1717
using System.IO;
@@ -24,7 +24,6 @@
2424

2525
namespace IronyModManager.Services
2626
{
27-
2827
/// <summary>
2928
/// Class DeleteStores.
3029
/// Implements the <see cref="PostStartup" />
@@ -51,7 +50,7 @@ private static Task CleanupStoreAsync()
5150
try
5251
{
5352
var store = DIResolver.Get<IStorageProvider>();
54-
var path = Path.Combine(store.GetRootStoragePath(), Parser.Common.Constants.StoreCacheRootRolder);
53+
var path = Path.Combine(store.GetRootStoragePath(), Parser.Common.Constants.StoreCacheRootFolder);
5554
if (Directory.Exists(path))
5655
{
5756
DiskOperations.DeleteDirectory(path, true);
@@ -60,6 +59,7 @@ private static Task CleanupStoreAsync()
6059
catch
6160
{
6261
}
62+
6363
return Task.CompletedTask;
6464
}
6565

0 commit comments

Comments
 (0)