Skip to content

Commit

Permalink
v0.1.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
igorseabra4 committed Jun 29, 2022
1 parent d5bbe01 commit dac4901
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
3 changes: 0 additions & 3 deletions IndustrialPark/ArchiveEditor/ArchiveEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ public static List<ToolStripMenuItem> 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),
Expand Down Expand Up @@ -1491,6 +1492,9 @@ public Asset PlaceTemplate(Vector3 position, int layerIndex, ref List<uint> 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;
Expand Down
1 change: 1 addition & 0 deletions IndustrialPark/ArchiveEditor/Other/AssetTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public enum AssetTemplate
Boulder,
Button,
Destructible_Object,
Duplicator,
Electric_Arc_Generator,
Hangable,
NPC,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion IndustrialPark/Other/IPversion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public class IPversion
{
public string version = "v0.1.7.4";
public string version = "v0.1.7.5";
public string versionName;
}
}
2 changes: 1 addition & 1 deletion IndustrialPark/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
4 changes: 2 additions & 2 deletions IndustrialPark/Resources/ip_version.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit dac4901

Please sign in to comment.