gamedata/LockLuaUI.txt

gamedata/LockLuaUI.txt

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

gamedata/LockLuaUI.txt

Post by trepan »

http://spring.clan-sy.com/fisheye/chang ... g/?cs=4528

Suggested gamedata/LockLuaUI.txt file content:

Code: Select all

gamedata/LockLuaUI.txt
----------------------
If this file exists in the mod's gamedata/ directory,
then the LuaUI base file (gui.lua) can only be loaded
from the mod's filesystem. This essentially puts the
mod in full control of what can be done with LuaUI.
MetalSkin
Posts: 77
Joined: 31 Aug 2007, 02:42

Post by MetalSkin »

But then couldn't an end user just delete the file to remove the lock?

Unless spring validates that all the files required for the mod exist and have the same checksum as the server or similar, it's going to be easy to get around.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

O___o

If I change a single thing in my mod, I then can't play with anybody else with the "same" mod.

Just a single character would make it unplayable, I think.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

MetalSkin
Take that train of thought a step further, you could make a slight
modification to your exec to remove the lock for all mods. There are
no real unsynced client side security measures.

Example: In this case, a single instance of "//" will do the trick
Last edited by trepan on 08 Oct 2007, 05:37, edited 2 times in total.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

*sighs* it is in the MOD file not spring, which means if you remove it you would not match the other player's file. MOD side, meaning part of the mod.
MetalSkin
Posts: 77
Joined: 31 Aug 2007, 02:42

Post by MetalSkin »

trepan wrote:Take that train of thought a step further, you could make a slight
modification to your exec to remove the lock for all mods. There are
no real client side security measures.
Didn't realise that, but then I presume the Spring community doesn't include the type of personalities who feel the need to use hacks to get an edge in-game. 0_o

But it's a good idea. I reckon the need for mod specific and mod restricted luaui is important. :)

:edit:
smoth wrote:*sighs* it is in the MOD file not spring, which means if you remove it you would not match the other player's file. MOD side, meaning part of the mod.
Ahhh, no worries.. sorry for the creation of exasperation. o_O
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

it's no big deal man, I just hate seeing people freak about features that are options. Just sighing out of frustration.

It basically will give us "moders" control over what lua we allow in our project. This is important when some of us have features that could be spoilted by widgets or say our own ui that would be borked by say, ICEUI.

As far as hacks, it has happened in the past and I have considered some nasty ones in the past.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

Thank god for this. I have needed something like this for a while. Good to see that I actually have some small form of control now.
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

What did I do.. I swear I didnt mean to do it..

it was an accident.. darn it..
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

Forboding Angel
Your god had nothing to do with this addition ;-)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

trepan wrote:Forboding Angel
Your god had nothing to do with this addition ;-)
:lol: Just had to get the random prayer thrown out there :P
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

Blessed be thee, my son.
User avatar
Zpock
Posts: 1218
Joined: 16 Sep 2004, 23:20

Post by Zpock »

trepan wrote:Your god had nothing to do with this addition ;-)
One of mine did tough :wink:
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

Trepan, thanks for listening to our concerns :)
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

trepan wrote:Forboding Angel
Your god had nothing to do with this addition ;-)
Wait, can I worship Trepan now?
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

neddiedrow wrote:
trepan wrote:Forboding Angel
Your god had nothing to do with this addition ;-)
Wait, can I worship Trepan now?
Pretty much, ya.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Can we make it selective so we can disable only widgets known to cause problems? This would be not for preventing widgets from giving an advantage, just to prevent conflicts between the mod's GUI and the widgets a user may have.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

While that would be good for a mod that needs to disable certain widgets to ensure playability, but is happy to leave things open (which means the modder doesn't have to update their mod to include new widgets), it would be pretty difficult to achieve. Say you have a supermega cheating widget, or, a super megabreaking widget that the modder doesn't want to allow, so he puts it on the 'ignore this widget' list, the user could just change the name of the widget, and circumvent the protection.
User avatar
quantum
Posts: 590
Joined: 19 Sep 2006, 22:48

Post by quantum »

You can edit the widget handler so it only forwards the API functions that you like.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

Well, regardless, I would hope that most modders would include all the best (and considered necessary) widgets with their mod.

For example, my mod is going to require the xray widget, because that's how the teamcolor is getting applied (looks awesome on s3o's, pretty crappy on 3do, I assume because 3do is a face by face type of deal and the fact that the vertecies are not smoothed by the renderer at all - or something like that - also it seems to respond interestingly to reflectivite on the uv map) and so far it looks great, not too intrusive, just enough to see that it's there.

But my main point is that and widget that makes playing the game more fun, and easier I will generally include as a default. The dps widget is another great example, having a visual representation of damage done is very helpful to players because seeing an orange or red bar is only marginally helpful in comparison.
Post Reply

Return to “Lua Scripts”