Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DirAccess.new() crashed Godot v4 #5

Open
clemens-tolboom opened this issue Feb 12, 2023 · 5 comments
Open

DirAccess.new() crashed Godot v4 #5

clemens-tolboom opened this issue Feb 12, 2023 · 5 comments

Comments

@clemens-tolboom
Copy link

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 clemens-tolboom changed the title DirAccess.new() crashed Godot DirAccess.new() crashed Godot v4 Feb 12, 2023
@clemens-tolboom
Copy link
Author

(do you mind chatting @ Discord ?)

@Zireael07
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

Zireael07 commented Feb 14, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants