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 / Datafile creation using MatrixUtls

Author
Message
BlackChaos
16
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 10th Dec 2012 12:23 Edited at: 10th Dec 2012 14:47
Hey guys, I am coding a level editor so this is a small piece of a very large project. I am having issues with some matrix Utls commands.

If I create a basic cube and save the name of the shape in the array I'm trying to save to Datafile(below) e.g "Object(0).Details.Name = ''Cube'' ", the Datafile is hapilly created.

Now, when I repeat the process but instead Load an object from file and save the absoloute Dir e.g "Object(0).Detail.Name = ''C:/MyFolders.../Models/Spaceship/Spaceship.x''"; The data file is not created.

Also! Just to verify that I'm still sain, I use BBBGUI to produce a messeagebox if the Datafile in question exists as soon ast it is created, and to my surprise the message pops up saying that the file exists everytime.

Need some advice or Actual Help!.


Thanks,

AEngine 2012 Ameadus Project Feedback or Food o0
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 10th Dec 2012 14:29
At a quick glance:
Quote: "''C:/MyFolders.../Models/Spaceship/Spaceship.x''"
These "/" has to be "\" Back slash instead of forward slash

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
BlackChaos
16
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 10th Dec 2012 14:44 Edited at: 10th Dec 2012 15:06
Quote: "At a quick glance:
Quote: "''C:/MyFolders.../Models/Spaceship/Spaceship.x''"
These "/" has to be "\" Back slash instead of forward slash
"


Sorry I only used that as an example of the type or lenth of string that is being stored in that UDT array, for example--> "Object(AnyIndexPosition).Details.Name = 'Any_Lenth_String' "

The array Object(0) store all of the data to any objects created or loaded and is a major part of my program; So I can't really just scrap that concept because I don't think there's an easier way.

Basically I've narrowed it down to anytime I load an object, this is when saving the datafile seems to not work.

But still! what mistake am I making??

AEngine 2012 Ameadus Project Feedback or Food o0
BlackChaos
16
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 12th Dec 2012 23:17
I think I'm going to leave DBP and start using AGK.

Thanks for the help guys


AEngine 2012 Ameadus Project Feedback or Food o0

Login to post a reply

Server time is: 2026-07-07 12:50:31
Your offset time is: 2026-07-07 12:50:31