Scenery mod not working


coasterspaul

Newcomer

9 Uploads
6 Posts
Likes

Registered
21 November 2015

My mod is supposed to consist of recolorable roof pieces of different sizes. When my mod's on, they spawn in one corner of the world, pure white (and unable to be recolored), and removable. They don't show up in the scenery menu.

The AssetBundle tutorial here doesn't quite work anymore. The function to build AssetBundles now seems to take an extra parameter for the target platform. I copied the first possibility for it I could find online, but that might have messed it up?

I've put both my mod (based on the custom scenery template) and the folder for the Unity project I used to export the asset bundle in my Google Drive if anyone wants to look through it.

Posted 4 months ago #2694 - Reply - Permalink

coasterspaul

Newcomer

9 Uploads
6 Posts
Likes

Registered
21 November 2015

I used Unity 5.5, by the way. Was that my problem?

Posted 4 months ago #2695 - Reply - Permalink

LuukHolleman
Founder

Shopkeeper

45 Uploads
560 Posts
Likes

Registered
17 August 2015

Have you checked the mod.log file?

Posted 4 months ago #2696 - Reply - Permalink

coasterspaul

Newcomer

9 Uploads
6 Posts
Likes

Registered
21 November 2015

In response to LuukHolleman (View post):

Have you checked the mod.log file?

It had this:

[17-05-26 10:32:41] Info: Compiling Paul's Castle Roofs to bin/build-170526103241429.dll...
[17-05-26 10:32:41] Info: Compiling from `Custom Scenery.csproj`.
[17-05-26 10:32:41] Info: Resolved assembly reference `Assembly-CSharp` to `c:/program files (x86)/steam\SteamApps\common\Parkitect\Parkitect_Data\Managed\Assembly-CSharp.dll`
[17-05-26 10:32:41] Info: Resolved assembly reference `System` to `System.dll`
[17-05-26 10:32:41] Info: Resolved assembly reference `System.Core` to `System.Core.dll`
[17-05-26 10:32:41] Info: Resolved assembly reference `System.Xml` to `System.Xml.dll`
[17-05-26 10:32:41] Info: Resolved assembly reference `UnityEngine` to `c:/program files (x86)/steam\SteamApps\common\Parkitect\Parkitect_Data\Managed\UnityEngine.dll`
[17-05-26 10:32:41] Info: Resolved assembly reference `UnityEngine.UI` to `c:/program files (x86)/steam\SteamApps\common\Parkitect\Parkitect_Data\Managed\UnityEngine.UI.dll`
[17-05-26 10:32:41] Info: Source files: CustomScenery\Decorators\GridDecorator.cs, CustomScenery\Decorators\GridSubdivisionDecorator.cs, CustomScenery\Decorators\HeightDecorator.cs, CustomScenery\Decorators\IDecorator.cs, CustomScenery\Decorators\NameDecorator.cs, CustomScenery\Decorators\PriceDecorator.cs, CustomScenery\Decorators\RecolorableDecorator.cs, CustomScenery\Decorators\SnapToCenterDecorator.cs, CustomScenery\Decorators\TypeDecorator.cs, CustomScenery\Decorators\Type\CategoryDecorator.cs, CustomScenery\Decorators\Type\FenceDecorator.cs, CustomScenery\Decorators\Type\LampDecorator.cs, CustomScenery\Decorators\Type\SeatingAutoDecorator.cs, CustomScenery\Decorators\Type\DecoDecorator.cs, CustomScenery\Decorators\Type\SeatingDecorator.cs, CustomScenery\Decorators\Type\TrashBinDecorator.cs, CustomScenery\Main.cs, CustomScenery\SceneryLoader.cs from `C:\Users\Lawless\Documents\Parkitect\pnmods\[email protected]`.
[17-05-26 10:32:41] Info: Compile using compiler version v3.5.
[17-05-26 10:32:44] Info: Compiling Paul's Castle Roofs to bin/build-170526103244121.dll...
[17-05-26 10:32:44] Info: Compiling from `Custom Scenery.csproj`.
[17-05-26 10:32:44] Info: Resolved assembly reference `Assembly-CSharp` to `c:/program files (x86)/steam\SteamApps\common\Parkitect\Parkitect_Data\Managed\Assembly-CSharp.dll`
[17-05-26 10:32:44] Info: Resolved assembly reference `System` to `System.dll`
[17-05-26 10:32:44] Info: Resolved assembly reference `System.Core` to `System.Core.dll`
[17-05-26 10:32:44] Info: Resolved assembly reference `System.Xml` to `System.Xml.dll`
[17-05-26 10:32:44] Info: Resolved assembly reference `UnityEngine` to `c:/program files (x86)/steam\SteamApps\common\Parkitect\Parkitect_Data\Managed\UnityEngine.dll`
[17-05-26 10:32:44] Info: Resolved assembly reference `UnityEngine.UI` to `c:/program files (x86)/steam\SteamApps\common\Parkitect\Parkitect_Data\Managed\UnityEngine.UI.dll`
[17-05-26 10:32:44] Info: Source files: CustomScenery\Decorators\GridDecorator.cs, CustomScenery\Decorators\GridSubdivisionDecorator.cs, CustomScenery\Decorators\HeightDecorator.cs, CustomScenery\Decorators\IDecorator.cs, CustomScenery\Decorators\NameDecorator.cs, CustomScenery\Decorators\PriceDecorator.cs, CustomScenery\Decorators\RecolorableDecorator.cs, CustomScenery\Decorators\SnapToCenterDecorator.cs, CustomScenery\Decorators\TypeDecorator.cs, CustomScenery\Decorators\Type\CategoryDecorator.cs, CustomScenery\Decorators\Type\FenceDecorator.cs, CustomScenery\Decorators\Type\LampDecorator.cs, CustomScenery\Decorators\Type\SeatingAutoDecorator.cs, CustomScenery\Decorators\Type\DecoDecorator.cs, CustomScenery\Decorators\Type\SeatingDecorator.cs, CustomScenery\Decorators\Type\TrashBinDecorator.cs, CustomScenery\Main.cs, CustomScenery\SceneryLoader.cs from `C:\Users\Lawless\Documents\Parkitect\pnmods\[email protected]`.
[17-05-26 10:32:44] Info: Compile using compiler version v3.5.
[17-05-26 10:35:08] Info: Loaded build-170526103244121, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
[17-05-26 10:35:08] Info: Sucessfully registered Custom_Scenery.Main to the mod manager.
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
[17-05-27 08:43:02] Info: Loaded build-170526103244121, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
[17-05-27 08:43:02] Info: Sucessfully registered Custom_Scenery.Main to the mod manager.
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
[17-05-30 11:25:15] Info: Loaded build-170526103244121, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
[17-05-30 11:25:15] Info: Sucessfully registered Custom_Scenery.Main to the mod manager.
[17-06-01 10:13:07] Info: Loaded build-170526103244121, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
[17-06-01 10:13:07] Info: Sucessfully registered Custom_Scenery.Main to the mod manager.
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
System.InvalidCastException: Cannot cast from source type to destination type.
  at Custom_Scenery.SceneryLoader.LoadScenery () [0x00000] in <filename unknown>:0 
[17-06-03 11:32:15] Info: Loaded build-170526103244121, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
[17-06-03 11:32:15] Info: Sucessfully registered Custom_Scenery.Main to the mod manager.
[17-06-03 16:22:05] Info: Loaded build-170526103244121, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
[17-06-03 16:22:05] Info: Sucessfully registered Custom_Scenery.Main to the mod manager.
[17-06-04 11:16:22] Info: Loaded build-170526103244121, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
[17-06-04 11:16:22] Info: Sucessfully registered Custom_Scenery.Main to the mod manager.
[17-06-04 15:08:42] Info: Loaded build-170526103244121, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
[17-06-04 15:08:42] Info: Sucessfully registered Custom_Scenery.Main to the mod manager.
Posted 4 months ago #2697 - Reply - Permalink

LuukHolleman
Founder

Shopkeeper

45 Uploads
560 Posts
Likes

Registered
17 August 2015

Did you change any code of the scenery mod?

Posted 4 months ago #2698 - Reply - Permalink

coasterspaul

Newcomer

9 Uploads
6 Posts
Likes

Registered
21 November 2015

As far as I know, the only thing I did was change the string returned in Name and Description in Main.cs. (What I changed them to shows up fine in the mod menu in-game.) I don't know if I managed to break something while I was at it.

JSONLint says my scenery.json file is valid JSON, but it might not be a proper scenery.json. I did a lot of copying, replacing, and pasting. I think the problem's probably either there or with my AssetBundle, but I don't know.

Posted 4 months ago #2699 - Reply - Permalink

adahi121

2 Uploads
1 Posts
Likes

Registered
20 June 2017

How to install a mod?

Posted 3 months ago #2702 - Reply - Permalink

marknfranz

33 Uploads
27 Posts
Likes

Registered
25 December 2016

They went pink lag

Posted 1 month ago #2725 - Reply - Permalink