Information on MCServer - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Discussion (https://forum.cuberite.org/forum-5.html) +--- Thread: Information on MCServer (/thread-1910.html) |
RE: Information on MCServer - worktycho - 05-11-2015 Doing what you propose would just add to the technical debt. 90% of what I'm doing is not adding command line parameters. Its adding a config system that suites what MCServer now is, as opposed to what it was when the current system was added. Once we have the infrastructure in place, then adding command line parameters will be trivial. And that's before we get to the UX issues I described earlier. And the fact that if the system doesn't know something is overridden, we have no way of preventing changes in the webadmin. RE: Information on MCServer - worktycho - 05-11-2015 Chaining iniFile's with the current interface is ridiculously complicated. I've had to rewrite FindKey three times, because I keep finding new edge ases which require storing new information about lookups. RE: Information on MCServer - worktycho - 05-11-2015 GetNumValues is a challenge to implement. RE: Information on MCServer - NiLSPACE - 05-11-2015 Can't we use unordered_map's? Simply read all the arguments in the main function, put them in an unordered map, and pass it to the cRoot (where the settings are normaly read). In there it first looks if the item is present in the unordered map, and if not it takes if from the settings.ini. Of course, I have little C++ knowledge, so I could be talking nonsense. RE: Information on MCServer - worktycho - 05-11-2015 That would work technically but has other issues with design. I'm trying to follow the SRP, and I'm not sure what cServers responsibility is, but working out overrides is not it. As its not its responsibility, adding this logic would cause more issues with adding other parameters in the future. RE: Information on MCServer - Shadowraix - 06-07-2015 What's the current status on the IP stuff? I haven't emailed the host in a while and would like to give him an update on things. |