Zireael07 / FreeRoamRoguelikeRacerPrototype

A 3D free roam racer in a procedurally generated map
MIT License
95 stars 16 forks source link

DirAccess.new() crashed Godot v4 #5

Open clemens-tolboom opened 1 year ago

clemens-tolboom commented 1 year ago

res://car/replay_system.gd uses var dir = DirAccess.new() which cannot be used.

See https://docs.godotengine.org/en/latest/classes/class_diraccess.html

    var dir = DirAccess.new()
    dir.make_dir("res://replay")

tries to make a directory in res:// but should be 'user://' as it is runtime.

See https://docs.godotengine.org/en/latest/tutorials/scripting/filesystem.html#user-path

clemens-tolboom commented 1 year ago

(do you mind chatting @ Discord ?)

Zireael07 commented 1 year ago

I'm very rarely on Discord tbh.

You have a good point about res vs user, I never noticed as the project is basically constantly worked on and no one playtested before :P

clemens-tolboom commented 1 year ago

We can discuss a little @ Discord to prevent an influx of issue/ define a 'stressless' workflow?

BTW: my interest is the computer generated scenes/meshes. And can give feedback on design patterns / singletons.

Zireael07 commented 1 year ago

DM me on Discord then - I'm on Godot engine server as Zireael#5759

I will be happy to help out with generating meshes, this is the part of this project I love the most

clemens-tolboom commented 1 year ago

I gave you access to a private repo of mine. So now I can reference a piece of code there :-p ... I do prefer Discord for that :-O