View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0004108 | Spring engine | General | public | 2013-11-03 14:01 | 2013-11-03 15:51 | ||||
Reporter | silentwings | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 94.1.1+git | ||||||||
Target Version | Fixed in Version | 94.1.1+git | |||||||
Summary | 0004108: lua control of ready states | ||||||||
Description | feature request for: 1) a callout that can set a players ready state, independently of whether or not they have a startpoint 2) a callin that is triggered when a player readies, or just a callin that is triggered in regularly within synced before gamestart occurs. | ||||||||
Additional Information | as a newbie assist/smurf deterent i'd like to make a modoption that means accounts which can't be verified as genuine non-newbies (i.e. via host admin, SLDB or having small amount of ingametime) don't get to choose a startpoint and get one auto-placed for them at gamestart (thanks to the new AllowStartPosition args, i already have a system that can examines the current startpoints/metal map and choose a sensible startpoint for an afk player) | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
Kloot (developer) 2013-11-03 14:16 |
"a callout that can set a players ready state" The GameSetup call*IN* can already do that. "a callin that is triggered when a player readies" That would be redundant with AllowStartPosition and PLAYER_RDYSTATE_READIED. |
silentwings (reporter) 2013-11-03 14:30 |
first point - i haven't managed to get GameSetup to be called and the wiki marked it as "not yet implemented", it also doesn't appear in the basecontent gadgethandler but i'll have a go at getting it working & get back to you second point - you are correct, sorry |
Kloot (developer) 2013-11-03 14:49 |
I know, base GH is still missing some crap (just check callins.lua) but the engine code to call it is there. |
silentwings (reporter) 2013-11-03 15:33 Last edited: 2013-11-03 15:34 |
Ok - GameSetup works just fine, tyvm. You can copy/paste the following code into the base gadgethandler: function gadgetHandler:GameSetup(state, ready, playerStates) local success, newReady for _,g in ipairs(self.GameSetupList) do success, newReady = g:GameSetup(state,ready,playerStates) end return success, newReady end I'll update the wiki. |
Kloot (developer) 2013-11-03 15:51 |
done |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-11-03 14:01 | silentwings | New Issue | |
2013-11-03 14:16 | Kloot | Note Added: 0011936 | |
2013-11-03 14:30 | silentwings | Note Added: 0011938 | |
2013-11-03 14:49 | Kloot | Note Added: 0011939 | |
2013-11-03 14:49 | Kloot | Status | new => resolved |
2013-11-03 14:49 | Kloot | Fixed in Version | => 94.1.1+git |
2013-11-03 14:49 | Kloot | Resolution | open => no change required |
2013-11-03 14:49 | Kloot | Assigned To | => Kloot |
2013-11-03 15:33 | silentwings | Note Added: 0011941 | |
2013-11-03 15:33 | silentwings | Status | resolved => feedback |
2013-11-03 15:33 | silentwings | Resolution | no change required => reopened |
2013-11-03 15:34 | silentwings | Note Edited: 0011941 | View Revisions |
2013-11-03 15:51 | Kloot | Note Added: 0011942 | |
2013-11-03 15:51 | Kloot | Status | feedback => resolved |
2013-11-03 15:51 | Kloot | Resolution | reopened => fixed |