Coder Social home page Coder Social logo

4d49 / godot-console Goto Github PK

View Code? Open in Web Editor NEW
45.0 3.0 4.0 13 KB

Simple in-game console for Godot 4.2+

License: MIT License

GDScript 92.56% C# 7.44%
godot godot-engine godot-console game-console godot-plugin godot-addon gdscript godotengine

godot-console's People

Contributors

4d49 avatar lolomap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gregkrsak lolomap

godot-console's Issues

Mono usage

How can I create command from C#? It seems like it does not support lambdas to pass arguments. If there is no solution now, can it be supported in future?

"Assertion failed: Has command" while typing

I'm getting a

Assertion failed: Has command.

while typing a command, it happens at random points along writing, sometimes it gets triggered while typing the second word.

Running in v4.2.1-rc1_mono

`Could not find type "ConsoleCommand" in the current scope` error happens sometimes on start

First of, thanks for the console implementation for Godot 4. It's usable, but I'm getting an error at game startup SOMETIMES, so not on every run, and I am not exactly sure what could cause it:

Could not find type "ConsoleCommand" in the current scope

Triggered at

func add_command(command: ConsoleCommand) -> void:

line of Console.gd

I've followed your suggestion to add ConsoleMono to autoload, and turned it on in plugins.

Using Godot v4.2.1.rc1.mono.official [daeb1c729]

Remove some unnessary default commands.

Nice project, but I think some of the default commands are unwanted, and currently require editing of plugin code to remove.

Default commands implemented should be only those that affect the console, so some of the commands should be removed to leave the decision to implement them to the game developer. (Without having to edit plugin code)

So currently only help and clear are commands that strictly affect the console, and candidates to be removed would be:

  • max_fps & physics_tics: Should be removed 100%, it should be up to game developer if they allow those to be changed. These could be leaved as examples if commented out though.
  • quit and version: Although these are commonly wanted anyways, leaving implementation to the game dev would be preferable.
  • test: not needed in released projects using this console addon, but I understand if it is used for testing. Maybe a flag or something if you do not want it removed.

Doesn't work

  • Can't type into the console.
  • Shows a lot of errors (aka class name ConsoleNode hides a global script class)
  • Shows error file is not found
  • Don't know if ConsoleContainer node is supposed to be a child of anything in particular, but I tried making it a child of a root, and of UI Canvas. It shows up only when it's the child of UI Canvas and you can't type into it.
  • If you change the folder name from godot-console-master to godot-console (because in errors it says it is searching for it), then it crashes the project on play

I am using Godot v4.1.1.stable.official [bd6af8e0e]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.