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

Allow to specify a path for the server provided assets. #66

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

Jupeyy
Copy link
Member

@Jupeyy Jupeyy commented Jan 15, 2025

For now in config dir only:

Allows mods to specify an asset, like skin, with a name + hash to force the client to load exactly that asset (triggering the download from game server instead of the assets server).

// info here is the player info, like name, skin etc.
info.skin = ResourceKeyBase {
    name: "default".try_into().unwrap(),
    hash: decode_hash(
        "eca1544ddc97c33db47e2543ae0ff42b7f6909860dc8dad039887101dbc72d09",
    ),
}
.try_into()
.unwrap();

@Jupeyy Jupeyy force-pushed the pr_server_provided_assets branch from 46ab6e5 to 732a238 Compare January 15, 2025 15:26
@Jupeyy Jupeyy merged commit f7ba116 into ddnet:main Jan 15, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant