Auto-resign widget

Auto-resign widget

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

Moderator: Moderators

Post Reply
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Auto-resign widget

Post by Floris »

I want to write a widget that auto-resigns you when your fps gets below 10 during 8 seconds.

Since the MT client doesnt work, and the spring UI is unresponsive when having low-fps it's not playing a game but more being nearly a spectator looking at only your own base.



What is the code/commands for...
- checking current fps?
- resigning
- do a chat message to your team say "I was resigned by the auto-resign widget" or something



It's either:
- MT client working without crashes
- Having this widget availible,
- Having a (respoinisve) UI that is not bound/failing with by low fps
- quit playing
User avatar
KingRaptor
Zero-K Developer
Posts: 838
Joined: 14 Mar 2007, 03:44

Re: Auto-resign widget

Post by KingRaptor »

I'd put the threshold lower, to <5 or so. I find the game is still mostly playable at ~10 FPS.

Anyway, to answer your questions in order: I don't really see the point of the exercise though. I imagine it's not that hard to resign manually, the widget may resign you when you don't want to (temporary lag spike for instance), and if you're concerned about people not resigning when they have unplayable FPS thereby weakening the team then the only way to force them to use it would be to include it in the mod (and even then, they could just turn it off).
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: Auto-resign widget

Post by bobthedinosaur »

make it adjustable
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: Auto-resign widget

Post by wolas »

Someone make 100 fleas and they cluster somewhere and make huge lag for 10 seconds BAM! everybody resigns win win.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Auto-resign widget

Post by Jazcash »

wolas wrote:Someone make 100 fleas and they cluster somewhere and make huge lag for 10 seconds BAM! everybody resigns win win.
I lol'd.
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Auto-resign widget

Post by Floris »

lol yes, ofc it would be adjustable to say like 60 seconds would be more appropriate.

Yes it can be abused or create other unwanted resigns, but heck, you can filter a lot of those too... but only required too much work I think.

I guess I don't want to have it that badly... or think that the widget is that worthy the community. Probably even unwanted by the devs if it gets more wide spread. (which prolly won't be the case at all anway)


oh and thnx KingRaptor for your quick response
Post Reply

Return to “Lua Scripts”