From dac4901b3d8ab2765a0978b1ad6271d10f86bc49 Mon Sep 17 00:00:00 2001 From: igorseabra4 Date: Tue, 28 Jun 2022 22:04:59 -0300 Subject: [PATCH] v0.1.7.5 --- IndustrialPark/ArchiveEditor/ArchiveEditor.cs | 3 --- .../ArchiveEditor/ArchiveEditorFunctions_AssetTemplates.cs | 4 ++++ IndustrialPark/ArchiveEditor/Other/AssetTemplate.cs | 1 + .../ObjectAssets/ClickableAssets/PlaceableAssets/AssetDUPC.cs | 4 ++++ IndustrialPark/Other/IPversion.cs | 2 +- IndustrialPark/Properties/AssemblyInfo.cs | 2 +- IndustrialPark/Resources/ip_version.json | 4 ++-- 7 files changed, 13 insertions(+), 7 deletions(-) diff --git a/IndustrialPark/ArchiveEditor/ArchiveEditor.cs b/IndustrialPark/ArchiveEditor/ArchiveEditor.cs index cee177f4..89b6b3b7 100644 --- a/IndustrialPark/ArchiveEditor/ArchiveEditor.cs +++ b/IndustrialPark/ArchiveEditor/ArchiveEditor.cs @@ -599,9 +599,6 @@ private ListViewItem ListViewItemFromAsset(Asset asset, bool selected) Tag = asset.assetID }; - if (asset.AssetInfo == null) - MessageBox.Show(asset.ToString()); - item.SubItems.AddRange(new ListViewItem.ListViewSubItem[] { new ListViewItem.ListViewSubItem(item, asset.assetID.ToString("X8")), diff --git a/IndustrialPark/ArchiveEditor/ArchiveEditorFunctions_AssetTemplates.cs b/IndustrialPark/ArchiveEditor/ArchiveEditorFunctions_AssetTemplates.cs index dc1c900d..eb3c1811 100644 --- a/IndustrialPark/ArchiveEditor/ArchiveEditorFunctions_AssetTemplates.cs +++ b/IndustrialPark/ArchiveEditor/ArchiveEditorFunctions_AssetTemplates.cs @@ -369,6 +369,7 @@ public static List PopulateTemplateMenusAt(ToolStripMenuItem GetTemplateMenuItem(AssetTemplate.Boulder, eventHandler), GetTemplateMenuItem(AssetTemplate.Button, eventHandler), GetTemplateMenuItem(AssetTemplate.Destructible_Object, eventHandler), + GetTemplateMenuItem(AssetTemplate.Duplicator, eventHandler), GetTemplateMenuItem(AssetTemplate.Electric_Arc_Generator, eventHandler), GetTemplateMenuItem(AssetTemplate.Hangable, eventHandler), GetTemplateMenuItem(AssetTemplate.NPC, eventHandler), @@ -1491,6 +1492,9 @@ public Asset PlaceTemplate(Vector3 position, int layerIndex, ref List asse case AssetTemplate.Volume_Sphere: asset = new AssetVOLU(assetName, position, template); break; + case AssetTemplate.Duplicator: + asset = new AssetDUPC(assetName, position); + break; default: MessageBox.Show("Unsupported template"); return null; diff --git a/IndustrialPark/ArchiveEditor/Other/AssetTemplate.cs b/IndustrialPark/ArchiveEditor/Other/AssetTemplate.cs index 65f396d2..37f77808 100644 --- a/IndustrialPark/ArchiveEditor/Other/AssetTemplate.cs +++ b/IndustrialPark/ArchiveEditor/Other/AssetTemplate.cs @@ -35,6 +35,7 @@ public enum AssetTemplate Boulder, Button, Destructible_Object, + Duplicator, Electric_Arc_Generator, Hangable, NPC, diff --git a/IndustrialPark/Assets/ObjectAssets/ClickableAssets/PlaceableAssets/AssetDUPC.cs b/IndustrialPark/Assets/ObjectAssets/ClickableAssets/PlaceableAssets/AssetDUPC.cs index 467a85fe..7ffff35c 100644 --- a/IndustrialPark/Assets/ObjectAssets/ClickableAssets/PlaceableAssets/AssetDUPC.cs +++ b/IndustrialPark/Assets/ObjectAssets/ClickableAssets/PlaceableAssets/AssetDUPC.cs @@ -44,6 +44,10 @@ public class AssetDUPC : BaseAsset, IRenderableAsset, IClickableAsset, IRotatabl public AssetDUPC(string assetName, Vector3 position) : base(assetName, AssetType.Duplicator, BaseAssetType.Duplicator) { + InitialSpawn = 1; + MaximumInGame = 1; + MaximumToSpawn = 1; + SpawnRate = 1f; VIL = new AssetVIL(assetName, position, AssetTemplate.VIL, 0); renderableAssets.Remove(VIL); AddToRenderableAssets(this); diff --git a/IndustrialPark/Other/IPversion.cs b/IndustrialPark/Other/IPversion.cs index 49ee547a..26ac9d5b 100644 --- a/IndustrialPark/Other/IPversion.cs +++ b/IndustrialPark/Other/IPversion.cs @@ -2,7 +2,7 @@ { public class IPversion { - public string version = "v0.1.7.4"; + public string version = "v0.1.7.5"; public string versionName; } } diff --git a/IndustrialPark/Properties/AssemblyInfo.cs b/IndustrialPark/Properties/AssemblyInfo.cs index 08a64a42..0ea043c5 100644 --- a/IndustrialPark/Properties/AssemblyInfo.cs +++ b/IndustrialPark/Properties/AssemblyInfo.cs @@ -31,4 +31,4 @@ // É possível especificar todos os valores ou usar como padrão os Números de Build e da Revisão // utilizando o "*" como mostrado abaixo: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.1.7.4")] +[assembly: AssemblyVersion("0.1.7.5")] diff --git a/IndustrialPark/Resources/ip_version.json b/IndustrialPark/Resources/ip_version.json index 91e93a3e..43478d5c 100644 --- a/IndustrialPark/Resources/ip_version.json +++ b/IndustrialPark/Resources/ip_version.json @@ -1,4 +1,4 @@ { - "version": "v0.1.7.4", - "versionName": "v0.1.7.4\n* Fixes issue in which clicking on empty space with Ctrl pressed would deselect all selected assets\n* Fixes opening certain Movie HIPs with broken LightKit assets\n* Fixes Red Button and Pressure Plate templates with wrong hit masks\n* Fixes sorting by columns in the asset box\n* The Info column in the asset box is now updated live\n* Adds some hit mask values for Destructible Objects\n\nv0.1.7.3\n* Archive Editor\n * Adds file size to status bar\n * Adds 'Generate Report' tool. This will create a text description of the archive and save it to the archive's folder\n * Asset box: 'Info' column, which displays information about the asset (such as the name of the model)\n * Asset box: 'Links' column, which displays the asset's link count\n * Fixes 'Create Group From Selected' which was broken in a previous update\n* Adds 'Legacy Asset Name Format' toggle from Options menu. This makes IP use the 4-letter codes for asset types instead of full names.\n* Adds Asset Editors: Reactive Animation, Throwable Table and User Interface Motion\n* Updates Asset Editors: Conditional (now has variable names for all 5 games), Cutscene Manager, Pipe Info Table, Projectile\n* Adds templates: Destructible, Disco Floor, Gust, One Liner, Shrapnel, Throwable Table, Volume\n* Attempts to fix trimmed texture file names, which caused textures not to display (such as track textures in Spongeball challenges)\n* Adds country flag icons to Open Level\nThanks to Pepperbot for some of the contributions on this update" + "version": "v0.1.7.5", + "versionName": "v0.1.7.5\n* Fixes instances of textures not loading after importing\n* Fixes opening archives with Duplicator\n* Adds template: Duplicator\n\nv0.1.7.4\n* Fixes issue in which clicking on empty space with Ctrl pressed would deselect all selected assets\n* Fixes opening certain Movie HIPs with broken LightKit assets\n* Fixes Red Button and Pressure Plate templates with wrong hit masks\n* Fixes sorting by columns in the asset box\n* The Info column in the asset box is now updated live\n* Adds some hit mask values for Destructible Objects\n\nv0.1.7.3\n* Archive Editor\n * Adds file size to status bar\n * Adds 'Generate Report' tool. This will create a text description of the archive and save it to the archive's folder\n * Asset box: 'Info' column, which displays information about the asset (such as the name of the model)\n * Asset box: 'Links' column, which displays the asset's link count\n * Fixes 'Create Group From Selected' which was broken in a previous update\n* Adds 'Legacy Asset Name Format' toggle from Options menu. This makes IP use the 4-letter codes for asset types instead of full names.\n* Adds Asset Editors: Reactive Animation, Throwable Table and User Interface Motion\n* Updates Asset Editors: Conditional (now has variable names for all 5 games), Cutscene Manager, Pipe Info Table, Projectile\n* Adds templates: Destructible, Disco Floor, Gust, One Liner, Shrapnel, Throwable Table, Volume\n* Attempts to fix trimmed texture file names, which caused textures not to display (such as track textures in Spongeball challenges)\n* Adds country flag icons to Open Level\nThanks to Pepperbot for some of the contributions on this update" }