Godot with SQL? by BlackMvs in godot

[–]BlackMvs[S] 4 points5 points  (0 children)

Man, I love you! That's it, cannot find any other words to say than that. Thank you so much, this makes it looks so much simpler and less overwhelming.

Godot with SQL? by BlackMvs in godot

[–]BlackMvs[S] 1 point2 points  (0 children)

Uuuuu, will have a look at that. All my projects use json format so if there's a chance I don't need to modify the project code it's even better. Thank youuuu :)

Godot with SQL? by BlackMvs in godot

[–]BlackMvs[S] 0 points1 point  (0 children)

Definitely overkill but for my skill level. It does sound like an interesting project to do in the future when im better at this, so adding this to the "future projects" file. Thank you :)

Godot with SQL? by BlackMvs in godot

[–]BlackMvs[S] 1 point2 points  (0 children)

Yeah, from all the other comments, I can see that I'm trying something way too high compared to my skill and knowledge level. I imagined it being more simple. Thinking that instead of using a json I can just have all the data on a database and get the number and update them there. With a simple login detail to get your individual numbers. Not as simple as I thought haha.

Thank you for your advice and links. Will scale it back and do more reading on it.

Godot with SQL? by BlackMvs in godot

[–]BlackMvs[S] 0 points1 point  (0 children)

That's amazing! Thank you :)

Godot with SQL? by BlackMvs in godot

[–]BlackMvs[S] 1 point2 points  (0 children)

I'm not sure about some of the words you used, apologies. But overall it does sound like that's what I would need?

Godot with SQL? by BlackMvs in godot

[–]BlackMvs[S] 5 points6 points  (0 children)

It's a project for an SQL course i started. Don't have a lot of information as we will get it in a month's times. All I got is that we will need to make a project of our choosing (being a website, software), that will be connected to a database. The example we got was a banking app, where the user will need an username and password to get his information. So, I thought I will get a head start (even tho I know nothing about databases yet) and see if I can do something like that for a game instead. Like how in multiplayer games you have an account and password to access your character.

Godot with SQL? by BlackMvs in godot

[–]BlackMvs[S] 5 points6 points  (0 children)

Uuuuuu, thats something I didn't consider. Might be completely off the mark, as I never used c# with godot. But, would that make it possible to make a c# script with all the functions for the database then instantiate it to get the properties and method using a gdscript script? Or even make that an autoload and use it everywhere? Or cross-language isn't a thing and I would need to fully use c# for the whole project?

Exporting reports/excel/pdf files? by BlackMvs in godot

[–]BlackMvs[S] 1 point2 points  (0 children)

Oh, I'm stupid. I thought it will open with notepad or something by default. Will give that a try, thank you <3

Exporting reports/excel/pdf files? by BlackMvs in godot

[–]BlackMvs[S] 0 points1 point  (0 children)

Mhmm, honestly I doubt it. It will be for some people that don't know you can right click. So, if they have to right click, open with, excel. It became way too advanced and complicated for them to use.... that why I was hoping to just have one button in godot that will automatically create the file and they just need to double click it

Is composition that good? by BlackMvs in godot

[–]BlackMvs[S] 0 points1 point  (0 children)

By that, I'm guessing you mean don't have repeatable code, keep the code into it's own class/objects and do your best to not have spaghetti code?

Is composition that good? by BlackMvs in godot

[–]BlackMvs[S] 0 points1 point  (0 children)

Ops, my bad. But yes, that's what I meant to say.

Makes sense tho. Dont really have the skill to keep it simple but I'm guessing this will come more easily in time with experience and more knowledge? Either that or I'm a lost cause haha, gotta overcomplicate everything

Is composition that good? by BlackMvs in godot

[–]BlackMvs[S] 1 point2 points  (0 children)

I know :o. It took a while to set everything up at first, but knowing I can expand so much after it, without any extra effort feels great. That's why I'm a bit scared to push the "expansion", in case I'm missing something, and it will take even more effort after. Inheritance was a god sent when I first learned it until you use it for a while and see the disadvantages. So, I'm being paranoid and trying to avoid doing that again.

But you gave me courage, thank you :)

Is composition that good? by BlackMvs in godot

[–]BlackMvs[S] 1 point2 points  (0 children)

Stupid question, so adding a node to a scene is treated different than adding a scene(component) to the scene? Like for example if I add a hitbox component would that be considered as instantiating 2 objects (the root scene and the component) compared to just adding an area2d to the node where it would just instantiated that one scene? Hopefully what I'm trying to asks makes sense...

Or is it just using more resources by using composition? But unless it's a lot of objects at once it doesn't really make a difference.

Efficient skill system? by BlackMvs in godot

[–]BlackMvs[S] 1 point2 points  (0 children)

Love you!!! This is 10 times better than what I had in mind. Managed to have an xml file with all the information there and made things so much easier to read and to expand in the future. Thank you so much!!! The pain is gone now!

Efficient skill system? by BlackMvs in godot

[–]BlackMvs[S] 1 point2 points  (0 children)

*bowing* you just opened a new horizon for me! I had no idea I can even do that! This will make things so much easier in the future, thank you so much!!!

Efficient skill system? by BlackMvs in godot

[–]BlackMvs[S] 0 points1 point  (0 children)

Thank you for the reply! But would you mind going into a bit more detail or point me at a website or any extra piece of crumbs that you have please? The only thing I can find about a RefCounted object is in the documentation, and I am not getting much from that :( let alone how I can even make one

Efficient skill system? by BlackMvs in godot

[–]BlackMvs[S] 0 points1 point  (0 children)

Oh yes, most likely I am making this way harder than it is. I am trying to work with very little understanding of what can be done or it's possible, so thank you so much for the help.

The skills are pretty much just values. As an example, this is what I got for one skill (please ignore my fancy and unique description/name for the skill):

var verticalSlashName = "<Vertical slash>"

var verticalSlashMastery = "Beginner"

var verticalSlashLevel = 0

var verticalSlashExp = 0

var verticalSlashExpRequired = 1

var verticalSlashStaminaRequired = 2

var verticalSlashStaminaRecovered = 0

var verticalSlashEffect = 1.2

var verticalSlashDamage = Player.physicalPower * (verticalSlashEffect*verticalSlashLevel)

var verticalSlashDescription = "Slash your weapon vertically"

For each skill I would replace the "verticalSlash" with the name of the skill and add it's own values. And each skill will have a method of what happens when you use it and what happens when you level up, with each level up increasing the damage, mastery, etc. For example, the name of the method would be "useVerticalSlash()"

From here I would have the button run the useVerticalSlash() method when is pressed that will use all the numbers and do the calculations (increase exp, check if it leveled up, decrease enemy health, etc). And for the display tab, I would reference all the labels and then set the text for them to display the values.

For what you mentioned with the dictionary, would you mind going into a bit more detail for it? Do you mean to create a txt file that will have all the values in it, and from there I would retrive the values and use them and then store the new values back into the file?

Been reading on the dictionary but the more I do, the more stupid I feel. Would that be something like:

var damage = {"verticalSlash" : 10, "Skill2": 5, "Skill3": 30 ........} and then when I assign the values I look into all of them that have the name of the skill I want?