Commit Graph

85 Commits

Author SHA1 Message Date
Flameshadowxeroshin b2c3454428 add GameState:GetEnabledPlayers 2012-01-02 06:07:24 +00:00
Jason Felds 1376a46b01 Add the GAMESTATE:InStepEditor LUA binding. 2011-12-12 18:49:10 -05:00
Jason Felds 34f3ff2c31 Add RefreshNoteSkinData lua binding.
If anyone recalls the other ways of getting
arbitrary games, a similar binding could be
added to NoteSkinManager.
2011-11-06 10:36:08 -05:00
Jason Felds bbec5842f6 Add the ResetPlayerOptions lua binding. 2011-10-29 11:43:49 -04:00
AJ Kelly 264ba574fb part two of three re: Actors/ 2011-10-02 21:40:33 -05:00
Jason Felds f9d12e1afe I hope Windows likes "/" versus "\". 2011-10-02 00:09:40 -04:00
AJ Kelly 9cf2592a32 fix up some include paths. 2011-10-01 22:59:01 -05:00
AJ Kelly 92800cdaee [GameState] Added ApplyStageModifiers(player,string) Lua binding. 2011-09-30 14:50:18 -05:00
AJ Kelly a682662ad8 [GameState] Added ApplyPreferredModifiers(player,string) Lua binding. 2011-09-30 13:44:05 -05:00
AJ Kelly 8f80774b22 [GameState] Added CurrentOptionsDisqualifyPlayer(player) Lua binding. 2011-09-30 13:33:57 -05:00
Jason Felds 91999148d8 Add GameState::EditAllowedForExtra metric. 2011-09-29 22:09:52 -04:00
Marcio Barrientos 6d4b5c8e76 Add one new Lua binding to add one more stage to player (bonus)
AddStageToPlayer(pn)
2011-09-21 16:21:23 -06:00
AJ Kelly fb2a63ca16 [GameState] Added GetEarnedExtraStage() Lua binding. 2011-09-07 23:48:04 -05:00
AJ Kelly 9c16ca4ef9 [GameState] add GetExpandedSectionName() Lua binding. 2011-08-07 19:08:47 -05:00
AJ Kelly 0285f7687f [GameState, SongUtil] Fix Issue 263 by not charging 2x stages for doubles when not using joint premium. 2011-08-07 18:33:35 -05:00
AJ Kelly ebe832a142 Move the expanded section name into GameState 2011-08-03 23:56:04 -05:00
Jason Felds dbdab4759e [Xcode4] May as well fix switch warnings.
Still need some assistance for the linker error.
2011-07-20 11:11:04 -04:00
Jason Felds 6f2fb1b673 Revert the wrong way to fix Fails. 2011-07-07 00:58:54 -04:00
Jason Felds 6bb873c8ce Wait...crap. This may not work. Revert. 2011-07-06 22:22:45 -04:00
Jason Felds c44e861df1 Only go through the enabled players. 2011-07-06 22:22:13 -04:00
Jason Felds db231b086c Add...well, more comment and no-op if anything.
Still, we have our target goal.
2011-07-06 21:34:01 -04:00
Jason Felds 5940bdeddb More abstraction. 2011-06-30 02:10:58 -04:00
Jason Felds 8bc2c38142 Replace #BEAT tags with #SECOND tags.
Split Timing has made this necessary.

Yes, this means another recache.
2011-06-30 01:11:38 -04:00
Jason Felds 6a4dd911a8 Forgot to SAFE_DELETE a pointer. 2011-06-15 02:36:53 -04:00
Jason Felds 5ef549d80d Warning fixes. 2011-06-11 09:36:17 -04:00
Jason Felds fec932e153 More prep work for better radar calculations. 2011-06-08 15:02:54 -04:00
Jason Felds 9ac07e1e2e Prepare for a place to process timing data.
Hopefully what I'm thinking of won't cause too much slowdown.
2011-06-08 14:43:59 -04:00
Jason Felds 0a7b9ce170 Some respect for OOP. (MasterPlayerNumber) 2011-06-06 20:40:11 -04:00
Jason Felds 1a41c32dd9 [splittiming] Better variable name.
ArrowEffects had a minor change, but the intent isn't up yet.
It needs to be so that when you go from the editor to the chart
for playing in Song Timing, it doesn't use the Step Timing.
2011-05-17 00:07:43 -04:00
Thai Pangsakulyanont f8f47c002b [splittiming] speed segment changes:
- allow first speed segment to take effect
- make speed segments take effect before delays
- make speed segments not affect cmods
2011-05-16 12:17:54 +07:00
Flameshadowxeroshin 6975b9393a [splittiming] GetSongPosition works. 2011-05-15 13:34:01 -05:00
Flameshadowxeroshin ec09a40d39 [splittiming] finish removing bindings 2011-05-15 08:21:16 -05:00
Flameshadowxeroshin 4d14654147 [splittiming] remove GameState "current timing" functions; add compatibility functions to 01 compat.lua 2011-05-15 08:17:32 -05:00
Flameshadowxeroshin 84f2457aa4 [splittiming] Add PlayerState.GetSongPosition() and GameState.GetSongPosition() to Lua; add lua bindings to SongPosition 2011-05-15 07:53:06 -05:00
Jason Felds d99e7b5c5b [splittiming] Re-establish Actor code. 2011-05-15 00:57:35 -04:00
Jason Felds a32a03b2e9 [splittiming] Trying to restore #COMBOS. 2011-05-14 20:05:27 -04:00
Jason Felds efb37b47d7 [splittiming] Hey FSX, catch! 2011-05-14 18:17:48 -04:00
Flameshadowxeroshin 6b0a939290 [splittiming] new EffectModes (not available from Lua yet), clarified error message 2011-05-14 17:03:49 -05:00
Thai Pangsakulyanont fb0fb41ac2 initialize m_bIsEditorStepTiming with true, to be sure. 2011-05-14 21:35:43 +07:00
Jason Felds 29e0bd3d2f [splittiming] Prepare timing bool switch.
This is needed in GAMESTATE due to it
also going to be called in NoteField.
2011-05-12 22:24:25 -04:00
Thai Pangsakulyanont 2507cf7c0a [splittiming] merge 2011-05-12 16:56:15 +07:00
Thai Pangsakulyanont eda727ddf9 [splittiming]
- load split timing from BMS files
- fix a crash because autogen'd steps don't inherit the timing from parent
- be more verbose in UpdateSongPosition
2011-05-12 16:44:24 +07:00
Jason Felds 8de6ddb7e3 [default -> splittiming] Cleanliness. 2011-05-11 17:07:20 -04:00
Jason Felds da51e26d07 Standardize conversion processes.
Too many arguments for or against the many methods:
stick to one inside a common function.

This commit will force recompilation of many files.
2011-05-11 15:58:31 -04:00
Thai Pangsakulyanont 1bf99bd528 [splittiming] make screenedit work with the steps' timing. 2011-05-11 20:53:40 +07:00
Jason Felds fb8b387fb7 [splittiming] Compiles and links.
Not guaranteed to work. Adjustments to GameState
and SongPosition may still be needed.
2011-05-10 14:53:59 -04:00
Thai Pangsakulyanont b8a4521f9c Move the reset code to SongPosition. 2011-05-10 21:22:01 +07:00
Thai Pangsakulyanont e1e605b736 [splittiming] move bogus variables back to GameState (210) 2011-05-10 20:03:51 +07:00
Thai Pangsakulyanont 241738c18b [splittiming] Let's break things again! (222)
We introduced a new class, called "SongPosition", that replaces some instance variables in the GameState class. (GameState::m_Position).
Then, you also have it in PlayerState class which keeps track of the position based on their steps. (PlayerState::m_Position).

Fixing the build errors:
- GAMESTATE->m_fSomething should now be:
  - GAMESTATE->m_Position.m_fSomething
  - pPlayerState->m_Position.m_fSomething (or m_pPlayerState for some instance!)
2011-05-10 19:54:05 +07:00
AJ Kelly 348df5f561 Fix issue 247; a crash occurs when exiting Practice mode from dance-solo, dance-threepanel, and popn-nine (all of which can only have one player). Not sure if any other modes will cause this crash. 2011-04-02 00:32:30 -05:00