Stride Forums Archive

Quake style console

6 posts, 4394 views, 2014-11-14 to 2014-11-20

Discosultan (Jaanus Varus) 2014-11-14 #1

The console allows for in-game command typing with customizable command interpreters. For example, on Windows platform, IronPython interpreter can be used for easy game object manipulation through the console interface.

[image: not archived]

More information on my blog post.

Here you can see the console in action.

Link to source.

xoofx (Alexandre Mutel) 2014-11-15 #2

That’s a really cool addon! Thanks for sharing!

Elarcis 2014-11-16 #3

It sounds really nice for debugging purpose or in-game calibrating, there is probably some research to be done in that way to implement cheatcodes :3 This is cool !

Is there any way to have a log of typed commands ? You know, if you like a thing that you did, so you can rembember it and change it in your code ?

Discosultan (Jaanus Varus) 2014-11-16 #4 in reply to #3

Yeah, that’s exactly why I started to create such a console in the first place!

I created something called CustomCommandInterpreter which is using the command pattern to create and execute console commands. On first thought, this would work perfectly to allow players to use in-game cheat codes. Basically each cheat code would be a separate command with whatever desired behavior.

Not with the current implementations of the interpreters. However, it would be quite trivial to create a new custom interpreter or modify existing interpreters to log whatever commands were passed to it. Seems like a really good idea.

Aravol (David Baker) 2014-11-20 #5

This is absolutely brilliant and I’ll be including this into all my projects moving forward. Thanks a ton for the showcase!

Discosultan (Jaanus Varus) 2014-11-20 #6 in reply to #5

Thanks! Let me know if you stumble on any issue or have any questions.