file Custom Powerup Icons (Images included!)

  • Rocket
  • Rocket's Avatar Topic Author
  • Offline
  • Beginner Marbler
  • Beginner Marbler
More
12 Aug 2015 22:50 - 15 Aug 2015 18:03 #1 by Rocket
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! [ Click to expand ]


and change it so it looks like this:
Warning: Spoiler! [ Click to expand ]


In the same file, find this:
Warning: Spoiler! [ Click to expand ]


Replace with this:
Warning: Spoiler! [ Click to expand ]



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! [ Click to expand ]


Replace with this:
Warning: Spoiler! [ Click to expand ]




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
  • Developer
  • Developer
  • PlatinumQuest Programmer
More
13 Aug 2015 02:51 #2 by Jeff
Replied by Jeff on topic Custom Powerup Icons (Images included!)
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
More
15 Aug 2015 07:58 #3 by lxgenda
Replied by lxgenda on topic Custom Powerup Icons (Images included!)
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.

More
15 Aug 2015 09:49 - 15 Aug 2015 09:50 #4 by ProMarbler
Replied by ProMarbler on topic Custom Powerup Icons (Images included!)
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
More
15 Aug 2015 17:11 - 15 Aug 2015 18:06 #5 by Rocket
Replied by Rocket on topic Custom Powerup Icons (Images included!)
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! [ Click to expand ]
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
More
15 Aug 2015 22:30 #6 by lxgenda
Replied by lxgenda on topic Custom Powerup Icons (Images included!)

"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
More
15 Aug 2015 22:40 #7 by Rocket
Replied by Rocket on topic Custom Powerup Icons (Images included!)
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
More
17 Aug 2015 01:44 #8 by StewMan46
Replied by StewMan46 on topic Custom Powerup Icons (Images included!)
Great contribution! Good to see we have another programmer on the scene! ;)

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

Moderators: AayrlKalle29Regislian