winstxnhdw / lc-hax

A powerful, feature-rich and highly performant internal cheat for the co-op indie horror video game, Lethal Company.
78 stars 25 forks source link

[Bug]: Flowerman makes your game lag #168

Closed ManuelSvQ closed 6 months ago

ManuelSvQ commented 6 months ago

What happened?

Whenever I use lc-hax the Flowerman makes me game start flashing and choppy, going at about 30 FPS then chopping each time, I don't know how this happens.

Current Commit Hash

rrytwryry

Injector

If you selected "Others" above, please specify the injector you are using.

No response

Log output

No response

Acknowledgement

winstxnhdw commented 6 months ago

Can someone else confirm? I just tried earlier today, it was fine to me.

ManuelSvQ commented 6 months ago

After this bug, everytime I try to launch using launch.bat it seems to crash. No matter what. image

winstxnhdw commented 6 months ago

The error says it can't find your game. Can you open the game and post a screenshot of your Task Manager?

ManuelSvQ commented 6 months ago

image It launches but after 3 seconds of the launch.bat opening my LC freezes and then crashes.

winstxnhdw commented 6 months ago

What's the error for that?

UltraStuff commented 6 months ago

game crash upon opening launch.bat latest commit

Already up to date.
MSBuild version 17.8.3+195e7f5a3 for .NET
  Determining projects to restore...
  Restored F:\Stuff\modss\lc-hax\lc-hax\lc-hax.csproj (in 1.13 sec).
  lc-hax -> F:\Stuff\modss\lc-hax\bin\lc-hax.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.21
Injection failed: SharpMonoInjector.InjectorException: mono_object_get_class() returned NULL
   at SharpMonoInjector.Injector.ThrowIfNull(IntPtr ptr, String methodName)
   at SharpMonoInjector.Injector.GetClassName(IntPtr monoObject)
   at SharpMonoInjector.Injector.RuntimeInvoke(IntPtr method)
   at SharpMonoInjector.Injector.Inject(Byte[] rawAssembly, String namespace, String className, String methodName)
   at Program.<<Main>$>g__Inject|0_0(String targetProcess, FileInfo assembly, String loaderNamespace, String loaderClass, String loaderMethod)
Press any key to continue . . .
winstxnhdw commented 6 months ago

Yeah, it might be the new command I just added.

Try doing this for now.

git reset --hard 87562d464855cf7f05c3fc2fb0f7509a8203e8e8
winstxnhdw commented 6 months ago

I don't have access to my computer now so I've just commented it out for now. It should work on latest again.

UltraStuff commented 6 months ago

Yeah, it might be the new command I just added.

Try doing this for now.

git reset --hard 87562d464855cf7f05c3fc2fb0f7509a8203e8e8

Works thanks

ManuelSvQ commented 6 months ago

I don't have access to my computer now so I've just commented it out for now. It should work on latest again.

Works now, thank you

tslpy1 commented 6 months ago

Can someone else confirm? I just tried earlier today, it was fine to me.

It seems that continuously aiming at enemies and using the M3 button can cause monsters to teleport outside of the facility (as observed through ESP, where you can see the monsters in the map outside the facility). This can result in the game flickering and stuttering, as well as reducing FPS.

If this issue can be resolved, it might be possible to utilize this aspect to teleport monsters to external maps without the need for mods.

joep26020 commented 6 months ago

Can someone else confirm? I just tried earlier today, it was fine to me.

It seems that continuously aiming at enemies and using the M3 button can cause monsters to teleport outside of the facility (as observed through ESP, where you can see the monsters in the map outside the facility). This can result in the game flickering and stuttering, as well as reducing FPS.

If this issue can be resolved, it might be possible to utilize this aspect to teleport monsters to external maps without the need for mods.

Interesting. So do other players see that or is it client-side? Also, do you only do this in phantom mode?

joep26020 commented 6 months ago

Can someone else confirm? I just tried earlier today, it was fine to me.

It seems that continuously aiming at enemies and using the M3 button can cause monsters to teleport outside of the facility (as observed through ESP, where you can see the monsters in the map outside the facility). This can result in the game flickering and stuttering, as well as reducing FPS.

If this issue can be resolved, it might be possible to utilize this aspect to teleport monsters to external maps without the need for mods.

omg it works lmao i got a nutcracker outside and chased people. his kick effect didnt work but the shotgun effect did! and killed some people!

winstxnhdw commented 6 months ago

Can someone else confirm? I just tried earlier today, it was fine to me.

It seems that continuously aiming at enemies and using the M3 button can cause monsters to teleport outside of the facility (as observed through ESP, where you can see the monsters in the map outside the facility).

This can result in the game flickering and stuttering, as well as reducing FPS.

If this issue can be resolved, it might be possible to utilize this aspect to teleport monsters to external maps without the need for mods.

We can already teleport mobs outside of the factory. We don't do that because it breaks the game. The game expect factory-only mobs to remain in the factory and vice-versa. But I think this may mainly just be Bracken's problem..

winstxnhdw commented 6 months ago

If someone has the time to test this, you can change this line in your code to this and see if the game is still stable?

this.TeleportEnemyToPlayer(nutcracker, targetPlayer, willTeleportEnemy, true, true)

This will allow the Nutcracker to teleport outside when you do /mob. If all is well, we can push this feature.

joep26020 commented 6 months ago

Can someone else confirm? I just tried earlier today, it was fine to me.

It seems that continuously aiming at enemies and using the M3 button can cause monsters to teleport outside of the facility (as observed through ESP, where you can see the monsters in the map outside the facility). This can result in the game flickering and stuttering, as well as reducing FPS. If this issue can be resolved, it might be possible to utilize this aspect to teleport monsters to external maps without the need for mods.

We can already teleport mobs outside of the factory. We don't do that because it breaks the game. The game expect factory-only mobs to remain in the factory and vice-versa. But I think this may mainly just be Bracken's problem..

check out my reply in the gifs discussion!

joep26020 commented 6 months ago

If someone has the time to test this, you can change this line in your code to this and see if the game is still stable?

this.TeleportEnemyToPlayer(nutcracker, targetPlayer, willTeleportEnemy, true, true);

This will allow the Nutcracker to teleport outside when you do /mob. If all is well, we can push this feature.

where do i put that at?

winstxnhdw commented 6 months ago

If you click on the link, it brings you to the file and line you need to change.

joep26020 commented 6 months ago

If you click on the link, it brings you to the file and line you need to change.

ok thanks. i need to ask though can you re add invis?

joep26020 commented 6 months ago

If you click on the link, it brings you to the file and line you need to change.

so how do i use this new feature?

joep26020 commented 6 months ago

If you click on the link, it brings you to the file and line you need to change.

i changed the code and it says build failed

joep26020 commented 6 months ago

image

joep26020 commented 6 months ago

Can someone else confirm? I just tried earlier today, it was fine to me.

It seems that continuously aiming at enemies and using the M3 button can cause monsters to teleport outside of the facility (as observed through ESP, where you can see the monsters in the map outside the facility). This can result in the game flickering and stuttering, as well as reducing FPS.

If this issue can be resolved, it might be possible to utilize this aspect to teleport monsters to external maps without the need for mods.

i have tried the bracken. i can get him out of the area and by the ship, but its very laggy, and his inf jump wont work even if movement mode is switched. sometimes the lag turns off when i'm watching a player, but then i think if the player maybe sees the bracken, it lags again

winstxnhdw commented 6 months ago

i changed the code and it says build failed

Oops, I forgot to add a semicolon at the end. My bad.

so how do i use this new feature?

Just do /mob <player>

ok thanks. i need to ask though can you re add invis?

You can do git checkout winstxnhdw-patch-1 to try the invis feature.

winstxnhdw commented 6 months ago

Okay, I got confirmation from @LTYGUY that Nutcracker can leave the factory without a problem, so I'll add the change.

If someone has the time to test this, you can change this line in your code to this and see if the game is still stable?

this.TeleportEnemyToPlayer(nutcracker, targetPlayer, willTeleportEnemy, true, true)

This will allow the Nutcracker to teleport outside when you do /mob. If all is well, we can push this feature.

If anyone would like to test for other mobs, you can just do the same under the functions for the different enemies.

winstxnhdw commented 6 months ago

This issue has been fixed.