2025-07-24 00:45 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004108Spring engineGeneralpublic2013-11-03 15:51
Reportersilentwings 
Assigned ToKloot 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
Product Version94.1.1+git 
Target VersionFixed 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
Attached Files

-Relationships
+Relationships

-Notes

~0011936

Kloot (developer)

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

~0011938

silentwings (reporter)

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

~0011939

Kloot (developer)

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

~0011941

silentwings (reporter)

Last edited: 2013-11-03 15:34

View 2 revisions

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.

~0011942

Kloot (developer)

done
+Notes

-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 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
+Issue History