The Daily Click ::. Forums ::. Klik Coding Help ::. mmf2 ini help
 

Post Reply  Post Oekaki 
 

Posted By Message

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
21st April, 2008 at 16:40:16 -

its been awhile since i used ini's and i just got mmf2 a few weeks ago.
i want to save values to an ini but i just cant seem to.

i followed numerous tutorials and none of them work.
and i like how "popcorn"'s tutorial just say "if it doesnt work you did something wrong". no shit?
well i did it like 3 times and it hasnt worked yet. and i made sure everything was correct.

im thinking its a vista problem cause vista is a bitch and doesnt let you save or create files in the c:\ directory

any help plz?

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
21st April, 2008 at 16:52:49 -

Yeah, it's possible that it's a Vista problem, though I believe it only blocks access to C:\windows\ and C:\Program Files\ as far as I know. The INI object itself should be fairly easy to use. Just select a file, read/write and you're done. What exactly are you trying to do? It's hard to tell what you're doing wrong without seeing your code.

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
21st April, 2008 at 16:54:41 -

Had this problem too, the solution for me was to compile evrytime instead of running from wthin MMF2.

 
Craps, I'm an old man!

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
21st April, 2008 at 16:55:28 -

well it works if the .ini file already exists and i can use it easily enough, but shouldnt the .ini extension create the ini if it doesnt exist?
thats what im trying to do. it wont create one.

all im doing right now is saving a single value.

set group >> "group1"
set item >> "item1"
set value >> 10

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
21st April, 2008 at 16:58:22 -

shab. it doesnt seem to help even if i compile it and run it.

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
21st April, 2008 at 17:03:08 -

I think you have to select a filename first, otherwise it won't know what to call your INI file, and where to place it. Also, make sure you're using a path relative to your application directory (ie, use appdir$ and appdrive$).

set file >> appdrive$ + appdir$ + "file.ini"
set group >> "group1"
set item >> "item1"
set value >> 10

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
21st April, 2008 at 17:06:34 -

bitchin!

thanks axel.

none of the tuts even mentioned you had to set the filename.
they only said set it in the layout, which i did.

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
21st April, 2008 at 17:06:37 -

Oh yeah, because if you only give it a filename, and not a full path ("file.ini" for example), it will try and put it in C:\windows\ or somewhere instead, and that probably won't work on Vista.

Well, I'm glad it worked out!

Image Edited by the Author.

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
21st April, 2008 at 17:09:28 -

stupid vista. >:| i hate you so.

thanks again.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click