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 / File commands given me heck!

Author
Message
John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 12th Oct 2003 18:55 Edited at: 12th Oct 2003 19:03
Never been the best data programmer but I gotta do it sometime. Heres what Im doing.

Goal: Write all the object numbers that exist to a file, so I can then use that as a reference if I am not sure if I have created a model with that number yet.

Here is my code


Help plz

RPGamer

Current Project: Eternal Destiny
We need a texture artist!
If your interested email me - [email protected]
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Oct 2003 18:58
What's your problem? That might help

John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 12th Oct 2003 19:02
Doh - its not creating the file. Its not there....period.

Current Project: Eternal Destiny
We need a texture artist!
If your interested email me - [email protected]
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Oct 2003 19:09
Have you searched your HD for exist.txt?

John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 12th Oct 2003 19:30
Yes

Current Project: Eternal Destiny
We need a texture artist!
If your interested email me - [email protected]
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Oct 2003 19:39
Hmm all I can suggest is there might be something dodgy with set dir. Bit of a dodgy command to use, can lead to alot of mysterious errors!

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th Oct 2003 19:44
Have you tried it using a full pathname instead of trying to change directory?
John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 12th Oct 2003 19:46
Got it working

Current Project: Eternal Destiny
We need a texture artist!
If your interested email me - [email protected]
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Oct 2003 20:00
How? Did was it the set dir command?

A computer program will always do what you tell it to do, but rarely what you want to do.
John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 12th Oct 2003 20:00
Im not using set dir anymore

Current Project: Eternal Destiny
We need a texture artist!
If your interested email me - [email protected]
John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 12th Oct 2003 20:00
Heres the code (its long cuz I want the text file organised)



RPGamer

Current Project: Eternal Destiny
We need a texture artist!
If your interested email me - [email protected]
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Oct 2003 20:22
Quote: "Im not using set dir anymore "


Yep I knew it

A computer program will always do what you tell it to do, but rarely what you want to do.

Login to post a reply

Server time is: 2026-07-26 04:28:19
Your offset time is: 2026-07-26 04:28:19