Commit Graph
15049 Commits
Author SHA1 Message Date
Glenn Maynard f71ffd76c0 luaeffect 2005-04-28 10:19:40 +00:00
Glenn Maynard 8b76b5eafd experimental: allow implementing effects in Lua.
The biggest risk here is performance; we rarely call Lua per-frame.  However,
there are lots of places where we can call Lua while rendering (any time we
call a command), and there's little difference between calling Lua once
every ten frames or once every frame; either way you're counting against the
per-frame time quota to hit vsync.  So, this probably isn't much of a stretch.

Usage is simple:

  OnCommand=luaeffect,Foo
  FooCommand=addx,math.random()*10

Actor commands run during the effect will only apply for that frame.  Don't
call tweening commands ("linear") or anything else that doesn't make sense
in this context; you're modifying m_TempState instead of the tweening queue.
This is hoped to replace some of the more esoteric stuff in the effect code.

For this to be of much use, Lua access to m_fSecsIntoEffect and probably
other stuff is needed.
2005-04-28 10:18:36 +00:00
Chris Danford 0a71994d01 cleanup
add wheel item metrics
2005-04-28 10:06:13 +00:00
Chris Danford 8cf1a9d820 add wheel item metrics 2005-04-28 10:05:12 +00:00
Chris Danford 134cbf284b fix VC7 warning 2005-04-28 08:37:13 +00:00
Chris Danford 0938d9d9a7 conver more to use Preference 2005-04-28 08:27:40 +00:00
Chris Danford f47ebefa90 display every time in seconds 2005-04-28 08:25:34 +00:00
Glenn Maynard b3a918f5b5 remove checkpoints. I havn't seen a crash in this code in months
and I don't even remember why they're there.
2005-04-28 06:18:39 +00:00
Chris Danford 16971da0b3 add copy and clear machine edits 2005-04-28 06:17:17 +00:00
Chris Danford d483f208f9 easier survivor 2005-04-28 06:15:11 +00:00
Glenn Maynard ce56b2c1af cleanup, comment 2005-04-28 06:15:01 +00:00
Glenn Maynard 1e29afadda cleanup 2005-04-28 06:06:30 +00:00
Glenn Maynard 3af5336af7 fix crash 2005-04-28 05:08:15 +00:00
Chris Danford 851e8f27e6 easier survival 2005-04-28 02:49:39 +00:00
Chris Danford 4113a5ad17 fix "recent scores saves least recent, not most recent" 2005-04-28 02:39:43 +00:00
Chris Danford c4ddb498a9 save fewer recent scores in player profiles than in machine profile 2005-04-28 01:29:31 +00:00
Chris Danford b33f16d9b7 show early/late in judgment
larger boo window when playing beginner
2005-04-28 00:13:01 +00:00
Chris Danford 395d6488a8 don't show JustBarely when hitting 0 life with fail off 2005-04-28 00:11:30 +00:00
Chris Danford 5d398f4ad3 add song boundary marker
add "just barely"
2005-04-27 21:46:35 +00:00
Chris Danford 2836bc7c81 metrics/element name cleanup 2005-04-27 09:47:22 +00:00
Chris Danford 77f3402579 add MercifulBeginner 2005-04-27 08:52:58 +00:00
Chris Danford 4ffa3dcef4 fix uses of CoinsPerCredit 2005-04-27 08:51:29 +00:00
Chris Danford 3117e1bd3d cleanup: use Preference 2005-04-27 07:50:38 +00:00
Chris Danford 6889c8be3f Move "30misses" to a GiveUp metric. It's not very different from FailEndOfSong.
Only fail when giving up if died earlier.
2005-04-27 06:34:53 +00:00
Chris Danford b54e78c433 don't call HasScreen for a NEXT_ROW item 2005-04-27 05:57:58 +00:00
Chris Danford aed3b049ae fix off by 1 when calling HasScreen 2005-04-27 05:40:24 +00:00
Glenn Maynard cae5bf6e29 ModeMenuAvailable 2005-04-27 04:35:55 +00:00
Glenn Maynard 2cac14ae37 add ModeMenuAvailable 2005-04-27 04:26:06 +00:00
Glenn Maynard cad746ae8c fix #GAINSECONDS not cached 2005-04-27 03:07:05 +00:00
Glenn Maynard a5ab1a5664 fix error check 2005-04-27 01:48:52 +00:00
Glenn Maynard 64daf9379d add error check 2005-04-27 01:30:11 +00:00
Glenn Maynard 89cf91fb38 don't keep failed sounds 2005-04-27 01:23:56 +00:00
Glenn Maynard 87a2186cc9 fix copying RageFileDriverSlice doesn't init RageFileObj properly, causing desync between file pointers (RageFileObj thinks it's at 0, RageFileDriverSlice thinks it's at somewhere else) 2005-04-27 01:22:27 +00:00
Chris Danford e836c16466 stub out cryptopp for Xbox 2005-04-27 01:17:47 +00:00
Glenn Maynard bbd4e2a251 fix ScreenSetTime 2005-04-26 23:44:55 +00:00
Chris Danford 23ad0104c6 don't show forced beginner mods in attack list 2005-04-26 20:46:06 +00:00
Chris Danford 2576c4a87a hack to get scrolling coords and env mapping working at the same time 2005-04-26 20:44:58 +00:00
Glenn Maynard d233040ce1 fix warning 2005-04-26 20:21:13 +00:00
Chris Danford 12185dfd0d revert order to fix env mapping (not sure why yet) 2005-04-26 20:18:51 +00:00
Chris Danford 8521718f3f compile error 2005-04-26 19:00:23 +00:00
Glenn Maynard 126d5f4851 fix SortCoursePointerArrayByAvgDifficulty and SortCoursePointerArrayByNumPlays 2005-04-26 10:33:12 +00:00
Glenn Maynard 50917e6e50 fix warning 2005-04-26 10:29:23 +00:00
Glenn Maynard 7892552052 fix warnings 2005-04-26 10:28:20 +00:00
Glenn Maynard 214b964268 add select alias 2005-04-26 08:55:29 +00:00
Glenn Maynard e1c1b6cbc4 add secondary screenshot code 2005-04-26 08:40:27 +00:00
Chris Danford 2e55c56596 fix wrong grade calculation when using mods 2005-04-26 08:14:46 +00:00
Chris Danford 0ec148b4f0 fix multipass path doesn't clear 2nd texture unit if model doesn't have 2nd material 2005-04-26 08:11:30 +00:00
Chris Danford 0f7ab90e7f allow changing difficulty on sections 2005-04-26 07:03:00 +00:00
Chris Danford bfc9c18db1 fix "beginner modifiers clobber players' preferred mods" 2005-04-26 07:02:10 +00:00
Chris Danford 4c4bc3d917 initialize all members 2005-04-26 07:01:10 +00:00