FredyH / GWSockets

WebSockets for GLua
MIT License
87 stars 7 forks source link

Cannot use Clientside even after changing module name #40

Closed Lordalpha001 closed 1 month ago

Lordalpha001 commented 1 month ago

I'm using 64 bit for gmod and i needed client side for something I was working on and when I change the module name and then try to use my Lua in my server I get an error on my require("gwsockets")

FredyH commented 1 month ago

Does it work under 32 bit? Also, did you rename the module so that it can be loaded on the client? What is the error?

Lordalpha001 commented 1 month ago

i renamed it and it didnt work so it tried 32 bit and i still got the same errors [ERROR] Couldn't include file 'includes\modules\gwsockets.lua' - File not found or is empty (@[C] (line 1))

  1. unknown - [C]:1

    [ERROR] [C]:1: Module not found!

  2. require - [C]:-1
    1. unknown - [C]:1

also i need it for 64bit

FredyH commented 1 month ago

The correct name needs to be gmcl_gwsockets_win64.dll, make sure it is called that. The error indicates that it does not find the file.

Lordalpha001 commented 1 month ago

yeah i just tried that and now i got a new error saying it couldnt load module library (%1 is not a valid Win32 application).

FredyH commented 1 month ago

it works correctly for me (see attached screenshot). Maybe you renamed the 32 bit version to the 64 bit version or vice versa? image

Lordalpha001 commented 1 month ago

Yup got it to work now thank you!