Discuss Scratch

NIKI-KOLCHAGOV
Scratcher
500+ posts

SWEAT team Discussion

p-p-p-p-p-p-p-p-p-p- wrote:


The animations look cool and pretty nice
I especially like how when you click on a setting another one related to it pops up and other icons free space for it
NIKI-KOLCHAGOV
Scratcher
500+ posts

SWEAT team Discussion

p-p-p-p-p-p-p-p-p-p- wrote:

NIKI-KOLCHAGOV wrote:

an we need more exercises and Data some exercises are repetitive and sometimes but not often Advanced gives easier workouts and Beginner gives long and more challenging workouts at times

This is the distribution of exercises based on muscle group.

So essentially, if you want to do a core workout, you have 50 options (most don't even target core), but if you want to do a Forearm exercise you have 5.

Luckily for us, the project is completely separate from the data. If I ever want to update the supported workouts, it's just an import away.

Since I'm really focused on the code right now I'm not going to worry about it, but it is definitely something I want to review before release.

The information on the exercises is completely AI generated. So that is definitely a problem but not a bridge I am crossing right now. Treat the current exercises as a placeholder in order to demonstrate the workout capabilities of SWEAT.
Oh ok yea you could just add more and like you said we should focus more on firstly finishing the project and after that we can finalize stuff like that
I'm surprised you even made a bar graph for it not fully sure what the bottom numbers demonstrate though
I didn't know the descriptions were AI generated
They looked pretty decent
NIKI-KOLCHAGOV
Scratcher
500+ posts

SWEAT team Discussion

p-p-p-p-p-p-p-p-p-p- wrote:

Today I'm working on the Workout Generator and the WO Generator Display.

I've fixed a couple bugs and completely rewrote the algorithm.

Previously, there was a pool of all eligible workouts, and it picked one from each workout group and removed it from the pool. When there were no more workouts for a particular muscle group, it would re-add all the workouts for that group into the pool.

Now, the system keeps in mind how long it has been since a workout has been chosen, and picks the last picked workout (if there are multiple, it picks at random). Since there is overlap in muscle groups, hopefully this won't create a cycled loop, but we will see.

Here is a comparison of some workouts generated with the same parameters before and after:


As you can see, the second and fourth workouts are both a lot more diverse and have more spread out workouts than the first and third. (This is also because of a major glitch that I have since found and patched)
It looks almost the same but the new one does look more aesthetic and more sense making
I hope it doesn't cause confusion or other problems later on when we make a more advanced algorithm
NIKI-KOLCHAGOV
Scratcher
500+ posts

SWEAT team Discussion

p-p-p-p-p-p-p-p-p-p- wrote:


First iteration of a dark mode for the Workout Menu.

I'm also playing around with the aura below the menus. Here is the Freeplay one:

I think it's cool and gives a nice distinction between menus. Let me know what you guys think though.
I personally don't really find it that nice maybe just the glow effect without the line idk doesn't seem that good to me

A Tip for Dark Mode would be to make the colors more bright for better contrast and aesthetics

Last edited by NIKI-KOLCHAGOV (April 8, 2025 08:55:15)

NIKI-KOLCHAGOV
Scratcher
500+ posts

SWEAT team Discussion

I like the idea of this screen and the button for generate similar but by that is it meant similar exercises but are not the same or the same but with others added why not both
I think it would also be nice to be able to edit them in a workout editor that would be made for other things not just that so it would be separate in a way but still accessible trough a button or something
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion

NIKI-KOLCHAGOV wrote:

Oh I understand the slider for the time intervals but I'm still unsure that it's an accurate estimation
It's not, but there isn't a good way to estimate and it gives beginners a good perspective so they don't pick an arbitary number of sets.

NIKI-KOLCHAGOV wrote:

The animations look cool and pretty nice
I especially like how when you click on a setting another one related to it pops up and other icons free space for it
Thanks. Currently only Dictation does this since its the only setting with an extra feature, but it is certainly an adjustable thing that I can modify in the future.

NIKI-KOLCHAGOV wrote:

I'm surprised you even made a bar graph for it not fully sure what the bottom numbers demonstrate though
The bottom numbers are the technical stuff (every muscle group has a value). The bar graph wasn't hard to make cause I just chugged the existing numbers into a quickly made algorithm on scratch and exported the data onto a spread sheet, it didn't take more than 10 minutes,

NIKI-KOLCHAGOV wrote:

I didn't know the descriptions were AI generated
They looked pretty decent
They were generated pre-AI dominance (Late 2023). It wasn't like I automated something and didn't check over them, I was working very closely with AI but I had it create better descriptions because I'm pretty bad at describing things.

NIKI-KOLCHAGOV wrote:

It looks almost the same but the new one does look more aesthetic and more sense making
I hope it doesn't cause confusion or other problems later on when we make a more advanced algorithm
The first workout is just a demonstration of what I did (the workouts are as far away from each other as possible). That workout will almost never come up, only if you pick weird settings like I did. The second workout is a better demonstration, and as you can see it is very versatile compared to its counterpart.

NIKI-KOLCHAGOV wrote:

I personally don't really find it that nice maybe just the glow effect without the line idk doesn't seem that good to me

I'm using the line to help users understand what part of the project they are in, since every set of menus has its own color. It is a functional design

NIKI-KOLCHAGOV wrote:

I like the idea of this screen and the button for generate similar but by that is it meant similar exercises but are not the same or the same but with others added why not both
This is just the same as the “regenerate' except it is answering the Generator Questions for you based on your workout.
But you do pose a good idea, I'm definitely going to consider a ”similar workouts" section of the Editor.

NIKI-KOLCHAGOV wrote:

I think it would also be nice to be able to edit them in a workout editor that would be made for other things not just that so it would be separate in a way but still accessible trough a button or something
Yeah the Editor is already on the main workout menu. Just hasn't been implemented yet.


Thanks for all your feedback! I'm going to get back to work now on making those buttons functional.
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion

Around 2 years ago, the idea for SWEATFit started being implemented. However, the first build didn't come out for another 2 weeks or so. So, on April 23rd, I want to bring you guys Build 320.

HOWEVER, I'm currently on vacation. I don't have much left on my “To-Do” list for Build 320, but the only thing left (the editor) may be a concerningly large problem. So, I'm going to work as hard as I can but no promises.

In other words, the regenerate button is functional. But it also has a semi-algorithm so it is very complicated and took a lot of time to create, so I have to get back on track asap
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion

I'm going to have a pre editor version of Build 320 ready for release very soon, and if I finish the editor before April 23rd I will release Build 320 with the editor, otherwise I won't. But a build will come on April 23rd, I'm just not sure if it should include the Edtior or not.


I'm working on some VFX improvements right now.
(the text “Completed Sets”)
(the embers coming from the burnout, very early in progress and definitely subject to change)
Both of these are very small QOL changes but are definitely adding up. I will share the Pre-editor changelod when I get it so you can see how many improvements I have made.


Also Niki, I don't need you to remake the Generator UI, I think they are definitely good enough to be released with minor changes. I will definitely make changes if you have suggestions, but I don't think it's worth spending the time to completely remake. HOWEVER, when I make the Editor UI, it will definitely need a redesign because I am planning on using mockups from a year and a half ago made by myself. So I will definitely need help designing these.

Last edited by p-p-p-p-p-p-p-p-p-p- (April 14, 2025 02:05:52)

p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion

8.5k Blocks of Code already. 25% more than Preview 1 and 57% more than Build 310.

1.4k of those blocks are in the Generator, which has some of the best algorithms I've ever come up with. (Note: The Generator also contains all the code for the Workout Preview since it needs similar assets and it would be a waste of performance and loading time to duplicate those assets)

From the more technical side, here is a list of all the algorithms inside of the Generator that I have had to create:
The ability to filter out workouts based on given requirements (does a workout meet the needs of a user)
The ability to recognize the time since a workout was used last in Generation and keep it from being reused if at all possible
The ability to assemble a usable workout CODE based on a list of workouts that meet such requirements
The ability to extract data from a code that was NOT generated by a Computer
The ability to modify data in a code and reassemble it
An Algorithm to display a workout


Optimizations unfortunately won't be coming til next build (330). There is so much to do and not worth my time when I am going to be modifying that code shortly after.


The Editor is getting its own Preview. It's not coming any time soon, I have been neglecting all my other work to focus on SWEATFit and it's been fun, but I need to catch up on everything else.

New Build is coming soon. I have some surprise features I'm working on (mostly a surprise just cause I can't figure out how to post them) and I've already got the Changelog ready. Probably in the next 2-3 days depending on how long it takes to implement the final batch of features.
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion

Preview 2 is out. Many hours of development. Almost 0 bug testing. Try at your own risk, and as always, PLEASE give feedback!! I need as much as I can get.

I'm currently working on Solidifying what the release of SWEAT is going to look like and what comes after. Niki, can you please look at the design? Thanks.

Project Here: https://scratch.mit.edu/projects/1163525457/

Additions:
  • Notifications
    - Added Base Support for Notifications in general
    - Users must confirm returning to the main menu after starting a workout. This is in order to mitigate the risk of accidentally restarting midway through a workout
    - Added a Notification to Turn on Advanced Graphics Toggle if FPS drops below a certain point for an extended period of time
    - Added a Notification including a summary of the new update
    - Added a Notification to adjust Dictation Levels
    - Added a “Before starting this workout, make sure you have the following:” Notification
    - Added Static Notifications for the remaining two buttons in the Everything Menu (Currently Empty)
  • Dictation now has 3 levels of sensitivity - Low, Medium, and High. These require a sound to be 20, 30 and 40 db louder than the average sound respectively.
  • Everything Menu:
    - Increased the size of the element
    - Gave every icon a label
    - Icons are now dynamic and when enabling Dictation will move to accommodate the new setting
    - Gave Help and Feedback their own icons and UIs
    - Icons are now grayed out when disabled
  • Added a Dark Mode for all of the existing menus, they will not be accessible by default but when we port SWEATFit I will make sure that it follows system settings.
  • Added a Dark Transition Menu
  • Hotkeys:
    - Breaks can now be skipped by HOLDING DOWN the space key.
    - Dark Mode can now be Toggled with the L key.
    - Removed the “F” slider toggle
    - Readded the Left/Right and A/D keys to navigate through the menus in Freeplay
    - M Key to open Everything Menu
  • Added a new menu with a preview of the workout, using the same code as the Generator. Displays Muscle Groups as well and has two buttons “Start Workout” and “Edit Workout”
    - You can hover over a workout and click on the X button to remove the workout.
  • Graphics:
    - Added Rep Slider Particle Effects
    - Added Fire Ember Effects
    - Added “Completed Sets” text below the Set Bar


Changes:
  • Graphics
    - Fixed Advanced Graphics to include all new Graphics
    — Includes all the graphics listed above as well as a lot of things in Burnout, and a lot of things in the Everything Menu
    - Reduced the thickness of the Circuit Display numbers
    - Changed the Dark Mode Navbar to have an “aura”
  • Workout Generator:
    - All Eligible Workouts have a TSLU value (Time Since Last Use), where the amount of time it has been since that workout has been used is stored. This is to hopefully make workouts more spread out.
    - Massively reduced the amount of time it takes to generate a workout
    - If the name of a workout is longer than 40 characters, the generator will display only part of it
    - Exercises with names greater than 15 characters will be shortened
    - Added “Push” and “Pull” presets for the name of the workout, and replaced “and” with “&” to make the name shorter
    - Added a Refresh button for individual workouts to change it to a similar workout
Bug Fixes:
  • Fixed the “Skip” button not being responsive to hovering during breaks
  • Flipped the direction of the Transition Menu (the way it was moving didn’t make sense before)
  • Fixed a bug where the Workout Generator Error Code would not properly Display.
  • Fixed a bug where Timer based workouts would not display the correct duration of workout.
  • Fixed a bug where the Workout Generator would include muscle groups that didn’t exist.
  • Fixed a bug where Generator Buttons would not disappear after exiting to the main menu.
  • Fixed a bug where the Circuit logo would display if starting a Circuit, then exiting to the main menu and starting a new workout.
  • Fixed a bug where the COPY CODE list would remain showing even after restarting the project
  • Fixed a bug where the Set Counter may display incorrectly in Dark Mode
  • Fixed a bug where the BREAK Menu would persist after exiting a workout
  • Fixed a bug where a Freeplay Menu would display after exiting a workout
  • Fixed a bug where a Green Bar would flash in all menus with a Slider
  • Modified the size of the small sliders components so they would be less likely to overlap when setting the value towards the middle of the slider
  • Wow what a long changelog. I wonder how many hours of sleep the developer lost to deliver this…

    Enjoy.
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion

Well, the Notifications seem to be extremely pixelated. Yay! I actually have 0 idea why this is happening. The files are super high quality and it's not being scaled up at all.

Well, looks like a problem for Preview 3…

Sorry.

Last edited by p-p-p-p-p-p-p-p-p-p- (April 19, 2025 15:43:24)

q-q-q-q-q-q-q-q-q-q-
Scratcher
15 posts

SWEAT team Discussion

p-p-p-p-p-p-p-p-p-p- wrote:

Well, the Notifications seem to be extremely pixelated. Yay! I actually have 0 idea why this is happening. The files are super high quality and it's not being scaled up at all.

Well, looks like a problem for Preview 3…

Sorry.
what are you talking about…

Happy Easter, surprise, it's the better p-p-p-p-p-p-p-p-p-p-, I've got a patch.

Build 320 Preview 2 PATCH
Additions:
  • Added a Decimal Point to Timer and Stopwatch time Display
  • Stopwatch will once again require a confirmation before proceeding
Changes:
  • Circuit icons now properly hide and show during a workout
  • Using the Up/Down/W/S keys on the Timer or Stopwatch menu will now increment by 15 instead of 5
  • During a Circuit, the Navbar text will be slightly offset to avoid overlap with the circuit text
Bug Fixes:
  • Fixed a bug where Circuits would display funny
  • Fixed any odd or misplaced lettering in the lettering algorithm
  • Fixed a bug where the Notifications would render really blurry
  • Fixed a bug where all of the Burnout Numbers would conform

  • This is just everything left for Build 320 except the editor. Now the next preview should be just the Editor, unless there are things I have to change/fix to fit the editor.

    Since nobody saw the original preview, I'm just replacing that preview with the Patch.
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion

who even are you bro
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion



Here we go again…
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion

p-p-p-p-p-p-p-p-p-p- wrote:


(NOTE: This will NOT be in build 240. )
1.5 years ago…
(NOTE: This will NOT be how the editor looks)

Maybe it will look more like this?

Very early image. Definitely will change over time.
(Especially the alignments, the app that I'm using doesn't like me so it won't center anything lol)

Last edited by p-p-p-p-p-p-p-p-p-p- (April 21, 2025 14:38:17)

p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion

Happy 2 year anniversary to the first Build of SWEATFit!!
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion


First third of the Editor completely programmed in. Some odd things and definitely some things that I hope I will be able to improve in the future (currently held back by technical limitations) but overall going well.

Last edited by p-p-p-p-p-p-p-p-p-p- (April 25, 2025 01:31:53)

4A1AdrianAu
Scratcher
100+ posts

SWEAT team Discussion

when green flag clicked
ask [How can l help] and wait
say [l am go at coding and hosting a studio ] for (2) secs
if <l can help> then change [ happiness] by (10) else change [ sadness] by (1000)
end

Last edited by 4A1AdrianAu (April 25, 2025 02:10:46)

p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion



2/4 menus done (I figured out i needed a fourth menu)

Time for the hardest menu, and then the easiest.


I know i always say this, but I think I"m at a good stopping point. I don't think I'll do much til the end of my AP test (May 9th) but I'll still chekc this thread.

Last edited by p-p-p-p-p-p-p-p-p-p- (April 27, 2025 18:33:15)

p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

SWEAT team Discussion

Might be worth noting that Generator is somewhat broken in this preview, but I noticed it and fixed it

Powered by DjangoBB