Demigod and the oh-so dangerous LUA libs

One of the biggest cons of supcom in terms of moddability was the inability to use the io module and load external libraries.

It'd be great if the loading of "dangerous" libraries could be switched on with a command line argument. (as far as I know it's pretty simple to enable / disable builtins of lua in c...)

That way GPG could make the user take all responsibility when manually creating a shortcut and enabling the command line... (or so I hope, I'm not sure how this goes legally)

You could even warn the user that the loading of "dangerous" modules is enabled in the game, and tell them which mods use them.

Call it /dontenablethis or /dontblameus or even /thisisavirus so users don't enable it blindly, but whatever :P

It would make things so much easier.

1,551 views 4 replies
Reply #1 Top

In before "mods are cheats".

Reply #2 Top

Quoting Heavenfall, reply 1
In before "mods are cheats".
End of Heavenfall's quote

o rly? then i'm DG's first cheater.

 

that said, there's another solution to this (depending on what you want to do); give each mod it's own scratch file (or better yet, folder) that's isolated from the others and the rest of the computer.

Reply #3 Top

Quoting BulletMagnet, reply 2

that said, there's another solution to this (depending on what you want to do); give each mod it's own scratch file (or better yet, folder) that's isolated from the others and the rest of the computer.
End of BulletMagnet's quote

That's not really a solution, there's already the LOG / prefs file you can write stuff to. Also, I'm not only speaking about I/O.

Mostly about loading new libs (socket, md5, struct or whatever). Moreover the only network connection to the outside I could decode (the moho - gpgnet connection) is also removed in demigod, and cvp isn't gpgnet.

Also, it seems the data path mounting is hard-coded into the exe, and it doesn't even use the external lua datapath files so I have to use the folder dgdata.zip for everything =( I understand it's a beta and demigod isn't made to be used as an engine for doing other stuff, but it's still annoying =/

Reply #4 Top

Also, it seems the data path mounting is hard-coded into the exe, and it doesn't even use the external lua datapath files so I have to use the folder dgdata.zip for everything I understand it's a beta and demigod isn't made to be used as an engine for doing other stuff, but it's still annoying =/
End of quote
Oh no, why did they disable it? It works great for SupCom. I made several short cuts that launch the game with different mod setting. That way I can enjoy all my mods and still play online if I want to - just by clicking another shortcut symbol...