Asking this for a friend who’d like to get into modding the game: what type of coding was used to make the game?
Cant say for sure as i have never modded this game, but i know its based on modified cryengine (i think version 3.6 or 3.7?), so i would recommend to you friend to start with base cryengine, then he could look on nexusmod page for kingdom come, where can be found tools and tutorials to mod game quite often. Also he could take a look on similar mods and check, how they are done
The game was written in C++ with CryEngine 3.8.6 with some features from CryEngine 5.x, but this does your friend no good. Mods are created with XML and, to a lesser extent, Lua. Most mods involve changing XML tables, but more complex mods involve behavior trees and flowgraphs, which are also in XML - these components are completely undocumented. If your friend wants to get into modding this game, s/he’ll need to do a lot of their own research and experimentation.
XML? Really? Im not familliar with game or desktop programming but I’d expect JSON in such modern project like KCD.
I don’t understand your reasoning, and I suspect you don’t either. Read this.
CryEngine supports XML natively. In fact, CryEngine supports SQL as well. Warhorse actually exports its PostgreSQL database to XML and the game effectively loads an SQL database from XML.
Hmm JSON is not JS exclusive thing, e.g. this library if your point is this. JSON is only data format, it is not language dependant.
About SO answer:
My reasoning is, that XML is unnecessarily heavy for parsing, example can be generation of hundreds of queries, to be fair write it on local storage, same amount of DB queries and outcome will be much slower. Hundreds of queries is very small number. For millions of queries, it is practically near to useless when compared to other accessible formats.
I am assuming extracting same data from DB and write them to a file, writing on local storage by a local machine. Same data, same machine. Export to XML is definitely slower by many times.
Actually, only advantage of XML IMHO is that it is easily human-readable as deeply nested data are not really problem for JSON, it’s a problem of parser.
Sorry to say, but some statements in this SO thread are false or misleading, few others are outdated.
I don’t think you really understand what you’re talking about. Sorry, but I’m not going to get into a JSON vs. XML debate with someone who’s admittedly not a programmer.
This Thread is like those “My Penis stuck in toaster, what can I…eh…my friend do?!-Threads”
Not exactly, I would need to make an embarrassing question for that
No need for…everytime i hear “asking for a friend” i see penises stuck into toasters in my head…maybe smthg is wrong with me idk