Skip to content

Commit

Permalink
Release 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mimonsi committed Jul 3, 2024
1 parent ef3cde4 commit eab6a8b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .run/PublishNewVersion.run.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="PublishNewVersion" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="dotnet publish /p:ModPublisherCommand=Publish" />
<option name="SCRIPT_TEXT" value="dotnet publish /p:ModPublisherCommand=NewVersion" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="" />
<option name="SCRIPT_OPTIONS" value="" />
Expand Down
4 changes: 2 additions & 2 deletions AssetPackLoaderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,11 @@ private static IEnumerator LoadAssets()
Logger.Debug("Asset Name: " + prefabAsset.name);
Logger.Debug("Asset Path: " + prefabAsset.path);
var prefabBaseTime = DateTime.Now;
//PrefabBase prefabBase = prefabAsset.Load() as PrefabBase;
PrefabBase prefabBase = prefabAsset.Load() as PrefabBase;
var prefabBaseEndTime = DateTime.Now - prefabBaseTime;
Logger.Debug("Loaded Prefab");
var prefabAddTime = DateTime.Now;
//_prefabSystem.AddPrefab(prefabBase, null, null, null);
_prefabSystem.AddPrefab(prefabBase, null, null, null);
Logger.Debug($"Added {prefabAsset.name} to Prefab System");
var prefabAddEndTime = DateTime.Now - prefabAddTime;
//Logger.Debug($"Added {prefabAsset.name} to Prefab System");
Expand Down
4 changes: 2 additions & 2 deletions AssetPacksManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

<!--The file where mod information which is required for publishing mod on PDX mods are stored-->
<PublishConfigurationPath>Properties\PublishConfiguration.xml</PublishConfigurationPath>
<AssemblyVersion>1.4.0</AssemblyVersion>
<FileVersion>1.4.0</FileVersion>
<AssemblyVersion>1.4.1</AssemblyVersion>
<FileVersion>1.4.1</FileVersion>
<LangVersion>default</LangVersion>
<Version>1.0.0</Version>
<Authors>Konsi</Authors>
Expand Down
2 changes: 2 additions & 0 deletions Mod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Game.Modding;
using Game.SceneFlow;
using Colossal.IO.AssetDatabase;
using Colossal.Logging;
using Colossal.PSI.Environment;
using Colossal.UI;
using Game.Prefabs;
Expand Down Expand Up @@ -41,6 +42,7 @@ public void OnLoad(UpdateSystem updateSystem)
GameManager.instance.localizationManager.AddSource("en-US", new LocaleEN(setting));
AssetDatabase.global.LoadSettings(nameof(AssetPacksManager), setting, new Setting(this));
Setting.Instance = setting;
KLogger.Logger.effectivenessLevel = Level.Debug;
Logger.Info(Setting.Instance.ToString());

updateSystem.UpdateAt<AssetPackLoaderSystem>(SystemUpdatePhase.MainLoop);
Expand Down
7 changes: 3 additions & 4 deletions Properties/PublishConfiguration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,15 @@ The code of this mod was created by Konsi. Thanks to CityRat for the Thumbnail.
<!--Link to the forum post where the mod can be discussed-->
<ForumLink Value="https://forum.paradoxplaza.com/forum/threads/asset-packs-manager-formerly-asset-importer.1666781/" />
<!--Version of the mod-->
<ModVersion Value="1.4.0" />
<ModVersion Value="1.4.1" />
<!--Recommended version of the base game to use the mod-->
<GameVersion Value="1.1.*" />
<!--Dependency for the mod, can be set multiple times-->
<Dependency Id="75426" /> <!-- L18N Everywhere -->
<!--Change log for new version. Single line or multi line. Supports minimal markdown subset-->
<ChangeLog>
- Fixed asset duplication
- Significantly increased loading times in Main Menu
- Enabled Asset Packs are now always loaded, even with APM disabled (due to partial asset support of the game)
- Reverted last patch due to inconsistencies
- Set Log Level to Debug
</ChangeLog>
<!--External link. supported types are discord, github, youtube, twitch, x, paypal, patreon-->
<ExternalLink Type="github" Url="https://github.com/kosch104/CS2-AssetPacksManager" />
Expand Down

0 comments on commit eab6a8b

Please sign in to comment.