View Issue Details

IDProjectCategoryView StatusLast Update
0003062Spring engineGeneralpublic2012-04-16 00:44
ReporterLicho Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version89.0 
Summary0003062: Allow lua to call SetStartPos and GameStart/ForceStart
DescriptionWe would like to replace/improve load screen.
Follow features would be handy:

* StartPosSelector allow chanigng startpos after ready
* SetStartPos exposed for lua (to let widget set startpos)
* ForceStart or GameStarting exposed for lua (to let gadget start the game)

In the future:
* ability to disable current gamesetup renderer so that lua can draw its own

Atm engine only provides:
 - GameSetup (callin for luaui) -> allows self ready (after that you cant change pos though)
 - AllowStartPos (callin for luarules) -> allows gadget to reject startpos

TagsNo tags attached.
Checked infolog.txt for Errors

Activities

jK

2012-04-16 00:25

developer   ~0008612

erm ...
.. the GameSetup callin can disable the drawing.
.. changing startpos after ready doesn't make sense (neither logical nor code-wise)

Licho

2012-04-16 00:32

reporter   ~0008613

no, GameSetup can only one time hide drawing and set ready and block startpos..
thats all that it can do ..

try it.

Licho

2012-04-16 00:33

reporter   ~0008615

I mean returning ready hides gui, sets ready and disables ability to set startpos- > hardly ideal!

Combined with no way to force start game its pretty disasterous.

jK

2012-04-16 00:44

developer   ~0008619

I explained that in the other ticket.

@forcestart
It wouldn't make sense to add such a synced function currently, cause there is no regular called synced lua callin in the ready up stage. Only AllowStartPosition and it's not regular. So it would be impossible e.g. to implement a timer that forcestart the game after 30sec.
For now you can send the command via the dedi server interface.

Issue History

Date Modified Username Field Change
2012-04-15 16:29 Licho New Issue
2012-04-16 00:25 jK Note Added: 0008612
2012-04-16 00:32 Licho Note Added: 0008613
2012-04-16 00:33 Licho Note Added: 0008615
2012-04-16 00:44 jK Note Added: 0008619