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.

Newcomers DBPro Corner / Anyone feel like helping me out with the code to write a .ini file?

Author
Message
Getix Interactive
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: US
Posted: 6th Jun 2006 01:34
Hello, I need some help with my game, GITBA. I want it upon start to see if there is a file called savegame.ini. or, read savegame.ini for certain info to say New Game or Load Game. Does DBPRO allow .ini files to be written directly from the program? Or do I use Notepad?
Thx,
Jim

Getix Interactive and Nanovision. Good Combo.
www.getixinteractive.com
Getix Interactive
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: US
Posted: 6th Jun 2006 02:34
Since no one is answering, please delete this thread so I may start a new with a proper name.

Getix Interactive and Nanovision. Good Combo.
www.getixinteractive.com
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 6th Jun 2006 02:57
Quote: "Since no one is answering, please delete this thread so I may start a new with a proper name."


You have to give time. No one is going to always anwser 1 hour before you post.

Dbpro can write any files you want using open to write and to put information in it use write string, write byte, write word, ect.. Then to read information use open to read and read string, ect.

NARUTO IS THE NINJA.....not really
[url=http://forum.openmmo.co.uk/index.php?topic=328.0]
WIP...4 Elements
Getix Interactive
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: US
Posted: 6th Jun 2006 02:59
Thx for answering. Slayer, does DBP actually write the .ini? or do I make it elsewhere?

Getix Interactive and Nanovision. Good Combo.
www.getixinteractive.com
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 6th Jun 2006 03:17
it actually makes the file you want as long as you put the extension. So it would be something like this open to write filenumber, "Myfile.ini"

NARUTO IS THE NINJA.....not really
[url=http://forum.openmmo.co.uk/index.php?topic=328.0]
WIP...4 Elements
Getix Interactive
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: US
Posted: 6th Jun 2006 03:31
Let me give that a shot...

Getix Interactive and Nanovision. Good Combo.
www.getixinteractive.com
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 6th Jun 2006 03:31
call the win32api functions specifically for INI file by loading the windows dll from dbp.

Start with GetPrivateProfileString, WritePrivateProfileString iirc

Login to post a reply

Server time is: 2024-09-25 01:29:37
Your offset time is: 2024-09-25 01:29:37