1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-30 22:00:16 +00:00
Commit graph

304 commits

Author SHA1 Message Date
asimon-1
b52112bb12
Configurable default menu (#288)
* Allow saving current menu as new defaults

* Save menu defaults in the HTML file. Write html when saving

* Add effect when saving defaults

* Adjust effect size

* Use URL param to save defaults instead of ingame chord

* Update the menu to include checkbox for saving defaults

* Fix menu styling

* Update README

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-12-19 17:43:57 -08:00
jam1garner
9d1d2ca76b
Common module cleanup (#290)
* Cleanup src/common/consts.rs

* Cleanup src/common/events.rs

* Cleanup src/common/menu.rs

* Cleanup src/common/mod.rs

* Cleanup src/common/raygun_printer.rs

* Finish cleanup for common module
2021-12-19 13:03:44 -08:00
github-actions[bot]
81d0e34e5b
Format Rust code using rustfmt 2021-12-13 05:23:46 +00:00
asimon-1
f19bf47e2a
Slip options (#286)
* Try adding KIND_DOWN_SPOT for snake dthrow

* Fix snake dthrow status_kind

* Add slip conditions for diddy banana
2021-12-12 21:20:01 -08:00
asimon-1
195e52dad7
Remove tumble from statuses on is_in_hitstun (#284) 2021-11-10 14:55:04 -08:00
jugeeya
b52a956f61
Enable save states toggle (#276)
* enable save state toggle

* update version to beta version

* fix

* fix 2

* Add icon
2021-09-29 08:37:11 -07:00
jugeeya
bc3d2d8df5
Add rustfmt action (#265)
* Add rustfmt action

* Update rust.yml

* Format Rust code using rustfmt

* Update consts.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-14 14:05:48 -07:00
jugeeya
198bf23031
Add Firebase logging via HTTPS (#248)
* trying

* trying

* try with json to compile

* Update Cargo.toml

* Update Cargo.toml

* Update Cargo.toml

* Update Cargo.toml

* Update lib.rs

* Update Cargo.toml

* further testing

* continually testing

* simplify

* remove unnecessary diffs

* working!

* Use cargo-skyline image with devkitpro

* Update rust.yml

* Update rust.yml

* Remove clippy PR for now
2021-09-13 08:24:43 -07:00
asimon-1
40eec371b2
Add green glow to check.svg (#254)
* Add green glow to check.svg

* Remove inkscape metadata

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-09-03 08:02:16 -07:00
jugeeya
b454ffecfe
Fix Frame Advantage stuck at zero (#251)
* change init function

* Use menu::init
2021-09-01 10:40:08 -07:00
asimon-1
3fef1a78df
Restrict menu opening multiple times in rapid succession (#245)
Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-27 16:38:23 -07:00
jugeeya
cd01730af3
Allow frame advantage on hit for moves that send into tumble 2021-08-26 12:36:50 -07:00
jugeeya
c82cd073f4 Revert "Blujay's visualizer"
This reverts commit f8dba57044.
2021-08-24 19:27:29 -07:00
asimon-1
ee56f99652 Change menu file name to training_menu.html (#239)
Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-24 19:27:04 -07:00
jugeeya
f8dba57044 Blujay's visualizer
Use blujay's visualizer plugin for hitbox/hurtbox visualization (#236)

* working

* Update rust.yml

Fix GH Action for getting visualizer.nro

Fix to visualization, allow hitbox/hurtbox toggle
2021-08-24 19:27:04 -07:00
jugeeya
555bc6927e
add nn hid hook function 2021-08-20 12:05:01 -07:00
jugeeya
345fd619a1 use nn_hid hook for compatibility with results screen skip 2021-08-20 18:48:40 +00:00
asimon-1
516c85ec30
Menu help text (#234)
* Add footer with help text

* Set help text strings

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-17 16:43:01 -07:00
asimon-1
b4627d29ce
Fix question icon opacity (#233)
Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-17 09:23:00 -07:00
jugeeya
841ea5e8fe
Single Option Menu (#231)
* add flag

* Update clickToggle() to handle single-option submenus (#232)

Co-authored-by: asimon-1 <asimon1@protonmail.com>

Co-authored-by: asimon-1 <40246417+asimon-1@users.noreply.github.com>
Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-16 17:09:51 -07:00
jugeeya
a4533a4810
Inclusive range for alphabet 2021-08-16 17:05:52 -07:00
jugeeya
40a5a08754 add simple macros for onoff/single option menus 2021-08-16 13:48:58 -07:00
asimon-1
49c30bb30d
Menu export bugfix (#229)
* Use jQuery to handle class addition/removal

* Use .is-appear class instead of innerHTML for goBackHook

* Revert unrelated comment

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-16 11:48:00 -07:00
asimon-1
dcdb670a42
Use jQuery to handle class addition/removal (#227)
Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-16 10:55:32 -07:00
jugeeya
6ffec53204
Remove threading from file write (#226) 2021-08-16 09:35:11 -07:00
asimon-1
2271d533c0
Add Menu Icons (#225)
* Center icons

* Add icons

* Adjust CI to upload all artifacts

* Also include icons in .zip

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-15 18:55:51 -07:00
jugeeya
f41bfff9f8
Load menu from file, write on menu exit (#222)
* Load menu from file, write on menu exit

* Update lib.rs

* Update lib.rs

* Update lib.rs

* Update lib.rs

* Update lib.rs

* Update lib.rs

* Update lib.rs

* Update menu.rs

* Try response as well

* Don't hold response variable

* use static mut option

* everything in a thread

* remove brace

* Try GH actions change

* try

* try

* use container tag

* test

* try abs path

* try checkout

* try showing

* try installing

* test proj

* try stable toolchain spec

* try image

* explicit version

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Try clippy

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* Update rust.yml

* fixes

* only if the conf makes sense

* small clippy fixes
2021-08-15 18:41:40 -07:00
jugeeya
46484bafff
Make changes to satisfy clippy; add cargo clippy PR commenter (#223)
* raygun print frame advantage

* Don't release, but allow action for raygun-print branch

* Add as menu option, only print in that case

* revert change to workflow file

* fixes

* add workflow clippy spec
2021-08-14 19:06:25 -07:00
asimon-1
18cca3023c
Add ability to reset menus to the default (#221)
* Make a separate default menu

* Add "default" to menu structs in menu.rs

* Add resetSubmenu and resetAllSubmenus functionality

* Add Frame Advantage default

* Add reset buttons to menu header

* Right-justify the reset button descriptions

* Update comments

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-11 07:45:57 -07:00
jugeeya
3d563b9450
Add back frame advantage using raygun shot printer (#219)
* raygun print frame advantage

* Don't release, but allow action for raygun-print branch

* Add as menu option, only print in that case

* revert change to workflow file
2021-08-09 21:33:03 -07:00
asimon-1
427d6ee953
Instructions for Version Update from v2.6 (#218)
* Do version check and remove overlay if it exists

* Use format! instead of mutable string

* Handle missing overlay

* Use cargo package version instead of hardcoded str

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-03 15:03:47 -07:00
asimon-1
b57cf538f5
Mirrored save states (#216)
* Add mirrored save states to menu and save_states.rs

* Update LongDelay.into_string()

* Add missing submenus

* Add mirrored save states to menu and save_states.rs

* Fix outdated reference to MENU_STRUCT

* Change MIRROR_STATE type from bool to f32

* Move should_mirror call

* Add to_url_param() for SaveStateMirroring

* Fix Facing Direction mirroring bug

Co-authored-by: asimon-1 <asimon1@protonmail.com>
Co-authored-by: jugeeya <jugeeya@live.com>
2021-08-01 12:53:00 -07:00
asimon-1
91348ed6cd
More menu improvements (#215)
* Update LongDelay.into_string()

* Add missing submenus

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-08-01 12:47:05 -07:00
asimon-1
8757bb9a0e
Web Menu Improvements (#214)
* Add workflow_dispatch

* Fix menu items that are too wide

* Add logic to goBackHook() to only exit if all submenus are closed, and otherwise to close the submenus

* Display question icons

* Complete into_string() for Action, Delay, and BoolFlag structs

* Update into_string() for Direction, Shield, OnOff, Action, Delay, BoolFlag, and SdiStrength to address compiler warnings

* Fix menu items that are too wide

* Add logic to goBackHook() to only exit if all submenus are closed, and otherwise to close the submenus

* Display question icons

* Complete into_string() for Action, Delay, and BoolFlag structs

* Update into_string() for Direction, Shield, OnOff, Action, Delay, BoolFlag, and SdiStrength to address compiler warnings

* Complete into_string() for LongDelay

* Reformat menu.html and fix tag pairs

* Add onoff submenu type in HTML

* Add onoff submenu type

* Add push line to add_sub_menu_onoff

* Refactor settings export to use jQuery.param()

* Set initial menu settings per URL GET parameters

* Add macro to build URL parameter string

* Fix bitflag export error

* Write menu file when modpack is loaded

* Fix OnOff displays

* Remove dev files

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-07-28 20:51:41 -07:00
asimon-1
6b87295216
Only apply ledge::is_enable_transition_term to CPU (#212)
Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-07-21 14:45:47 -07:00
asimon-1
3973ff6d65
Implement Longer Ledge Delays (#211)
* Add workflow_dispatch

* Add LongDelay bitflag type for ledge delays, and change into_index() calls to into_delay/into_longdelay

* Override default ledge climb

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-07-20 10:17:56 -04:00
asimon-1
bbbf2ac898
Launch indicator fix for #205 (#210)
* Add workflow_dispatch

* Use persistent variable to track DI case instead of trying to roll only on the first frame of hitstun

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-07-16 08:24:12 -04:00
asimon-1
cd8755012c
Fix GH Actions Workflow (#208)
* Add workflow_dispatch

* Add specific lock_api version

* Update to latest cargo-skyline version

* Update workflow with skyline-rs toolchain

* Separate cargo-skyline install and toolchain update

* Use Rust docker container

* Try rustocker/rustup container

* Revert "Try rustocker/rustup container"

This reverts commit 26fff6a44f.

* Try fork of cargo-skyline

* Revert "Try fork of cargo-skyline"

This reverts commit 0465c39e94.

* Try installing own Rust

* Fix syntax error

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-06-22 13:47:29 -07:00
asimon-1
5fa0ff135d
DI Indicator Fix and Left/Right Directions (#207)
* Only change DI direction on the first frame of the animation

* Add left/right DI directions

* Add L/R airdodge direction

Co-authored-by: asimon-1 <asimon1@protonmail.com>
2021-06-15 19:54:19 -07:00
sidschingis
6f218ead89
210416 grid layout (#202)
* Apply Grid Layout

Arrange collapsed Lists in a grid.

Once expanded the list will take the full width

* Formatting
2021-04-16 14:34:09 -07:00
jugeeya
2281e36556 small changes 2021-04-15 19:44:42 -07:00
jugeeya
1a273f7cbf
Initial Web Menu Implementation (#170)
* initial commit with some nice css

* add beginnings of templating. revert to qa model

* add most options visually

* add parser and full input checks

* separate menu code, use ControlModule

* add tests for menu rendering locally

* wip sliders

* add AttackAngle

* remove tesla overlay

* begin with into_string

* add slider.js

* don't use in html yet

Co-authored-by: jugeeya <jugeeya@llive.com>
2021-04-14 10:21:51 -07:00
jugeeya
2ddc7cd92f fix typing for hazards_manager 2021-04-11 20:20:46 -07:00
jugeeya
7b0daca018 add outside_training_mode to uploaded artifacts 2021-01-22 19:21:17 +00:00
sidschingis
d24a94835e
Wall Tech Options (#188)
* Extract Method

* Untangle conditions

* Extract Method

* Fix Swapped Constants

* Apply No Tech Option

* Fix Bugs

* Return early on match

* Also cleanup ground tech

* Fix unused warning

* Support Wall Tech Jumps
2021-01-22 11:04:58 -08:00
sidschingis
8189c07e30
Add SDI Strength Toggle (#182) 2020-12-21 07:09:37 -08:00
asimon-1
509f2383ac
Ledge hang (#180)
* Initial work on ledge hang

* Change ledge hang logic from a delay to a persistent selected option

* Disallow ledge-climb if WAIT is picked

* Move is_enable_transition_term hook from lib.rs into existing mod.rs hook

Co-authored-by: Andrew Simon <asimon@domeng.com>
2020-12-10 10:03:42 -08:00
sidschingis
ebc046db1d
Add Save State Damage Toggle (#176)
Added toggle to not overwrite the damage when loading a save state
2020-11-20 09:48:14 -08:00
sidschingis
950407553f
Add Attack Angle (#174)
* Add Attack Angle

Added toggle for chosing angled attacks

* Add Help Text

* Actually Apply Help Text
2020-11-09 17:57:35 -08:00
jugeeya
2e5097bcd0 nit refactor: use OnOff when possible 2020-11-08 19:35:42 -08:00
sidschingis
30e38b1256
Add Constant Shield Toggle (#173)
* Extract Method

* Add Constant Shield

Shield that takes damage but doesn't decay

* Constant Shield Fix

* Update Shield Hold Interaction

Only set decay flag if shield hold is selected
2020-11-06 13:30:48 -08:00
jugeeya
9df85a7d05
Fix lack of import for L2CValue 2020-10-22 22:28:13 -07:00
jugeeya
1c827df52a
Quickfix for infinite shield 2020-10-22 21:03:20 -07:00
jugeeya
9746349a69 refactor, disable input delay outside training, disable recording 2020-10-01 02:46:25 +00:00
jugeeya
c6d9c9c322
Small buffer mash fix 2020-09-29 08:48:24 -07:00
jugeeya
c81d996312
Fix buffer action when empty 2020-09-28 14:00:45 -07:00
jugeeya
e62d602895 refactor ANGLE_NONE 2020-09-27 23:56:18 +00:00
jugeeya
67dec0402d merge with master 2020-09-27 23:24:52 +00:00
jugeeya
67a03dd38a satisfy clippy rules 2020-09-27 22:24:50 +00:00
jugeeya
0aa387552f
input record typo 2020-09-25 21:04:34 -07:00
jugeeya
c6c600aae1 enable janky input_recording 2020-09-26 01:07:13 +00:00
jugeeya
8301d73790 use nnsdk hid imports 2020-09-26 00:57:25 +00:00
jugeeya
c83371d2c4 add all controller support for input_delay 2020-09-26 00:49:06 +00:00
sidschingis
0107e31b85
Fix Shield: Hold (#164)
Fixed the first hit not applying damage when  normal shield hold is selected
2020-09-16 13:07:06 -07:00
sidschingis
2471b4acf9
Enable Dash Attack Again (#163) 2020-09-14 14:00:42 -07:00
jugeeya
7b362c8330
Params hook refactor, basis for input delay (#162)
* use Params hook

* Add input delay
2020-09-14 13:43:06 -07:00
jugeeya
1885258c4e Refactor to use param object 2020-09-08 23:04:49 -07:00
jugeeya
e74ee787f3 Fix infinite shield with projectiles 2020-09-08 21:10:27 -07:00
jugeeya
33419b30c4 Fix tech bugs; hazards control refactor 2020-09-07 22:05:17 -07:00
Connor Davis
475bc4ea8f
Added stage hazard control (#158) 2020-09-04 08:59:21 -07:00
jugeeya
ba939b3be1
Remove enable transition check for ground tech 2020-08-30 01:16:14 -07:00
jugeeya
02f4095c37 Add Miss Tech Options; Save States Control bug 2020-08-29 11:03:33 -07:00
sidschingis
4753258874
Shield Tilt & Refactor Training Checks (#150)
* Rename Module

left_stick => air_dodge_direction

* Extract Method

Added shared hook that is called once per frame per fighter

* Refactor Training Mode Checks

Moved checks to skyline hook

* Add Reset Module

Unlink SDI from mash toggle

* Add Shield Tilt Toggle

* Version +

* Fix Rumble

* Remove Debugging Code
2020-08-27 16:35:38 -07:00
sidschingis
7d153da81c
Add Ledge/Aerial Delay Options (#147)
* Fix Multi Followups

* Add Aerial Delay Toggle

* Add Ledge Delay Toggle

* Add More Delay Options

* Add More Delay Options

* Add Dash Toggle

* Version +
2020-08-24 13:57:22 -07:00
sidschingis
22e2852df7
Reduce SDI Pulses (#146)
Reduced SDI to every 8 frames to match the stock "CPU Shuffling: A lot"  option
2020-08-22 15:33:07 -07:00
jugeeya
aa757da61d Merge branch 'master' of https://github.com/jugeeya/UltimateTrainingModpack 2020-08-21 15:17:48 -07:00
jugeeya
1db42feab8 check_hit_stop_delay_command is not in the common NRO 2020-08-21 15:17:37 -07:00
sidschingis
1e4fa4e006
Deref Constants (style) (#144) 2020-08-21 08:42:47 -07:00
sidschingis
22c68f1b92
Reset Counter when choosing direction (#143) 2020-08-20 17:34:03 -07:00
jugeeya
15767e8cf7 remove dash attack for now 2020-08-19 20:40:49 -07:00
jugeeya
bec36ec897 fix empty mash option breaking 2020-08-19 20:31:15 -07:00
jugeeya
f01be3430e persist menu configs across boots 2020-08-19 15:53:44 -07:00
sidschingis
5fee828169
Fix Aerials (#142)
* Revert "Unnecessary global for aerial action buffer (#141)"

This reverts commit 4cc66547c0.

* Remove Check

Non Aerials will just return None in
into_attack_air_kind()
2020-08-19 15:28:33 -07:00
sidschingis
4cc66547c0
Unnecessary global for aerial action buffer (#141)
Can just use the current buffer value
2020-08-18 10:34:57 -07:00
sidschingis
53c361686f
Mash Fixes (#140)
* Fix Shield Toggle

Fixed air dodging when shield is buffered

* Update Mash Reset

Fixed followups not being cleared on reset (training mode/ save state/ tech)

Fixed resetting when landing after a mash toggle

* Version +

* Use Existing Constant

* Adjust Versioning
2020-08-17 15:05:40 -07:00
sidschingis
1835be9cfb
Add SDI Toggle (#139) 2020-08-17 12:37:02 -07:00
jugeeya
9b0ede64b9 turn off sound effects for save states 2020-08-16 18:05:45 -07:00
jugeeya
7e1d8a054f refactor Save States to structs-- fix plat issues 2020-08-16 16:57:46 -07:00
jugeeya
abf7d34332 merge with master 2020-08-16 16:33:54 -07:00
jugeeya
a7da2c15bc fix Save State bugs with Link, Richter 2020-08-16 16:33:27 -07:00
jugeeya
647e7fe27e
Save States ledge bug 2020-08-16 12:45:38 -07:00
sidschingis
c961d028d0
Apply Bit Flag (#138)
* Apply Bit Flag

Fast Fall
Full Hop
Falling Aerial

* Fix DI

Fixed neutral DI not overwriting previously set DI
2020-08-16 11:52:09 -07:00
sidschingis
da66544104
Bit Flag Refactors: Delay, Direction (#137)
* Cleanup

* Add Bit Flag

Directions

* Apply Bit Flag

Delay options

* Version +
2020-08-15 08:52:29 -07:00
sidschingis
7ff8185a65
Apply Bit Flags to Mash/Defensive Options (#136)
* Apply Bit Flag

Defensive Options

* Apply Bit Flag

Followups

* Apply Bit Flag

Mash options

* Update Version String
2020-08-14 12:12:50 -07:00
sidschingis
12807258be
Add Bitflag Macro (#135)
get_random
2020-08-14 10:35:57 -07:00
sidschingis
8feab4cf17
Shield Flash Workaround (#134)
* Fix Shield Buffer

Shield doesn't work with cat_flags

* Move unsafe declaration inwards
2020-08-13 14:20:56 -07:00
jugeeya
6dd2f395fd use alternative DI method: based on player relative position 2020-08-13 13:34:22 -07:00
jugeeya
ca4f0b3122 use alternative DI method: based on player facing direction 2020-08-12 20:29:31 -07:00
jugeeya
4f779c6f57 More mash bug fixes 2020-08-11 17:28:37 -07:00
sidschingis
3247ecb711
Bug Fixes (#133)
* Revert To Command Flags

* Fix Rising Aerial

* Fix Roll/SpotDodge
2020-08-11 15:46:46 -07:00
sidschingis
96008c6ea3
Separate Tech Rolls (#126)
* Add Wrapper for rand

* Separate Tech Rolls
2020-08-11 12:57:40 -07:00
sidschingis
48391ac27c
Revert To Command Flags (#129) 2020-08-11 12:52:46 -07:00
jugeeya
716300b01c Fix DI in/away errors 2020-08-10 20:21:45 -07:00
astraycat
0388a08a16
Tech and Ledge options as bitflags (#127)
* Change TechOptions to TechFlags

* update gitmodules

* shouldn't have pushed that

* change ledge options as well

incorp change from review
2020-08-09 22:32:49 -07:00
jugeeya
e7ec867581 fix frame advantage buffer bug 2020-08-07 17:42:14 -07:00
sidschingis
658c0fe63c
Fix Tech Followup (#123)
* Add Dash Attack

* Extract Method

try_change_status

* Code Formatting

* Fix Tech Followups

Fixed resetting after teching

* Update Mash

Restore mash after footstool
2020-07-31 08:35:05 -07:00
sidschingis
8c03361b8e
Add Dash Attack (#119)
* Add Dash Attack

* Extract Method

try_change_status

* Code Formatting
2020-07-29 13:58:46 -07:00
sidschingis
1063aa5482
Update Mash (#118)
* Update mash.rs

Use StatusModule::change_status_request_from_script

* Extract Method

* Fix Air Dodge

* Add Reset Trigger

* Update Mash

Split up buffering and performing the action

Moved performing hook to fix being a frame late
2020-07-29 12:34:34 -07:00
sidschingis
e4850705fe
Fix Airdodge (#117)
* Update mash.rs

Use StatusModule::change_status_request_from_script

* Extract Method

* Fix Air Dodge
2020-07-29 11:48:07 -07:00
sidschingis
a959a24edc
Update mash.rs (#115)
Use StatusModule::change_status_request_from_script
2020-07-24 10:41:35 -07:00
sidschingis
2aba252f10
Update Character Specifics / Fast Fall (#112)
* Add Module

Added separate module for character specific handling

* Formatting

* Update Fast Fall

Updated status check
Check against possible statuses instead of impossible ones

* Add Character Check

* Apply Character Check
2020-07-18 13:57:23 -07:00
jugeeya
2dc8b1b5b9 ensure falling for fastfall toggle 2020-07-12 10:41:48 -07:00
jugeeya
8b91b452e5 Merge branch 'master' of https://github.com/jugeeya/UltimateTrainingModpack 2020-07-12 10:39:32 -07:00
jugeeya
f8b61f485a add StageManager 2020-07-12 10:39:23 -07:00
sidschingis
c735ad5c6e
Add Bowser UpB Workaround (#109)
* Add Bowser UpB Workaround

Bowser uses a different status during upB for some reason

* Use Constants
2020-07-09 11:35:44 -07:00
jugeeya
6f5c30fd18
missed tech effect with hitbox visualization on 2020-07-07 08:28:54 -07:00
sidschingis
0fc8fdf999
Followups (#108)
* Fix Late Mash

Fixed being a frame late
Flag is now immediately returned until the action is performed

Also restore Airdodge =>  Shield when grounded behavior

* Update TrainingModpackOverlay

* Add Follow Ups WIP

Attack followups will currently overwrite the aerial toggle

* Simplify Shield

Extra attack handling is no longer needed

* Apply Action Enum

Replacing Mash

* Fix Random OOS

* Implement Queued Mashes

* Update Shield Suspension

Removed need for frame counter.
Update shield suspension when the mash buffer is updated.

Fixes follow ups oos

* Cleanup

* Cleanup

* Update Aerial Flags

* Fix Aerial Flag

* Fix Copy Paste Error

* Use Mash Toggles For Ledge Jump

Moved menu logic to buffer_menu_mash
2020-07-05 13:13:54 -07:00
sidschingis
a19245e126
Fix Mash Options (#107)
* Fix Late Mash

Fixed being a frame late
Flag is now immediately returned until the action is performed

Also restore Airdodge =>  Shield when grounded behavior

* Update TrainingModpackOverlay
2020-07-03 15:16:21 -07:00
jugeeya
ee7a485f11
Revert to previous hitbox methods 2020-06-30 07:59:53 -07:00
sidschingis
e665509042
Add Fast Fall Frame Delay + OOS Reaction Frame Delay (#105)
* Fix Full Hop Rising Aerials

* Add Fast Fall Delay

* Fix Frame Counter Reset

Fixed not resetting if landing before being able to fastfall

* Update Frame Counter

Moved delay logic to frame counter module

Update unsafe blocks

* Add OOS Reaction Time
2020-06-29 16:00:01 -07:00
sidschingis
a12ae53140
Add Remaining Smash Attacks (#104) 2020-06-28 14:24:41 -07:00
sidschingis
5cb981c268
Jump Toggles (#103)
* Code Formatting

* Cleanup

* Implement Tilts

* Update TrainingModpackOverlay

* Move is_shielding to Commong

* Fix Flash Shield

Fixed not dropping shield again

* Formatting

* Remove ToDos

* Use Generic OnOff Enum

* Add Falling Aerial Toggle

* Implement Full Hop Toggle

* Add Comments
2020-06-28 13:41:51 -07:00
sidschingis
186c6ddc2d
Implement Tilts (#102)
* Code Formatting

* Cleanup

* Implement Tilts

* Update TrainingModpackOverlay

* Move is_shielding to Commong

* Fix Flash Shield

Fixed not dropping shield again

* Formatting

* Remove ToDos
2020-06-28 12:21:20 -07:00
sidschingis
c6cf52af33
Refactor Mash Module (#101)
* Add Frame Counter Module

* Allow Multiple Frame Counters

* Apply Frame Counter

* Add Enum For Fighter Id

* Simplify Calculation

* Restore Original Indentation

* Add Transition Checks

Check if the transition is possible before setting the flag

* Add Normal Attacks

* Update Mash

Recactored attack options
Extracted sub functions

* Remove deprecated function

* Update Mash Module

Handle all attack options through the mash module.

* Fix Some OOS Options

Jump/Aerial/UpB

* Update Mash Module

Return the flag in get_command_flag so we don't need to borrow a mut

Removed transition check for usmash for now

* Fix Multi Buffer

Fixed buffering more than once per shield interaction

* Fix drop shield options

Options that require shield drop now work

* Use Minimal Checks

Commented out unnecessary checks

* Fix USmash OOS

* Fix Roll/Dodge OOS

* Fix Aerials

Fixed starting 1 frame late

* Fix USmash OOS again

* Remove PrintLns

* Update TrainingModpackOverlay

* Remove unused Methods

* Default To FastFall Off

* Update Defensive Options

Remove Shield Button Checks outside shield module.

* Update Defensive Options

Now handled through mash buffer

* Formatting

* Cleanup

* Reimplement Random Mash

* Add ToDos
2020-06-28 11:02:26 -07:00
sidschingis
63a3358a0f
Add Frame Counter Module (#98)
* Add Frame Counter Module

* Allow Multiple Frame Counters

* Apply Frame Counter

* Add Enum For Fighter Id

* Simplify Calculation

* Restore Original Indentation
2020-06-27 07:22:02 -07:00
sidschingis
099ae06e89
Add Fast Fall Toggle (#97)
* Add Fast Fall Toggle

Spark effect is currently missing

* Change Condition Order

* Fix Spark Effect
2020-06-19 14:54:37 -07:00
jugeeya
a3ea3e7332 fix save states staling, position under stage 2020-06-17 23:01:19 -07:00
jugeeya
0a6a26b6b2 refactor to as_lua_int and lua bools when possible 2020-06-16 22:43:42 -07:00
sidschingis
7befc07555
Frame Advantage Refactor (#91)
* Auto Format

* Remove unused include

* Add Module

Moved Frame advantage code to separate module
2020-06-16 12:22:14 -07:00
jugeeya
ab211a7aee Always remove menu conf file on startup (for version upgrade bug) 2020-06-16 09:16:45 -07:00
jugeeya
79a84fba3a
Calculate Frame Advantage (#85)
* initial attempt

* frame adv correct calculation

* add to menu

* add menu support

* changed menu return button combo
2020-06-15 23:13:03 -07:00
jugeeya
2b2a2eb440
Fix fwrite call 2020-06-15 15:27:41 -07:00
jugeeya
889299eca6
Fix c_str macro 2020-06-15 15:09:26 -07:00
jugeeya
2014d486e3
use c_str macro 2020-06-15 14:10:42 -07:00
jugeeya
41b1ba8717
Add imports necessary for removing conf file 2020-06-15 12:57:18 -07:00
jugeeya
12a6ede92b
Remove conf file on startup 2020-06-15 12:42:19 -07:00
jugeeya
94d9d5623d
Add Directional Air Dodge (#86)
* Rename Enum

DirectionalInfluence => Direction

* Move Angle Calculation To Common

Renamed NO_DI to ANGLE_NONE and moved to common

* Simplify Condition

Removed need to check for no DI twice

* Reuse Angle Calculation

get_random now returns a random direction instead of the angle directly

* Add Left Stick Mod

Currently only used for air dodges

* Extract Shared Condition

* Remove Unused Includes

* Fix Air Dodge Mash

Fixed always flashing shield when set to air dodge mash

* Update Menu

* Update TrainingModpackOverlay
2020-06-15 10:57:08 -07:00
sidschingis
401bf7e98b
Fix Grab OOS (#89)
Fixed skipping the 4f additional shield hold
2020-06-15 07:25:25 -07:00
sidschingis
21b16253cf Update Menu 2020-06-13 22:52:27 +02:00
sidschingis
3287a96b63 Fix Air Dodge Mash
Fixed always flashing shield when set to air dodge mash
2020-06-13 22:51:23 +02:00
sidschingis
8b1713fed0 Remove Unused Includes 2020-06-13 22:35:21 +02:00
sidschingis
ce865a70f2 Extract Shared Condition 2020-06-13 22:34:37 +02:00
sidschingis
be16194528 Add Left Stick Mod
Currently only used for air dodges
2020-06-13 22:15:44 +02:00
sidschingis
2fc1c75ab6 Reuse Angle Calculation
get_random now returns a random direction instead of the angle directly
2020-06-13 21:55:23 +02:00
sidschingis
cca5072185 Simplify Condition
Removed need to check for no DI twice
2020-06-13 21:35:03 +02:00
sidschingis
715c28dd6c Move Angle Calculation To Common
Renamed NO_DI to ANGLE_NONE and moved to common
2020-06-13 21:34:06 +02:00
sidschingis
18290df236 Rename Enum
DirectionalInfluence => Direction
2020-06-13 21:24:15 +02:00
jugeeya
919196c38b account for grounded options when mashing in neutral 2020-06-12 23:04:05 -07:00
sidschingis
32f7fb0808
Add Neutral Mashing Toggle (#84)
* Add Mash Toggle

Added toggle to set the cpu to also mash in neutral

* Add Utility Functions

is_grounded
is_airborne

* Fix Neutral Mashing Aerials

Added jump flag

* Update README.md

* Changed Button Combination

Changed mash Toggle to Attack + Dpad Up/Down

* use Tesla overlay for mash in neutral

* add menu commit for neutral mash

* Update README.md

Co-authored-by: jugeeya <jugeeya@live.com>
2020-06-12 22:45:25 -07:00
sidschingis
e67c69ed63
Code Refactoring (#83)
* Update TrainingModpackOverlay

* Apply Auto Formatter

* Auto Format

* Extract Modding Behaviour

Moved to separate function

* Guard Clause

* Guard Clause

* Use Match Clause

* Fix Comment

* Extract Shared Condition

* Extract Modding Function

* Guard Clause

* Guard Clause

* Guard Clause

* Guard Clause

* Guard Clause

* Extract Shared Code

* Fix Variable Reference

Properly borrow the variables

* Fix Missed Tech Buffering

* Move Training Mode Check To Start

* Guard Clause

* Guard Clause

* Extract Modding Behaviour

* Extract Function

For randomizing the di angle

* Guard Clause

* Guard Clause

* Simplify Loop

Separate condition from behaviour

* Extract Modding Behaviour

* Extract Modding Behaviour

* Formatting

* Fix Typos

* Fix Typos

* Fix Mash Toggle

! was binding stronger than ==

* Move Negation Inwards

* Reduce Nesting

* Extract Shared Condition

* Extract Method

Moved random command list definition to separate function
2020-06-11 14:57:35 -07:00