#Fast Switch Player Cam In Radar v1.3.3

181 messages · Page 1 of 1 (latest)

stray sand
#

MOD

This mod I've created allows you to switch player's cam with hotkeys instead of typing the keyword switch followed by the player name. It might be useful since you are fast enough to switch cams and provide help as fast as possible to your teammates.

Please, post bugs and other suggestions down below. As soon as possible I'll provide a TODO list with all the ideas that came to my mind.
Thanks!

ruby hedge
#

ur pink now

stray sand
#

Thanks man!

pseudo spindle
#

Ship is not able to take off (neither manually nor automatically) and door stamina is not ticking down.
Used in modpack (Thunderstore import code: 018c4725-d9f8-25f2-5fa3-eb7ba0ed68fc)
I guess it's caused by an incompatibility with LCBetterClock (I haven't done any testing).
Side note: the terminal clock functionality is already implemented in Terminal_Clock and TimeCommand.
@stray sand

stray sand
#

@pseudo spindle yes, it seems there's a conflict between my mod and the LCDBetterClock, since the time(by default for the mod) has a 24h format

#

And yes, I'm aware that there are other mods for the integration of the clock in the terminal, but I thought it would've been good to have in my mod either

dusk pagoda
#

I think you should let the mod just be bare bones since you called it "FastSwitchPlayerViewInRadar", I think you even should remove the clock and those other features you want to add from this mod and make anotehr new mod.
But that's just my opinion as someone trying to make a small modpack for friends and this is your mod, so do as you wish o/

stray sand
#

Yeah, you might be right. I'll work on it as soon as possible

stray sand
#

@pseudo spindle I've release a patch. It should be all fixed now

gusty briar
#

1.1.0 on Tstore still conflicts with betterclock, duplicated the above bug this morning. fixed by reverting to 1.0.3.

#

@stray sand

stray sand
gusty briar
#

1.1.0 is the latest shown for me?

#

opened in a differnt browser and it shows 121 now >_>

#

wtf pc wtf.

stray sand
#

@gusty briar Let me know if everything is solved with the newest version

gusty briar
#

its working fine atm 🙂 im apparently being special needs today.

stray sand
#

@gusty briar Great. Let me know if any bug comes out

heavy galleon
#

Is this mod client sided? This is awesome for my friends when I host 8-12 player games almost every night

gusty briar
heavy galleon
#

I'll be sending this over to my go-to ship bros, thanks a ton for the mod kRYstalland thanks for the answer Fighter

subtle star
#

Can't wait for this to be updated for V45 when the mod creator has the time. This mod hasn't been working for me personally, but I love the idea

earnest anchor
#

keybindings probably broke due to the update

stray sand
subtle star
#

Not yet

subtle star
#

You can edit your keybinds under the "Invert Y Axis" button

earnest anchor
stray sand
#

@here I tested the mod and it's still working fine in the v45. If anybody is gonna use it from now on, let me know if any bug pops out!

flint seal
#

I can't find my radar booster waaaaah i cryy waharagrahrgfsdajknfuir

stray sand
#

1.3.0 IS OUT

https://thunderstore.io/c/lethal-company/p/kRYstall9/FastSwitchPlayerViewInRadar/

  • Added support to v45
  • The user can now choose the hotkey to use through the settings -> keybinds menu
#

Fast Switch Player Cam In Radar 1.3.0

#

Fast Switch Player Cam In Radar v1.3.0

weary swift
#

the keybinds to switch don't seem to be working in v45

stray sand
#

@weary swift Can you provide any log?

storm veldt
#

hi, was using this mod with the following mods and can't seem to get the switch keys to work when using the terminal; are there any known compatibility issues with any of them?

    "BepInEx-BepInExPack-5.4.2100",
    "Sligili-HDLethalCompany-1.5.3",
    "RickArg-Helmet_Cameras-2.1.5",
    "MikeMediaStudios-MikesTweaks-1.9.1",
    "x753-Mimics-2.1.0",
    "notnotnotswipez-MoreCompany-1.7.2",
    "Sligili-More_Emotes-1.2.0",
    "x753-More_Suits-1.4.0",
    "tinyhoot-ShipLobby-1.0.2",
    "tinyhoot-ShipLoot-1.0.0",
    "RugbugRedfern-Skinwalkers-2.0.1",
    "Suskitech-AlwaysHearActiveWalkies-1.4.2",
    "FlipMods-SkipToMultiplayerMenu-1.0.0",
    "AlexCodesGames-AdditionalSuits-1.1.0",
    "kRYstall9-FastSwitchPlayerViewInRadar-1.3.0"```
stray sand
storm veldt
#

Sure, let me load up a fresh lobby, do some testing and send it your way.

#

Here you go, this just contains us loading up a fresh save and trying to pop up the monitor view and use the arrow keys to switch players. Appreciate your help! 🙂

stray sand
#

[Error : Unity Log] NullReferenceException
Stack trace:
UnityEngine.Transform.get_position () (at <e27997765c1848b09d8073e5d642717a>:0)
ManualCameraRenderer.Update () (at <44743d9474784365a095189c76175301>:0)

[Info : Unity Log] [HELMET_CAMERAS] ERROR NULL REFERENCE

Through all that log file, the only error looks like is this. Could you turn that mod off and try swapping cams with arrows?

storm veldt
#

Okay, so my friend is able to switch players but i cannot 🤔

#

in my console i still keep seeing

[Info   :FastSwitchPlayerViewInRadar] Method - HandleTerminalCameraNode | InputActionAsset not yet enabled```
stray sand
#

do you see them only once?

#

Because whenever you open the terminal for the first time, it'll create the ActionAsset, then it should go away since it has already been created

storm veldt
#

do you mean after opening the terminal once it should never come up again? or each time the terminal is opened it should be sent?

stray sand
#

It has to appear only once in console

storm veldt
#

im assuming it appears multiple times if keybinds are remapped? i thought it mightve been a keybind issue so i swapped them and tested again but same results

stray sand
#

what if you type "switch" in the terminal?

#

does it work?

storm veldt
#

yes, using switch gives me new [Info : Unity Log] radar target index #s

#

i noticed on my friend's console when he uses the buttons it gives the right expected results

[Info   :FastSwitchPlayerViewInRadar] Method - HandleTerminalCameraNode | Current Index: 2
[Info   :FastSwitchPlayerViewInRadar] Method - HandleTerminalCameraNode | Switching cam to greenteagi
[Info   : Unity Log] radar target index 0
[Info   :FastSwitchPlayerViewInRadar] Method - HandleTerminalCameraNode | Currently Max Spectable Players: 32
[Info   :FastSwitchPlayerViewInRadar] Method - HandleTerminalCameraNode | Currently Index: 1
[Info   :FastSwitchPlayerViewInRadar] Method - HandleTerminalCameraNode | Switching cam to CoolLord```
#

mine never shows any events from HandleTerminalCameraNode

#

not sure if its an issue with the mod just not loading in properly for me or something? maybe not the right privileges or something preventing it from working? idk

stray sand
#

Do you all have the same mods installed?

storm veldt
#

yes

stray sand
#

C:\Users\USER\AppData\LocalLow\ZeekerssRBLX\Lethal Company. Could you please navigate that path and tell me what's inside the switch_radar_cam.txt?

storm veldt
#
/Keyboard/rightArrow```
stray sand
#

what if you change one of those keybinds in the game? Does it update correctly?

storm veldt
#

yep; changed to

/Keyboard/equals```
stray sand
#

And still doesn't work?

storm veldt
#

nope

#

its like it never detects me pressing those keybinds for some reason

#

just seems to be a me issue tho

#

my friends are able to use it fine

stray sand
#

do you have like a 60% keeb?

storm veldt
#

full keyboard

stray sand
#

what if you try to use the spacebar to swap at the previous cam? (Just try anything at this point)

storm veldt
#

going to try uninstlaling and reinstalling everything fresh real quick, will get back to you in a few

#

nah, even doing a fresh install doesnt fix the issue. not sure whats going on at this point 😭

#

spacebar just types the space character into the terminal; no cam change

#

gonna try mouse button keybinds and see if its maybe a keyboard issue

#

yea still not working; no idea what the issue could be at this point

stray sand
#

Are you trying it after the game started? Are you sure you did type "view monitor" once in the terminal?

storm veldt
#

yep

#

thats the thing, they get on the terminal before and after and it works fine

#

just doesnt work for me

stray sand
#

what if you start a game alone? Just buy a radar booster and see what happens

storm veldt
#

same result

#

even tried running w/o any other mods

stray sand
#

Ok. Could you provide the logs file of the game you started alone?

storm veldt
#

in a new game now haha, i'll get back to you with that file in a little bit once i start on my own again!

stray sand
#

Sure

jovial swallow
#

Deleted the game, r2modman files, cache and all of that, fast switch does not work, but just vanilla 'switch' command is working fine

storm veldt
#

yea, thats what is happenin on my end. i even reinstalled all of thunder store deleted all the files and everything too

#

might be a hardware issue in that case

jovial swallow
#

Idk if it's relevant, because it's cached in r2modman

#

@stray sand Can you provide any info about that?

#

1.3.0 also doesn't work for him

stray sand
#

I'll delete the creation of the config files. I might forgot to delete that on the last update. Anyway, that wouldn't be a problem since I'm not referrencing to that config file anymore

jovial swallow
#

Oh, okay. Still it's some magical hardware issue, and our terminal guy can't fast switch, while other people can 😄

stray sand
#

Could you send the logs file of your friend? That's the only way I can check if there's a problem related to my mod or anything else

storm veldt
jovial swallow
jovial swallow
stray sand
#

Just send the player.log

jovial swallow
#

k

surreal prism
#

yo?

#

as a certified coward

#

i am DEFINITELY gonna use this

stray sand
#

Maybe in some of the next updates I can make a Logger related to my mod only in order to have a clear understanding of what's going on

jovial swallow
#

Yeah, that would be great

storm veldt
#

the source is available for it right? i might try to throw in some debug msgs to see if i can figure out what's going on

stray sand
stray sand
surreal prism
#

:3

storm veldt
#

im just now learning u can paste into the terminal, if ur terminal guy didnt know that let him know he can just paste the word switch in 🥲

surreal prism
#

@storm veldt

#

hold control

#

spam v and enter

#

ultra fast switching

storm veldt
#

💀

jovial swallow
jovial swallow
#

Does your mod need terminalApi, or just BepInEx?

#

He tried with fast switch and bepinex, but it won't even load a plugin
Here's his log with just your mod and bepinex

stray sand
#

In the first 2 logs the only error I can see is related to the MouseBind mod

#

It seems like there's an error with the rebindKey method he's patching, but nothing related to my mod

stray sand
stray sand
stray sand
iron gorge
#

Hey guys, quick question if I manually mod it where do I need to put the .dll file?

tight cipher
#

searching around in this topic I also want to report that just today I am unable to use the mod to switch between players on the terminal too. Not sure which part of the log is needed but this is the usual result I see related to it

[Warning:  HarmonyX] AccessTools.DeclaredMethod: Could not find method for type KepRemapPanel and name LoadKeybindsUI and parameters 
[Error  : Unity Log] ArgumentException: Undefined target method for patch method static void LethalCompanyMonitorMod.Patch.KeyRemapPanelPatch::LoadBindings(KepRemapPanel& __instance)
Stack trace:
HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) (at <474744d65d8e460fa08cd5fd82b5d65f>:IL_0047)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:IL_006A)
Rethrow as HarmonyException: Patching exception in method null
HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) (at <474744d65d8e460fa08cd5fd82b5d65f>:IL_006C)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:IL_0095)
HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:IL_0007)
HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) (at <474744d65d8e460fa08cd5fd82b5d65f>:IL_0014)
HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) (at <474744d65d8e460fa08cd5fd82b5d65f>:IL_0006)
HarmonyLib.Harmony.CreateAndPatchAll (System.Reflection.Assembly assembly, System.String harmonyInstanceId) (at <474744d65d8e460fa08cd5fd82b5d65f>:IL_001E)
LethalCompanyMonitorMod.Plugin.Awake () (at <1acce5de7e1748eba4efa532694203cd>:IL_0081)```
tight cipher
#

yes am playing in v45

iron gorge
#

And if it's not showing up in the keybinds?

#

but the bepenix log shows that it is starting

stray sand
stray sand
tight cipher
#

in a middle of a bossfight atm, will do later

iron gorge
# stray sand could you please provide the logs file?

[Message: BepInEx] BepInEx 5.4.22.0 - Lethal Company (2023. 12. 09. 20:27:21)
[Info : BepInEx] Running under Unity v2022.3.9.15351836
[Info : BepInEx] CLR runtime version: 4.0.30319.42000
[Info : BepInEx] Supports SRE: True
[Info : BepInEx] System platform: Bits64, Windows
[Message: BepInEx] Preloader started
[Info : BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.22.0]
[Info : BepInEx] 1 patcher plugin loaded
[Info : BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Message: BepInEx] Preloader finished
[Message: BepInEx] Chainloader ready
[Message: BepInEx] Chainloader started
[Info : BepInEx] 3 plugins to load
[Info : BepInEx] Loading [ShipLoot 1.0]
[Info : BepInEx] Loading [FastSwitchPlayerViewInRadar 1.3.0]
[Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type KepRemapPanel and name LoadKeybindsUI and parameters
[Info : BepInEx] Loading [Helmet_Cameras 2.1.5]
[Info :Helmet_Cameras] Plugin Helmet_Cameras is loaded with version 2.1.5!
[Info :Helmet_Cameras] --------Helmet camera patch done.---------
[Message: BepInEx] Chainloader startup complete

stray sand
#

Could you please verify the integrity of the game files and then try again? let me knw

storm veldt
#

@stray sand Found the issue... this is actually quite hilarious

#

in the mods code you have if (String.Compare(text, "view monitor", true) == 0) { Plugin.Log.LogInfo("Radar Map Activated"); Plugin.ViewMonitorSubmitted = true; return; }

#

but i've been using monitor view to toggle into the radar view

#

and because i use monitor view, the radar still shows up for me; but your mod doesn't register as me looking at the map

#

after typing view monitor the arrow keys work for me 🤦

#

@jovial swallow interested to see if your terminal guy was also just not typing the right view monitor command like me 🤣

#

I noticed none of my logs had Plugin.Log.LogInfo("Radar Map Activated"); this message which meant ViewMonitorSubmitted was never true

stray sand
#

didn't know you could type that backwards...

#

I'll then make it more accurate as soon as possible

storm veldt
#

the terminal supports fuzzy matching so even if you misspell things it will still try to match you to something close to what you typed

#

not familiar with lethal company modding so idk if this is possible, but is there another way to intercept what parsed cmd is executed from the terminal rather than the text?

#

or maybe a way to check its status to see if its showing the radar?

stray sand
#

I might work with nodes instead of keywords...I'll work on it

#

@storm veldt btw, is it working properly now?

storm veldt
storm veldt
#

did some massive digging into the source code for lethal; came up with the following information that could be useful; not sure tho since this is my first time working w/ unity lol, take everything with a grain of salt

When the user enters the view monitor command the result result: ViewInsideShipCam 1 is returned by Debug.Log("result: " + terminalKeyword2.compatibleNouns[k].result.name); where ViewInsideShipCam 1 is a TerminalNode object.

Within the active Terminal there exists a current node // Token: 0x04000D81 RID: 3457 public TerminalNode currentNode im wondering if you can check if the currentNode's name property contains ViewInsideShipCam to see if the terminal is being used to monitor the camera instead?

#

just assuming that the ViewInsideShipCam terminal node doesn't have any of the above properties and is just loaded as a new node?

jovial swallow
#

And this is what i enter XD

flint seal
#

did you all change the keybinds for this mod
i ask because this mod not working

storm veldt
#

Ah, if the radar map activated message shows up it sounds like another issue

jovial swallow
storm veldt
#

yea viev will be the reason it doesnt work for him

#

it has to be view monitor exactly for this mod to register it

jovial swallow
#

Thanks, will try later tonight. But i think switching needs to be bound to ViewInsideShipCam event, and not terminal text string XD

storm veldt
#

yea agreed ^^

stray sand
#

Fast Switch Player Cam In Radar v1.3.1

sour badger
#

Hey @stray sand there might be an issue regarding both our mods together (ExtraDaysToDeadline). I'm investigating

stray sand
#

Hey @sour badger. Do you have any logs I can relate on?

sour badger
#

also there is an issue in my repo

stray sand
#

I'll look at it. Thanks!

sour badger
#

Thanks mate, I had the time to look into it (thanks for making the mod open-source!) I created a pull request with a fix for that in your repo. Let me know what do you think of it

stray sand
#

Hey. I merged your fix. I'm actually testing it right now and soon I'll release a new version of the mod. Thanks!

#

@sour badger released it

sour badger
#

Thanks! 😍

flint seal
#

is this working?

#

Tried it out but it doesn't work well