• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • There is a suspension/ban wave happening. We don't know why. Please keep regular discussion to Suspension MegaThread and please consider submitting a Suspension report to RG.

Question - Client Server Authentication

Myysterio

Myysterio
Creator
Joined
Jun 13, 2020
RedCents
1,811¢
Anyone have any examples of how to do client/server authentication in Lua? (tbh, I'm not even certain if that's what its called)

Essentially I would like when Luas run, they go pull their main code/modules/etc. off a server instead of being in the xxxxxxx.Lua file. This is effectively allow me to update my luas and not have everyone redownload them every time I make a change.
 
This is effectively allow me to update my luas and not have everyone redownload them every time I make a change.
RG serves your scripts by RedFetch already, you either upload manual or to Git and just link it to RG. You do a push then users have to update, RedFetch is best way, but manually can be done.
If you want your own server to do it, and to autoupdate on each users computer when you make an update on your server, is a recipe for a disaster.
 
RG serves your scripts by RedFetch already, you either upload manual or to Git and just link it to RG. You do a push then users have to update, RedFetch is best way, but manually can be done.
If you want your own server to do it, and to autoupdate on each users computer when you make an update on your server, is a recipe for a disaster.
Its not your scripts, its my Lua scripts. My personal Lua scripts that arent available on redfetch.

i dont want to send them a file everytime i make changes to something.
 
You can write your scripts (though make backups elsewhere) directly to the live or EMU folder you use. That would work in that you edit and save, then tab to your eq client and click your hotbutton of "/Lua run coolscript".
Find a prob, go back to edit and save, tab back and restart your script. with some tools you can even set the backups to be automated.
glad you said it was your personal scripts.. read very differently. Hope it helps.

Edit: I would recommend editing elsewhere, and have the auto copy make the copy go to your live/emu folder.
 
What's the scale/scope of users?

Using sockets, you can probably get what you're looking for done using a git repo & private git tokens. Or write your code so that it can accept different configs that get updated and have that hosted on a website, but you won't get the ability to patch things, so the code on your machine better be perfect.

If it's just like, personal sharing in your own household, rsync (linux) is by far the best tool for sharing & updating scripts super fast, but it requires ssh (and you can't really rsync from in-game easily, though i haven't really tried).

You could also set up a server or have a common Google Drive, wire it up to your PC as a shared drive (G:/Lua/your_hosted_scripts) and point your Lua config's modules at it (haven't tried this but should work in theory).

If it's people outside your house, though, just set up a private git repo, then if you want to update the scripts from in game, write a simple Lua that just git pulls the latest version. You also get the benefit of having multiple branches for development/testing/features.
 
Question - Client Server Authentication

Users who are viewing this thread

Back
Top
Cart