How to Load JSON Data in Godot 4.0 (static data management)

How to Load JSON Data in Godot 4.0 (static data management)

Queble

1 год назад

22,872 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@gnitsaf
@gnitsaf - 09.12.2023 03:30

I thought about getting Gridless but RadMatt hasn't updated anything or commented/answered emails since 2021, Not sure where he went but they seem to be dead projects which is sad.

Ответить
@speckdratz
@speckdratz - 24.11.2023 02:45

May I suggest... instead of StaticData.itemData["apple"]["description"] opt for StaticData.itemData.apple.description
A little easier on the eyes, especially with deeply nested structures

Ответить
@dairyfreelemonstreams9493
@dairyfreelemonstreams9493 - 02.11.2023 04:08

5 minutes in, FYI you can also drag the file into the script editor itself and it should just put the path in there with quotes around it already.
Edit from after the fact: Hell yeah this is cool, Gridless DB is also on sale for half off right now so I'm snagging this :)

Ответить
@ltecheroffical
@ltecheroffical - 25.10.2023 00:19

Resources would be better for that but neither less, that's a good tutorial

Ответить
@user-wo2xv6bl4r
@user-wo2xv6bl4r - 18.10.2023 08:40

Thank you so much for this tutorial. Many of the ones I found previously used syntax from version 3.x, which doesn't work in version 4.x. Now my problem is solved, and I'm very happy.

Ответить
@DevJorvan
@DevJorvan - 04.10.2023 21:14

Great tutorial. Thanks a lot, mate 🤝

Ответить
@JedahVulture85
@JedahVulture85 - 03.10.2023 00:40

Hi, I have a problem with the format of my file.
I tried the following json:

{
"event 01": {
"intensity": 1,
"seeing": 0,
"hearing": 8
}
}

And it worked perfectly as expected, but as soon as I add a second event this way:

[
{
"event 01": {
"intensity": 1,
"seeing": 0,
"hearing": 8
}
},
{
"event 02": {
"intensity": 3,
"seeing": 4,
"hearing": 0
}
}
]

It gives me a "Error reading file" why is that?

Ответить
@mikeredacted9952
@mikeredacted9952 - 28.09.2023 22:31

Nice tutorial, it works flawlessly.

Ответить
@helicalius
@helicalius - 24.09.2023 18:08

Awesome stuff,

Ответить
@xXamnesiusXx
@xXamnesiusXx - 23.09.2023 14:50

Thank you so much for you tutorials! Starting game dev with godot and some infos aren't easy to find or hard to follow...
Really appreciate your work!

Ответить
@S41ntTr1n4
@S41ntTr1n4 - 28.08.2023 08:56

Oh friend, I just found this one and its all i needed :3 thank you for your hard work!

Ответить
@BMWIF-gp8bm
@BMWIF-gp8bm - 04.08.2023 15:13

Thank you, bro!

Ответить
@llamadohgaming6787
@llamadohgaming6787 - 15.07.2023 16:04

This was really clear and straightforward. Nothing unnecessary. Thank you, subbed.

Ответить
@ciniminims6576
@ciniminims6576 - 23.06.2023 19:28

Thank you bro. You have saved me so much time

Ответить
@mio-xh1ln
@mio-xh1ln - 21.05.2023 00:04

I just switched from godot 3.5.1 to 4.0.3 and my json data script didn't work anymore. Since I am still a beginner I'm still struggling to completely write the coding myself, this is the only tutorial I've watched that I understood and which worked. Thank you so much buddy, definitely earned a sub from me :) keep it up

Ответить
@sddhxds
@sddhxds - 15.05.2023 18:08

i love you bro

Ответить
@black-tie3363
@black-tie3363 - 12.05.2023 14:44

Thank you. Words can't describe how much it helped me.

Ответить
@mauigamestudio
@mauigamestudio - 08.05.2023 22:25

This was a great video but I wish I could see a sample of the actual json so I could get an idea of what it's supposed to look like without the tool you are using... That's where I'm kinda stuck right now.

Ответить
@baritonoid
@baritonoid - 04.05.2023 23:07

this is exactly what i was looking for and i even understood what you were doing! Or so I thought, because I got the error reading file. sad.

Ответить
@xLABAREDA
@xLABAREDA - 04.05.2023 03:01

Which json database manager are you using?

Ответить
@MP-pv4eb
@MP-pv4eb - 30.04.2023 14:33

For those that are not using Gridless, do you have advice on how to format the JSON file to work well with Godots built in translation system? Or any videos you could recommend for understanding the translation system? Thank you for the video. Its th clearest and most up to date I've seen on how to actually import the JSON! 😊

Ответить
@emerald_game
@emerald_game - 15.04.2023 13:31

非常棒!

Ответить
@pretzol4973
@pretzol4973 - 15.04.2023 04:40

thank you!! docs weren't helping much but this tutorial made things much more clear!!

Ответить
@user-fs1eq4sg7t
@user-fs1eq4sg7t - 25.03.2023 15:28

Help me a lot! Thx!!!😊

Ответить
@Betegfos
@Betegfos - 21.03.2023 22:38

Lovely stuff! Can you also make a load save system?

Ответить
@Syvies
@Syvies - 21.03.2023 08:41

Thanks a lot for this tutorial, I was searching how to do exactly that!
Can't wait for your version of save data without Json!

Ответить
@successspotu
@successspotu - 21.03.2023 05:48

Thanks bro i also find how to do save and load with json but this video useful for others also your dedication was appreciated once again thank you

Ответить