Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> "The Games Factory (Classic)" .INI file operations, Quick question in regards to this...
United States
M. C. Productions
Posted: Nov 21 2008, 01:16 PM
Quote Post


Mario series' gals = #1!
[*]

Group Icon
Group: Members
Posts: 700
Member No.: 3100
Joined: 22-December 06

Status: (0d) [--]


Okay, one of my two fangame projects in the works is going to be using the .INI procedure to manage game data in relation to the project. However, I'm trying to find out, does The Games Factory (Classic) environment actually "create" the .INI files, or do we have to create it ourselves in terms of managing it and setting up the game saving structure itself?

Any help would be appreciated on this front. Thanks.

P.S. An example would be that when my game detects that there's no .INI file on the computer, there would be a notice displaying that it couldn't be found and ask the player if the file can be created, just like in official games. But that's beside the point. laugh3.gif
PMUsers Website
Top
United States
Xgoff
Posted: Nov 21 2008, 01:24 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


you can set it up beforehand, but once you start writing values/strings to it, it'll automatically add them (and it should create the INI automatically as well)

however i don't know if TGF has any extensions that would let you check if a given INI exists, so you may be out of luck there... however you could try checking indirectly by checking if a given item-value exists, and if it doesn't, the INI doesn't exist either (said item-value would be written once the INI is created), but i don't know if this will work or not

also TGF1's INI object is a repetitive pain in the ass to use so have fun

This post has been edited by Xgoff on Nov 21 2008, 01:27 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Denmark
Mecha the Slag
Posted: Nov 21 2008, 01:37 PM
Quote Post


http://mechaware.net
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 11816
Member No.: 728
Joined: 15-December 04

Status: (0d) [--]


Doesn't TGF have the file object extension?


--------------------




MechaWare GamesMechaSourceMechaWare for CellphonesMechaWare on Steam

PMUsers WebsiteMSN
Top
United States
M. C. Productions
Posted: Nov 24 2008, 01:36 AM
Quote Post


Mario series' gals = #1!
[*]

Group Icon
Group: Members
Posts: 700
Member No.: 3100
Joined: 22-December 06

Status: (0d) [--]


QUOTE (Xgoff @ Nov 21 2008, 12:24 PM)
you can set it up beforehand, but once you start writing values/strings to it, it'll automatically add them (and it should create the INI automatically as well)

however i don't know if TGF has any extensions that would let you check if a given INI exists, so you may be out of luck there... however you could try checking indirectly by checking if a given item-value exists, and if it doesn't, the INI doesn't exist either (said item-value would be written once the INI is created), but i don't know if this will work or not

also TGF1's INI object is a repetitive pain in the ass to use so have fun

If the .INI does get created under TGF, I hear it can be found in the WINDOWS/SYSTEM directory; is this also true?

What if I want the .INI to be created in the same directory as my game project itself?
PMUsers Website
Top
Denmark
Mecha the Slag
Posted: Nov 26 2008, 10:32 AM
Quote Post


http://mechaware.net
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 11816
Member No.: 728
Joined: 15-December 04

Status: (0d) [--]


QUOTE (M. C. Productions @ Nov 24 2008, 07:36 AM)
What if I want the .INI to be created in the same directory as my game project itself?

apppath$ + "i_am_a_file.ini"


--------------------




MechaWare GamesMechaSourceMechaWare for CellphonesMechaWare on Steam

PMUsers WebsiteMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0472 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.50 ]