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!.
If Returnkey() = 1 Then SwichOnff = 1
If Returnkey() = 0 and SwichOnff = 1
SwichOnff = 0
If File Exist("DataFile.dat") = 1 Then Delete File "DataFile.dat"
Open Datafile To Write 1,"DataFile.dat"
Repeat
Save Array To Datafile Object(),1
Until Datafile Exist(1)
Close Datafile 1
If file Exist("DataFile.dat") = 1 Then msg = Bbb Messagebox ("Project Saved!","Project Saver v0.1",MB_OK)
Endif
Thanks,