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 Discussion / Help with loading text files

Author
Message
flibX0r
22
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 23rd Feb 2003 08:18
Hi

I am really confused. I've looked at other programs and they can open text files, but when i open the in DB, it jumbles my data around and f@#$'s up my program.

Any Ideas?
"But we couldn't do that Mr Flibble," questioned Rimmer. "Who'd clean up the mess?"
--Twin P4 Xeon, GeForce Quadro 4 128MB, 1Gb DDR RAM, Hee Hee Hee--
Prof Polley
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United Kingdom
Posted: 23rd Feb 2003 14:24
Try This


Or if you want to write to the text file try this


you whouldent hapen to know how to stop an in game menu form flickering when you bring it up

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 23rd Feb 2003 14:56
If your menu is written in 2D over 3D then just call set camera view 0,0,0,0 before your menu and set camera view 0,0,screen width(),screen height() after your menu. This "gets rid" of 3d and then retrieves it again at the end.

About the text file, in the second snippet it should be close file 1.

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 23rd Feb 2003 15:59
depending on how you've saved the data depends on how you retrieve... for example the snippet above is all fine and dandy for notepad created documents.

however for text documents out of C/C++ you'd want something more like



would be more appropriote... its all about how the file was first made

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
flibX0r
22
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 24th Feb 2003 07:05
i tried the method shown first, but it jumbled up the text.

Probably cos it was DB 1.13

I'm getting DBPro on the weekend

I hope that'll work better

"But we couldn't do that Mr Flibble," questioned Rimmer. "Who'd clean up the mess?"
--Twin P4 Xeon, GeForce Quadro 4 128MB, 1Gb DDR RAM, Hee Hee Hee--
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Feb 2003 08:04
the functions are no different between the DarkBasics...
perhaps if you show'd us your code we could help a little further

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Prof Polley
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United Kingdom
Posted: 24th Feb 2003 21:25
relating to what David89 posted.
i tryed your comands but whenever i brung the menu up darkbasic said region canot excede bitmap size
can you help me?

Login to post a reply

Server time is: 2025-08-08 20:39:40
Your offset time is: 2025-08-08 20:39:40