Giter Club home page Giter Club logo

Comments (18)

kestrelm avatar kestrelm commented on June 1, 2024 2

Sounds great, please remember to sync and finish compiling before testing :)

Cheers

from creature_godot.

kestrelm avatar kestrelm commented on June 1, 2024 1

Sync up and try again. Just checked in a fix. Now it doesn't crash if the incorrect name was typed in.
Create a new CreatureGodot object and give it a go.

from creature_godot.

blurymind avatar blurymind commented on June 1, 2024

https://www.kestrelmoon.com/creaturesamples/LichLordProject.creaProj.zip

from creature_godot.

blurymind avatar blurymind commented on June 1, 2024

Ok this is my mistake. The archive contains the actual creature project file, not the exported data. But if you set an archive without a proper exported json file for the file - it crashes the entire engine - which is pretty harsh. :)

It would also be nice if we could navigate to the file, but I guess that would create more work for you

from creature_godot.

blurymind avatar blurymind commented on June 1, 2024

In fact typing anything in the file box will crash godot, so the user has to always paste the name of the file. In often cases this could lead to a crash, because I like to keep the assets in a subfolder

from creature_godot.

blurymind avatar blurymind commented on June 1, 2024

nice! thank you. I will recompile and give it a try asap.

from creature_godot.

kestrelm avatar kestrelm commented on June 1, 2024

Btw, it only works for exported jsons or zipped jsons. Error checking for other files will take more time. Sorry.

from creature_godot.

blurymind avatar blurymind commented on June 1, 2024

does it still crash godot if I start typing the path manually?

Since there is no way to navigate to the file, a lot of people who keep their animations in a subfolder might do this:

type
res://myAnimationsFolder/

then paste the name of the file at the end of the line

But now when you start typing, you wont go as far as 're...' before it crashes the whole editor.

Its not the worst thing - but definitelly a big gotcha that deserves a warning.

from creature_godot.

kestrelm avatar kestrelm commented on June 1, 2024

That is very strange, I am experiencing no such crash at all on Windows.
Is this a Linux editor issue? I do not control the textbox UI code, that is all up to Godot.
What does your error console print?

from creature_godot.

blurymind avatar blurymind commented on June 1, 2024

I need to check it again - but it might be a linux specific one - in which case I will forward it to godot devs for more info.

from creature_godot.

kestrelm avatar kestrelm commented on June 1, 2024

I just double checked again on Windows. I can keep typing in the textbox with a totally bogus filename without any crashes.

from creature_godot.

kestrelm avatar kestrelm commented on June 1, 2024

Also, what is your print out in your console before the crash?

from creature_godot.

kestrelm avatar kestrelm commented on June 1, 2024

For example, I am currently typing in a bogus file called "test" that does not exist, I get the following printout:

settings changed
CreatureGodot::load_json() - Loading file: test
CreatureGodot::load_json() - ERRROR! Could not load file: test

But no crashes. Godot Editor runs just fine.

from creature_godot.

blurymind avatar blurymind commented on June 1, 2024

when I type res:// and hit enter godot crashes with this error:

CreatureGodot::load_json() - Loading file: /home/owl/INSTALL/godot/creature2dExample/
LoadCreatureJSONData() - Error parsing JSON!
CreatureGodot::load_json() - Finished loading file: /home/owl/INSTALL/godot/creature2dExample/
godot.x11.tools.64: modules/creaturegodot/gason/gason.h:85: JsonNode* JsonValue::toNode() const: Assertion `getTag() == JSON_TAG_ARRAY || getTag() == JSON_TAG_OBJECT' failed.

I will try it with the fixes in a bit. still recompiling

from creature_godot.

kestrelm avatar kestrelm commented on June 1, 2024

That is very strange, did you sync up and rebuild the latest changes?

from creature_godot.

blurymind avatar blurymind commented on June 1, 2024

not yet, I am compiling it now

from creature_godot.

blurymind avatar blurymind commented on June 1, 2024

ok tested it!

I confirm that your last commit has fixed the issue. Now when I type a wrong directory or path, it just gets erased from the input box. That was an awesome and qucik fix. 👍

from creature_godot.

blurymind avatar blurymind commented on June 1, 2024

thank you for the awesome plugin and for the fixes.

from creature_godot.

Related Issues (20)

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.