kakoeimon / GodotMation

An implementation of machinations framework in Godot Engine
MIT License
2 stars 2 forks source link

an example? #5

Open j2l opened 5 years ago

j2l commented 5 years ago

I tried simple Hourglass example from https://www.gamasutra.com/view/feature/176033/the_designers_notebook_.php and got: res://addons/kakoeimon.godotmation/GodotMation_Edit.gd:85 - Invalid get index 'type' (on base: 'Timer').

Do you have working examples?

kakoeimon commented 5 years ago

does it work now?

j2l commented 5 years ago

Thank you, it works now! For the records and future users, Hourglass works when setting Number=5+Passive to first node and automatic to second node.

But when I remove the GodotMation node, it simply crashes Godot (it quit, no error message). I've seen that happen with another plugin that was developed for Mac first.

BTW, could there be a way (in the near future) to generate gdscript skeletons (scaffolding) from the GodotMation diagram? This way, we could start with GodotMation to validate the game mechanic then generate scaffolding scripts from it and finish a prototype.

kakoeimon commented 5 years ago

Thanks for testing, again. I have no idea what scaffolding scripts are. The idea for this project was to make a logic that will run a machination diagram. Not mathematically but with logic alone. Afterwards I "translated" the gdscript in c++, see : https://github.com/kakoeimon/GodotMationCpp This gave a huge speed up. My tests gave huge difference in speed between the two. see : https://twitter.com/kakoeimon/status/1006793287452315648 Almost 50 times faster. With results like this I believe that the way to go is to use the c++ version even as a replacement of logic written in gdscript.

Be warned thought... I never really used GodotMation in my projects and several times I choose spreadsheets over it.

j2l commented 5 years ago

Thank you again. Could you please explain about your spreadsheets?

kakoeimon commented 5 years ago

Spreadsheets Calc in LibreOffice , Excel in MS Office. In calc for example you can export a csv and you can easily read it in Godot.

j2l commented 5 years ago

I know Spreadsheets software, but I don't know the kind of spreadsheet (content) you use for your projects. GodotMation (and Machinations) is about various routes/paths with tokens and I wonder how you converted that to a csv table. Can you share an example?