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 / Loadding Files from Windows

Author
Message
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 23rd Jul 2003 04:19
ok....
I want to make a program that if u click on the saved game file it starts the game and auto-loads it.

is this possible?

thx

p.s i will obiviously be using a file extention that is different than any other file (not "txt" or "dat")
Intel P4 2.66 GHz (533MHz), Radeon 9000pro 60Gb hd...Self-Built
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 24th Jul 2003 05:34
hello....i want a yes or a no (preferably yes)

Intel P4 2.66 GHz (533MHz), Radeon 9000pro 60Gb hd...Self-Built
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Jul 2003 06:12
I'm scared to say yes in case you then say how?

TDK
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 29th Jul 2003 06:05
how?

Intel P4 2.66 GHz (533MHz), Radeon 9000pro 60Gb hd...Self-Built
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 29th Jul 2003 06:57
RobK has a windows-style plug-in.

---Mattman
DID YOU KNOW THAT ???
Lecks
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: - Please Select -
Posted: 29th Jul 2003 08:57
i dont know how you could make it automatically associate the file in windows, but after it's associated, you could put:

gametoload$ = CL$()

to make it automatically associate, i think you'd have to edit the registry. or the first time you try to open a .sav file or whatever, you could opt to open it in your game, but that isnt really suitable for distribution
good luck

Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 2nd Aug 2003 08:00
thanks
i dont kare if its auto aseciated

Intel P4 2.66 GHz (533MHz), Radeon 9000pro 60Gb hd...Self-Built
Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 3rd Aug 2003 11:11
how do you save the game im alien to this type of things

Lecks
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: - Please Select -
Posted: 3rd Aug 2003 11:18
u just got 2 answers to that in your post simquad

Powersoft
21
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 5th Aug 2003 22:02
i know im a bit mad

Im not an ALIEN
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 6th Aug 2003 01:57
You need to set up a filetype (and the appropriate parameters), which would then be passed to your program, from where you load the data.


Logo design by Indi
Its better than a poke in the eye...
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 6th Aug 2003 02:12
In windows explorer go to tools -> folder options (in xp and 98 / me I think). Click on file types. Click the new button and create your file type, and associate it with your application file (by selecting your type and clicking "advanced" - use windows help to guide you).

When a user double clicks a saved game, windows open your program with the command line parameter of the game location. The get he game to load, use the code as seen above:

gametoload$ = CL$()

You are the th person to view this signature.
GRAVITY: I fought the law but the law won

Login to post a reply

Server time is: 2025-05-19 23:45:20
Your offset time is: 2025-05-19 23:45:20