金钱 ¥
注册时间2011-10-7
- 积分
- 4861
|
LiveCPK (Sider 3.31)
What's new: Lua support fixes and new features:
- [FIX] tournament_id is now available in the context as early as possible
- [NEW] set_stadium event: you can change stadium, timeofday, weather, and season
- [NEW] set_match_time event: change match duration (number of minutes)
stadium.lua : simple Stadium switcher, which makes the English Super Cup final to be played at Bombonera. It also sets the weather to rain, season - to winter, and time of day.
timeaccel.lua : example of how match time can be manipulated - it sets the match duration to 1 minute for any match that is not an exhibition one (see the ctx.tournament_id > 5 check in the code)
etrace.lua : registers for various events, and just logs them (prints messages to sider.log) as they happen. It also logs the context object at the time of the event. The log can be confusing at first, but this module can be useful to see what happens when and what gets put into the context.
http://pan.baidu.com/s/1pLbfR67 |
|