JamesWilko / Payday-2-BLT-Lua

Mods folder that controls the ingame aspects of the Payday 2 BLT.
MIT License
16 stars 26 forks source link

DB:create_entry currently not availble under linux #50

Closed hellow554 closed 7 years ago

hellow554 commented 7 years ago

See for this: https://github.com/blt4linux/blt4l/issues/70

The thing is, that you use it in the BLTMod.lua file. Can we use a current workaround like this one to check if we are under a linux environment and just return nil in that function? Other mods, depending on DB:create_entry just not work by now iirc. But for now, it would be a nice to have function, so you could use the same mods folder structure for windows and linux.

Luffyyy commented 7 years ago

Mostly you can blame overkill for not implementing that function.

ZNixian commented 7 years ago

Checking BLT.PlatformName would be the easiest way if you want to nil it out, though I believe RomanHargrave is working on adding that.

Luffyyy commented 7 years ago

This is the best way of doing it https://github.com/JamesWilko/Payday-2-BLT-Lua/issues/52#issuecomment-327919680

JamesWilko commented 7 years ago

Mod images will no longer be created if DB.create_entry does not exist. https://github.com/JamesWilko/Payday-2-BLT-Lua/commit/54fd0a0f1e097a63c6a9defe106c60af0d38c013