🌸 morgan period 🌸
🌸 morgan period 🌸
CC#
Created by 🌸 morgan period 🌸 on 9/11/2024 in #help
JsonSerializer escaping '&'
Well I'm making it so the user can open the json and change the values. So when it gets rewritten it ruins the &
9 replies
CC#
Created by 🌸 morgan period 🌸 on 9/11/2024 in #help
JsonSerializer escaping '&'
Do I have to do something like [JsonInclude]?
[JsonInclude]
public string a = "test &";
[JsonInclude]
public string a = "test &";
9 replies
CC#
Created by 🌸 morgan period 🌸 on 8/24/2024 in #help
confused on this error
I'm confused on how I would get ListInvoices from another script I understand why client is null, because it's accessing the script itself not the reference I've made with client being created
3 replies
CC#
Created by 🌸 morgan period 🌸 on 8/24/2024 in #help
Async Task Help
Hmm interesting, thank you!
5 replies
CC#
Created by 🌸 morgan period 🌸 on 7/30/2024 in #help
YouTube Api
It doesn't need that I suppose. It's just a statistics display and real time comments would be cool but can kind of be faked if I call the api, idk, every minute than randomly space the comments out with delays
15 replies
CC#
Created by 🌸 morgan period 🌸 on 7/30/2024 in #help
YouTube Api
Yeah, looks like the best I could do is every 9 seconds
15 replies
CC#
Created by 🌸 morgan period 🌸 on 7/30/2024 in #help
YouTube Api
That way it's somewhat live updated
15 replies
CC#
Created by 🌸 morgan period 🌸 on 7/30/2024 in #help
YouTube Api
Would making a new comment list call every .5 seconds be fine?
15 replies
CC#
Created by 🌸 morgan period 🌸 on 7/19/2024 in #help
Dictionary help (its confusing)
I'm going to try to use the JSON class like you said
35 replies
CC#
Created by 🌸 morgan period 🌸 on 7/19/2024 in #help
Dictionary help (its confusing)
The keys makes it really easy to understand what pieces to change
35 replies
CC#
Created by 🌸 morgan period 🌸 on 7/19/2024 in #help
Dictionary help (its confusing)
The thing is that I wanted anyone to open it up and easily know what's going on so they could add more to it
35 replies
CC#
Created by 🌸 morgan period 🌸 on 7/19/2024 in #help
Dictionary help (its confusing)
I'm just trying to turn a json to dictionary using csharp because I thought it would look cleaner than a bunch of arrays
35 replies
CC#
Created by 🌸 morgan period 🌸 on 7/19/2024 in #help
Dictionary help (its confusing)
I don't know anymore
35 replies
CC#
Created by 🌸 morgan period 🌸 on 7/19/2024 in #help
Dictionary help (its confusing)
Is it godot related but csharp
35 replies
CC#
Created by 🌸 morgan period 🌸 on 7/19/2024 in #help
Dictionary help (its confusing)
I only have discord on my phone so I can't see if the syntax worked
35 replies
CC#
Created by 🌸 morgan period 🌸 on 7/19/2024 in #help
Dictionary help (its confusing)
public void Init() {
string data = Load_Json(dataPath);

Json jsonLoader = new Json();
Error error = jsonLoader.Parse(data);

if (error != Error.Ok) {
return;
}

Dictionary loadedData = (Dictionary)jsonLoader.Data;
}

private string Load_Json(String filePath) {
filePath = ProjectSettings.GlobalizePath(filePath);
GD.Print(filePath);

string data = null;
if (!File.Exists(filePath)) { return null;}

try {
data = File.ReadAllText(filePath);
} catch (System.Exception e) {
GD.Print(e);
}

return data;
}
public void Init() {
string data = Load_Json(dataPath);

Json jsonLoader = new Json();
Error error = jsonLoader.Parse(data);

if (error != Error.Ok) {
return;
}

Dictionary loadedData = (Dictionary)jsonLoader.Data;
}

private string Load_Json(String filePath) {
filePath = ProjectSettings.GlobalizePath(filePath);
GD.Print(filePath);

string data = null;
if (!File.Exists(filePath)) { return null;}

try {
data = File.ReadAllText(filePath);
} catch (System.Exception e) {
GD.Print(e);
}

return data;
}
35 replies
CC#
Created by 🌸 morgan period 🌸 on 7/19/2024 in #help
Dictionary help (its confusing)
And I'm also struggling with counting? dictionary["a"].Count doesn't exist but dictionary.Count does?
35 replies