file Custom Powerup Icons (Images included!)

  • Rocket
  • Rocket's Avatar Topic Author
  • Offline
  • Beginner Marbler
  • Beginner Marbler
  • Posts: 33
  • Thank you received: 2
12 Aug 2015 22:50 - 15 Aug 2015 18:03 #1
What this does:
Allows you to set custom hud images when you pick up a powerup. Instead of a 3d rotating model you can have a flat 2d image, like the super speed powerup in the hud of this MBU/O image:




The Code:
In your Marble Blast folder, navigate to marble/client/scripts/playGui.cs and open it with a plain text editor.

Find this code near the top of the file:
Warning: Spoiler!


and change it so it looks like this:
Warning: Spoiler!


In the same file, find this:
Warning: Spoiler!


Replace with this:
Warning: Spoiler!



Now, back in your Marble Blast folder, navigate to marble/client/ui/playGui.gui and open it with a plain text editor.

Find this code at the end of the file:
Warning: Spoiler!


Replace with this:
Warning: Spoiler!




Almost there now.
For the images, the way this is coded depends on the name of the dts file for the powerup.
That means the images should be named as follows:
Gyrocopter is : helicopter
Shock Absorber is : shockabsorber
Super Bounce is : superbounce
Super Jump is : superJump
Super Speed is : superSpeed
--
Gravity Modifier is : antiGravity
Time Travel is : timetravel

These images must be in png format.
Place them in this folder: marble/client/ui/game/

If you don't want to make your own images, you can download the examples I made here .



And that's it.
Have fun!
Last edit: 15 Aug 2015 18:03 by Rocket. Reason: Images included
The following user(s) said Thank You: Jeff, StewMan46

Please Log in or Create an account to join the conversation.

  • Jeff
  • Jeff's Avatar
  • Offline
  • Elite Marbler
  • Elite Marbler
  • PlatinumQuest Programmer
  • Posts: 1680
  • Thank you received: 205
13 Aug 2015 02:51 #2
nice job! great contribution!

I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.

Please Log in or Create an account to join the conversation.

  • lxgenda
  • lxgenda's Avatar
  • Offline
  • Experienced Marbler
  • Experienced Marbler
  • Platinum Pioneer
  • Posts: 174
  • Thank you received: 96
15 Aug 2015 07:58 #3
I don't have a playGui.cs on my Marble Blast Gold. Help!

"tl;dr joj" - legenda 2016

Please Log in or Create an account to join the conversation.

  • Posts: 787
  • Thank you received: 123
15 Aug 2015 09:49 - 15 Aug 2015 09:50 #4
All the source files for the MBG scripts were all released. I took the effort to download them... You should be able to find them on the forums somewhere. If not, I can upload it later.
Last edit: 15 Aug 2015 09:50 by ProMarbler. Reason: english?

Please Log in or Create an account to join the conversation.

  • Rocket
  • Rocket's Avatar Topic Author
  • Offline
  • Beginner Marbler
  • Beginner Marbler
  • Posts: 33
  • Thank you received: 2
15 Aug 2015 17:11 - 15 Aug 2015 18:06 #5
Example hud images are attached in the first post.

Jeff wrote: nice job! great contribution!

Thanks :cheer:

zypher wrote: I don't have a playGui.cs on my Marble Blast Gold. Help!

Just checked MBG and found that playGui.gui comes in compiled form.


You can download the MBG Script Sources here .

--OR--

You could copy and paste this into a plain text file. Name it playGui.gui, and place it in marble/client/ui/.
If you take this way, you must make sure the extension is .gui and not something like .gui.txt

Warning: Spoiler!
Last edit: 15 Aug 2015 18:06 by Rocket.

Please Log in or Create an account to join the conversation.

  • lxgenda
  • lxgenda's Avatar
  • Offline
  • Experienced Marbler
  • Experienced Marbler
  • Platinum Pioneer
  • Posts: 174
  • Thank you received: 96
15 Aug 2015 22:30 #6

"tl;dr joj" - legenda 2016

Please Log in or Create an account to join the conversation.

  • Rocket
  • Rocket's Avatar Topic Author
  • Offline
  • Beginner Marbler
  • Beginner Marbler
  • Posts: 33
  • Thank you received: 2
15 Aug 2015 22:40 #7
Try going in-game and test it by picking up a powerup.
If the Powerup HUD doesn't change, post again

Please Log in or Create an account to join the conversation.

  • StewMan46
  • StewMan46's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Posts: 369
  • Thank you received: 46
17 Aug 2015 01:44 #8
Great contribution! Good to see we have another programmer on the scene! ;)

Please Log in or Create an account to join the conversation.

Moderators: Doomblah
Time to create page: 0.820 seconds
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.