New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pure XML config files #238
Comments
@dfighter1985 Edit: Sry, "view" was wrong. Changed it to "download". |
Sigh at this idea, Qt is cool and stuff, but please, say no xml configs, unless you can tell what awesome advantages it will give except headache when people will be trying to edit their configs... Edit: " that way we could alleviate the current known problems with the config files." What are these problems? I didn't notice any so far, it's readable and easy to edit or is this supposed to be considered a "problem" in comparison to many tags in xml config? Just trying to realize why xml config would be better than what we have now. |
@Ceterrec that's not entirely true. I could write a config tool for the current configs too. However I want a simple standard format for the configs, so that everyone can read them easily without having to write a parser for a custom file format. @neo-mat Other than the custom file format, there are actual problems with the parser, sometimes for example it refuses to read the config files, and instead of fixing it, I want to replace it. |
There are a lot of different free XML editor available. However most of them generate more XML tags you may really need. If you want XML than may you should recommend a specific editor for Windows and Linux, that generate the code you really expected. In earlier times I also was against XML for simple config files. But now I think there are good open source XML parsers don't make any headache to write an own parser. |
I reedited the file (ok, Microsoft's XML Notepad 2007 reedited it) and I think it's much cleaner now. If you want to take a look into it you can download it here (keep in mind: it's a file with German comments): [Link removed. Made a pull request.] Btw, it also is much smaller now because it uses UTF-8 instead of UTF-16 which was really unnecessary. |
I already was thinking about the comment lines: Either you make for every line an own comment tag or let them away. I prefer the last option. |
I think you're right but maybe we should add these German comments into that editor because it was so much work for me to create these comments. Edit: Ok, I'm going to make XML configs without comments. They'll probably be finished tomorrow. |
If you program an editor just make separate language files. So the user can choose his preferred language in the beginning and than you load that file. And other people may also translate their own language file. I didn't wanted to say that the comments are useless. Of course we need them (and also your translation is nice). I only thought they don't need to be in the XML file anymore. Edit: Even this language files could be in XML :-) But there is no need for. However XML supports very good different charsets, f.ex. Cyrillic for Russian language. |
@Magnifikator That was exactly what I thought: we should make a localization file that's loaded when the editor starts. Some time ago I made a German localization for the help section of arcemu-logonserver, I even made a patch but I had to agree that it was a pretty bad idea to hardcode it. Someone suggested to make a XML localization file for the server, I think it was you but now I can't find the forum thread anymore (maybe it got deleted). |
It was me :-) |
Excuse me, maybe I am too conservative, but I personally dislike localization, being Russian myself I hate to see any Russian language/localizations in any game/movie/tv show/etc , it's not that Russian is bad language (tho WoW in Russian looks ridiculous and sounds so freaking stupid -.-), it's just that without localization people will be selfeducating more, learing English with the help of translator and in the end it will better for them that they didn't had a chance to configure server/play WoW in their native language. Even when I was handling server by myself in Russian zone (avg online was 250) I clearly stated that we won't be doing any kind of localization nor support it and only few were mad at that, rest were neutral/happy because Russian text was ruining their game experience. Maybe that's just case of Russian language, maybe in German or French game sounds okay, not sure since I don't know those languages. Just my 2cents, I am not being really negative about localization support in ArcEmu, just sharing my opinion on this topic. Edit: Forgot to mention that I learned English only because I was playing WoW back in 2004 and using really wierd and stupid translator, but still it helped me to figure out what quest givers want from me and what I have to do to finish quest, I mean really, if I would be following university's English program I would end up as 95% of those who followed it - I would be able to say only "Hello" and "Herp derp hurr durr". Just the fact that game forced me to use translator due to lack of localization improved my life (Visiting UK? No problem. Going to another country? Also no problem, most EU countries citizens speak English fluently so you will always find the way to your hotel if you are lost or getting into private closed parties...) |
I know that. When you force people to learn English then they'll do that. That's the reason why I'm able to understand English. But many people simply want to try ArcEmu, they don't want to learn English to do that. Off topic about German localization/synchro: |
@neo-mat On the other sides the bad feelings about translations are mostly only because of the bad quality of the translation. A good translated text can really save a lot of time and maybe also prevent a lot of mistakes. And the time you saved you can use to study something more interesting. And escpecially here in the world of WoW you have a lot of very young people with low skill in language as well as technical skill. So I think some localization may also prevents to answer a lot of repetitive questions of beginners in the arcemu forum. Edit: Not to forget the psychologic effect, that you feel more to be in a community in your own language. So localization may also helps to find some more members interested in Arcemu. |
Well, I guess I am wierdo then, I don't remember last time I chatted on internet in Russian... Even on skype I prefer to chat/use VoIP with people from UK/Germany/Finland and I am trying to avoid any Russian community, but maybe that's just me or Russian community is really bad place to be in/with. As I said before, just sharing my biased opinion and experience ^^ |
I finished the files already today: [Link removed. Made a pull request.] Localization discussion: Damnit... Edith says that "correct" should be "correctly" since it's an adverb. |
Translation is always good to have. Even if I myself prefer English too. |
|
@neo-mat is this really that much of a headache? |
You can start messing around with the tools branch if you feel like it. |
In fact you SHOULD test it, since I am not gonna merge it into the mainline until I am done with the tool too! :) |
@dfighter1985 Thanx. |
We should use pure XML config files, that way we could alleviate the current known problems with the config files.
LibXML seems to be a viable XML library to be used.
Altough it's a C library, it's fairly easy to be used and we could easily write a C++ wrapper for the stuff we need.
The text was updated successfully, but these errors were encountered: