July 23, 2002
at 12:00 pm /
#11437
Yeah, it is strange.
Whenever something odd happens, my first reaction is to re-examine my code as the first source of bugs or errors.
Initially I thought that I hadn’t declared, referenced, and set the 3DCApplication object properly before calling GetTexturePath, but when I replaced my file I/O routines with messageboxes that displayed the paths in question, I discovered that 3DC prefers textures to be in specific places.
Since that behavior on 3DC’s part was consistent, I soon dismissed the thought of it being a bug in 3DC. My pseudo-error handler takes care of those andquot;special-casesandquot; where textures aren’t in the right directories to begin with, which satisfied my desire for userproofing.
Before implementing that, though, I tested the plugin and found that if a 3DC file contains object library items that didn’t have their textures stored as you described, it wouldn’t work.
The cause was my object libraries violating the andquot;ruleandquot; that the textures really ought to be in the same directory as the object library if they didn’t exist in the default 3DC media subdirectory. My object library was one directory level above the textures used. Oops.
Saved 3DC files that reference textures that exist in the same directory, however, do export correctly. The problem happens only when I use poorly-organized (textures either do not exist alongside the CLO file or are not in the appropriate 3DC media subdirectory) object libraries.
So everything’s pretty much peachy at the moment, I guess <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!– s:) –>
I’m extending the plugin’s capabilities even further, and it looks like it’ll soon be capable of handling almost every possible DarkBasic feature from within the 3DC environment. Heck, if I threw in some of my ancient VB code, I could also do all my DarkBasic programming inside 3DC also.
Heh heh…bet you never expected to see 3DC Pro turned into a very capable DarkBasic IDE.
-Mel Ebbles