View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003062Spring engineGeneralpublic2012-04-15 16:292012-04-16 00:44
Assigned To 
Product Version89.0 
Target VersionFixed in Version 
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.
Attached Files

- Relationships

-  Notes
jK (developer)
2012-04-16 00:25

erm ...
.. the GameSetup callin can disable the drawing.
.. changing startpos after ready doesn't make sense (neither logical nor code-wise)
Licho (reporter)
2012-04-16 00:32

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

try it.
Licho (reporter)
2012-04-16 00:33

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 (developer)
2012-04-16 00:44

I explained that in the other ticket.

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

Copyright © 2000 - 2015 MantisBT Team
Powered by Mantis Bugtracker