Stationeers

Stationeers

Better Advanced Tablet [StationeersMods]
27 Comments
Catatonic Ember 17 Sep @ 5:47am 
[Better Advanced Tablet [StationeersMods] - 0Harmony]: Patching exception in method null
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0006c] in <474744d65d8e460fa08cd5fd82b5d65f>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00095] in <474744d65d8e460fa08cd5fd82b5d65f>:0
at BetterAdvancedTablet.BetterAdvancedTabletPlugin+<>c__DisplayClass6_0.<Patch>b__0 (System.Type type) [0x00024] in <a47f360a5e1d4f9690fd526ca1ee261f>:0
Undefined target method for patch method static void BetterAdvancedTablet.Patches+MainMenuWindowManagerPatches::Prefix()
at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <474744d65d8e460fa08cd5fd82b5d65f>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x0006a] in <474744d65d8e460fa08cd5fd82b5d65f>:0
spacebuilder2020  [author] 16 Sep @ 9:19pm 
That looks like an error that can be ignored. Due to the logic I added with PR #4, it will now continue down the chain even if one patch fails. As long as that is the only error, you will be fine. (Context, the old method `NewOrContinue` was deleted in beta (now main)). It is expected that that patch will fail on the new version but multiple patches were needed to maintain backwards compatibility.
Damonicus1986 15 Sep @ 5:11am 
BetterAdvancedTablet.Patches+MainMenuWindowManagerPatches
[[Invalid About.xml] 3134483503 - 0Harmony]: Patching exception in method null
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0006c] in <474744d65d8e460fa08cd5fd82b5d65f>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00095] in <474744d65d8e460fa08cd5fd82b5d65f>:0
at BetterAdvancedTablet.BetterAdvancedTabletPlugin+<>c__DisplayClass6_0.<Patch>b__0 (System.Type type) [0x00024] in <a47f360a5e1d4f9690fd526ca1ee261f>:0
Undefined target method for patch method static void BetterAdvancedTablet.Patches+MainMenuWindowManagerPatches::Prefix()
at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <474744d65d8e460fa08cd5fd82b5d65f>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x0006a] in <474744d65d8e460fa08cd5fd82b5d65f>:0
[[Invalid About.xml] 3134483503 - Information]: Patching
spacebuilder2020  [author] 2 Sep @ 1:48pm 
https://github.com/serialtasted/betteradvancedtablet/pull/4 has been tested on both versions and it will continue to patch if one of the patch classes fail.
spacebuilder2020  [author] 2 Sep @ 1:42pm 
Replacing `harmony.PatchAll();` with:
AccessTools.GetTypesFromAssembly(typeof(Patches).Assembly).Do(type =>
{
try
{
Debug.Log($"Patching {type.FullName}");
harmony.CreateClassProcessor(type).Patch();
}
catch (System.Exception e)
{
Debug.LogException(e);
}
});

Does work on both beta and main, so that might be a better option.
spacebuilder2020  [author] 2 Sep @ 1:19pm 
I had a change to test it, seems I was wrong. It looks like PatchAll does not continue on error. As a result, you will need to remove the old patch (commit 2b8992) and wait until after beta is released to publish to steam.

Looks like beyond having a custom patching method instead of PatchAll, there is no way to have patching continue on error.
spacebuilder2020  [author] 1 Sep @ 7:46am 
Sounds good. I think it should work on both versions, but I haven't tested that part yet. Based on how it is coded, it should of course work since 1 patch will fail on beta, and another on mainline. The patch on `LoadWorld` will probaly result in AdvancedTabletPrefabPatch() running twice but since there is logic in that to only run once, it should work.
Serialtasted  [author] 1 Sep @ 5:47am 
I need to do some testing. But I just merged it
spacebuilder2020  [author] 30 Aug @ 1:22pm 
Btw, @Serialtasted, I was wondering on the status of https://github.com/serialtasted/betteradvancedtablet/pull/3 that I submitted a few weeks ago to fix the mod on beta?
WoBra 22 Dec, 2024 @ 2:29pm 
For all, Reinstall StationeersMods and Bepinex then it works. sry for my English!
Serialtasted  [author] 12 Dec, 2024 @ 1:35pm 
Please use github and post all details. What am I supposed to do with I get an error?
WoBra 12 Dec, 2024 @ 1:08pm 
I don't have a Github so here it is: Mod unfortunately no longer works. Error message and in the game I have the old tablet with the 2 slots
Serialtasted  [author] 16 Jun, 2024 @ 9:13am 
Please report on github, follow the link on the description
Shinoshi 13 Jun, 2024 @ 6:55pm 
Was getting a Negitive index error on loading game, after removing this mod it went away.
More info in the #modding channel on Stationeers discord, Poster by user with same name.
Serialtasted  [author] 7 Jun, 2024 @ 7:03pm 
Multiplayer fix by RogerWaters for the dedicated server has been released! Thank you so much for your contribution
Kastuk 17 Apr, 2024 @ 7:06am 
May it switch by right mb like in old mod version? Left click is used for security cartridge (useless one).
Serialtasted  [author] 15 Apr, 2024 @ 12:24pm 
Dedicated server is a b***h. Have you tried single player and/or p2p hosting? I usually play multiplayer like that, mods and dedicated server is a pain to get them to work
Skunk 15 Apr, 2024 @ 5:05am 
Thanks for the mod. The screens switch ok but if I add more slots they appear but I cant seem to add the cartridges to the new slots. I'm on a dedicated server so that may be the issue.
random rustard 7 Apr, 2024 @ 1:45pm 
god bless, i love qol(that is qol, imo)
Dingo 10 Feb, 2024 @ 1:24pm 
ah, bummer, well, thanks for the info :)
Serialtasted  [author] 10 Feb, 2024 @ 12:07pm 
It's not possible because it's attached to how the game works. They way it's working now it uses the primary key like other objects in game.
Dingo 8 Feb, 2024 @ 8:24am 
Just a quick question, is there any way to change the hotkey for switching between the cartridges please? With the left mouse button, i find myself changing it when i didn't want to ... a lot:)

I figured i'd change it to straight up just to C or maybe even the rotation keys, since there's not much of a chance for me to be placing something down and using the tablet at the same time.

Thanks :)
Grakvaloth | Jan 22 Jan, 2024 @ 11:19am 
I love it THX
Dingo 21 Jan, 2024 @ 10:01pm 
Thanks.

This one really hits the spot, i've been whining about not having a cartridge switching hotkey for years :)

The two extra cartridge slots are just a cherry on the top.
Kastuk 14 Jan, 2024 @ 2:53am 
Custom slots addition example.
Jixxed 8 Jan, 2024 @ 11:13am 
should add the stationeersmods overlay to the image. the more pronounced the framework is in the workshop, the more people will get involved creating cool mods :D
WIKUS 8 Jan, 2024 @ 9:02am 
Noice :Khappy: