Still not working successfully with the main branch. Followed the install instructions and the the alt instructions in this post but the app still failed to load Bicky Robby and Silk Road. No matter if the plugin file is included at "C:\Program Files (x86)\Steam\steamapps\common\Schedule I\Plugins" or "C:\Program Files (x86)\Steam\steamapps\common\Schedule I\Schedule I_Data\Plugins", the same error messages persist.
When the files were in \Schedule I\Schedule I_Data\Plugins: [07:35:10.031] [Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Il2CppInterop.Runtime.Il2CppClassPointerStore`1' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Il2CppSystem.Collections.Generic.List`1' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. --- End of inner exception stack trace --- at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(QCallTypeHandle type) at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle type) at Il2CppInterop.Runtime.Il2CppClassPointerStore`1..cctor() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppClassPointerStore.cs:line 42 --- End of inner exception stack trace --- at Il2CppSystem.Collections.Generic.List`1..ctor() at S1API.Quests.Quest..ctor() at SilkRoad.QuestDelivery..ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) --- End of inner exception stack trace --- at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) at S1API.Quests.QuestManager.CreateQuest(Type questType, String guid) at S1API.Quests.QuestManager.CreateQuest[T](String guid) at SilkRoad.MyApp.AcceptQuest(QuestData quest) at SilkRoad.MyApp.<>c__DisplayClass27_0.<OnSelectQuest>b__0() at (il2cpp delegate trampoline) System.Void_System.Action(IntPtr , Il2CppMethodInfo* )
When the files were in \Schedule I\Plugins: [07:40:48.515] [Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Il2CppInterop.Runtime.Il2CppClassPointerStore`1' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Il2CppSystem.Collections.Generic.List`1' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. --- End of inner exception stack trace --- at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(QCallTypeHandle type) at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle type) at Il2CppInterop.Runtime.Il2CppClassPointerStore`1..cctor() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppClassPointerStore.cs:line 42 --- End of inner exception stack trace --- at Il2CppSystem.Collections.Generic.List`1..ctor() at S1API.Quests.Quest..ctor() at SilkRoad.QuestDelivery..ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) --- End of inner exception stack trace --- at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) at S1API.Quests.QuestManager.CreateQuest(Type questType, String guid) at S1API.Quests.QuestManager.CreateQuest[T](String guid) at SilkRoad.MyApp.AcceptQuest(QuestData quest) at SilkRoad.MyApp.<>c__DisplayClass27_0.<OnSelectQuest>b__0() at (il2cpp delegate trampoline) System.Void_System.Action(IntPtr , Il2CppMethodInfo* )
ATP I give up. I've been trying since the 22nd to get S1 running properly.
when i installed this, i loaded my save and suddenly all the messages are gone, dealers gone, 90% of the customers gone, its like the progress went backwords, luckily the game save wasnt corrupted, i downloaded this because i downloaded the bicky bulk mode can i still use it without this plugin?
I'm also running into this issue and the only way I know how to fix it as of right now unless someone can correct me is just use a previous version of the mod I use silk road which requires this file and when I try to bring up the app in game it's just the phone case and the screen is basically see through.
So something is not working right maybe a missing piece of code or something I'm not sure but I had to revert to the last version of this mod until there is a fix of some sort or work around.
i found that deleting the mods folder including in the 1.5.0 .zip retained my messages and dealers, but silkroad does not work then. likely silkroad needs an update
[06:06:44.874] [Il2CppInterop] During invoking native->managed trampoline System.InvalidOperationException: Sequence contains no matching element at System.Linq.ThrowHelper.ThrowNoMatchException() at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate) at S1API.Internal.Patches.NPCPatches.NPCOnDestroy(NPC __instance) at DMD<Il2CppScheduleOne.NPCs.NPC::OnDestroy>(NPC this) at (il2cpp -> managed) OnDestroy(IntPtr , Il2CppMethodInfo* )
Doesn't matter which one of SilkRoad or Bicky's is used. Both throw this exception:
[Il2CppInterop] During invoking native->managed trampoline System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Could not load type 'S1API.NPCs.NPC' from assembly 'S1API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.Assembly.GetTypes() at S1API.Internal.Utils.ReflectionUtils.GetDerivedClasses[TBaseClass]() at S1API.Internal.Patches.HomeScreen_Start_Patch.Postfix(HomeScreen __instance) at DMD<Il2CppScheduleOne.UI.Phone.HomeScreen::Start>(HomeScreen this) at (il2cpp -> managed) Start(IntPtr , Il2CppMethodInfo* ) And all customers are reset to starting customers and you lose your dealers and suppliers.
It might have been fine if all i had to do was unlock all customers again. But with no suppliers, it's kinda hard to make drugs. And even if i unlocked all customers again, i don't think that make a difference because next time you load the game they would be gone.
And the previous version of this API makes Silkroad not work with the lab oven. The UI hangs with no messages.
So you're saying this mod is destroying the NPC folder and that's basically what's breaking the mod besides the fact that silk road doesn't work because I reverted the version of the mod so I haven't seen if anything else is bugged but yeah.
installed update now getting this error. any help would be great
[09:44:45.786] [Il2CppInterop] During invoking native->managed trampoline System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Could not load type 'S1API.Entities.NPC' from assembly 'S1API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.Assembly.GetTypes() at S1API.Internal.Utils.ReflectionUtils.GetDerivedClasses[TBaseClass]() at S1API.Internal.Patches.PhoneAppPatches.Postfix(Scene scene, LoadSceneMode mode) at DMD<UnityEngine.SceneManagement.SceneManager::Internal_SceneLoaded>(Scene scene, LoadSceneMode mode) at (il2cpp -> managed) Internal_SceneLoaded(Scene , LoadSceneMode , Il2CppMethodInfo* ) System.TypeLoadException: Could not load type 'S1API.Entities.NPC' from assembly 'S1API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Maybe Im stupid but where is the API reference documentation. I cant find anything? I normally write LUA so I was expecting a Documentation a bit like this one: https://schedulelua.github.io/ScheduleLua-Docs/api/
The creator of ScheduleLua is working on documentation just like his mod has for S1API! I'll be posting that once available in the Discord, as well as putting in our description here
for anyone having issues with messages not loading, he did not give us correct instructions to install you have to put the plugin folder into C:\Program Files (x86)\Steam\steamapps\common\Schedule I\Schedule I_Data
I had the not loading error, went here to report it but after reading your post and moving the stuff on the "other" plugins dir (the one in Schedule I_Data) the issue is now fixed. Thanks a lot :)
I am assuming you mean the UserData folder as there is no Data folder. So what exact folder/file do you put where? Lol... When I unzip it there's the main folder Titled S1API-770-v1-3-1-1745454770. Inside that is a folder titled Plugins, a png image titled icon, a manifest .jason file and a README that doesn't help with s***. Inside the Plugins folder is a S1APILoader.dll file and a S1API folder; which then has a S1API.Il2Cpp.dll file and a S1API.Mono.dll file inside of it. Sooo do I move the entire main folder into the UserData folder? Or do I move just the Plugins folder? The instructions from the creator really aren't very clear at all and I'd like to use SilkRoad so I kinda have to use this mod lol. Just need to know how exactly to add this in correctly
Edit - Nvm I read it wrong lol... I see now you put Schedule I_Data folder and I somehow skimmed past that folder haha
Hello, I created a mod update checker and the only thing that needs to be added to your code for the mods to be compatible is `[assembly: System.Reflection.AssemblyMetadata("NexusModID", "You ID Mods")]` and always change the version information in MelonInfo
53 comments
Still not working successfully with the main branch. Followed the install instructions and the the alt instructions in this post but the app still failed to load Bicky Robby and Silk Road. No matter if the plugin file is included at "C:\Program Files (x86)\Steam\steamapps\common\Schedule I\Plugins" or "C:\Program Files (x86)\Steam\steamapps\common\Schedule I\Schedule I_Data\Plugins", the same error messages persist.
When the files were in \Schedule I\Schedule I_Data\Plugins:
[07:35:10.031] [Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.TypeInitializationException: The type initializer for 'Il2CppInterop.Runtime.Il2CppClassPointerStore`1' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Il2CppSystem.Collections.Generic.List`1' threw an exception.
---> System.NullReferenceException: Object reference not set to an instance of an object.
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(QCallTypeHandle type)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle type)
at Il2CppInterop.Runtime.Il2CppClassPointerStore`1..cctor() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppClassPointerStore.cs:line 42
--- End of inner exception stack trace ---
at Il2CppSystem.Collections.Generic.List`1..ctor()
at S1API.Quests.Quest..ctor()
at SilkRoad.QuestDelivery..ctor()
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at S1API.Quests.QuestManager.CreateQuest(Type questType, String guid)
at S1API.Quests.QuestManager.CreateQuest[T](String guid)
at SilkRoad.MyApp.AcceptQuest(QuestData quest)
at SilkRoad.MyApp.<>c__DisplayClass27_0.<OnSelectQuest>b__0()
at (il2cpp delegate trampoline) System.Void_System.Action(IntPtr , Il2CppMethodInfo* )
When the files were in \Schedule I\Plugins:
[07:40:48.515] [Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.TypeInitializationException: The type initializer for 'Il2CppInterop.Runtime.Il2CppClassPointerStore`1' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Il2CppSystem.Collections.Generic.List`1' threw an exception.
---> System.NullReferenceException: Object reference not set to an instance of an object.
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(QCallTypeHandle type)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle type)
at Il2CppInterop.Runtime.Il2CppClassPointerStore`1..cctor() in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppClassPointerStore.cs:line 42
--- End of inner exception stack trace ---
at Il2CppSystem.Collections.Generic.List`1..ctor()
at S1API.Quests.Quest..ctor()
at SilkRoad.QuestDelivery..ctor()
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at S1API.Quests.QuestManager.CreateQuest(Type questType, String guid)
at S1API.Quests.QuestManager.CreateQuest[T](String guid)
at SilkRoad.MyApp.AcceptQuest(QuestData quest)
at SilkRoad.MyApp.<>c__DisplayClass27_0.<OnSelectQuest>b__0()
at (il2cpp delegate trampoline) System.Void_System.Action(IntPtr , Il2CppMethodInfo* )
ATP I give up. I've been trying since the 22nd to get S1 running properly.
Bicky does require this plugin to work properly.
So something is not working right maybe a missing piece of code or something I'm not sure but I had to revert to the last version of this mod until there is a fix of some sort or work around.
[06:06:44.874] [Il2CppInterop] During invoking native->managed trampoline
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at S1API.Internal.Patches.NPCPatches.NPCOnDestroy(NPC __instance)
at DMD<Il2CppScheduleOne.NPCs.NPC::OnDestroy>(NPC this)
at (il2cpp -> managed) OnDestroy(IntPtr , Il2CppMethodInfo* )
[Il2CppInterop] During invoking native->managed trampoline
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'S1API.NPCs.NPC' from assembly 'S1API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at S1API.Internal.Utils.ReflectionUtils.GetDerivedClasses[TBaseClass]()
at S1API.Internal.Patches.HomeScreen_Start_Patch.Postfix(HomeScreen __instance)
at DMD<Il2CppScheduleOne.UI.Phone.HomeScreen::Start>(HomeScreen this)
at (il2cpp -> managed) Start(IntPtr , Il2CppMethodInfo* )
And all customers are reset to starting customers and you lose your dealers and suppliers.
It might have been fine if all i had to do was unlock all customers again. But with no suppliers, it's kinda hard to make drugs.
And even if i unlocked all customers again, i don't think that make a difference because next time you load the game they would be gone.
And the previous version of this API makes Silkroad not work with the lab oven. The UI hangs with no messages.
In other words, your files are still safe.
[09:44:45.786] [Il2CppInterop] During invoking native->managed trampoline
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'S1API.Entities.NPC' from assembly 'S1API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at S1API.Internal.Utils.ReflectionUtils.GetDerivedClasses[TBaseClass]()
at S1API.Internal.Patches.PhoneAppPatches.Postfix(Scene scene, LoadSceneMode mode)
at DMD<UnityEngine.SceneManagement.SceneManager::Internal_SceneLoaded>(Scene scene, LoadSceneMode mode)
at (il2cpp -> managed) Internal_SceneLoaded(Scene , LoadSceneMode , Il2CppMethodInfo* )
System.TypeLoadException: Could not load type 'S1API.Entities.NPC' from assembly 'S1API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
nope still broken
Or is this way above my level then??
Thanks
The creator of ScheduleLua is working on documentation just like his mod has for S1API! I'll be posting that once available in the Discord, as well as putting in our description here
:)
C:\Program Files (x86)\Steam\steamapps\common\Schedule I\Schedule I_Data
Thanks a lot :)
Edit - Nvm I read it wrong lol... I see now you put Schedule I_Data folder and I somehow skimmed past that folder haha
System.Reflection.AssemblyMetadata("NexusModID", "You ID Mods")]` and
always change the version information in MelonInfo