@Tehom said in Getting Young Blood Into MU*'ing:
@Griatch said in Getting Young Blood Into MU*'ing:
Could you elaborate on what you think should work differently (apart from adding a RESTful API as a new input in the first place)?
.
GriatchWhat I was more thinking about was the response rather than the request, if that makes sense. Evennia does support using input_funcs out of the box to call commands: but those commands do not currently have a generalized way set up to generate a response afaik, it assumes that the only meaningful output needs to take place in-game. If we're assuming that the text response is just one type of View, that's not necessarily the case - we want any sort of action to generate some sort of JSON response which we'd pass along to wherever. So what I was picturing was commands calling methods in objects that'd return some dict-like structure that could be converted to JSON for web responses, though you could do the same thing with commands directly as well.
Just to translate for everyone that is wondering what Tehom is talking about in his discussion with Griatch and isn't familiar with the coding terminology, let me briefly (and maybe at least partly accurately) summarize:
He is saying that since people trying to create their own games using evennia would probably instinctively first go to changing commands (you know, the really common ones shared across games that Evennia has out of the box also), it should probably be a lot easier for a coder to learn to do that. Since there's an awful lot of ways something can be coded and implemented, he was debating about ways to set it up so it's a lot more accessible for new coders to do it, rather than very experienced ones, since a new coder sitting down to try to learn python and django and use Evennia is going to want to do that early on, and it probably shouldn't need more advanced concepts. That's why it's such a technical discussion, because they are basically coders talking about what might be easiest out of a wide range of choices.