Game Maker Community: Ini Dll - Game Maker Community

Jump to content

This forum is meant for discussion about creating DLLs and scripts and action libraries to extend the possibilities of Game Maker. Make sure that you READ these rules prior to posting. Also, the General GMC Rules apply here too.
  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Ini Dll Stronger, Faster, Better.

#1 User is offline   Kyle_Solo 

  • GMC Member
  • Group: GMC Member
  • Posts: 1068
  • Joined: 08-February 05

Post icon  Posted 15 May 2008 - 02:43 PM

INI DLL lets you:
1. Edit multiple INI files at once (unlike Game Maker)
2. Edit INI files in any folder (unlike Game Maker)
3. Does it faster than any of the other systems (including Game Maker's!)

Please contact me before use in a commercial project.

(Jan 7 09) Bug fixed! ini_read_intx now returns the correct default value instead of a 0 when the section/key is not found

Extension Webpage

This post has been edited by Kyle_Solo: 17 March 2010 - 06:51 PM

0

#2 User is offline   gymnastdaniel5 

  • Roboleader
  • Group: GMC Member
  • Posts: 1018
  • Joined: 18-September 06

Posted 16 May 2008 - 10:36 PM

Great Extension, I might use it if I can get my online game to work(lol).
0

#3 User is offline   death-droid 

  • GMC Member
  • Group: GMC Member
  • Posts: 2592
  • Joined: 20-July 06

Posted 29 May 2008 - 08:52 AM

Awesome thank you for posting this.
0

#4 User is offline   Bill23 

  • GMC Member
  • Group: GMC Member
  • Posts: 422
  • Joined: 29-April 07

Posted 24 June 2008 - 10:31 PM

This is very good, but I don't think it returns the default value if the key doesn't exist. It returns 0 instead (unless I'm doing something wrong, which I don't think I am.)
0

#5 User is offline   LoopStan 

  • North-See Developer
  • Group: GMC Member
  • Posts: 1295
  • Joined: 22-October 07

Posted 03 August 2008 - 10:37 PM

umm, I dont get this much... Could you list the functions arguments, like what they are, unless i missed somthing i dont believe you told us that. If you could, and how to make an ini, that would be good to.

wait... Do we just create the ini by writing somthing in it?
0

#6 User is offline   Kyle_Solo 

  • GMC Member
  • Group: GMC Member
  • Posts: 1068
  • Joined: 08-February 05

Posted 05 August 2008 - 02:58 AM

Here's the topic I created this in response to for reference purposes.
http://gmc.yoyogames...howtopic=374282

There's argument lists on the extension page (link at top).

Quote

wait... Do we just create the ini by writing somthing in it?

I think that's what it does if the file doesn't already exist. Make sure to use the full path!
0

#7 User is offline   Markolainen 

  • GMC Member
  • Group: GMC Member
  • Posts: 413
  • Joined: 02-December 07

Posted 05 August 2008 - 06:28 PM

Hi I'm using your extension to save level files for my game. But I noticed a bug in the extension.
I can't read negative values from an ini file. Writing them seems to work but not reading.

/Markolainen
0

#8 User is offline   Kyle_Solo 

  • GMC Member
  • Group: GMC Member
  • Posts: 1068
  • Joined: 08-February 05

Posted 09 August 2008 - 04:29 AM

I'll look into it and get back to you sometime soon.
0

#9 User is offline   Postality 

  • GMC Member
  • Group: GMC Member
  • Posts: 244
  • Joined: 12-January 06

Posted 09 August 2008 - 05:36 AM

Hey Kyle, I'm using this DLL for my current ini file functionality.

If possible please continue it. It's the only INI DLL that's available that's able to be used in commercial games.

Your name is in the credits already.

Keep up the good work.
0

#10 User is offline   Kyle_Solo 

  • GMC Member
  • Group: GMC Member
  • Posts: 1068
  • Joined: 08-February 05

Posted 10 August 2008 - 05:02 AM

Ok, it should work now. There was never anything technically wrong, the function I was using was made for unsigned ints. Let me know if you find any bugs!
0

#11 User is offline   Markolainen 

  • GMC Member
  • Group: GMC Member
  • Posts: 413
  • Joined: 02-December 07

Posted 10 August 2008 - 05:37 PM

View PostKyle_Solo, on Aug 10 2008, 06:05 AM, said:

Ok, it should work now. There was never anything technically wrong, the function I was using was made for unsigned ints. Let me know if you find any bugs!


Thanks! It works just great now. I've found no other bugs so far. But I'll sure tell if i do.:blink:
Thanks for a great extension!
0

#12 User is offline   Markolainen 

  • GMC Member
  • Group: GMC Member
  • Posts: 413
  • Joined: 02-December 07

Posted 16 August 2008 - 05:49 PM

Found another bug. The dll doesn't save fractions of real numbers.
For example if I have a variable set to 0.5 it just saves it as 0.
0

#13 User is offline   Kyle_Solo 

  • GMC Member
  • Group: GMC Member
  • Posts: 1068
  • Joined: 08-February 05

Posted 17 August 2008 - 01:09 AM

Fixed. Stupid scientific notation problem!
0

#14 User is offline   Markolainen 

  • GMC Member
  • Group: GMC Member
  • Posts: 413
  • Joined: 02-December 07

Posted 17 August 2008 - 09:31 AM

I found out it was just a mistake by me.
I used the ini_write_intx and not the ini_write_doublex.:)
But was there some kind of problem anyways?
Cause mine worked with the old version when I used write doublex.
0

#15 User is offline   Kyle_Solo 

  • GMC Member
  • Group: GMC Member
  • Posts: 1068
  • Joined: 08-February 05

Posted 17 August 2008 - 01:18 PM

Oh, I don't know. It depends. I just changed the format of the written number so it wouldn't have scientific notation, because I wasn't sure if my convert from string to double function could handle that.
0

#16 User is offline   Markolainen 

  • GMC Member
  • Group: GMC Member
  • Posts: 413
  • Joined: 02-December 07

Posted 17 August 2008 - 01:36 PM

Ok, but it worked well in the old version. I just used write int and not double.
BTW have you compared speeds to blijbol's extension?
http://gmc.yoyogames...howtopic=289009
0

#17 User is offline   Kyle_Solo 

  • GMC Member
  • Group: GMC Member
  • Posts: 1068
  • Joined: 08-February 05

Posted 07 January 2009 - 06:55 PM

Bug fixed! See first post, and re-download if you are using this.
0

#18 User is offline   Hedanito 

  • GMC Member
  • Group: GMC Member
  • Posts: 5
  • Joined: 07-January 09

Posted 04 February 2009 - 04:26 PM

Ok looks really nice, but now i wonder, how do i open .ini files in another folder so i can edit them, since there is no function for that.
0

#19 User is offline   NickToony 

  • GMC Member
  • Group: GMC Member
  • Posts: 463
  • Joined: 13-April 07

Posted 04 February 2009 - 06:11 PM

View PostHedanito, on Feb 4 2009, 04:29 PM, said:

Ok looks really nice, but now i wonder, how do i open .ini files in another folder so i can edit them, since there is no function for that.


This is quite simple, I believe.

ini_write_stringx(fname,section,key,value)


Where is says fname, you can write the folder name too. So for example:

ini_write_stringx("Folder/Data.ini" ,"Section" ,"Key" ,"Testing string")


Nice .dll, I'm sure I could find a use for this.

Edit: Yeah, I just read that on the download link page (@ post below) ^_^

ini_write_stringx(working_directory + "Folder/Data.ini" ,"Section" ,"Key" ,"Testing string")
would be better?

This post has been edited by NickToony: 04 February 2009 - 06:16 PM

0

#20 User is offline   Kyle_Solo 

  • GMC Member
  • Group: GMC Member
  • Posts: 1068
  • Joined: 08-February 05

Posted 04 February 2009 - 06:13 PM

Note: The fname MUST be a full path. It won't mess up your system if it's not, it just might do some unexpected things (like putting your ini in the Windows folder.)
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users