lewisclark / glua-steal

Retrieves client-sided Lua files from Garry's Mod game servers
GNU General Public License v3.0
151 stars 15 forks source link

Gluasteal adding extra newlines to stolen files. #47

Closed wrefgtzweve closed 1 year ago

wrefgtzweve commented 1 year ago

Gluasteal seems to be adding excessive amounts to all stolen files, this happens for every server i've been on so far.

Downloaded file: image

Original file: https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/sandbox/gamemode/cl_notice.lua

Using 64x windows v2.0

lewisclark commented 1 year ago

Probably something to do with \r\n (0x0d 0x0a) being translated to \n\n (0x0a 0x0a). I've pushed some changes that might fix the issue - could you try it and let me know how it goes.

You can download the DLL from https://github.com/lewisclark/glua-steal/actions/runs/3540704254 if you're not building from source.

wrefgtzweve commented 1 year ago

Yeah that worked, looks just like the original one. Thanks! (tested using the gluasteal-windows-2022-x64-Release binary) image

lewisclark commented 1 year ago

Awesome, thanks.