altmp / altv-issues

Issues and roadmap for alt:V project
92 stars 17 forks source link

Show parent folder on Wildcard resource #2137

Open GVMP opened 7 months ago

GVMP commented 7 months ago

Description of the problem

When using

"parentFolder/*" in resources in the server.toml, it will only show the folder it loaded inside the parent folder and not the parent folder.

Desired solution for the problem

Show the "parentFolder/subFolder" path in the server log, when loading/loaded.

Alternatives you considered

No response

Additional context

No response

GVMP commented 7 months ago

After some conversation with Heron, it might also affect the resource handling in total.

The wildcard system is pretty neat, but this requires also to handle standard folder structures. If I copy an existing project, rename the main folder I want to be able just to load my default folders.

E.g.:

altv-neat-script/ ├─ scripts/ │ ├─ resource.toml ├─ assets/ │ ├─ resource.toml ├─ dlc/ │ ├─ dlc.rpf

altv-awesome-script/ ├─ scripts/ │ ├─ resource.toml ├─ assets/ │ ├─ resource.toml

That would probably result to the problem, that the resource "scripts" has already been loaded.

So I'd end in following folder structure, which looks ass:

altv-neat-script/ ├─ altv-neat-script-scripts/ │ ├─ resource.toml ├─ altv-neat-script-assets/ │ ├─ resource.toml ├─ altv-neat-script-dlc/ │ ├─ dlc.rpf