EOSERV Forum > Lounge > INI Syntax
Topic is locked.
Page: << 1 >>
INI Syntax
Author Message
Post #102023 INI Syntax

I decided to try and make my own emulator. I will go through with this progress if i can get help on this project from you guys! I need ideas,suggestions, etc, because this will be closed source for awhile and will include some stuff you want. 


Things i refuse to add:

  • Fishing
  • Cooking
  • Harvesting
  • Pets
  • And other hacky features

Things i intend to add (once i get to that point of course):
  • Quest system (like EO+) 
  • INI Based data handlers (Pub Files, User accounts, Characters, etc.)
  • External tools to edit Pub Files, User Accounts, Characters, etc.

But right now i want to know what YOU guys want in INI Syntax. For right now i have the basics

  • Include (INCLUDE INIFILE.ini)
  • Require (REQUIRE INIFILE.ini) (Will trigger an error and immedietly shut down the server)
  • Sections ([SECTIONAME])
  • Comments (#)
I plan to add the other things like

Amount = 1

1.Property = morepie
1.Effect = pieeffect


---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 35 weeks ago
Post #102027 Re: INI Syntax

Im confused as to what you are asking for here exactly... suggested features for your emulator?

as an operator though, I would like to see as much configurable from ini files as possible

---
Beware of your thoughts, they become your words. Beware of your words, they become your actions.
Beware of your actions, they become your habits. Beware of your habits, they become your character.
Beware of your character, it becomes your destiny.
- Unknown
13 years, 35 weeks ago
Post #102028 Re: INI Syntax
Redrocco posted: (5th Sep 2011, 06:02 am)

Im confused as to what you are asking for here exactly... suggested features for your emulator?

as an operator though, I would like to see as much configurable from ini files as possible


Yes, but focusing around the INI file syntax :P feel free to give off topic suggestions tho.
---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 35 weeks ago
Post #102044 Re: INI Syntax

If you change the syntax it won't be INI syntax anymore. The INI syntax looks like this

;Some random comment
[MySection]
value1 = "ffff"
value2 = 1234124
[AnotherSection]
something = 0
13 years, 35 weeks ago
Post #102046 Re: INI Syntax
kenobi13 posted: (5th Sep 2011, 01:24 pm)

If you change the syntax it won't be INI syntax anymore. The INI syntax looks like this

;Some random comment
[MySection]
value1 = "ffff"
value2 = 1234124
[AnotherSection]
something = 0

thats what I was thinking, as that the format I've seen used the most. though to be honest most of my exposure to it is through mIRC scripts and I wasn't sure if that was applicable as the eoserv inis use a different format, more like strings stored in a plain text file.
---
Beware of your thoughts, they become your words. Beware of your words, they become your actions.
Beware of your actions, they become your habits. Beware of your habits, they become your character.
Beware of your character, it becomes your destiny.
- Unknown
13 years, 35 weeks ago
Post #102049 Re: INI Syntax
Redrocco posted: (5th Sep 2011, 02:00 pm)

kenobi13 posted: (5th Sep 2011, 01:24 pm)

If you change the syntax it won't be INI syntax anymore. The INI syntax looks like this

;Some random comment
[MySection]
value1 = "ffff"
value2 = 1234124
[AnotherSection]
something = 0

thats what I was thinking, as that the format I've seen used the most. though to be honest most of my exposure to it is through mIRC scripts and I wasn't sure if that was applicable as the eoserv inis use a different format, more like strings stored in a plain text file.

Yes. Eoserv has some different ini syntax than the normal inis.
---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 35 weeks ago
Post #102061 Re: INI Syntax

Are you making the accounts/characters file based like Seose? You also mentioned the pubs would be ini based, I think Kalandra had something like that but I only looked at it once. I think if you did stuff like that, made the project open sourced (when its ready of course), and gave it the same amount of features as eoserv has, it would be really nice for newer people since they wouldn't have to go to the trouble of setting up mysql or sqlite. 

---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
13 years, 35 weeks ago
Post #102068 Re: INI Syntax

I would have each type of thing have its own ini

example

npc.ini

[1]

1 = crow

2 = hpvalue

3 = etc


[2]

1 = rat








---
Beware of your thoughts, they become your words. Beware of your words, they become your actions.
Beware of your actions, they become your habits. Beware of your habits, they become your character.
Beware of your character, it becomes your destiny.
- Unknown
13 years, 35 weeks ago
Post #102078 Re: INI Syntax
ethanmoffat posted: (5th Sep 2011, 03:42 pm)

Are you making the accounts/characters file based like Seose? You also mentioned the pubs would be ini based, I think Kalandra had something like that but I only looked at it once. I think if you did stuff like that, made the project open sourced (when its ready of course), and gaveitthesameamount of features as eoserv has, it would be really nice for newer people since they wouldn't have to go to the trouble of setting up mysql or sqlite. 


Yes, thats also why. All pub files and character/account files will be ini based. The thing ill have to figure out is turning the pub ini files into actual pub files for the client which shouldnt be too hard. 

Redrocco posted: (5th Sep 2011, 03:55 pm)

I would have each type of thing have its own ini

example

npc.ini

[1]

1 = crow

2 = hpvalue

3 = etc


[2]

1 = rat









Also, i will prolly set npc files up like this :

NPCAmount = 1

1.Name = "Blah Blah"
1.Health = 10

And so on.
---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 35 weeks ago
Post #102106 Re: INI Syntax

Using SomethingAmount = x 1.Value = blah etc. is lame. You can foreach through the unordered_map (take a look at the way eoserv loads homes).

13 years, 35 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Lounge > INI Syntax