Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / 'Limit Rush' demo from darkbasic.com website

Author
Message
Lorien
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United Kingdom
Posted: 13th Mar 2003 12:53
I'm looking through the demo information and I've run into a problem whilst running the lessons - Windows XP comes up with an error saying there's a problem with the .exe and do I want to send Microsoft a bug report, etc.

I've tracked the error down to the following section of code



The problem appears to arise with the glue object to limb command in that it doesn't like a .3ds object being attached to a limb of a normal box. I've run a simple prog myself to check this and attaching a box to a limb of another box works fine, but as soon as I try to attach a .3ds object to the limb of the box, the error reappears.

Anybody got any ideas as to why this is happening?


Also, on a side note, I've edited the code down so that it doesn't have to bother with the glueing, etc. to get the code to run without any problems but now the hovercraft appears white rather than textured. If I rename the texture to hovercra.bmp and comment out the texture object command then it'll display fine, but if I leave it as it, DarkBASIC won't re-texture the .3ds object, overriding the settings in the .3ds file for the texture's filename.

Any ideas on why this is happening as well?



A successful first post (or maybe not )

Hope someone can enlighten me.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 13th Mar 2003 18:21
Are you using DBPro?

If this is the case then the source needs fairly extensive modifications - email me and I can send you the DBP Patch 3.1 compatible source code.

Current Project: Retro Compo. Entry.
Lorien
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United Kingdom
Posted: 13th Mar 2003 18:27
Thanks. For some reason I can't click on the db-mail link to email you but if you can send it to [email protected] then it would be appreciated.

Lorien
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United Kingdom
Posted: 13th Mar 2003 18:31
Forgot to include this in the reply - I am using DBPro and patch 3.1

Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 13th Mar 2003 20:45
You've got mail

Current Project: Retro Compo. Entry.
Lorien
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United Kingdom
Posted: 13th Mar 2003 20:56
You've got a reply email

Thanks for your help. Will have a look at it sometime tomorrow or over the weekend - stuck at work until 11pm tonight :-(
Lorien
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United Kingdom
Posted: 16th Mar 2003 22:49
Rob K: Don't know if you got my email but I've tried everything you told me and it still decides to crash on me. Oddly enough if I tell it to run full-screen rather than in a window, all it does is crash back to the desktop and no dialog box.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Mar 2003 23:33
Can you find out which command is causing the crash?

Run it through it step through mode.

Current Project: Retro Compo. Entry.
Lorien
23
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United Kingdom
Posted: 17th Mar 2003 02:33
No need - found out what I'd missed - one of the .bmp files wasn't converted into a .jpg (walks away blushing furiously.... )

The one thing I have noticed though - the Prepare Matrix Texture command in the LoadMatrix code isn't slicing up the texture for the ground properly. They should be 128x128 but from the looks of things it looks like the code that the Prepare Matrix Texture command calls is taking that figure and multiplying by about 0.9 and then slicing up the texture (it even does this if I change the main _map.bmp file and modify the LoadMatrix code to specifically cut 9 textures out of the bitmap)

Login to post a reply

Server time is: 2026-07-11 02:36:11
Your offset time is: 2026-07-11 02:36:11