Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-02-03 17:53:15

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

Ini Files

Idc if you don't like them.... I wanna use them and I need someone who can help me.
If you know how to set up Ini files my TV is below vv

[email protected]


Om_1869ea_249353.jpg

Offline

#2 2016-02-03 17:55:31

Anatoly
Guest

Re: Ini Files

cercul1 wrote:

Idc if you don't like them.... I wanna use them and I need someone who can help me.
If you know how to set up Ini files my TV is below vv

[email protected]

What are INI FILES??

#3 2016-02-03 17:56:39

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Ini Files

Why do you want .ini?

Offline

#4 2016-02-03 17:59:38

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

Re: Ini Files

AnatolyEE wrote:
cercul1 wrote:

Idc if you don't like them.... I wanna use them and I need someone who can help me.
If you know how to set up Ini files my TV is below vv

[email protected]

What are INI FILES??

It's a way of storing data for players


Om_1869ea_249353.jpg

Offline

#5 2016-02-03 18:00:16

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Ini Files

http://file.org/extension/ini

Never used them but you seem to be able to edit .ini files the same way as any other text file


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#6 2016-02-03 18:01:59

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Ini Files

I'm confused. You found .ini from the jaba tutorials, right?

He's basically handing you code, what's the confusion?

Offline

#7 2016-02-03 18:03:40

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Ini Files

hummerz5 wrote:

I'm confused. You found .ini from the jaba tutorials, right?

He's basically handing you code, what's the confusion?

@cercul1 use XML, JSON or actual databases; there is lots of support online for the uses of these for most modern languages.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

Wooted by:

#8 2016-02-03 18:05:30

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Ini Files

^On that note, I know a gent who found JSONConvert or something from newtonsoft
one line: WriteFile(JSONConvert.SerializeObject(UserCollection))
boom. output.
one line: UserCollection = JSONConvert.DeserializeObject(ReadFile());
ok it's slightly more convoluted but that's the gist. one line and boom.

Offline

#9 2016-02-03 18:08:12

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

Re: Ini Files

hummerz5 wrote:

I'm confused. You found .ini from the jaba tutorials, right?

He's basically handing you code, what's the confusion?

No i didn't, i don't even know what jaba tutorials are...

and

Koya wrote:

@cercul1 use XML, JSON or actual databases; there is lots of support online for the uses of these for most modern languages.

I already said i wanted to use ini


Om_1869ea_249353.jpg

Offline

#10 2016-02-03 18:08:35

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Ini Files

hummerz5 wrote:

^On that note, I know a gent who found JSONConvert or something from newtonsoft
one line: WriteFile(JSONConvert.SerializeObject(UserCollection))
boom. output.
one line: UserCollection = JSONConvert.DeserializeObject(ReadFile());
ok it's slightly more convoluted but that's the gist. one line and boom.

It does need a little bit more support, all individual outputs are strings - so you do have to convert to bool or int; JSON also matches to classes so things like http://koya.io/itemstats.json can be generated, fetched and edited easily.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

Wooted by:

#11 2016-02-03 18:09:14, last edited by hummerz5 (2016-02-03 18:10:27)

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Ini Files

^Interesting. If you have no idea how to implement them, why are you so adamant they must be .ini format?

edit: we all ninja'd in like 2 seconds.
this was, obviously, directed towards cercul1

Offline

#12 2016-02-03 18:09:15, last edited by XxAtillaxX (2016-02-03 18:11:21)

XxAtillaxX
Member
Joined: 2015-11-28
Posts: 4,202

Re: Ini Files

I've used INI files lots of times in the past, they are intended for configuration files - not for storing dynamic data such as players.
You should very much use an actual database - not files, as they tend to corrupt (no journals) on crashes or power outage, etc.

I would personally recommend SQLite at this stage, which can be easily implemented in managed and non-managed forms, depending on your requirements.

However, if you're still insistent on using INI files incorrectly, you should see this.


signature.png
*u stinky*

Offline

Wooted by: (3)

#13 2016-02-03 18:11:15

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Ini Files

XxAtillaxX wrote:

not files as they tend to corrupt (no journals) on crashes or power outage, etc.

Backups & easier for small applications; but yeah databases are the way to go.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#14 2016-02-03 18:13:24

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

Re: Ini Files

Is there any way i can kill this post because you guys aren't even helping


Om_1869ea_249353.jpg

Offline

#15 2016-02-03 18:15:05

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Ini Files

cercul1 wrote:

Is there any way i can kill this post because you guys aren't even helping

yes, you could explain why you want .ini so bad
or look at what atilla dropped
or look at jaba's tutorials

but really, you're not being rational here.

or ask a mod to lock. or something.

Offline

#16 2016-02-03 18:15:22

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Ini Files

cercul1 wrote:

Is there any way i can kill this post because you guys aren't even helping

What can ini do for you that a database or another easier file type can't?

We are helping you by suggesting better methods.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

Wooted by:

#17 2016-02-03 18:23:57

Processor
Member
Joined: 2015-02-15
Posts: 2,246

Re: Ini Files

Topic was closed on OPs request. (We do not remove posts)


I have never thought of programming for reputation and honor. What I have in my heart must come out. That is the reason why I code.

Offline

Processor1454520237580111

Board footer

Powered by FluxBB

[ Started around 1732763320.7136 - Generated in 0.183 seconds, 12 queries executed - Memory usage: 1.65 MiB (Peak: 1.87 MiB) ]