Jump to content


Photo

Ini Data Structure Extension


  • Please log in to reply
44 replies to this topic

#1 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 07 April 2007 - 05:55 PM

INI Data Structure Extension

This extension package adds support for INI data structures, that can be used to read and manipulate multiple INI files at the same time. The package contains much more features than the built-in INI functions of Game Maker.

Features:
- Opens and edits multiple INI files at the same time.
- Works with INI files outside the working directory.
- Maintains INI structures without needing corresponding files.
- Contains functions to explore INI structures step by step.
- Easily transfers and copies data from one INI structure to another.
- Supports custom INI file syntax and style.
- Ignores comments when reading INI files.
- Automatically sorts sections and keys in alphabetical order.
- Includes an HTML help file.
- Includes the source code.
- Contains 34 functions and 6 variables in total.

Download at http://gamemaker.blijbol.nl/dsini
Contains .gex, .chm, .gml and .ged

I didn't thoroughly test all functions, so please inform me if you notice any bug. Please reply what you think of the package.

Enjoy the extension!

Edited by Blijbol, 10 August 2009 - 04:28 PM.

  • 1
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#2 DFortun81

DFortun81

    The Fortunate One

  • GMC Member
  • 899 posts
  • Version:GM:Studio

Posted 07 April 2007 - 09:31 PM

This seems pretty cool. Do you know if it faster or slower than GM's built-in INI system? I'll probably end up using this one way or another.

Good Job,
-DF81
  • 0

dia_rpg_builder.png
Navigate to my personal website by clicking the image above.


#3 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 07 April 2007 - 09:48 PM

This seems pretty cool. Do you know if it faster or slower than GM's built-in INI system? I'll probably end up using this one way or another.

Good Job,
-DF81

<{POST_SNAPBACK}>

Thanks. :GM6: I don't know what's faster, since I don't know how the built-in functions work. I guess the ds_ini_load() function is slow compared to ini_open(), since my function parses the full INI file into memory. But once the files are opened, I think my functions are faster, since they use map data structures instead of working directly on files. But I'm absolutely not sure about this, someone should do some speed measurements.
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#4 Erik Leppen

Erik Leppen

    GMC Member

  • GMC Member
  • 2751 posts
  • Version:GM:Studio

Posted 07 April 2007 - 10:16 PM

This extension looks very useful. I don't like the current ini syntax and might want to make my own using these functions. I have to get into using extensions as I don't know how that works but in each case this extension looks very handy.

And to reply on the other comment, why does it matter which is faster? I mean, you use ini files to store configuration settings, which are usually only very few settings, does it really matter whether this takes 0.01 second or 0.02? A player won't notice :GM6:
  • 0

promo_briquidmini_500x150.png


#5 Binsk

Binsk

    -Insane Kid-

  • GMC Member
  • 3111 posts
  • Version:GM:Studio

Posted 07 April 2007 - 10:30 PM

I liked it till I read the "Free to use non-commercially" part.
  • 0

NEWS FLASH! You can't get to heaven by your works. No chance. Hopeless. Give up now. No amount of works will get you anywhere, in fact all your efforts have been botched years ago because you already missed perfection the first time you lied, stole, or performed any of those other lovelies.

 

That said, do you want to go to heaven? Not the hellish picture given by cartoons. You know, the nightmarish one where you are renting a cloud and harp? I mean, holy crap, where did that come from? I am talking about a bonafide city, people, designed by God no less. Heck, read John's Revelation 21 if you want details. Getting to heaven is extremely simple, actually, the how and why is spelled out in Paul's letter to the Romans, summarized in Romans 10:9,10. God lived a perfect life and died in your place, covering every one of your mistakes and failures past and future. All you have to do is believe that He did what he said He did and accept the gift. Bam, you're saved. Done deal. Complicated, no? Questions? PM me.


#6 Firebs1234

Firebs1234

    GMC Member

  • New Member
  • 38 posts

Posted 08 April 2007 - 12:34 PM

I need something like this, but the "Free to use non-commercially" is going to get in the way. Does this mean we can sell games made with this? Unless we give you some cerdits? Or part of the profit? ::lmao::
  • 0

#7 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 08 April 2007 - 01:25 PM

You can't sell games using this extension without my prior permission.

Credits are required anyways (unless I told you otherwise).
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#8 Firebs1234

Firebs1234

    GMC Member

  • New Member
  • 38 posts

Posted 08 April 2007 - 03:16 PM

OK then, When the game is done I will ask you. Problem solved. :P
Also, I found out the I can't write an ini to a different directory, so I made a script the can move it to a different directory, unless there is another way? <_<

Edited by Firebs1234, 09 April 2007 - 12:40 AM.

  • 0

#9 Rusky

Rusky

    GMC Member

  • GMC Member
  • 2492 posts
  • Version:Unknown

Posted 09 April 2007 - 06:43 PM

hey, this is really nice. I'm working on a big project that uses lots of encrypted ini files and this will speed things up.
  • 0

#10 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 21 April 2007 - 10:02 PM

Also, I found out the I can't write an ini to a different directory, so I made a script the can move it to a different directory, unless there is another way? :blink:

<{POST_SNAPBACK}>

It should be able to write directly to any directory unless Game Maker is running in secure mode.
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#11 oakwhiz

oakwhiz

    GMC Member

  • New Member
  • 268 posts

Posted 02 May 2007 - 12:10 AM

This is EXACTLY what I needed!! Thanks!

I like the fact that you can store the INI in memory.

I have one question though: Do you have to create a section before writing a key inside it? Or does the key get created automatically when you write a key with a section that does not exist?

Edited by oakwhiz, 02 May 2007 - 12:12 AM.

  • 0

#12 NewDuck

NewDuck

    GMC Member

  • New Member
  • 54 posts

Posted 02 May 2007 - 08:08 AM

Got error:
___________________________________________
ERROR in
action number 1
of Create Event
for object objIniControl:

In extension function ds_ini_key_write:
Error in code at line 11:
   if(!ds_map_exists(argument0, argument1) || argument2 == '') return false;

at position 58: Cannot compare arguments.

Edited by NewDuck, 02 May 2007 - 08:18 AM.

  • 0

#13 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 02 May 2007 - 10:28 AM

You have to create the section first before you can write a key to it. However, ds_ini_section_create() leaves the section untouched if it already exists, so just call that function first.

NewDuck, you either did not specify the name of the key, or the name of the key you specified is a real value. The names must be strings. I decided not to let the extension check the argument types.
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#14 NewDuck

NewDuck

    GMC Member

  • New Member
  • 54 posts

Posted 02 May 2007 - 12:33 PM

Fixed that one, but I used this code:
var dataini;
dataini = ds_ini_create();
ds_ini_load(dataini, 'settings.ini');
// Now do whatever you want with the INI file
ds_ini_save(dataini, 'settings.ini'); // Saves changes (optional)
ds_ini_section_create(dataini,'status');
ds_ini_key_write(dataini,'status','ammo',global.ammo);

but the ini that it created was empty
( i tried adding ds_ini_destroy(dataini); at the end, but the same )

EDIT: nvm, I fixed it, I realized that I forgot to add ds_ini_save(); after writing the key, instead of before.
It works now so far.

Just one more question, why does it create ini with space at the beginning?

Edited by NewDuck, 02 May 2007 - 12:45 PM.

  • 0

#15 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 02 May 2007 - 05:14 PM

Just one more question, why does it create ini with space at the beginning?

<{POST_SNAPBACK}>

By default it uses empty lines to separate sections. It was most easy to insert an empty line at the beginning of the file too. You can turn off all empty lines, but enabling a comment will also cover this up. For both solutions, see the page on Style variables in the help file.
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#16 werewolf688

werewolf688

    Real Werewolf

  • New Member
  • 151 posts

Posted 02 May 2007 - 10:45 PM

Do I have permission to use this in a game? You will get credit.
  • 0

#17 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 05 May 2007 - 01:45 PM

Do I have permission to use this in a game?  You will get credit.

<{POST_SNAPBACK}>

Probably yes... see the licence line of the extension.
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#18 astut

astut

    GMC Member

  • New Member
  • 16 posts

Posted 13 May 2007 - 11:31 AM

I cant dowload this extension, change the link please =)
  • 0

#19 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 13 May 2007 - 01:44 PM

I cant dowload this extension, change the link please =)

<{POST_SNAPBACK}>

Server was temporarily down, it's up again.
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#20 Spaceoff

Spaceoff

    Orbital Debris

  • GMC Member
  • 788 posts
  • Version:GM:Studio

Posted 13 May 2007 - 03:39 PM

DAMN PERFECT thats EXACTLY what i was looking for! thanks!
  • 0

#21 desolatordan

desolatordan

    GMC Member

  • New Member
  • 51 posts

Posted 27 June 2007 - 02:33 PM

Can't use globalvar with ds_ini_create();?

This won't work...
globalvar myini
myini=ds_ini_create();

But this will...
var myini
myini=ds_ini_create();

EDIT:

Actually,neither of those work... I have to just use
myini=ds_ini_create();

Edited by desolatordan, 27 June 2007 - 02:39 PM.

  • 0

#22 GisleAune

GisleAune

    GMC Member

  • New Member
  • 278 posts

Posted 08 August 2007 - 05:01 PM

Nice, exactly what i needed, if i make a freeware game do i need any kind of credit/permission
  • 0
Taming the mighty Ogre3D...

Sorry, my avatar can't be grasped by mere mortals.

#23 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 09 August 2007 - 08:44 AM

Nice, exactly what i needed, if i make a freeware game do i need any kind of credit/permission

<{POST_SNAPBACK}>

I'm glad you like it. Please put my name in the credits list of your game. (See the License line in the Extensions dialog of Game Maker.)
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#24 ChIkEn AtE mY dOnUtS

ChIkEn AtE mY dOnUtS

    Pwner of barcodes

  • GMC Member
  • 2410 posts

Posted 02 September 2007 - 05:26 PM

globalvar myini
myini=ds_ini_create();

to

global.myini=ds_ini_create(); //This will prolly work.
  • 0
I've moved away from GM. If you want to contact me, feel free to email ryanwebdev@gmail.com.

Thanks,
Ryan.

#25 Quimp

Quimp

    Pretzel fanatic

  • New Member
  • 275 posts

Posted 02 September 2007 - 06:52 PM

This file contains two sections: one called Window and the other called Highscore.

In fact, the first one is called Form.
  • 0

#26 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 10 September 2007 - 06:08 PM

This file contains two sections: one called Window and the other called Highscore.

In fact, the first one is called Form.

<{POST_SNAPBACK}>

You do have a point there. I'm too lazy to re-release the extension because of this, but will be corrected in the next release.
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#27 th15

th15

    GMC Member

  • GMC Member
  • 1585 posts
  • Version:Unknown

Posted 23 September 2007 - 07:45 PM

I'm trying to use this extension but it seems to have trouble dealing with hidden files. For some reason if you .ini file is hidden, you get an "Error writing to file" issue.
  • 0

Sean 'th15' Chan
site_logo.gif


#28 Postality

Postality

    GMC Member

  • New Member
  • 244 posts

Posted 06 March 2008 - 02:25 AM

nice extension, but unfortunately I can't use it in my commercial game I'm writing...
  • 0

#29 BlaXun

BlaXun

    Slime Online Creator

  • GMC Member
  • 2750 posts
  • Version:GM:Studio

Posted 06 May 2008 - 05:07 PM

Did anybody do some speed testing with this extension compared to GMs built-in functions?
  • 0

iBNKRoX.png


#30 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 06 May 2008 - 05:26 PM

Did anybody do some speed testing with this extension compared to GMs built-in functions?


I guess not, but it probably depends on how you use it. You probably don't need to write the actual INI file every step. If you change a value in the INI structure, it is not written to the file until you call ds_ini_save(). If just changing a value in the structure not fast enough either (e.g. because reals need to be converted to strings before they can enter the structure), you could also maintain separate (global) variables and only call any of my INI functions once you save the file. You could even modify my scripts to optimize them for your situation.

But as long as you don't read and write INI's in the step event, does the speed really matter that much?
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#31 thepwned

thepwned

    Frozen Production

  • New Member
  • 206 posts

Posted 08 May 2008 - 07:34 PM

sorry for bumping this old topic....

I got a question.

I am from denmark (you can see to the right too).
I want your dll to sort in alphabetical order and it do.
BUT in denmark we got Æ Ø Å in that order (the last 3 in the alphabet).
Is there a way to sort them because Å is being written before Æ so could you help?
  • 0
The one who asks stupid, ends up by being smarter than, the one who thought that he knew everything ~ Sokrates

Better to remain silent and be thought a fool than to speak out and remove all doubt ~Abraham Lincoln

#32 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 09 May 2008 - 08:17 PM

The sorting is done using a map data structure internally. I cannot change that, this is a bug in GM itself. You might want to contact YoYo Games about this bug, maybe they'll fix it for you in the next version of Game Maker.
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#33 thepwned

thepwned

    Frozen Production

  • New Member
  • 206 posts

Posted 10 May 2008 - 03:41 PM

okay thanks
  • 0
The one who asks stupid, ends up by being smarter than, the one who thought that he knew everything ~ Sokrates

Better to remain silent and be thought a fool than to speak out and remove all doubt ~Abraham Lincoln

#34 cambesa

cambesa

    GMC Member

  • GMC Member
  • 868 posts
  • Version:Unknown

Posted 14 May 2008 - 07:55 PM

that's awsome!
i will use it in my morpg, maybe it will ever become a mmorpg, altough it's 2d but you can buy houses! and kill inocent creatures.

now i can use ini's for my room data too.
  • 0

Insanely large signature removed by a moderator.

(I've had that signature for decades but okay...)


#35 Music Minion

Music Minion

    GMC Member

  • New Member
  • 94 posts

Posted 04 February 2010 - 11:56 PM

Thanks!
  • 0

#36 AClockWorkLemon

AClockWorkLemon

    GMC Member

  • New Member
  • 53 posts

Posted 15 February 2010 - 10:30 AM

- Works with INI files outside the working directory.


How can I use this function? it is not covered in the help file.......
I am trying to load an already existing ini from a different directory.
  • 0
I had a chat with the shipboard computer... It hates me.....
I will be laughing on December 22 2012.

#37 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 16 February 2010 - 11:55 AM

- Works with INI files outside the working directory.


How can I use this function? it is not covered in the help file.......
I am trying to load an already existing ini from a different directory.

Specify the path to the file just like you would do when using a function like file_text_open_read().
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#38 AClockWorkLemon

AClockWorkLemon

    GMC Member

  • New Member
  • 53 posts

Posted 16 February 2010 - 07:54 PM

Specify the path to the file just like you would do when using a function like file_text_open_read().

I'd already figured that out, but thanks for answering!
ACWL
  • 0
I had a chat with the shipboard computer... It hates me.....
I will be laughing on December 22 2012.

#39 Jigglypuff

Jigglypuff

    GMC Member

  • New Member
  • 8 posts

Posted 11 March 2010 - 03:44 PM

I have some problems with your Extention.
I am running Game Maker 7 on Windows 7.
I have tried to put the gex file, and installed it with GMs Extention Package Installer. And I haved tried to put the ged, gex (with only one or none) inte the Extentions folder and with no luck.
Always the same message:
COMPILATION ERROR in extension package INI Data Structure
Error in code at line 17:
file, errors, neof, sec, line, pos, length, name;

at position 35: Variable name expected.
(the bolded ones, either from the start of the row, or from the first letter)
some way to work this out? someones who also got this message and fixed it?

EDIT: I solved it by running Game Maker 8

EDIT2: I am Fail. Didn't added INI in Extension, it was Windows Dialogs. Thats why there wasn't any message. But now, when I chosen NIN extention again, the message is back.

Edited by Jigglypuff, 11 March 2010 - 10:52 PM.

  • 0

#40 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 13 March 2010 - 01:40 PM

Looks like a bug in Game Maker. Maybe you have a resource called 'line' causing a name conflict?
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#41 antidote

antidote

    GMC Member

  • New Member
  • 117 posts

Posted 14 March 2010 - 04:39 AM

well if you properly named your locals (__line) this wouldn't be an issue.
  • 0

#42 Jigglypuff

Jigglypuff

    GMC Member

  • New Member
  • 8 posts

Posted 14 March 2010 - 07:14 PM

Looks like a bug in Game Maker. Maybe you have a resource called 'line' causing a name conflict?

maybe, will check it. You should use more unique names? like adding INI infront of everyone (INIline, INIpos)
  • 0

#43 Blijbol

Blijbol

    Happy business

  • GMC Member
  • 313 posts

Posted 15 March 2010 - 10:59 AM

Looks like a bug in Game Maker. Maybe you have a resource called 'line' causing a name conflict?

maybe, will check it. You should use more unique names? like adding INI infront of everyone (INIline, INIpos)

The purpose of the declaration of temporary variables is pretty much to avoid issues like this. If that's broken, it's GM's fault.
  • 0
Blijbol OnScore 2 Extend your games with online highscore lists! New version!

Joystick OEM Name DLL Controller name as in Control Panel.
Registry Reader DLL Full read access to the Windows Registry.
Game Appearance Extension Control the game window and taskbar button in detail!
INI Data Structure Extension Much better than GM's INI functions.

Games and software: Slimeball Deluxe (digital arcade volleyball) Blijbol Snake 2 (traditional snake including a Maze Editor) Flood (try to escape from the water) Blijbol Memory (find the pairs) Game Maker Quiz (test your GM knowledge) More at Games.Blijbol.nl and Software.blijbol.nl
My website: Blijbol.nl (English/Dutch) | User of Game Maker 7.0 Pro | Moderator of the Dutch Game Maker Community

#44 Big J

Big J

    GMC Member

  • GMC Member
  • 2853 posts
  • Version:GM8.1

Posted 25 July 2010 - 09:33 AM

Why are the keys case-sensitive?

Why do I have to create a non-existing section to write a key to it? (Shouldn't that be done automatically?)

I was trying to replace the INI functionality in my project (to eliminate the need for file_copy() just to read INI file in a different directory) and both of those things were causing me debugging nightmares, I couldn't figure out why certain parts of my code got mysteriously "skipped".

The built-in INI functions' keys and sections are not case-sensitive, and do not require me to create non-existing sections.

Your extension is awesome, but does not work the way I need it to.
  • 0

Get your GM 8.1 Anti-Aliasing here!

2712265.png

http://www.youtube.com/Sporkinator


#45 mrsmes

mrsmes

    GMC Member

  • GMC Member
  • 1506 posts
  • Version:GM:Studio

Posted 04 June 2011 - 09:40 AM

Just one more feature i'd like to see hide a .ini file so no one knows if the game is made with game maker or not, or at least to seem more professional, and compress the .ini file with the .gm8[or .gmk] or .exe to make sure data is being safe from gamers who do like to cheat.
  • 0

Assuming I helped you out in a questions and answers topic won't you return the favour by helping me with one my coding problems, or recommend some one who can chat to me over pms about helping and how to overcome my obstacles, after all lets just say I did help you or them or many people with similar problems, in that topic.

Here i have a topic for those of you struggling with type writer text and mugshots in your games especially if it is a rpg see the link below for more info

http://gmc.yoyogames...howtopic=619103

almost no code needed, only uses two events.

click here for the l8est version of feed the alien pizza, it has some major polished up features.