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.

lock [RESOLVED] Custom marble crashes the game

  • Marblemaster1
  • Marblemaster1's Avatar Topic Author
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • Custom Code Enthusiast
  • Posts: 237
  • Thank you received: 8
06 Aug 2014 16:32 - 14 Aug 2014 03:52 #1
I apologize if this is the wrong place to ask this.

So lately I've been trying to make a Cat's Eye marble in Blender (Somewhat surprised nobody has done this before). I made it, and it works fine... except that whenever I try to play a level with it, MBP crashes as soon as the level is loaded. There's no error message in the console or anything, it just crashes (unless I'm missing something).

I think I know what the problem is: when I add a static version of the model in via the LE, the bounding box only surrounds the "eye", but not the outer sphere. I haven't the foggiest idea how to fix this, though, so if someone more experienced in Blender than myself could help me, that would be great.

Attached is a zip folder containing the DTS, the .blend file, the obj, and the texture file.

File Attachment:

File Name: CatsEye5.zip
File Size:620 KB

QuArK is still a good map editor

You know what's boring? Opaque marble skins. You know what's not? Glass Marbles!
Attachments:
Last edit: 14 Aug 2014 03:52 by Jeff.
The topic has been locked.
  • Posts: 1118
  • Thank you received: 370
06 Aug 2014 18:10 #2
Have you tried using the custom marble in a clean copy of Marble Blast Gold? Marble Blast Platinum may be running CRC checks (correct me if I am wrong, HiGuy or Jeff) on the custom marble object and crashing the game as a result (though custom marbles should be allowed, just not in the online section of the game).

If you have the time and resources, make a COPY of your Marble Blast Gold directory, and then copy over your new marble skin and DTS into the marble/data/shapes/balls directory. You can rename your custom dts file to 'ball-superball.dts' as well as the skin for the marble, and then try playing a few levels in that modified Marble Blast Gold to see if it's really the shape causing issues.

~Aayrl
The topic has been locked.
  • Marblemaster1
  • Marblemaster1's Avatar Topic Author
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • Custom Code Enthusiast
  • Posts: 237
  • Thank you received: 8
06 Aug 2014 23:17 #3
Just tried this; MBG also crashes roughly half a second after the level loads. So it is indeed a problem with the shape.

QuArK is still a good map editor

You know what's boring? Opaque marble skins. You know what's not? Glass Marbles!
The topic has been locked.
  • Posts: 1118
  • Thank you received: 370
06 Aug 2014 23:28 #4
Have you tried popping open the console and executing a trace(1); before loading a level to see if you can extract any additional details regarding the shape object when it's loaded in-game? It may provide some key insight into what issues with the shape in particular are causing the crash. I have a feeling the bounding box is either too small or has faces that are too small for the game engine to handle (or a misaligned or non-polygon face).

Any Blender users out there that can lend a hand? I do most of my dts modeling in a different enterprise software.

~Aayrl
The topic has been locked.
  • Marblemaster1
  • Marblemaster1's Avatar Topic Author
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • Custom Code Enthusiast
  • Posts: 237
  • Thank you received: 8
07 Aug 2014 03:49 - 07 Aug 2014 03:56 #5
Well, I tried making the eye less curvy in an attempt to make the faces bigger... it still crashes. I ran trace(1);, and the console didn't show anything in particular; just an abrupt end when it crashes. The only thing is that towards the end, during the onFrameAdvance spam, one time it returns 1720, while it otherwise returns 15 or 16. I have attached it as a text file. Again, I think it's because the bounding box seems to ignore the sphere, but I have no idea why it does this or how to fix it.

File Attachment:

File Name: ConsoleLog.txt
File Size:79 KB

QuArK is still a good map editor

You know what's boring? Opaque marble skins. You know what's not? Glass Marbles!
Attachments:
Last edit: 07 Aug 2014 03:56 by Marblemaster1.
The topic has been locked.
  • Posts: 1118
  • Thank you received: 370
07 Aug 2014 15:28 #6
I can see the line you are talking about in the console log, this one in particular is rather curious since it has some .. expressive .. symbols towards the end:
Code:
Entering (null)::onFrameAdvance(16) Leaving (null)::onFrameAdvance - return 1720 (?!?)

I am not sure what the significance of the 1720 return statement is (since it's only returned twice, towards the end of your console.log), but if I had to guess, it would signify the number of updates that occurred in that frame? If so, that is an unreasonably high number, which seems to verify our concerns it is in fact the shape's figure or bounding box causing the issues.

Unfortunately, I do not have experience working with Blender files, so I'm afraid I can't be of much more help, but I may be able to provide some guidance! Have you tried searching the Blender forums for some creative solutions to the bounding box issue? Try this one as well as this one and see if you can rule out the bounding box as the culprit of the crime. If this does not fix the issue, we may need to go more in-depth and tear the shape apart to determine the issue at hand.

~Aayrl
The topic has been locked.
  • Marblemaster1
  • Marblemaster1's Avatar Topic Author
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • Custom Code Enthusiast
  • Posts: 237
  • Thank you received: 8
07 Aug 2014 16:49 #7
I actually added the "(?!?)" myself to point it out. :P

QuArK is still a good map editor

You know what's boring? Opaque marble skins. You know what's not? Glass Marbles!
The topic has been locked.
  • Posts: 1118
  • Thank you received: 370
10 Aug 2014 19:15 #8
Heh, no wonder that symbol looked so foreign :)

Have you tried searching the Blender forums for any assistance with modifying bounding boxes for spherical shapes? How about the links I provided in my previous post?

Thanks,
~Aayrl
The topic has been locked.
  • Marblemaster1
  • Marblemaster1's Avatar Topic Author
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • Custom Code Enthusiast
  • Posts: 237
  • Thank you received: 8
11 Aug 2014 19:07 - 11 Aug 2014 21:41 #9
Still no luck making the marble work, but I do have some new info regarding what causes the crash.

First of all, it's not the sphere or the eye that causes it; it's the two together. The Mid P and 3D marbles rule out the possibility of MB not liking more than one mesh per marble, but I think it's because one is inside the other. Second, by setting defaultmarble.gravity to 0, I found that the game doesn't actually crash until the marble collides with something.

I've tried following the advice from the first link you posted, which didn't work, unfortunately. I'll try the second one when I have time.

EDIT: I did some more testing, and I discovered that it's not the bounding box that causes the issue. I fixed the bounding box to encompass the whole marble, and the game still crashes when it hits something.

QuArK is still a good map editor

You know what's boring? Opaque marble skins. You know what's not? Glass Marbles!
Last edit: 11 Aug 2014 21:41 by Marblemaster1.
The topic has been locked.
  • Marblemaster1
  • Marblemaster1's Avatar Topic Author
  • Offline
  • Advanced Marbler
  • Advanced Marbler
  • Custom Code Enthusiast
  • Posts: 237
  • Thank you received: 8
14 Aug 2014 00:44 - 14 Aug 2014 01:37 #10
[strike]Bumping as it has been more than 24 hours as per the rules. Since it's not the bounding box that causes the problem, I would really appreciate it if someone could help me figure this out. :)[/strike]

Never mind, I figured it out! It was just a matter of combining the sphere and the eye into one mesh. It works properly and doesn't crash; now I just have to make it look cool. :P

QuArK is still a good map editor

You know what's boring? Opaque marble skins. You know what's not? Glass Marbles!
Last edit: 14 Aug 2014 01:37 by Marblemaster1.
The topic has been locked.
  • Jeff
  • Jeff's Avatar
  • Offline
  • Elite Marbler
  • Elite Marbler
  • PlatinumQuest Programmer
  • Posts: 1680
  • Thank you received: 205
14 Aug 2014 03:51 - 14 Aug 2014 03:51 #11
Flaged as [RESOLVED].

I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.
Last edit: 14 Aug 2014 03:51 by Jeff.
The following user(s) said Thank You: Marblemaster1
The topic has been locked.
Moderators: Doomblah
Time to create page: 1.555 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.