BUG: Not compatible with the latest version of COI

This topic is closed (tagged ).
3 days ago

Get error:

Mafi.CheckException: Failed to load init.py: C:\Users\wncol\AppData\Roaming\Captain of Industry\Mods\CustomAssets_AirFiltering\Definitions\filter_media_iron_lime.py(25): Method not found: void .Gfx..ctor(string,string,bool,Mafi.ColorRgba,System.Nullable1<Mafi.ColorRgba>,Mafi.Option1<string>)
at PythonAPI.Expressions.CallExpression.GetValue (System.Collections.Generic.IDictionary2[TKey,TValue] context) [0x000d9] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\Expressions\CallExpression.cs:66 at PythonAPI.EvaluateStatement.Execute (System.Collections.Generic.IDictionary2[TKey,TValue] context) [0x00001] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\EvaluateStatement.cs:31
at CustomAssets.Data.Mod.CustomAssetRegistrator.register (Mafi.Collections.Set1[T] loaded, Mafi.Collections.Set1[T] failed, Mafi.Core.Mods.ProtoRegistrator registrator, System.IO.FileInfo file, System.IO.DirectoryInfo modules) [0x00178] in C:\git\COIM_CustomAssets\src\CustomRecipes\Data\Mod\CustomAssetRegistrator.cs:798
at CustomAssets.Data.Mod.CustomAssetRegistrator+<>c__DisplayClass29_0.<register>b__0 (PythonAPI.Runtime.Constructor+CallArguments args) [0x00266] in C:\git\COIM_CustomAssets\src\CustomRecipes\Data\Mod\CustomAssetRegistrator.cs:780
at PythonAPI.Runtime.Constructor.Invoke (PythonAPI.Expressions.NamedValue[] args) [0x0001b] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\Runtime\Constructor.cs:98
at PythonAPI.Statements.LocalImportStatement.Execute (System.Collections.Generic.IDictionary2[TKey,TValue] context) [0x00031] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\Statements\LocalImportStatement.cs:35 at CustomAssets.Data.Mod.CustomAssetRegistrator.register (Mafi.Collections.Set1[T] loaded, Mafi.Collections.Set1[T] failed, Mafi.Core.Mods.ProtoRegistrator registrator, System.IO.FileInfo file, System.IO.DirectoryInfo modules) [0x00178] in C:\git\COIM_CustomAssets\src\CustomRecipes\Data\Mod\CustomAssetRegistrator.cs:798 at CustomAssets.Data.Mod.CustomAssetRegistrator.RegisterData (Mafi.Core.Mods.ProtoRegistrator registrator) [0x0015d] in C:\git\COIM_CustomAssets\src\CustomRecipes\Data\Mod\CustomAssetRegistrator.cs:685 ---> PythonAPI.PythonRuntimeException: C:\Users\wncol\AppData\Roaming\Captain of Industry\Mods\CustomAssets_AirFiltering\Definitions\filter_media_iron_lime.py(25): Method not found: void .Gfx..ctor(string,string,bool,Mafi.ColorRgba,System.Nullable1<Mafi.ColorRgba>,Mafi.Option1<string>) ---> System.MissingMethodException: Method not found: void .Gfx..ctor(string,string,bool,Mafi.ColorRgba,System.Nullable1<Mafi.ColorRgba>,Mafi.Option1<string>) at PythonAPI.Runtime.Constructor.Invoke (PythonAPI.Expressions.NamedValue[] args) [0x0001b] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\Runtime\Constructor.cs:98 at PythonAPI.Expressions.Expressions.__call__ (System.Object executable, System.Collections.Generic.List1[T] arguments) [0x000ab] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\Expressions\Expressions.cs:125
at PythonAPI.Expressions.CallExpression.GetValue (System.Collections.Generic.IDictionary2[TKey,TValue] context) [0x000c3] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\Expressions\CallExpression.cs:60 --- End of inner exception stack trace --- at PythonAPI.Expressions.CallExpression.GetValue (System.Collections.Generic.IDictionary2[TKey,TValue] context) [0x000d9] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\Expressions\CallExpression.cs:66
at PythonAPI.EvaluateStatement.Execute (System.Collections.Generic.IDictionary2[TKey,TValue] context) [0x00001] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\EvaluateStatement.cs:31 at CustomAssets.Data.Mod.CustomAssetRegistrator.register (Mafi.Collections.Set1[T] loaded, Mafi.Collections.Set1[T] failed, Mafi.Core.Mods.ProtoRegistrator registrator, System.IO.FileInfo file, System.IO.DirectoryInfo modules) [0x00178] in C:\git\COIM_CustomAssets\src\CustomRecipes\Data\Mod\CustomAssetRegistrator.cs:798 at CustomAssets.Data.Mod.CustomAssetRegistrator+<>c__DisplayClass29_0.<register>b__0 (PythonAPI.Runtime.Constructor+CallArguments args) [0x00266] in C:\git\COIM_CustomAssets\src\CustomRecipes\Data\Mod\CustomAssetRegistrator.cs:780 at PythonAPI.Runtime.Constructor.Invoke (PythonAPI.Expressions.NamedValue[] args) [0x0001b] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\Runtime\Constructor.cs:98 at PythonAPI.Statements.LocalImportStatement.Execute (System.Collections.Generic.IDictionary2[TKey,TValue] context) [0x00031] in C:\git\COIM_CustomAssets\src\CustomRecipes\PythonAPI\Statements\LocalImportStatement.cs:35
at CustomAssets.Data.Mod.CustomAssetRegistrator.register (Mafi.Collections.Set1[T] loaded, Mafi.Collections.Set1[T] failed, Mafi.Core.Mods.ProtoRegistrator registrator, System.IO.FileInfo file, System.IO.DirectoryInfo modules) [0x00178] in C:\git\COIM_CustomAssets\src\CustomRecipes\Data\Mod\CustomAssetRegistrator.cs:798
at CustomAssets.Data.Mod.CustomAssetRegistrator.RegisterData (Mafi.Core.Mods.ProtoRegistrator registrator) [0x0015d] in C:\git\COIM_CustomAssets\src\CustomRecipes\Data\Mod\CustomAssetRegistrator.cs:685
--- End of inner exception stack trace ---
at CustomAssets.Data.Mod.CustomAssetRegistrator.RegisterData (Mafi.Core.Mods.ProtoRegistrator registrator) [0x001fb] in C:\git\COIM_CustomAssets\src\CustomRecipes\Data\Mod\CustomAssetRegistrator.cs:692
at CustomAssets.CustomAssetPackBase.RegisterPrototypes (Mafi.Core.Mods.ProtoRegistrator registrator) [0x0001c] in C:\git\COIM_CustomAssets\src\CustomRecipes\CustomAssetPackBase.cs:57
at Mafi.Core.Game.GameBuilder.RegisterModsPrototypes (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] modsData, Mafi.Core.Mods.ProtoRegistrator protoRegistrator, System.Boolean throwOnError) [0x00037] in <3175f7cf119c4337a9b2c5789afd1225>:0

2 days ago

I get the same error. I am using the experimental version.

9 Showing 12 of 2
Log in to reply.