Earu / GTerm

Garry's Mod external console software.
https://github.com/Earu/GTerm/releases
MIT License
13 stars 2 forks source link

[BUG] Cant find gmod connection #2

Closed Be1zebub closed 4 months ago

Be1zebub commented 4 months ago

Describe the bug

Probably it doesnt works with steamcmd installation i have few gmod instances installed with steam & steamcmd

To Reproduce

Steps to reproduce the behavior:

  1. Install new gmod instance with steamcmd
  2. Launch gterm
  3. Launch gmod
  4. See nothing

Screenshots

image image

System

Log & details

im running H:/Desktop/Programms/steamcmd/gmod_clean/hl2.exe
gterm.log

Earu commented 4 months ago

Hi, thank you for reporting that bug, could you tell me whether gmsv_xconsole_win32.dll or gmsv_xconsole_win64.dll is in your garrysmod/lua/bin folder?

If not you may want to add both of them manually, you can find them here: https://github.com/Earu/GTerm/tree/master/Modules

Also from what it seems to me your steam library is not located where your gmod installation is, which is not a case that's currently handled I think.

The code for finding the game path can be found here: https://github.com/Earu/GTerm/blob/master/GmodInterop.cs#L148L191

Could you look in your steam libraries for this file /steamapps/libraryfolders.vdf? Check whether any of them has the Garry's Mod app id which is 4000. This would be what you're looking for:

image

Be1zebub commented 4 months ago

Hi, thank you for reporting that bug, could you tell me whether gmsv_xconsole_win32.dll or gmsv_xconsole_win64.dll is in your garrysmod/lua/bin folder?

If not you may want to add both of them manually, you can find them here: https://github.com/Earu/GTerm/tree/master/Modules

no i dont, because: image

The code for finding the game path can be found here: https://github.com/Earu/GTerm/blob/master/GmodInterop.cs#L148L191

why dont handle running process?

Earu commented 4 months ago

Can I assume you solved your issue by adding the modules manually then?

As for the running process, I prefer to detect path depending on steam library, but I might add a fallback or a check in case the path of the binary and the path of the steam installation is different

Be1zebub commented 4 months ago

Can I assume you solved your issue by adding the modules manually then?

didnt help

Earu commented 4 months ago

Oh whoops I forgot, you also need to modify the contents of garrysmod/lua/menu/menu.lua

Add the following after everything:

require("xconsole")
Be1zebub commented 4 months ago

ill test it in menu realm later, but it works on clientside 🎉 image

Earu commented 4 months ago

https://github.com/Earu/GTerm/commit/90f4f68e181c4c6142056322f55c53e72b4ee8fa

This should be fixed now, however you will need to restart Garry's Mod in some cases but GTerm should tell you when that's the case.