SUPPORT BOARD OVERVIEW & TIPS:

About Receiving Help from the Support Board: While all members may answer questions posted in the Support board, you should only rely on responses posted or confirmed by support moderators and website administrators. Any solutions provided by members of the community that are not verified by a staff member (as indicated by a light-green background) are provided as-is, and we cannot take responsibility for any of the results of said actions.

About Responding to Support Threads: If you feel you know the answer to a question, you are welcome to respond to the thread and politely offer assistance. Please be courteous and try to provide detailed and helpful solutions to users who may not be as advanced as you. We ask that you refrain from posting one-sentence solutions.

Please search for existing topics before creating one! It's quite likely someone else has already encountered a similar issue which was resolved. You can search for existing support threads by clicking here .

About Topic Tags:

* Topics denoted with the [OPEN] tag are awaiting a response from the end user. You are welcome to post in these threads if you are experiencing a similar issue so we may provide further support.

* Topics denoted with the [RESOLVED] title have been successfully answered and confirmed by a support moderator and the end user, and should be used as a reference. These topics are locked.

* Topics denoted with the [CLOSED] tag were either inactive for more than 30 days or the end user did not respond to a suggestion and confirm if the issue was resolved. These topics are locked.

question-circle Can't apply the MBP beta 1.5 codes for the par time alarm in Marble Blast Gold

  • BRD
  • BRD's Avatar Topic Author
  • Offline
  • Novice Marbler
  • Novice Marbler
  • Posts: 14
  • Thank you received: 2
10 Apr 2025 14:43 - 10 Apr 2025 15:27 #1
I Can't apply the MBP beta 1.5 codes for the par time alarm in Marble Blast Gold. Well, i tried it but, it's showing the par time message when the clock has not passed the par time.    If there's a way, please create the steps to apply it. Can you do that for me please?
Last edit: 10 Apr 2025 15:27 by BRD. Reason: To show the truth.
  • RandomityGuy
  • RandomityGuy's Avatar
  • Offline
  • Administrator
  • Administrator
  • This entire place is bruh
  • Posts: 343
  • Thank you received: 123
10 Apr 2025 15:27 - 10 Apr 2025 15:29 #2
Hello
Unfortunately it is not quite trivial to apply the code from MBP to MBG as it is intertwined with the rest of the code (good news: its still in the same file!), and thus it requires a bit of an understanding of how code works. And as a result, I can only provide you a high level procedure and things to take account of when implementing it.

First off, the file to be changed is marble/client/scripts/playGui.cs, if this file is not available, you can find it here: github.com/MBU-Team/OpenMBG/blob/master/...t/scripts/playgui.cs
MBP Version of the file: github.com/HiGuyMB/MBP150Beta3/blob/mast...t/scripts/playgui.cs

What you need to do is study the differences between the two files (it will be useful later on). The function that you are looking for is called PlayGui::refreshRed(%this), this you can copy over verbatim to the MBG script.

Now comes the tricky part, remember when I said earlier that code is intertwined, yeah here's why: this function utilizes global variables (they start with $ sign, such as $PlayTimerAlarmStartTime and many others), and they can be accessed from any other function as well. Because of this, you also need to carry over all the parts of code (in the same playGui.cs file!) that reference these variables over to the MBG script. This can be quite tricky as it requires an understanding of flow of execution and how control flow statements work (if, else, while, for, etc).

I will list out a few of these functions which you will need to change (there may be others beyond what I list, I leave the rest up to you to figure out):
GuiBitmapCtrl::setTimeNumber(%this,%number), PlayGui::startTimer(%this), PlayGui::resetTimer(%this,%dt)

Lastly, you want to add the audio profiles of the timer, they are found here:
github.com/HiGuyMB/MBP150Beta3/blob/mast...pts/audioprofiles.cs
(MBG script here: github.com/MBU-Team/OpenMBG/blob/master/...pts/audioprofiles.cs )

Hope this much information is sufficient and wish you best of luck towards its implementation.

EDIT: you can send me your playGui.cs file and i'll review it for you, and let you know the corrections.

Github:
github.com/RandomityGuy
Feel free to support me at ko-fi.com/randomityguy
Last edit: 10 Apr 2025 15:29 by RandomityGuy.
The following user(s) said Thank You: BRD
  • BRD
  • BRD's Avatar Topic Author
  • Offline
  • Novice Marbler
  • Novice Marbler
  • Posts: 14
  • Thank you received: 2
10 Apr 2025 16:53 #3
Wait a second. It's not working again! 

File Attachment:

File Name: playgui.cs
File Size:9 KB
  • RandomityGuy
  • RandomityGuy's Avatar
  • Offline
  • Administrator
  • Administrator
  • This entire place is bruh
  • Posts: 343
  • Thank you received: 123
10 Apr 2025 17:21 #4
Okay two things:

- Your code has two definitions of PlayGui::startTimer, please remove the second one.
- In PlayGui::refreshRed, remove the $InPlayGUI condition (remove "&& $InPlayGUI")

Github:
github.com/RandomityGuy
Feel free to support me at ko-fi.com/randomityguy
The following user(s) said Thank You: BRD
  • BRD
  • BRD's Avatar Topic Author
  • Offline
  • Novice Marbler
  • Novice Marbler
  • Posts: 14
  • Thank you received: 2
10 Apr 2025 17:28 #5
Oh, thank you RandomityGuy! ;)
  • BRD
  • BRD's Avatar Topic Author
  • Offline
  • Novice Marbler
  • Novice Marbler
  • Posts: 14
  • Thank you received: 2
10 Apr 2025 23:48 #6
I got it working! Thanks again for your time and all your help, I really appreciate it. :)
Moderators: Doomblah
Time to create page: 0.779 seconds