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 / save object fail?

Author
Message
Mugen Wizardry
User Banned
Posted: 8th Aug 2010 19:04
i need to be able to detect ALL 3DS files, and save ALL 3DS files as dbo files with this.

but it won't work



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Zotoaster
21
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 8th Aug 2010 19:11
DBPro has problems loading 3DS objects

"everyone forgets a semi-colon sometimes." - Phaelax
Mugen Wizardry
User Banned
Posted: 8th Aug 2010 19:15
i dont wanna load it.

i want to change it to dbo.

i threw load in there cuz idk if i need it.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 8th Aug 2010 19:21
You have to load it as it is and save it as .DBO

I made a utility that does just that:
http://forum.thegamecreators.com/?m=forum_view&t=172688&b=5

The fastest code is the code never written.
Mugen Wizardry
User Banned
Posted: 8th Aug 2010 19:34
does this allow model hierarchy to be saved?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 8th Aug 2010 19:59
It will if there is hierarchy in the original file.... It only loads the object and uses the DBP "save object" function.

The fastest code is the code never written.
Mugen Wizardry
User Banned
Posted: 8th Aug 2010 20:36
awesome, thanks!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 9th Aug 2010 09:30 Edited at: 9th Aug 2010 09:31
Also, your code is case sensitive. Your checking for "3DS" files, so it will fail if your objects are saved as "3ds"

I'd probably change parts of your code to this...

And...


My signature is NOT a moderator plaything! Stop changing it!
Mugen Wizardry
User Banned
Posted: 9th Aug 2010 14:16
thanks, mobiius, but i like hawkblood' idea better.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Aug 2010 15:12
Did you actually read what he wrote before dismissing his suggestion?

Your code as it stands will cause '3ds' to be detected and '3DS' to be ignored.
His changes will cause both '3ds' and '3DS' to be detected. <---- BETTER!

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th Aug 2010 15:18
I think he probably means he's going to use the utility posted by Hawkblood rather than his own app? Although I could be wrong as listening to advise isn't always everyones strong point... myself included.



Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 10th Aug 2010 10:01
*facepalm*

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-25 23:12:11
Your offset time is: 2026-07-25 23:12:11