View Issue Details

IDProjectCategoryView StatusLast Update
0004108Spring engineGeneralpublic2013-11-03 15:51
Reportersilentwings Assigned ToKloot  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version94.1.1+git 
Fixed in Version94.1.1+git 
Summary0004108: lua control of ready states
Descriptionfeature 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 Informationas 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)
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Kloot

2013-11-03 14:16

developer   ~0011936

"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

2013-11-03 14:30

reporter   ~0011938

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

2013-11-03 14:49

developer   ~0011939

I know, base GH is still missing some crap (just check callins.lua) but the engine code to call it is there.

silentwings

2013-11-03 15:33

reporter   ~0011941

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

2013-11-03 15:51

developer   ~0011942

done

Issue History

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
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