From 63390538aac9713ef916a85db3be0a16c23c4acc Mon Sep 17 00:00:00 2001 From: MrPizza <5529325+sir-lord-pizza@users.noreply.github.com> Date: Fri, 6 Nov 2026 09:44:06 +0100 Subject: [PATCH 1/4] chore(appearance): log addon clothing scroll diagnostics --- .../Players/Appearance/ClothingDiagnostics.cs | 354 +++++++++++++++++ .../Appearance/PedCustomizationRows.cs | 13 +- .../Players/Appearance/ClothingDiagnostics.cs | 359 ++++++++++++++++++ .../Appearance/PedCustomizationRows.cs | 13 +- 4 files changed, 737 insertions(+), 2 deletions(-) create mode 100644 src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/ClothingDiagnostics.cs create mode 100644 src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/ClothingDiagnostics.cs diff --git a/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/ClothingDiagnostics.cs b/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/ClothingDiagnostics.cs new file mode 100644 index 000000000..582397564 --- /dev/null +++ b/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/ClothingDiagnostics.cs @@ -0,0 +1,354 @@ +using CitizenFX.FiveM.Client; + +using vMenu.Enhanced.Logging; + +namespace vMenu.Enhanced.Menus.Players.Appearance; + +// Temporary, for the add-on clothing reports where scrolling right stops at a certain number. Logged as +// warnings so it shows without debug mode. Remove once that report is settled. +internal static class ClothingDiagnostics +{ + private const string Prefix = "[ClothingDebug] "; + + private static readonly int[] PropSlots = [0, 1, 2, 6, 7]; + + private static readonly int[] FollowUpMs = [100, 500, 1500]; + + private static readonly Dictionary LastPress = []; + + private sealed class Press(bool left, int count, int current, int next) + { + internal bool Left { get; } = left; + + internal int Count { get; } = count; + + internal int Current { get; } = current; + + internal int Next { get; } = next; + } + + internal static void Opened(PedVariationScope scope, string menu) + { + try + { + Report(scope, menu); + } + catch (Exception exception) + { + Log.Error(Prefix + "Open report failed: " + exception); + } + } + + internal static void Pressed(PedVariationScope scope, int slot, bool component, bool left, int count, int current, int next) + { + try + { + Check(scope, slot, component, left, count, current, next); + } + catch (Exception exception) + { + Log.Error(Prefix + "Press check failed: " + exception); + } + } + + private static void Report(PedVariationScope scope, string menu) + { + var ped = Native.PlayerPedId(); + var model = (uint)Native.GetEntityModel(ped); + var resource = Native.GetCurrentResourceName(); + + LastPress.Clear(); + + Log.Warning(Prefix + $"=== opened '{menu}', scope {ScopeName(scope)}"); + Log.Warning(Prefix + $"flavor Enhanced, vMenu {Native.GetResourceMetadata(resource, "version", 0)}, build {Native.GetGameBuildNumber()}, ped {ped}"); + Log.Warning(Prefix + $"model {model}, freemode male {model == PedSpawning.FreemodeModel(true)}, freemode female {model == PedSpawning.FreemodeModel(false)}"); + + foreach (var slot in PedComponentSlots.All) + { + var drawable = Native.GetPedDrawableVariation(ped, slot); + var texture = Native.GetPedTextureVariation(ped, slot); + + Log.Warning(Prefix + $"component {slot}: global count {Native.GetNumberOfPedDrawableVariations(ped, slot)}, scope count {scope.DrawableCount(ped, slot)}, scope current {Show(scope.CurrentDrawable(ped, slot))}, " + + $"worn {drawable} texture {texture}/{Native.GetNumberOfPedTextureVariations(ped, slot, drawable)} palette {Native.GetPedPaletteVariation(ped, slot)}, " + + $"valid {Native.IsPedComponentVariationValid(ped, slot, drawable, texture)}, collection '{Native.GetPedDrawableVariationCollectionName(ped, slot)}' local {Native.GetPedDrawableVariationCollectionLocalIndex(ped, slot)}"); + } + + foreach (var slot in PropSlots) + { + var worn = Native.GetPedPropIndex(ped, slot, false); + var line = $"prop {slot}: global count {Native.GetNumberOfPedPropDrawableVariations(ped, slot)}, scope count {scope.PropCount(ped, slot)}, scope current {Show(scope.CurrentProp(ped, slot))}, worn {worn}"; + + if (worn >= 0) + { + line += $" texture {Native.GetPedPropTextureIndex(ped, slot)}/{Native.GetNumberOfPedPropTextureVariations(ped, slot, worn)}, collection '{Native.GetPedPropCollectionName(ped, slot)}' local {Native.GetPedPropCollectionLocalIndex(ped, slot)}"; + } + + Log.Warning(Prefix + line); + } + + var collections = Native.GetPedCollectionsCount(ped); + var componentTotals = new int[PedComponentSlots.All.Length]; + var propTotals = new int[PropSlots.Length]; + + Log.Warning(Prefix + $"collections: {collections}"); + + for (var index = 0; index < collections; index++) + { + var name = Native.GetPedCollectionName(ped, index) ?? string.Empty; + var line = $" [{index}] '{name}' components:"; + + for (var at = 0; at < PedComponentSlots.All.Length; at++) + { + var count = Native.GetNumberOfPedCollectionDrawableVariations(ped, PedComponentSlots.All[at], name); + + componentTotals[at] += count; + line += $" {PedComponentSlots.All[at]}={count}"; + } + + line += " props:"; + + for (var at = 0; at < PropSlots.Length; at++) + { + var count = Native.GetNumberOfPedCollectionPropDrawableVariations(ped, PropSlots[at], name); + + propTotals[at] += count; + line += $" {PropSlots[at]}={count}"; + } + + Log.Warning(Prefix + line); + } + + for (var at = 0; at < PedComponentSlots.All.Length; at++) + { + var slot = PedComponentSlots.All[at]; + var global = Native.GetNumberOfPedDrawableVariations(ped, slot); + + if (global != componentTotals[at]) + { + Log.Warning(Prefix + $"MISMATCH component {slot}: global count {global}, collections add up to {componentTotals[at]}"); + } + + ComponentRanges(ped, slot, global); + } + + for (var at = 0; at < PropSlots.Length; at++) + { + var slot = PropSlots[at]; + var global = Native.GetNumberOfPedPropDrawableVariations(ped, slot); + + if (global != propTotals[at]) + { + Log.Warning(Prefix + $"MISMATCH prop {slot}: global count {global}, collections add up to {propTotals[at]}"); + } + + PropRanges(ped, slot, global); + } + + Log.Warning(Prefix + "=== end of open report"); + } + + private static void ComponentRanges(int ped, int slot, int count) + { + if (count <= 0) + { + return; + } + + var invalid = new List(); + + for (var drawable = 0; drawable < count; drawable++) + { + if (!Native.IsPedComponentVariationValid(ped, slot, drawable, 0)) + { + invalid.Add(drawable); + } + } + + var start = 0; + var name = Native.GetPedCollectionNameFromDrawable(ped, slot, 0) ?? string.Empty; + + for (var drawable = 1; drawable <= count; drawable++) + { + var next = drawable < count ? Native.GetPedCollectionNameFromDrawable(ped, slot, drawable) ?? string.Empty : null; + + if (next is not null && string.Equals(next, name, StringComparison.Ordinal)) + { + continue; + } + + Log.Warning(Prefix + $" component {slot} global {start}-{drawable - 1} '{name}' local {Native.GetPedCollectionLocalIndexFromDrawable(ped, slot, start)}-{Native.GetPedCollectionLocalIndexFromDrawable(ped, slot, drawable - 1)}, textures of first {Native.GetNumberOfPedTextureVariations(ped, slot, start)}"); + + start = drawable; + name = next ?? string.Empty; + } + + if (invalid.Count > 0) + { + Log.Warning(Prefix + $" component {slot} invalid with texture 0: {Ranges(invalid)}"); + } + } + + private static void PropRanges(int ped, int slot, int count) + { + if (count <= 0) + { + return; + } + + var start = 0; + var name = Native.GetPedCollectionNameFromProp(ped, slot, 0) ?? string.Empty; + + for (var drawable = 1; drawable <= count; drawable++) + { + var next = drawable < count ? Native.GetPedCollectionNameFromProp(ped, slot, drawable) ?? string.Empty : null; + + if (next is not null && string.Equals(next, name, StringComparison.Ordinal)) + { + continue; + } + + Log.Warning(Prefix + $" prop {slot} global {start}-{drawable - 1} '{name}' local {Native.GetPedCollectionLocalIndexFromProp(ped, slot, start)}-{Native.GetPedCollectionLocalIndexFromProp(ped, slot, drawable - 1)}, textures of first {Native.GetNumberOfPedPropTextureVariations(ped, slot, start)}"); + + start = drawable; + name = next ?? string.Empty; + } + } + + private static void Check(PedVariationScope scope, int slot, bool component, bool left, int count, int current, int next) + { + var ped = Native.PlayerPedId(); + var key = component ? slot : 100 + slot; + var what = $"{(component ? "component" : "prop")} {slot} ({ScopeName(scope)})"; + var direction = left ? "left" : "right"; + var landed = Read(scope, ped, slot, component); + + if (LastPress.TryGetValue(key, out var previous)) + { + if (previous.Count != count) + { + Log.Warning(Prefix + $"COUNT CHANGED {what}: was {previous.Count}, now {count}"); + } + + if (previous.Next != current) + { + Log.Warning(Prefix + $"READ BACK DIFFERS {what}: previous press asked {previous.Next}, this press read {current}"); + } + + if (previous.Left == left && previous.Current == current) + { + Log.Warning(Prefix + $"STUCK {what}: pressed {direction} twice and both presses read {current}"); + } + } + + LastPress[key] = new Press(left, count, current, next); + + var wrapped = left ? next > current : next < current; + + if (wrapped) + { + Log.Warning(Prefix + $"WRAPPED {what}: pressed {direction} on {current} of count {count}, went to {next}"); + } + + if (landed == next) + { + return; + } + + Log.Warning(Prefix + $"DID NOT CHANGE {what}: pressed {direction}, read {current}, asked {next} of count {count}, immediately reads {Show(landed)}, {Detail(scope, ped, slot, component, next)}"); + + _ = FollowUpAsync(scope, slot, component, next, what); + } + + private static async Task FollowUpAsync(PedVariationScope scope, int slot, bool component, int asked, string what) + { + try + { + var waited = 0; + + foreach (var delay in FollowUpMs) + { + await API.Delay(delay - waited); + + waited = delay; + + var ped = Native.PlayerPedId(); + var value = Read(scope, ped, slot, component); + + Log.Warning(Prefix + $" follow up {what} after {delay} ms: asked {asked}, reads {Show(value)}, {Detail(scope, ped, slot, component, asked)}"); + + if (value == asked) + { + return; + } + } + } + catch (Exception exception) + { + Log.Error(Prefix + "Follow up failed: " + exception); + } + } + + private static int? Read(PedVariationScope scope, int ped, int slot, bool component) + { + if (component) + { + return scope.CurrentDrawable(ped, slot); + } + + return scope.CurrentProp(ped, slot) ?? -1; + } + + private static string Detail(PedVariationScope scope, int ped, int slot, bool component, int asked) + { + if (component) + { + var drawable = Native.GetPedDrawableVariation(ped, slot); + + return $"global worn {drawable} texture {Native.GetPedTextureVariation(ped, slot)}, collection '{Native.GetPedDrawableVariationCollectionName(ped, slot)}' local {Native.GetPedDrawableVariationCollectionLocalIndex(ped, slot)}, " + + $"asked valid {(asked >= 0 && scope.IsUsable(ped, slot, asked, 0))}, asked textures {(asked >= 0 ? scope.TextureCount(ped, slot, asked) : 0)}, " + + $"global count {Native.GetNumberOfPedDrawableVariations(ped, slot)}, scope count {scope.DrawableCount(ped, slot)}"; + } + + var worn = Native.GetPedPropIndex(ped, slot, false); + var line = $"global worn {worn}"; + + if (worn >= 0) + { + line += $" texture {Native.GetPedPropTextureIndex(ped, slot)}, collection '{Native.GetPedPropCollectionName(ped, slot)}' local {Native.GetPedPropCollectionLocalIndex(ped, slot)}"; + } + + return line + $", asked textures {(asked >= 0 ? scope.PropTextureCount(ped, slot, asked) : 0)}, global count {Native.GetNumberOfPedPropDrawableVariations(ped, slot)}, scope count {scope.PropCount(ped, slot)}"; + } + + private static string Ranges(List values) + { + var parts = new List(); + var start = values[0]; + var end = values[0]; + + for (var at = 1; at <= values.Count; at++) + { + if (at < values.Count && values[at] == end + 1) + { + end = values[at]; + + continue; + } + + parts.Add(start == end ? $"{start}" : $"{start}-{end}"); + + if (at < values.Count) + { + start = values[at]; + end = values[at]; + } + } + + return string.Join(", ", parts); + } + + private static string ScopeName(PedVariationScope scope) => + scope.IsCollection ? $"collection '{scope.CollectionName}'" : "global"; + + private static string Show(int? value) => value is { } number ? $"{number}" : "none"; +} diff --git a/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PedCustomizationRows.cs b/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PedCustomizationRows.cs index f423847ad..e09304d10 100644 --- a/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PedCustomizationRows.cs +++ b/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PedCustomizationRows.cs @@ -52,7 +52,12 @@ internal static void Attach( menu.AddRange(Rows(scope(), show, components, fitTorso)); - menu.OnOpened = _ => menu.ReplaceEntries(Rows(scope(), show, components, fitTorso)); + menu.OnOpened = _ => + { + ClothingDiagnostics.Opened(scope(), menu.Menu.MenuTitle + " / " + menu.Menu.MenuSubtitle); + + menu.ReplaceEntries(Rows(scope(), show, components, fitTorso)); + }; } internal static List Rows( @@ -435,6 +440,8 @@ private static void Shift( TorsoFit.Apply(before, slot, redrawTorso); + ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); + return; } @@ -442,10 +449,14 @@ private static void Shift( { PedVariationScope.ClearProp(ped, slot); + ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); + return; } scope.SetProp(ped, slot, next, 0); + + ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); } // Asked for as a position counting from one, matching what the row shows. Legacy asked for a position diff --git a/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/ClothingDiagnostics.cs b/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/ClothingDiagnostics.cs new file mode 100644 index 000000000..20c1f335b --- /dev/null +++ b/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/ClothingDiagnostics.cs @@ -0,0 +1,359 @@ +using CitizenFX.Core; +using CitizenFX.Core.Native; + +using vMenu.Enhanced.Logging; + +using vMenu.Legacy.Hosting; + +using vMenu.Enhanced.BrokenNatives; + +namespace vMenu.Enhanced.Menus.Players.Appearance; + +// Temporary, for the add-on clothing reports where scrolling right stops at a certain number. Logged as +// warnings so it shows without debug mode. Remove once that report is settled. +internal static class ClothingDiagnostics +{ + private const string Prefix = "[ClothingDebug] "; + + private static readonly int[] PropSlots = [0, 1, 2, 6, 7]; + + private static readonly int[] FollowUpMs = [100, 500, 1500]; + + private static readonly Dictionary LastPress = []; + + private sealed class Press(bool left, int count, int current, int next) + { + internal bool Left { get; } = left; + + internal int Count { get; } = count; + + internal int Current { get; } = current; + + internal int Next { get; } = next; + } + + internal static void Opened(PedVariationScope scope, string menu) + { + try + { + Report(scope, menu); + } + catch (Exception exception) + { + Log.Error(Prefix + "Open report failed: " + exception); + } + } + + internal static void Pressed(PedVariationScope scope, int slot, bool component, bool left, int count, int current, int next) + { + try + { + Check(scope, slot, component, left, count, current, next); + } + catch (Exception exception) + { + Log.Error(Prefix + "Press check failed: " + exception); + } + } + + private static void Report(PedVariationScope scope, string menu) + { + var ped = API.PlayerPedId(); + var model = NativeFixer.GetEntityModel(ped); + var resource = API.GetCurrentResourceName(); + + LastPress.Clear(); + + Log.Warning(Prefix + $"=== opened '{menu}', scope {ScopeName(scope)}"); + Log.Warning(Prefix + $"flavor Legacy, vMenu {API.GetResourceMetadata(resource, "version", 0)}, build {API.GetGameBuildNumber()}, ped {ped}"); + Log.Warning(Prefix + $"model {model}, freemode male {model == PedSpawning.FreemodeModel(true)}, freemode female {model == PedSpawning.FreemodeModel(false)}"); + + foreach (var slot in PedComponentSlots.All) + { + var drawable = API.GetPedDrawableVariation(ped, slot); + var texture = API.GetPedTextureVariation(ped, slot); + + Log.Warning(Prefix + $"component {slot}: global count {API.GetNumberOfPedDrawableVariations(ped, slot)}, scope count {scope.DrawableCount(ped, slot)}, scope current {Show(scope.CurrentDrawable(ped, slot))}, " + + $"worn {drawable} texture {texture}/{API.GetNumberOfPedTextureVariations(ped, slot, drawable)} palette {API.GetPedPaletteVariation(ped, slot)}, " + + $"valid {API.IsPedComponentVariationValid(ped, slot, drawable, texture)}, collection '{API.GetPedDrawableVariationCollectionName(ped, slot)}' local {API.GetPedDrawableVariationCollectionLocalIndex(ped, slot)}"); + } + + foreach (var slot in PropSlots) + { + var worn = NativeFixer.GetPedPropIndex(ped, slot, false); + var line = $"prop {slot}: global count {API.GetNumberOfPedPropDrawableVariations(ped, slot)}, scope count {scope.PropCount(ped, slot)}, scope current {Show(scope.CurrentProp(ped, slot))}, worn {worn}"; + + if (worn >= 0) + { + line += $" texture {API.GetPedPropTextureIndex(ped, slot)}/{API.GetNumberOfPedPropTextureVariations(ped, slot, worn)}, collection '{API.GetPedPropCollectionName(ped, slot)}' local {API.GetPedPropCollectionLocalIndex(ped, slot)}"; + } + + Log.Warning(Prefix + line); + } + + var collections = API.GetPedCollectionsCount(ped); + var componentTotals = new int[PedComponentSlots.All.Length]; + var propTotals = new int[PropSlots.Length]; + + Log.Warning(Prefix + $"collections: {collections}"); + + for (var index = 0; index < collections; index++) + { + var name = API.GetPedCollectionName(ped, index) ?? string.Empty; + var line = $" [{index}] '{name}' components:"; + + for (var at = 0; at < PedComponentSlots.All.Length; at++) + { + var count = API.GetNumberOfPedCollectionDrawableVariations(ped, PedComponentSlots.All[at], name); + + componentTotals[at] += count; + line += $" {PedComponentSlots.All[at]}={count}"; + } + + line += " props:"; + + for (var at = 0; at < PropSlots.Length; at++) + { + var count = API.GetNumberOfPedCollectionPropDrawableVariations(ped, PropSlots[at], name); + + propTotals[at] += count; + line += $" {PropSlots[at]}={count}"; + } + + Log.Warning(Prefix + line); + } + + for (var at = 0; at < PedComponentSlots.All.Length; at++) + { + var slot = PedComponentSlots.All[at]; + var global = API.GetNumberOfPedDrawableVariations(ped, slot); + + if (global != componentTotals[at]) + { + Log.Warning(Prefix + $"MISMATCH component {slot}: global count {global}, collections add up to {componentTotals[at]}"); + } + + ComponentRanges(ped, slot, global); + } + + for (var at = 0; at < PropSlots.Length; at++) + { + var slot = PropSlots[at]; + var global = API.GetNumberOfPedPropDrawableVariations(ped, slot); + + if (global != propTotals[at]) + { + Log.Warning(Prefix + $"MISMATCH prop {slot}: global count {global}, collections add up to {propTotals[at]}"); + } + + PropRanges(ped, slot, global); + } + + Log.Warning(Prefix + "=== end of open report"); + } + + private static void ComponentRanges(int ped, int slot, int count) + { + if (count <= 0) + { + return; + } + + var invalid = new List(); + + for (var drawable = 0; drawable < count; drawable++) + { + if (!API.IsPedComponentVariationValid(ped, slot, drawable, 0)) + { + invalid.Add(drawable); + } + } + + var start = 0; + var name = API.GetPedCollectionNameFromDrawable(ped, slot, 0) ?? string.Empty; + + for (var drawable = 1; drawable <= count; drawable++) + { + var next = drawable < count ? API.GetPedCollectionNameFromDrawable(ped, slot, drawable) ?? string.Empty : null; + + if (next is not null && string.Equals(next, name, StringComparison.Ordinal)) + { + continue; + } + + Log.Warning(Prefix + $" component {slot} global {start}-{drawable - 1} '{name}' local {API.GetPedCollectionLocalIndexFromDrawable(ped, slot, start)}-{API.GetPedCollectionLocalIndexFromDrawable(ped, slot, drawable - 1)}, textures of first {API.GetNumberOfPedTextureVariations(ped, slot, start)}"); + + start = drawable; + name = next ?? string.Empty; + } + + if (invalid.Count > 0) + { + Log.Warning(Prefix + $" component {slot} invalid with texture 0: {Ranges(invalid)}"); + } + } + + private static void PropRanges(int ped, int slot, int count) + { + if (count <= 0) + { + return; + } + + var start = 0; + var name = API.GetPedCollectionNameFromProp(ped, slot, 0) ?? string.Empty; + + for (var drawable = 1; drawable <= count; drawable++) + { + var next = drawable < count ? API.GetPedCollectionNameFromProp(ped, slot, drawable) ?? string.Empty : null; + + if (next is not null && string.Equals(next, name, StringComparison.Ordinal)) + { + continue; + } + + Log.Warning(Prefix + $" prop {slot} global {start}-{drawable - 1} '{name}' local {API.GetPedCollectionLocalIndexFromProp(ped, slot, start)}-{API.GetPedCollectionLocalIndexFromProp(ped, slot, drawable - 1)}, textures of first {API.GetNumberOfPedPropTextureVariations(ped, slot, start)}"); + + start = drawable; + name = next ?? string.Empty; + } + } + + private static void Check(PedVariationScope scope, int slot, bool component, bool left, int count, int current, int next) + { + var ped = API.PlayerPedId(); + var key = component ? slot : 100 + slot; + var what = $"{(component ? "component" : "prop")} {slot} ({ScopeName(scope)})"; + var direction = left ? "left" : "right"; + var landed = Read(scope, ped, slot, component); + + if (LastPress.TryGetValue(key, out var previous)) + { + if (previous.Count != count) + { + Log.Warning(Prefix + $"COUNT CHANGED {what}: was {previous.Count}, now {count}"); + } + + if (previous.Next != current) + { + Log.Warning(Prefix + $"READ BACK DIFFERS {what}: previous press asked {previous.Next}, this press read {current}"); + } + + if (previous.Left == left && previous.Current == current) + { + Log.Warning(Prefix + $"STUCK {what}: pressed {direction} twice and both presses read {current}"); + } + } + + LastPress[key] = new Press(left, count, current, next); + + var wrapped = left ? next > current : next < current; + + if (wrapped) + { + Log.Warning(Prefix + $"WRAPPED {what}: pressed {direction} on {current} of count {count}, went to {next}"); + } + + if (landed == next) + { + return; + } + + Log.Warning(Prefix + $"DID NOT CHANGE {what}: pressed {direction}, read {current}, asked {next} of count {count}, immediately reads {Show(landed)}, {Detail(scope, ped, slot, component, next)}"); + + _ = FollowUpAsync(scope, slot, component, next, what); + } + + private static async Task FollowUpAsync(PedVariationScope scope, int slot, bool component, int asked, string what) + { + try + { + var waited = 0; + + foreach (var delay in FollowUpMs) + { + await BaseScript.Delay(delay - waited); + + waited = delay; + + var ped = API.PlayerPedId(); + var value = Read(scope, ped, slot, component); + + Log.Warning(Prefix + $" follow up {what} after {delay} ms: asked {asked}, reads {Show(value)}, {Detail(scope, ped, slot, component, asked)}"); + + if (value == asked) + { + return; + } + } + } + catch (Exception exception) + { + Log.Error(Prefix + "Follow up failed: " + exception); + } + } + + private static int? Read(PedVariationScope scope, int ped, int slot, bool component) + { + if (component) + { + return scope.CurrentDrawable(ped, slot); + } + + return scope.CurrentProp(ped, slot) ?? -1; + } + + private static string Detail(PedVariationScope scope, int ped, int slot, bool component, int asked) + { + if (component) + { + var drawable = API.GetPedDrawableVariation(ped, slot); + + return $"global worn {drawable} texture {API.GetPedTextureVariation(ped, slot)}, collection '{API.GetPedDrawableVariationCollectionName(ped, slot)}' local {API.GetPedDrawableVariationCollectionLocalIndex(ped, slot)}, " + + $"asked valid {(asked >= 0 && scope.IsUsable(ped, slot, asked, 0))}, asked textures {(asked >= 0 ? scope.TextureCount(ped, slot, asked) : 0)}, " + + $"global count {API.GetNumberOfPedDrawableVariations(ped, slot)}, scope count {scope.DrawableCount(ped, slot)}"; + } + + var worn = NativeFixer.GetPedPropIndex(ped, slot, false); + var line = $"global worn {worn}"; + + if (worn >= 0) + { + line += $" texture {API.GetPedPropTextureIndex(ped, slot)}, collection '{API.GetPedPropCollectionName(ped, slot)}' local {API.GetPedPropCollectionLocalIndex(ped, slot)}"; + } + + return line + $", asked textures {(asked >= 0 ? scope.PropTextureCount(ped, slot, asked) : 0)}, global count {API.GetNumberOfPedPropDrawableVariations(ped, slot)}, scope count {scope.PropCount(ped, slot)}"; + } + + private static string Ranges(List values) + { + var parts = new List(); + var start = values[0]; + var end = values[0]; + + for (var at = 1; at <= values.Count; at++) + { + if (at < values.Count && values[at] == end + 1) + { + end = values[at]; + + continue; + } + + parts.Add(start == end ? $"{start}" : $"{start}-{end}"); + + if (at < values.Count) + { + start = values[at]; + end = values[at]; + } + } + + return string.Join(", ", parts); + } + + private static string ScopeName(PedVariationScope scope) => + scope.IsCollection ? $"collection '{scope.CollectionName}'" : "global"; + + private static string Show(int? value) => value is { } number ? $"{number}" : "none"; +} diff --git a/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PedCustomizationRows.cs b/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PedCustomizationRows.cs index 518193095..04c16158b 100644 --- a/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PedCustomizationRows.cs +++ b/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PedCustomizationRows.cs @@ -55,7 +55,12 @@ internal static void Attach( menu.AddRange(Rows(scope(), show, components, fitTorso)); - menu.OnOpened = _ => menu.ReplaceEntries(Rows(scope(), show, components, fitTorso)); + menu.OnOpened = _ => + { + ClothingDiagnostics.Opened(scope(), menu.Menu.MenuTitle + " / " + menu.Menu.MenuSubtitle); + + menu.ReplaceEntries(Rows(scope(), show, components, fitTorso)); + }; } internal static List Rows( @@ -438,6 +443,8 @@ private static void Shift( TorsoFit.Apply(before, slot, redrawTorso); + ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); + return; } @@ -445,10 +452,14 @@ private static void Shift( { PedVariationScope.ClearProp(ped, slot); + ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); + return; } scope.SetProp(ped, slot, next, 0); + + ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); } // Asked for as a position counting from one, matching what the row shows. Legacy asked for a position From 896a9e8b91336c8793347515e48a8ad6ce5ec129 Mon Sep 17 00:00:00 2001 From: MrPizza <5529325+sir-lord-pizza@users.noreply.github.com> Date: Fri, 6 Nov 2026 11:22:51 +0100 Subject: [PATCH 2/4] fix(appearance): skip and flag clothing the game refuses to apply --- assets/shared/language/de.json | 4 + assets/shared/language/es.json | 4 + assets/shared/language/fr.json | 4 + assets/shared/language/nl.json | 4 + .../Players/Appearance/ClothingDiagnostics.cs | 79 ++-- .../Appearance/PedCustomizationRows.cs | 341 +++++++++++++++--- .../Appearance/PropDiagnosticsCommand.cs | 41 ++- .../Players/Appearance/ClothingDiagnostics.cs | 79 ++-- .../Appearance/PedCustomizationRows.cs | 341 +++++++++++++++--- .../Appearance/PropDiagnosticsCommand.cs | 41 ++- .../Loc.PlayerAppearance.cs | 12 + 11 files changed, 776 insertions(+), 174 deletions(-) diff --git a/assets/shared/language/de.json b/assets/shared/language/de.json index 43976c3c4..f06ad815e 100644 --- a/assets/shared/language/de.json +++ b/assets/shared/language/de.json @@ -1243,6 +1243,9 @@ "playerappearance.glow.off": "Aus", "playerappearance.glow.solid": "Immer an", "playerappearance.link.desc": "Ändere Kleidung und Accessoires des Peds, das du gerade trägst.", + "playerappearance.loadingslowly": "~o~ID {id} braucht eine Weile zum Laden.~s~", + "playerappearance.notapplied": "~r~ID {id} konnte nicht angewendet werden, du trägst noch {worn}. Mehr Infos findest du in den FAQ der vMenu Docs.~s~", + "playerappearance.notapplied.notification": "Ein Kleidungsstück konnte nicht angewendet werden. Mehr Infos findest du in den FAQ der vMenu Docs.", "playerappearance.prop.bracelets": "[7] Armbänder", "playerappearance.prop.desc.none": "~h~{slot}~h~\nNichts angezogen, ~y~{drawables}~s~ zur Auswahl\nScrolle, um eins auszuwählen.", "playerappearance.prop.ears": "[2] Ohren", @@ -1265,6 +1268,7 @@ "playerappearance.title": "Aussehen des Spielers", "playerappearance.value": "[{position}/{drawables}] Textur {texturePosition}", "playerappearance.value.none": "keins", + "playerappearance.value.notapplied": "[{position}/{drawables}] nicht angewendet", "playerappearance.value.unavailable": "[{position}/{drawables}] fehlt", "playerappearance.visor.goggles.invehicle": "Eine Brille lässt sich nur ~y~zu Fuß~s~ hochschieben. Das Spiel hat dafür keine Animation während der Fahrt.", "playerappearance.visorhint": "Dieser Helm hat ein Visier. ~y~Halte die Visiertaste gedrückt~s~, um es hoch- oder runterzuklappen. Diese Taste siehst und änderst du unter Einstellungen, Tastenbelegung, FiveM.", diff --git a/assets/shared/language/es.json b/assets/shared/language/es.json index a93d4b09c..0cc3c92d0 100644 --- a/assets/shared/language/es.json +++ b/assets/shared/language/es.json @@ -1243,6 +1243,9 @@ "playerappearance.glow.off": "Apagado", "playerappearance.glow.solid": "Siempre encendido", "playerappearance.link.desc": "Cambia la ropa y los accesorios del ped que llevas puesto.", + "playerappearance.loadingslowly": "~o~El ID {id} está tardando en cargar.~s~", + "playerappearance.notapplied": "~r~No se pudo aplicar el ID {id}, sigues llevando {worn}. Consulta las FAQ en la documentación de vMenu para más información.~s~", + "playerappearance.notapplied.notification": "No se pudo aplicar una prenda. Consulta las FAQ en la documentación de vMenu para más información.", "playerappearance.prop.bracelets": "[7] Pulseras", "playerappearance.prop.desc.none": "~h~{slot}~h~\nNo lleva nada, ~y~{drawables}~s~ para elegir\nDesplázate para elegir uno.", "playerappearance.prop.ears": "[2] Orejas", @@ -1265,6 +1268,7 @@ "playerappearance.title": "Aspecto del jugador", "playerappearance.value": "[{position}/{drawables}] textura {texturePosition}", "playerappearance.value.none": "ninguno", + "playerappearance.value.notapplied": "[{position}/{drawables}] no aplicado", "playerappearance.value.unavailable": "[{position}/{drawables}] falta", "playerappearance.visor.goggles.invehicle": "Las gafas solo se pueden subir ~y~a pie~s~. El juego no tiene ninguna animación para hacerlo mientras conduces.", "playerappearance.visorhint": "Ese casco tiene visera. ~y~Mantén pulsada la tecla de la visera~s~ para subirla o bajarla. Puedes ver y cambiar esa tecla en Ajustes, Asignación de teclas, FiveM.", diff --git a/assets/shared/language/fr.json b/assets/shared/language/fr.json index 8af85bb2f..dcbacad97 100644 --- a/assets/shared/language/fr.json +++ b/assets/shared/language/fr.json @@ -1243,6 +1243,9 @@ "playerappearance.glow.off": "Désactivé", "playerappearance.glow.solid": "Toujours allumé", "playerappearance.link.desc": "Change les vêtements et les accessoires du ped que tu portes.", + "playerappearance.loadingslowly": "~o~L'ID {id} met du temps à charger.~s~", + "playerappearance.notapplied": "~r~L'ID {id} n'a pas pu être appliqué, tu portes toujours {worn}. Consulte la FAQ de la documentation vMenu pour plus d'infos.~s~", + "playerappearance.notapplied.notification": "Un vêtement n'a pas pu être appliqué. Consulte la FAQ de la documentation vMenu pour plus d'infos.", "playerappearance.prop.bracelets": "[7] Bracelets", "playerappearance.prop.desc.none": "~h~{slot}~h~\nRien de porté, ~y~{drawables}~s~ au choix\nFais défiler pour en choisir un.", "playerappearance.prop.ears": "[2] Oreilles", @@ -1265,6 +1268,7 @@ "playerappearance.title": "Apparence du joueur", "playerappearance.value": "[{position}/{drawables}] texture {texturePosition}", "playerappearance.value.none": "aucun", + "playerappearance.value.notapplied": "[{position}/{drawables}] non appliqué", "playerappearance.value.unavailable": "[{position}/{drawables}] manquant", "playerappearance.visor.goggles.invehicle": "Les lunettes ne peuvent être relevées qu'~y~à pied~s~. Le jeu n'a pas d'animation pour le faire en roulant.", "playerappearance.visorhint": "Ce casque a une visière. ~y~Maintiens la touche de visière~s~ pour la relever ou l'abaisser. Tu peux voir et changer cette touche dans Paramètres, Affectation des touches, FiveM.", diff --git a/assets/shared/language/nl.json b/assets/shared/language/nl.json index a6f5e143d..d34170e01 100644 --- a/assets/shared/language/nl.json +++ b/assets/shared/language/nl.json @@ -1243,6 +1243,9 @@ "playerappearance.glow.off": "Uit", "playerappearance.glow.solid": "Altijd aan", "playerappearance.link.desc": "Verander de kleding en accessoires van de ped die je draagt.", + "playerappearance.loadingslowly": "~o~ID {id} heeft even nodig om te laden.~s~", + "playerappearance.notapplied": "~r~ID {id} kon niet worden toegepast, je draagt nog steeds {worn}. Bekijk de FAQ in de vMenu docs voor meer info.~s~", + "playerappearance.notapplied.notification": "Een kledingstuk kon niet worden toegepast. Bekijk de FAQ in de vMenu docs voor meer info.", "playerappearance.prop.bracelets": "[7] Armbanden", "playerappearance.prop.desc.none": "~h~{slot}~h~\nNiets gedragen, ~y~{drawables}~s~ om uit te kiezen\nScroll om er een te kiezen.", "playerappearance.prop.ears": "[2] Oren", @@ -1265,6 +1268,7 @@ "playerappearance.title": "Uiterlijk van speler", "playerappearance.value": "[{position}/{drawables}] texture {texturePosition}", "playerappearance.value.none": "geen", + "playerappearance.value.notapplied": "[{position}/{drawables}] niet toegepast", "playerappearance.value.unavailable": "[{position}/{drawables}] ontbreekt", "playerappearance.visor.goggles.invehicle": "Een bril kun je alleen ~y~te voet~s~ omhoog duwen. Het spel heeft daar geen animatie voor tijdens het rijden.", "playerappearance.visorhint": "Die helm heeft een vizier. ~y~Houd de viziertoets ingedrukt~s~ om het omhoog of omlaag te klappen. Je kunt die toets zien en aanpassen onder Instellingen, Toetsenbindingen, FiveM.", diff --git a/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/ClothingDiagnostics.cs b/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/ClothingDiagnostics.cs index 582397564..483652fb1 100644 --- a/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/ClothingDiagnostics.cs +++ b/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/ClothingDiagnostics.cs @@ -4,8 +4,6 @@ namespace vMenu.Enhanced.Menus.Players.Appearance; -// Temporary, for the add-on clothing reports where scrolling right stops at a certain number. Logged as -// warnings so it shows without debug mode. Remove once that report is settled. internal static class ClothingDiagnostics { private const string Prefix = "[ClothingDebug] "; @@ -29,6 +27,11 @@ private sealed class Press(bool left, int count, int current, int next) internal static void Opened(PedVariationScope scope, string menu) { + if (!Log.IsEnabled(LogLevel.Debug)) + { + return; + } + try { Report(scope, menu); @@ -39,11 +42,24 @@ internal static void Opened(PedVariationScope scope, string menu) } } - internal static void Pressed(PedVariationScope scope, int slot, bool component, bool left, int count, int current, int next) + internal static void Pressed( + PedVariationScope scope, + int slot, + bool component, + bool left, + int count, + int worn, + int from, + int next) { + if (!Log.IsEnabled(LogLevel.Debug)) + { + return; + } + try { - Check(scope, slot, component, left, count, current, next); + Check(scope, slot, component, left, count, worn, from, next); } catch (Exception exception) { @@ -59,16 +75,16 @@ private static void Report(PedVariationScope scope, string menu) LastPress.Clear(); - Log.Warning(Prefix + $"=== opened '{menu}', scope {ScopeName(scope)}"); - Log.Warning(Prefix + $"flavor Enhanced, vMenu {Native.GetResourceMetadata(resource, "version", 0)}, build {Native.GetGameBuildNumber()}, ped {ped}"); - Log.Warning(Prefix + $"model {model}, freemode male {model == PedSpawning.FreemodeModel(true)}, freemode female {model == PedSpawning.FreemodeModel(false)}"); + Log.Debug(Prefix + $"=== opened '{menu}', scope {ScopeName(scope)}"); + Log.Debug(Prefix + $"flavor Enhanced, vMenu {Native.GetResourceMetadata(resource, "version", 0)}, build {Native.GetGameBuildNumber()}, ped {ped}"); + Log.Debug(Prefix + $"model {model}, freemode male {model == PedSpawning.FreemodeModel(true)}, freemode female {model == PedSpawning.FreemodeModel(false)}"); foreach (var slot in PedComponentSlots.All) { var drawable = Native.GetPedDrawableVariation(ped, slot); var texture = Native.GetPedTextureVariation(ped, slot); - Log.Warning(Prefix + $"component {slot}: global count {Native.GetNumberOfPedDrawableVariations(ped, slot)}, scope count {scope.DrawableCount(ped, slot)}, scope current {Show(scope.CurrentDrawable(ped, slot))}, " + Log.Debug(Prefix + $"component {slot}: global count {Native.GetNumberOfPedDrawableVariations(ped, slot)}, scope count {scope.DrawableCount(ped, slot)}, scope current {Show(scope.CurrentDrawable(ped, slot))}, " + $"worn {drawable} texture {texture}/{Native.GetNumberOfPedTextureVariations(ped, slot, drawable)} palette {Native.GetPedPaletteVariation(ped, slot)}, " + $"valid {Native.IsPedComponentVariationValid(ped, slot, drawable, texture)}, collection '{Native.GetPedDrawableVariationCollectionName(ped, slot)}' local {Native.GetPedDrawableVariationCollectionLocalIndex(ped, slot)}"); } @@ -83,14 +99,14 @@ private static void Report(PedVariationScope scope, string menu) line += $" texture {Native.GetPedPropTextureIndex(ped, slot)}/{Native.GetNumberOfPedPropTextureVariations(ped, slot, worn)}, collection '{Native.GetPedPropCollectionName(ped, slot)}' local {Native.GetPedPropCollectionLocalIndex(ped, slot)}"; } - Log.Warning(Prefix + line); + Log.Debug(Prefix + line); } var collections = Native.GetPedCollectionsCount(ped); var componentTotals = new int[PedComponentSlots.All.Length]; var propTotals = new int[PropSlots.Length]; - Log.Warning(Prefix + $"collections: {collections}"); + Log.Debug(Prefix + $"collections: {collections}"); for (var index = 0; index < collections; index++) { @@ -115,7 +131,7 @@ private static void Report(PedVariationScope scope, string menu) line += $" {PropSlots[at]}={count}"; } - Log.Warning(Prefix + line); + Log.Debug(Prefix + line); } for (var at = 0; at < PedComponentSlots.All.Length; at++) @@ -125,7 +141,7 @@ private static void Report(PedVariationScope scope, string menu) if (global != componentTotals[at]) { - Log.Warning(Prefix + $"MISMATCH component {slot}: global count {global}, collections add up to {componentTotals[at]}"); + Log.Debug(Prefix + $"MISMATCH component {slot}: global count {global}, collections add up to {componentTotals[at]}"); } ComponentRanges(ped, slot, global); @@ -138,13 +154,13 @@ private static void Report(PedVariationScope scope, string menu) if (global != propTotals[at]) { - Log.Warning(Prefix + $"MISMATCH prop {slot}: global count {global}, collections add up to {propTotals[at]}"); + Log.Debug(Prefix + $"MISMATCH prop {slot}: global count {global}, collections add up to {propTotals[at]}"); } PropRanges(ped, slot, global); } - Log.Warning(Prefix + "=== end of open report"); + Log.Debug(Prefix + "=== end of open report"); } private static void ComponentRanges(int ped, int slot, int count) @@ -176,7 +192,7 @@ private static void ComponentRanges(int ped, int slot, int count) continue; } - Log.Warning(Prefix + $" component {slot} global {start}-{drawable - 1} '{name}' local {Native.GetPedCollectionLocalIndexFromDrawable(ped, slot, start)}-{Native.GetPedCollectionLocalIndexFromDrawable(ped, slot, drawable - 1)}, textures of first {Native.GetNumberOfPedTextureVariations(ped, slot, start)}"); + Log.Debug(Prefix + $" component {slot} global {start}-{drawable - 1} '{name}' local {Native.GetPedCollectionLocalIndexFromDrawable(ped, slot, start)}-{Native.GetPedCollectionLocalIndexFromDrawable(ped, slot, drawable - 1)}, textures of first {Native.GetNumberOfPedTextureVariations(ped, slot, start)}"); start = drawable; name = next ?? string.Empty; @@ -184,7 +200,7 @@ private static void ComponentRanges(int ped, int slot, int count) if (invalid.Count > 0) { - Log.Warning(Prefix + $" component {slot} invalid with texture 0: {Ranges(invalid)}"); + Log.Debug(Prefix + $" component {slot} invalid with texture 0: {Ranges(invalid)}"); } } @@ -207,14 +223,22 @@ private static void PropRanges(int ped, int slot, int count) continue; } - Log.Warning(Prefix + $" prop {slot} global {start}-{drawable - 1} '{name}' local {Native.GetPedCollectionLocalIndexFromProp(ped, slot, start)}-{Native.GetPedCollectionLocalIndexFromProp(ped, slot, drawable - 1)}, textures of first {Native.GetNumberOfPedPropTextureVariations(ped, slot, start)}"); + Log.Debug(Prefix + $" prop {slot} global {start}-{drawable - 1} '{name}' local {Native.GetPedCollectionLocalIndexFromProp(ped, slot, start)}-{Native.GetPedCollectionLocalIndexFromProp(ped, slot, drawable - 1)}, textures of first {Native.GetNumberOfPedPropTextureVariations(ped, slot, start)}"); start = drawable; name = next ?? string.Empty; } } - private static void Check(PedVariationScope scope, int slot, bool component, bool left, int count, int current, int next) + private static void Check( + PedVariationScope scope, + int slot, + bool component, + bool left, + int count, + int current, + int from, + int next) { var ped = Native.PlayerPedId(); var key = component ? slot : 100 + slot; @@ -226,27 +250,32 @@ private static void Check(PedVariationScope scope, int slot, bool component, boo { if (previous.Count != count) { - Log.Warning(Prefix + $"COUNT CHANGED {what}: was {previous.Count}, now {count}"); + Log.Debug(Prefix + $"COUNT CHANGED {what}: was {previous.Count}, now {count}"); } if (previous.Next != current) { - Log.Warning(Prefix + $"READ BACK DIFFERS {what}: previous press asked {previous.Next}, this press read {current}"); + Log.Debug(Prefix + $"READ BACK DIFFERS {what}: previous press asked {previous.Next}, this press read {current}"); } if (previous.Left == left && previous.Current == current) { - Log.Warning(Prefix + $"STUCK {what}: pressed {direction} twice and both presses read {current}"); + Log.Debug(Prefix + $"STUCK {what}: pressed {direction} twice and both presses read {current}"); } } LastPress[key] = new Press(left, count, current, next); + if (from != current) + { + Log.Debug(Prefix + $"SKIPPING {what}: ped still wears {current}, stepping on from the refused {from} to {next}"); + } + var wrapped = left ? next > current : next < current; if (wrapped) { - Log.Warning(Prefix + $"WRAPPED {what}: pressed {direction} on {current} of count {count}, went to {next}"); + Log.Debug(Prefix + $"WRAPPED {what}: pressed {direction} on {current} of count {count}, went to {next}"); } if (landed == next) @@ -254,7 +283,7 @@ private static void Check(PedVariationScope scope, int slot, bool component, boo return; } - Log.Warning(Prefix + $"DID NOT CHANGE {what}: pressed {direction}, read {current}, asked {next} of count {count}, immediately reads {Show(landed)}, {Detail(scope, ped, slot, component, next)}"); + Log.Debug(Prefix + $"DID NOT CHANGE {what}: pressed {direction}, worn {current}, asked {next} of count {count}, immediately reads {Show(landed)}, {Detail(scope, ped, slot, component, next)}"); _ = FollowUpAsync(scope, slot, component, next, what); } @@ -274,7 +303,7 @@ private static async Task FollowUpAsync(PedVariationScope scope, int slot, bool var ped = Native.PlayerPedId(); var value = Read(scope, ped, slot, component); - Log.Warning(Prefix + $" follow up {what} after {delay} ms: asked {asked}, reads {Show(value)}, {Detail(scope, ped, slot, component, asked)}"); + Log.Debug(Prefix + $" follow up {what} after {delay} ms: asked {asked}, reads {Show(value)}, {Detail(scope, ped, slot, component, asked)}"); if (value == asked) { @@ -350,5 +379,5 @@ private static string Ranges(List values) private static string ScopeName(PedVariationScope scope) => scope.IsCollection ? $"collection '{scope.CollectionName}'" : "global"; - private static string Show(int? value) => value is { } number ? $"{number}" : "none"; + private static string Show(int? value) => value is int number ? $"{number}" : "none"; } diff --git a/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PedCustomizationRows.cs b/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PedCustomizationRows.cs index e09304d10..9cc9eed35 100644 --- a/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PedCustomizationRows.cs +++ b/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PedCustomizationRows.cs @@ -6,6 +6,7 @@ using vMenu.Enhanced.MenuFramework; using vMenu.Enhanced.Localization; +using vMenu.Enhanced.Logging; using vMenu.Enhanced.Menus.Players.Appearance.Torso; @@ -19,6 +20,14 @@ namespace vMenu.Enhanced.Menus.Players.Appearance; // rows' counting, so a player types back the number they are looking at. public static class PedCustomizationRows { + private const int RefusedNotificationMs = 3000; + + private const int ConfirmPollMs = 100; + + private const int SlowAfterMs = 1000; + + private const int RefusedAfterMs = 4000; + [Flags] internal enum PedRows { @@ -129,12 +138,19 @@ internal static List Rows( // The handler fires for the menu rather than for a row, so the row it landed on has to be able to // say which slot it edits. - internal sealed class SlotReference(int slot, bool component, bool fitTorso = false, Action? redrawTorso = null) + internal sealed class SlotReference( + int slot, + bool component, + ShiftMemory memory, + bool fitTorso = false, + Action? redrawTorso = null) { internal int Slot { get; } = slot; internal bool IsComponent { get; } = component; + internal ShiftMemory Memory { get; } = memory; + internal bool FitTorso { get; } = fitTorso; internal Action? RedrawTorso { get; } = redrawTorso; @@ -154,6 +170,7 @@ await AskForExactIdAsync( reference.Slot, item, reference.IsComponent, + reference.Memory, reference.FitTorso, reference.RedrawTorso); } @@ -167,36 +184,50 @@ private static DynamicListEntry ComponentRow( Action? redrawTorso = null) { var fits = fitTorso && TorsoFit.Triggers(slot); + var memory = new ShiftMemory(); return new DynamicListEntry { Text = MenuText.Key(PedComponentSlots.NameKey(slot)), - Description = MenuText.From(() => ComponentDescription(scope, slot)), + Description = MenuText.From(() => ComponentDescription(scope, slot, memory)), Gate = PlayerAppearancePermissions.Customize, - Configure = item => item.ItemData = new SlotReference(slot, component: true, fits, redrawTorso), - ReadValue = () => ComponentValue(scope, slot), + Configure = item => item.ItemData = new SlotReference(slot, component: true, memory, fits, redrawTorso), + ReadValue = () => ComponentValue(scope, slot, memory), // Applied as it scrolls, which is the only way to see what you are choosing. Change = changing => { - Shift(scope, slot, changing.Left, component: true, fits, redrawTorso); + Shift( + scope, + slot, + changing.Left, + component: true, + memory, + () => Redraw(changing.Item, ComponentValue(scope, slot, memory), ComponentDescription(scope, slot, memory)), + fits, + redrawTorso); // A description is only rewritten on a refresh pass, and scrolling is not one, so the numbers // underneath would sit a step behind what the row is showing. - changing.Item.Description = ComponentDescription(scope, slot); + changing.Item.Description = ComponentDescription(scope, slot, memory); - return ComponentValue(scope, slot); + return ComponentValue(scope, slot, memory); }, - OnSelected = selected => ComponentSelected(scope, slot, selected.Item, fits, redrawTorso), + OnSelected = selected => ComponentSelected(scope, slot, selected.Item, memory, fits, redrawTorso), }; } - private static string ComponentValue(PedVariationScope scope, int slot) + private static string ComponentValue(PedVariationScope scope, int slot, ShiftMemory memory) { var ped = Native.PlayerPedId(); - if (scope.CurrentDrawable(ped, slot) is not { } drawable) + if (memory.Pending(Worn(scope, ped, slot, component: true)) is int asked) + { + return PendingValue(asked, scope.DrawableCount(ped, slot), memory.Confirmed); + } + + if (scope.CurrentDrawable(ped, slot) is not int drawable) { return Resolve(MenuText.Key(Loc.PlayerAppearance.ValueNone)); } @@ -212,11 +243,24 @@ private static string ComponentValue(PedVariationScope scope, int slot) ("texturePosition", Position(texture)))); } - private static string ComponentDescription(PedVariationScope scope, int slot) + private static string ComponentDescription(PedVariationScope scope, int slot, ShiftMemory memory) { var ped = Native.PlayerPedId(); + var worn = Worn(scope, ped, slot, component: true); - if (scope.CurrentDrawable(ped, slot) is not { } drawable) + if (memory.Pending(worn) is int asked) + { + return PendingDescription( + PedComponentSlots.NameKey(slot), + scope, + asked, + worn, + scope.DrawableCount(ped, slot), + scope.TextureCount(ped, slot, asked), + memory); + } + + if (scope.CurrentDrawable(ped, slot) is not int drawable) { return Elsewhere(PedComponentSlots.NameKey(slot), scope); } @@ -234,12 +278,20 @@ private static void ComponentSelected( PedVariationScope scope, int slot, MenuDynamicListItem item, + ShiftMemory memory, bool fitTorso = false, Action? redrawTorso = null) { var ped = Native.PlayerPedId(); - if (scope.CurrentDrawable(ped, slot) is not { } drawable) + if (memory.Pending(Worn(scope, ped, slot, component: true)) is not null) + { + WarnIfRefused(memory); + + return; + } + + if (scope.CurrentDrawable(ped, slot) is not int drawable) { return; } @@ -256,7 +308,7 @@ private static void ComponentSelected( // Selecting is not a refresh, so nothing re-reads the row on its own and the texture number would // sit on whatever it said before while the ped already wore the new one. - Redraw(item, ComponentValue(scope, slot), ComponentDescription(scope, slot)); + Redraw(item, ComponentValue(scope, slot, memory), ComponentDescription(scope, slot, memory)); } #endregion @@ -265,35 +317,48 @@ private static void ComponentSelected( private static DynamicListEntry PropRow(PedVariationScope scope, int slot) { + var memory = new ShiftMemory(); + return new DynamicListEntry { Text = MenuText.Key(PedPropSlots.NameKey(slot)), - Description = MenuText.From(() => PropDescription(scope, slot)), + Description = MenuText.From(() => PropDescription(scope, slot, memory)), Gate = PlayerAppearancePermissions.Customize, - Configure = item => item.ItemData = new SlotReference(slot, component: false), - ReadValue = () => PropValue(scope, slot), + Configure = item => item.ItemData = new SlotReference(slot, component: false, memory), + ReadValue = () => PropValue(scope, slot, memory), Change = changing => { - Shift(scope, slot, changing.Left, component: false); + Shift( + scope, + slot, + changing.Left, + component: false, + memory, + () => Redraw(changing.Item, PropValue(scope, slot, memory), PropDescription(scope, slot, memory))); - changing.Item.Description = PropDescription(scope, slot); + changing.Item.Description = PropDescription(scope, slot, memory); // Scrolling is how a helmet usually goes on, so this is where the hint is most likely to be needed. PedVisorHint.ShowIfHelmet(Native.PlayerPedId(), slot); - return PropValue(scope, slot); + return PropValue(scope, slot, memory); }, - OnSelected = selected => PropSelected(scope, slot, selected.Item), + OnSelected = selected => PropSelected(scope, slot, selected.Item, memory), }; } - private static string PropValue(PedVariationScope scope, int slot) + private static string PropValue(PedVariationScope scope, int slot, ShiftMemory memory) { var ped = Native.PlayerPedId(); - if (scope.CurrentProp(ped, slot) is not { } drawable) + if (memory.Pending(Worn(scope, ped, slot, component: false)) is int asked) + { + return PendingValue(asked, scope.PropCount(ped, slot), memory.Confirmed); + } + + if (scope.CurrentProp(ped, slot) is not int drawable) { return Resolve(MenuText.Key(Loc.PlayerAppearance.ValueNone)); } @@ -305,12 +370,25 @@ private static string PropValue(PedVariationScope scope, int slot) ("texturePosition", Position(PedVariationScope.CurrentPropTexture(ped, slot))))); } - private static string PropDescription(PedVariationScope scope, int slot) + private static string PropDescription(PedVariationScope scope, int slot, ShiftMemory memory) { var ped = Native.PlayerPedId(); var name = PedPropSlots.NameKey(slot); + var worn = Worn(scope, ped, slot, component: false); + + if (memory.Pending(worn) is int asked) + { + return PendingDescription( + name, + scope, + asked, + worn, + scope.PropCount(ped, slot), + scope.PropTextureCount(ped, slot, asked), + memory); + } - if (scope.CurrentProp(ped, slot) is not { } drawable) + if (scope.CurrentProp(ped, slot) is not int drawable) { // Nothing worn and worn from elsewhere look the same on the row but are not the same thing, and a // player who cannot tell them apart will think the menu is broken. @@ -334,11 +412,18 @@ private static string PropDescription(PedVariationScope scope, int slot) scope.PropTextureCount(ped, slot, drawable)); } - private static void PropSelected(PedVariationScope scope, int slot, MenuDynamicListItem item) + private static void PropSelected(PedVariationScope scope, int slot, MenuDynamicListItem item, ShiftMemory memory) { var ped = Native.PlayerPedId(); - if (scope.CurrentProp(ped, slot) is not { } drawable) + if (memory.Pending(Worn(scope, ped, slot, component: false)) is not null) + { + WarnIfRefused(memory); + + return; + } + + if (scope.CurrentProp(ped, slot) is not int drawable) { return; } @@ -349,7 +434,7 @@ private static void PropSelected(PedVariationScope scope, int slot, MenuDynamicL scope.SetProp(ped, slot, drawable, texture); - Redraw(item, PropValue(scope, slot), PropDescription(scope, slot)); + Redraw(item, PropValue(scope, slot, memory), PropDescription(scope, slot, memory)); PedVisorHint.ShowIfHelmet(ped, slot); } @@ -398,14 +483,14 @@ private static string Elsewhere(string nameKey, PedVariationScope scope) => private static int NextTexture(int current, int count) => count <= 0 ? 0 : (Math.Max(current, 0) + 1) % count; - // The current position is read off the ped every time rather than tracked alongside it, so another - // resource changing the player's clothes cannot leave this row counting from a place the ped has not - // been for a while. Props have one extra position at the front for wearing nothing, so they run from -1. + // Props have one extra position at the front for wearing nothing, so they run from -1. private static void Shift( PedVariationScope scope, int slot, bool left, bool component, + ShiftMemory memory, + Action redraw, bool fitTorso = false, Action? redrawTorso = null) { @@ -418,7 +503,13 @@ private static void Shift( } var first = component ? 0 : -1; - var current = (component ? scope.CurrentDrawable(ped, slot) : scope.CurrentProp(ped, slot)) ?? first; + var worn = Worn(scope, ped, slot, component); + + // The game refuses some valid pieces, stepping from what is worn would ask for them forever. + var current = memory.Pending(worn) is int asked && asked >= first && asked < count + ? asked + : worn; + var next = current + (left ? -1 : 1); // Wrapped by hand rather than with a modulo, because the range does not start at zero for a prop and @@ -439,24 +530,149 @@ private static void Shift( scope.SetComponent(ped, slot, next, 0, PedVariationScope.CurrentPalette(ped, slot)); TorsoFit.Apply(before, slot, redrawTorso); + } + else if (next < 0) + { + PedVariationScope.ClearProp(ped, slot); + } + else + { + scope.SetProp(ped, slot, next, 0); + } - ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); + Remember(scope, ped, slot, component, memory, worn, next, redraw); + + ClothingDiagnostics.Pressed(scope, slot, component, left, count, worn, current, next); + } + + private static int Worn(PedVariationScope scope, int ped, int slot, bool component) => component + ? scope.CurrentDrawable(ped, slot) ?? 0 + : scope.CurrentProp(ped, slot) ?? -1; + + private static void Remember( + PedVariationScope scope, + int ped, + int slot, + bool component, + ShiftMemory memory, + int worn, + int asked, + Action redraw) + { + memory.Attempt++; + + if (Worn(scope, ped, slot, component) == asked) + { + memory.Worn = null; return; } - if (next < 0) + memory.Worn = worn; + memory.Asked = asked; + memory.Confirmed = false; + memory.Slow = false; + + _ = ConfirmAsync(scope, slot, component, memory, memory.Attempt, redraw); + } + + // Streamed pieces can take a moment to go on, so a piece only counts as refused once it had time to load. + private static async Task ConfirmAsync( + PedVariationScope scope, + int slot, + bool component, + ShiftMemory memory, + int attempt, + Action redraw) + { + try { - PedVariationScope.ClearProp(ped, slot); + var started = Native.GetGameTimer(); - ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); + while (true) + { + await API.Delay(ConfirmPollMs); - return; + if (memory.Attempt != attempt) + { + return; + } + + if (memory.Pending(Worn(scope, Native.PlayerPedId(), slot, component)) is not int) + { + memory.Worn = null; + + redraw(); + + return; + } + + var elapsed = Native.GetGameTimer() - started; + + if (elapsed >= RefusedAfterMs) + { + memory.Confirmed = true; + + WarnIfRefused(memory); + + redraw(); + + return; + } + + if (elapsed >= SlowAfterMs && !memory.Slow) + { + memory.Slow = true; + + redraw(); + } + } + } + catch (Exception exception) + { + Log.Error("[Appearance] Checking a clothing change failed: " + exception); } + } + + private static void WarnIfRefused(ShiftMemory memory) + { + if (memory.Confirmed) + { + Notifications.Warning(MenuText.Key(Loc.PlayerAppearance.NotAppliedNotification), RefusedNotificationMs); + } + } + + private static string PendingValue(int asked, int drawables, bool refused) => + Resolve(MenuText.Key( + refused ? Loc.PlayerAppearance.ValueNotApplied : Loc.PlayerAppearance.Value, + ("position", Position(asked)), + ("drawables", Number(drawables)), + ("texturePosition", Position(0)))); - scope.SetProp(ped, slot, next, 0); + private static string PendingDescription( + string nameKey, + PedVariationScope scope, + int asked, + int worn, + int drawables, + int textures, + ShiftMemory memory) + { + var description = Describe(nameKey, scope, asked, drawables, 0, textures); - ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); + if (!memory.Confirmed) + { + return memory.Slow + ? description + "\n" + Resolve(MenuText.Key(Loc.PlayerAppearance.LoadingSlowly, ("id", Position(asked)))) + : description; + } + + return description + + "\n" + + Resolve(MenuText.Key( + Loc.PlayerAppearance.NotApplied, + ("id", Position(asked)), + ("worn", worn < 0 ? MenuText.Key(Loc.PlayerAppearance.ValueNone) : Position(worn)))); } // Asked for as a position counting from one, matching what the row shows. Legacy asked for a position @@ -467,6 +683,7 @@ private static async Task AskForExactIdAsync( int slot, MenuDynamicListItem item, bool component, + ShiftMemory memory, bool fitTorso = false, Action? redrawTorso = null) { @@ -506,6 +723,7 @@ private static async Task AskForExactIdAsync( ped = Native.PlayerPedId(); var drawable = position - 1; + var worn = Worn(scope, ped, slot, component); if (component) { @@ -515,18 +733,53 @@ private static async Task AskForExactIdAsync( TorsoFit.Apply(before, slot, redrawTorso); - Redraw(item, ComponentValue(scope, slot), ComponentDescription(scope, slot)); + Remember( + scope, + ped, + slot, + component, + memory, + worn, + drawable, + () => Redraw(item, ComponentValue(scope, slot, memory), ComponentDescription(scope, slot, memory))); + + Redraw(item, ComponentValue(scope, slot, memory), ComponentDescription(scope, slot, memory)); return; } scope.SetProp(ped, slot, drawable, 0); - Redraw(item, PropValue(scope, slot), PropDescription(scope, slot)); + Remember( + scope, + ped, + slot, + component, + memory, + worn, + drawable, + () => Redraw(item, PropValue(scope, slot, memory), PropDescription(scope, slot, memory))); + + Redraw(item, PropValue(scope, slot, memory), PropDescription(scope, slot, memory)); PedVisorHint.ShowIfHelmet(ped, slot); } + internal sealed class ShiftMemory + { + internal int? Worn { get; set; } + + internal int Asked { get; set; } + + internal bool Confirmed { get; set; } + + internal bool Slow { get; set; } + + internal int Attempt { get; set; } + + internal int? Pending(int worn) => Worn == worn && Asked != worn ? Asked : null; + } + private static void Redraw(MenuDynamicListItem item, string value, string description) { item.CurrentItem = value; @@ -535,15 +788,15 @@ private static void Redraw(MenuDynamicListItem item, string value, string descri private static void RedrawTorso(PedVariationScope scope, DynamicListEntry? torsoRow) { - if (torsoRow?.Typed is not { } item) + if (torsoRow?.Typed is not { ItemData: SlotReference reference } item) { return; } Redraw( item, - ComponentValue(scope, PedComponentSlots.Torso), - ComponentDescription(scope, PedComponentSlots.Torso)); + ComponentValue(scope, PedComponentSlots.Torso, reference.Memory), + ComponentDescription(scope, PedComponentSlots.Torso, reference.Memory)); } private static CheckboxEntry FitTorsoRow() => new(Loc.CharacterCreator.FitTorso) diff --git a/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PropDiagnosticsCommand.cs b/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PropDiagnosticsCommand.cs index 3ddb85206..615eeda5d 100644 --- a/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PropDiagnosticsCommand.cs +++ b/src/Enhanced/Client/vMenu.Enhanced.Menus/Players/Appearance/PropDiagnosticsCommand.cs @@ -5,8 +5,6 @@ namespace vMenu.Enhanced.Menus.Players.Appearance; -// Temporary, to diagnose add-on hats that cannot be scrolled past. Not gated, so a reporter can run it -// without changing their config. Remove once that report is settled. public static class PropDiagnosticsCommand { private const string Command = "vmenu_debug_props"; @@ -28,9 +26,16 @@ public static void Initialize() private static async Task RunAsync() { + if (!Log.IsEnabled(LogLevel.Debug)) + { + Log.Info(Prefix + "Turn on vMenu.Enhanced.Debugging.Client to see this report."); + + return; + } + if (_running) { - Log.Info(Prefix + "Already running, wait for it to finish."); + Log.Debug(Prefix + "Already running, wait for it to finish."); return; } @@ -59,9 +64,9 @@ private static async Task ReportAsync() var model = (uint)Native.GetEntityModel(ped); var resource = Native.GetCurrentResourceName(); - Log.Info(Prefix + "Start. This changes your hat for up to a minute, stand still until it says Done."); - Log.Info(Prefix + $"flavor Enhanced, vMenu {Native.GetResourceMetadata(resource, "version", 0)}, build {Native.GetGameBuildNumber()}"); - Log.Info(Prefix + $"model {model}, freemode male {model == PedSpawning.FreemodeModel(true)}, freemode female {model == PedSpawning.FreemodeModel(false)}"); + Log.Debug(Prefix + "Start. This changes your hat for up to a minute, stand still until it says Done."); + Log.Debug(Prefix + $"flavor Enhanced, vMenu {Native.GetResourceMetadata(resource, "version", 0)}, build {Native.GetGameBuildNumber()}"); + Log.Debug(Prefix + $"model {model}, freemode male {model == PedSpawning.FreemodeModel(true)}, freemode female {model == PedSpawning.FreemodeModel(false)}"); int[] slots = [0, 1, 2, 6, 7]; @@ -75,12 +80,12 @@ private static async Task ReportAsync() line += $", collection '{Native.GetPedPropCollectionName(ped, slot)}' local {Native.GetPedPropCollectionLocalIndex(ped, slot)}"; } - Log.Info(Prefix + line); + Log.Debug(Prefix + line); } var collections = Native.GetPedCollectionsCount(ped); - Log.Info(Prefix + $"collections: {collections}"); + Log.Debug(Prefix + $"collections: {collections}"); for (var index = 0; index < collections; index++) { @@ -92,14 +97,14 @@ private static async Task ReportAsync() line += $" {slot}={Native.GetNumberOfPedCollectionPropDrawableVariations(ped, slot, name)}"; } - Log.Info(Prefix + line); + Log.Debug(Prefix + line); } var count = Native.GetNumberOfPedPropDrawableVariations(ped, Hats); if (count <= 0) { - Log.Info(Prefix + "This ped has no hats, nothing more to test. Done."); + Log.Debug(Prefix + "This ped has no hats, nothing more to test. Done."); return; } @@ -127,12 +132,12 @@ private static async Task ReportAsync() } } - Log.Info(Prefix + "Done."); + Log.Debug(Prefix + "Done."); } private static int HatRanges(int ped, int count) { - Log.Info(Prefix + $"hat ranges ({count} hats):"); + Log.Debug(Prefix + $"hat ranges ({count} hats):"); var start = 0; var name = Native.GetPedCollectionNameFromProp(ped, Hats, 0) ?? string.Empty; @@ -150,7 +155,7 @@ private static int HatRanges(int ped, int count) var localEnd = Native.GetPedCollectionLocalIndexFromProp(ped, Hats, drawable - 1); - Log.Info(Prefix + $" global {start}-{drawable - 1} '{name}' local {localStart}-{localEnd}, textures of first {Native.GetNumberOfPedPropTextureVariations(ped, Hats, start)}"); + Log.Debug(Prefix + $" global {start}-{drawable - 1} '{name}' local {localStart}-{localEnd}, textures of first {Native.GetNumberOfPedPropTextureVariations(ped, Hats, start)}"); if (next is null) { @@ -212,7 +217,7 @@ private static bool Has(List values, int value) private static async Task TimingAsync(int ped, List indices) { - Log.Info(Prefix + "timing (set a hat, then read it back every frame):"); + Log.Debug(Prefix + "timing (set a hat, then read it back every frame):"); foreach (var index in indices) { @@ -221,7 +226,7 @@ private static async Task TimingAsync(int ped, List indices) var immediate = Native.GetPedPropIndex(ped, Hats, false); var result = await WaitForAsync(ped, index); - Log.Info(Prefix + $" set {index}: immediate {immediate}, {result}"); + Log.Debug(Prefix + $" set {index}: immediate {immediate}, {result}"); } } @@ -274,7 +279,7 @@ private static async Task ReplayAsync(int ped, int count, int lastGroupStart) Native.SetPedPropIndex(ped, Hats, start, 0, true, false); - Log.Info(Prefix + $"replay right, menu logic, starting on {start}: {await WaitForAsync(ped, start)}"); + Log.Debug(Prefix + $"replay right, menu logic, starting on {start}: {await WaitForAsync(ped, start)}"); for (var press = 1; press <= 5; press++) { @@ -285,7 +290,7 @@ private static async Task ReplayAsync(int ped, int count, int lastGroupStart) await API.Delay(PressGapMs); - Log.Info(Prefix + $"replay left, menu logic, starting on none (read {Native.GetPedPropIndex(ped, Hats, false)}):"); + Log.Debug(Prefix + $"replay left, menu logic, starting on none (read {Native.GetPedPropIndex(ped, Hats, false)}):"); for (var press = 1; press <= 3; press++) { @@ -322,6 +327,6 @@ private static async Task PressAsync(int ped, int press, bool left) await API.Delay(PressGapMs); - Log.Info(Prefix + $" press {press}: read {current}, asked {next}, immediately {immediate}, after {PressGapMs} ms {Native.GetPedPropIndex(ped, Hats, false)}"); + Log.Debug(Prefix + $" press {press}: read {current}, asked {next}, immediately {immediate}, after {PressGapMs} ms {Native.GetPedPropIndex(ped, Hats, false)}"); } } diff --git a/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/ClothingDiagnostics.cs b/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/ClothingDiagnostics.cs index 20c1f335b..e22f5c286 100644 --- a/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/ClothingDiagnostics.cs +++ b/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/ClothingDiagnostics.cs @@ -9,8 +9,6 @@ namespace vMenu.Enhanced.Menus.Players.Appearance; -// Temporary, for the add-on clothing reports where scrolling right stops at a certain number. Logged as -// warnings so it shows without debug mode. Remove once that report is settled. internal static class ClothingDiagnostics { private const string Prefix = "[ClothingDebug] "; @@ -34,6 +32,11 @@ private sealed class Press(bool left, int count, int current, int next) internal static void Opened(PedVariationScope scope, string menu) { + if (!Log.IsEnabled(LogLevel.Debug)) + { + return; + } + try { Report(scope, menu); @@ -44,11 +47,24 @@ internal static void Opened(PedVariationScope scope, string menu) } } - internal static void Pressed(PedVariationScope scope, int slot, bool component, bool left, int count, int current, int next) + internal static void Pressed( + PedVariationScope scope, + int slot, + bool component, + bool left, + int count, + int worn, + int from, + int next) { + if (!Log.IsEnabled(LogLevel.Debug)) + { + return; + } + try { - Check(scope, slot, component, left, count, current, next); + Check(scope, slot, component, left, count, worn, from, next); } catch (Exception exception) { @@ -64,16 +80,16 @@ private static void Report(PedVariationScope scope, string menu) LastPress.Clear(); - Log.Warning(Prefix + $"=== opened '{menu}', scope {ScopeName(scope)}"); - Log.Warning(Prefix + $"flavor Legacy, vMenu {API.GetResourceMetadata(resource, "version", 0)}, build {API.GetGameBuildNumber()}, ped {ped}"); - Log.Warning(Prefix + $"model {model}, freemode male {model == PedSpawning.FreemodeModel(true)}, freemode female {model == PedSpawning.FreemodeModel(false)}"); + Log.Debug(Prefix + $"=== opened '{menu}', scope {ScopeName(scope)}"); + Log.Debug(Prefix + $"flavor Legacy, vMenu {API.GetResourceMetadata(resource, "version", 0)}, build {API.GetGameBuildNumber()}, ped {ped}"); + Log.Debug(Prefix + $"model {model}, freemode male {model == PedSpawning.FreemodeModel(true)}, freemode female {model == PedSpawning.FreemodeModel(false)}"); foreach (var slot in PedComponentSlots.All) { var drawable = API.GetPedDrawableVariation(ped, slot); var texture = API.GetPedTextureVariation(ped, slot); - Log.Warning(Prefix + $"component {slot}: global count {API.GetNumberOfPedDrawableVariations(ped, slot)}, scope count {scope.DrawableCount(ped, slot)}, scope current {Show(scope.CurrentDrawable(ped, slot))}, " + Log.Debug(Prefix + $"component {slot}: global count {API.GetNumberOfPedDrawableVariations(ped, slot)}, scope count {scope.DrawableCount(ped, slot)}, scope current {Show(scope.CurrentDrawable(ped, slot))}, " + $"worn {drawable} texture {texture}/{API.GetNumberOfPedTextureVariations(ped, slot, drawable)} palette {API.GetPedPaletteVariation(ped, slot)}, " + $"valid {API.IsPedComponentVariationValid(ped, slot, drawable, texture)}, collection '{API.GetPedDrawableVariationCollectionName(ped, slot)}' local {API.GetPedDrawableVariationCollectionLocalIndex(ped, slot)}"); } @@ -88,14 +104,14 @@ private static void Report(PedVariationScope scope, string menu) line += $" texture {API.GetPedPropTextureIndex(ped, slot)}/{API.GetNumberOfPedPropTextureVariations(ped, slot, worn)}, collection '{API.GetPedPropCollectionName(ped, slot)}' local {API.GetPedPropCollectionLocalIndex(ped, slot)}"; } - Log.Warning(Prefix + line); + Log.Debug(Prefix + line); } var collections = API.GetPedCollectionsCount(ped); var componentTotals = new int[PedComponentSlots.All.Length]; var propTotals = new int[PropSlots.Length]; - Log.Warning(Prefix + $"collections: {collections}"); + Log.Debug(Prefix + $"collections: {collections}"); for (var index = 0; index < collections; index++) { @@ -120,7 +136,7 @@ private static void Report(PedVariationScope scope, string menu) line += $" {PropSlots[at]}={count}"; } - Log.Warning(Prefix + line); + Log.Debug(Prefix + line); } for (var at = 0; at < PedComponentSlots.All.Length; at++) @@ -130,7 +146,7 @@ private static void Report(PedVariationScope scope, string menu) if (global != componentTotals[at]) { - Log.Warning(Prefix + $"MISMATCH component {slot}: global count {global}, collections add up to {componentTotals[at]}"); + Log.Debug(Prefix + $"MISMATCH component {slot}: global count {global}, collections add up to {componentTotals[at]}"); } ComponentRanges(ped, slot, global); @@ -143,13 +159,13 @@ private static void Report(PedVariationScope scope, string menu) if (global != propTotals[at]) { - Log.Warning(Prefix + $"MISMATCH prop {slot}: global count {global}, collections add up to {propTotals[at]}"); + Log.Debug(Prefix + $"MISMATCH prop {slot}: global count {global}, collections add up to {propTotals[at]}"); } PropRanges(ped, slot, global); } - Log.Warning(Prefix + "=== end of open report"); + Log.Debug(Prefix + "=== end of open report"); } private static void ComponentRanges(int ped, int slot, int count) @@ -181,7 +197,7 @@ private static void ComponentRanges(int ped, int slot, int count) continue; } - Log.Warning(Prefix + $" component {slot} global {start}-{drawable - 1} '{name}' local {API.GetPedCollectionLocalIndexFromDrawable(ped, slot, start)}-{API.GetPedCollectionLocalIndexFromDrawable(ped, slot, drawable - 1)}, textures of first {API.GetNumberOfPedTextureVariations(ped, slot, start)}"); + Log.Debug(Prefix + $" component {slot} global {start}-{drawable - 1} '{name}' local {API.GetPedCollectionLocalIndexFromDrawable(ped, slot, start)}-{API.GetPedCollectionLocalIndexFromDrawable(ped, slot, drawable - 1)}, textures of first {API.GetNumberOfPedTextureVariations(ped, slot, start)}"); start = drawable; name = next ?? string.Empty; @@ -189,7 +205,7 @@ private static void ComponentRanges(int ped, int slot, int count) if (invalid.Count > 0) { - Log.Warning(Prefix + $" component {slot} invalid with texture 0: {Ranges(invalid)}"); + Log.Debug(Prefix + $" component {slot} invalid with texture 0: {Ranges(invalid)}"); } } @@ -212,14 +228,22 @@ private static void PropRanges(int ped, int slot, int count) continue; } - Log.Warning(Prefix + $" prop {slot} global {start}-{drawable - 1} '{name}' local {API.GetPedCollectionLocalIndexFromProp(ped, slot, start)}-{API.GetPedCollectionLocalIndexFromProp(ped, slot, drawable - 1)}, textures of first {API.GetNumberOfPedPropTextureVariations(ped, slot, start)}"); + Log.Debug(Prefix + $" prop {slot} global {start}-{drawable - 1} '{name}' local {API.GetPedCollectionLocalIndexFromProp(ped, slot, start)}-{API.GetPedCollectionLocalIndexFromProp(ped, slot, drawable - 1)}, textures of first {API.GetNumberOfPedPropTextureVariations(ped, slot, start)}"); start = drawable; name = next ?? string.Empty; } } - private static void Check(PedVariationScope scope, int slot, bool component, bool left, int count, int current, int next) + private static void Check( + PedVariationScope scope, + int slot, + bool component, + bool left, + int count, + int current, + int from, + int next) { var ped = API.PlayerPedId(); var key = component ? slot : 100 + slot; @@ -231,27 +255,32 @@ private static void Check(PedVariationScope scope, int slot, bool component, boo { if (previous.Count != count) { - Log.Warning(Prefix + $"COUNT CHANGED {what}: was {previous.Count}, now {count}"); + Log.Debug(Prefix + $"COUNT CHANGED {what}: was {previous.Count}, now {count}"); } if (previous.Next != current) { - Log.Warning(Prefix + $"READ BACK DIFFERS {what}: previous press asked {previous.Next}, this press read {current}"); + Log.Debug(Prefix + $"READ BACK DIFFERS {what}: previous press asked {previous.Next}, this press read {current}"); } if (previous.Left == left && previous.Current == current) { - Log.Warning(Prefix + $"STUCK {what}: pressed {direction} twice and both presses read {current}"); + Log.Debug(Prefix + $"STUCK {what}: pressed {direction} twice and both presses read {current}"); } } LastPress[key] = new Press(left, count, current, next); + if (from != current) + { + Log.Debug(Prefix + $"SKIPPING {what}: ped still wears {current}, stepping on from the refused {from} to {next}"); + } + var wrapped = left ? next > current : next < current; if (wrapped) { - Log.Warning(Prefix + $"WRAPPED {what}: pressed {direction} on {current} of count {count}, went to {next}"); + Log.Debug(Prefix + $"WRAPPED {what}: pressed {direction} on {current} of count {count}, went to {next}"); } if (landed == next) @@ -259,7 +288,7 @@ private static void Check(PedVariationScope scope, int slot, bool component, boo return; } - Log.Warning(Prefix + $"DID NOT CHANGE {what}: pressed {direction}, read {current}, asked {next} of count {count}, immediately reads {Show(landed)}, {Detail(scope, ped, slot, component, next)}"); + Log.Debug(Prefix + $"DID NOT CHANGE {what}: pressed {direction}, worn {current}, asked {next} of count {count}, immediately reads {Show(landed)}, {Detail(scope, ped, slot, component, next)}"); _ = FollowUpAsync(scope, slot, component, next, what); } @@ -279,7 +308,7 @@ private static async Task FollowUpAsync(PedVariationScope scope, int slot, bool var ped = API.PlayerPedId(); var value = Read(scope, ped, slot, component); - Log.Warning(Prefix + $" follow up {what} after {delay} ms: asked {asked}, reads {Show(value)}, {Detail(scope, ped, slot, component, asked)}"); + Log.Debug(Prefix + $" follow up {what} after {delay} ms: asked {asked}, reads {Show(value)}, {Detail(scope, ped, slot, component, asked)}"); if (value == asked) { @@ -355,5 +384,5 @@ private static string Ranges(List values) private static string ScopeName(PedVariationScope scope) => scope.IsCollection ? $"collection '{scope.CollectionName}'" : "global"; - private static string Show(int? value) => value is { } number ? $"{number}" : "none"; + private static string Show(int? value) => value is int number ? $"{number}" : "none"; } diff --git a/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PedCustomizationRows.cs b/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PedCustomizationRows.cs index 04c16158b..d9b4578d9 100644 --- a/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PedCustomizationRows.cs +++ b/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PedCustomizationRows.cs @@ -7,6 +7,7 @@ using vMenu.Enhanced.MenuFramework; using vMenu.Enhanced.Localization; +using vMenu.Enhanced.Logging; using vMenu.Enhanced.Menus.Players.Appearance.Torso; @@ -22,6 +23,14 @@ namespace vMenu.Enhanced.Menus.Players.Appearance; // rows' counting, so a player types back the number they are looking at. public static class PedCustomizationRows { + private const int RefusedNotificationMs = 3000; + + private const int ConfirmPollMs = 100; + + private const int SlowAfterMs = 1000; + + private const int RefusedAfterMs = 4000; + [Flags] internal enum PedRows { @@ -132,12 +141,19 @@ internal static List Rows( // The handler fires for the menu rather than for a row, so the row it landed on has to be able to // say which slot it edits. - internal sealed class SlotReference(int slot, bool component, bool fitTorso = false, Action? redrawTorso = null) + internal sealed class SlotReference( + int slot, + bool component, + ShiftMemory memory, + bool fitTorso = false, + Action? redrawTorso = null) { internal int Slot { get; } = slot; internal bool IsComponent { get; } = component; + internal ShiftMemory Memory { get; } = memory; + internal bool FitTorso { get; } = fitTorso; internal Action? RedrawTorso { get; } = redrawTorso; @@ -157,6 +173,7 @@ await AskForExactIdAsync( reference.Slot, item, reference.IsComponent, + reference.Memory, reference.FitTorso, reference.RedrawTorso); } @@ -170,36 +187,50 @@ private static DynamicListEntry ComponentRow( Action? redrawTorso = null) { var fits = fitTorso && TorsoFit.Triggers(slot); + var memory = new ShiftMemory(); return new DynamicListEntry { Text = MenuText.Key(PedComponentSlots.NameKey(slot)), - Description = MenuText.From(() => ComponentDescription(scope, slot)), + Description = MenuText.From(() => ComponentDescription(scope, slot, memory)), Gate = PlayerAppearancePermissions.Customize, - Configure = item => item.ItemData = new SlotReference(slot, component: true, fits, redrawTorso), - ReadValue = () => ComponentValue(scope, slot), + Configure = item => item.ItemData = new SlotReference(slot, component: true, memory, fits, redrawTorso), + ReadValue = () => ComponentValue(scope, slot, memory), // Applied as it scrolls, which is the only way to see what you are choosing. Change = changing => { - Shift(scope, slot, changing.Left, component: true, fits, redrawTorso); + Shift( + scope, + slot, + changing.Left, + component: true, + memory, + () => Redraw(changing.Item, ComponentValue(scope, slot, memory), ComponentDescription(scope, slot, memory)), + fits, + redrawTorso); // A description is only rewritten on a refresh pass, and scrolling is not one, so the numbers // underneath would sit a step behind what the row is showing. - changing.Item.Description = ComponentDescription(scope, slot); + changing.Item.Description = ComponentDescription(scope, slot, memory); - return ComponentValue(scope, slot); + return ComponentValue(scope, slot, memory); }, - OnSelected = selected => ComponentSelected(scope, slot, selected.Item, fits, redrawTorso), + OnSelected = selected => ComponentSelected(scope, slot, selected.Item, memory, fits, redrawTorso), }; } - private static string ComponentValue(PedVariationScope scope, int slot) + private static string ComponentValue(PedVariationScope scope, int slot, ShiftMemory memory) { var ped = API.PlayerPedId(); - if (scope.CurrentDrawable(ped, slot) is not { } drawable) + if (memory.Pending(Worn(scope, ped, slot, component: true)) is int asked) + { + return PendingValue(asked, scope.DrawableCount(ped, slot), memory.Confirmed); + } + + if (scope.CurrentDrawable(ped, slot) is not int drawable) { return Resolve(MenuText.Key(Loc.PlayerAppearance.ValueNone)); } @@ -215,11 +246,24 @@ private static string ComponentValue(PedVariationScope scope, int slot) ("texturePosition", Position(texture)))); } - private static string ComponentDescription(PedVariationScope scope, int slot) + private static string ComponentDescription(PedVariationScope scope, int slot, ShiftMemory memory) { var ped = API.PlayerPedId(); + var worn = Worn(scope, ped, slot, component: true); - if (scope.CurrentDrawable(ped, slot) is not { } drawable) + if (memory.Pending(worn) is int asked) + { + return PendingDescription( + PedComponentSlots.NameKey(slot), + scope, + asked, + worn, + scope.DrawableCount(ped, slot), + scope.TextureCount(ped, slot, asked), + memory); + } + + if (scope.CurrentDrawable(ped, slot) is not int drawable) { return Elsewhere(PedComponentSlots.NameKey(slot), scope); } @@ -237,12 +281,20 @@ private static void ComponentSelected( PedVariationScope scope, int slot, MenuDynamicListItem item, + ShiftMemory memory, bool fitTorso = false, Action? redrawTorso = null) { var ped = API.PlayerPedId(); - if (scope.CurrentDrawable(ped, slot) is not { } drawable) + if (memory.Pending(Worn(scope, ped, slot, component: true)) is not null) + { + WarnIfRefused(memory); + + return; + } + + if (scope.CurrentDrawable(ped, slot) is not int drawable) { return; } @@ -259,7 +311,7 @@ private static void ComponentSelected( // Selecting is not a refresh, so nothing re-reads the row on its own and the texture number would // sit on whatever it said before while the ped already wore the new one. - Redraw(item, ComponentValue(scope, slot), ComponentDescription(scope, slot)); + Redraw(item, ComponentValue(scope, slot, memory), ComponentDescription(scope, slot, memory)); } #endregion @@ -268,35 +320,48 @@ private static void ComponentSelected( private static DynamicListEntry PropRow(PedVariationScope scope, int slot) { + var memory = new ShiftMemory(); + return new DynamicListEntry { Text = MenuText.Key(PedPropSlots.NameKey(slot)), - Description = MenuText.From(() => PropDescription(scope, slot)), + Description = MenuText.From(() => PropDescription(scope, slot, memory)), Gate = PlayerAppearancePermissions.Customize, - Configure = item => item.ItemData = new SlotReference(slot, component: false), - ReadValue = () => PropValue(scope, slot), + Configure = item => item.ItemData = new SlotReference(slot, component: false, memory), + ReadValue = () => PropValue(scope, slot, memory), Change = changing => { - Shift(scope, slot, changing.Left, component: false); + Shift( + scope, + slot, + changing.Left, + component: false, + memory, + () => Redraw(changing.Item, PropValue(scope, slot, memory), PropDescription(scope, slot, memory))); - changing.Item.Description = PropDescription(scope, slot); + changing.Item.Description = PropDescription(scope, slot, memory); // Scrolling is how a helmet usually goes on, so this is where the hint is most likely to be needed. PedVisorHint.ShowIfHelmet(API.PlayerPedId(), slot); - return PropValue(scope, slot); + return PropValue(scope, slot, memory); }, - OnSelected = selected => PropSelected(scope, slot, selected.Item), + OnSelected = selected => PropSelected(scope, slot, selected.Item, memory), }; } - private static string PropValue(PedVariationScope scope, int slot) + private static string PropValue(PedVariationScope scope, int slot, ShiftMemory memory) { var ped = API.PlayerPedId(); - if (scope.CurrentProp(ped, slot) is not { } drawable) + if (memory.Pending(Worn(scope, ped, slot, component: false)) is int asked) + { + return PendingValue(asked, scope.PropCount(ped, slot), memory.Confirmed); + } + + if (scope.CurrentProp(ped, slot) is not int drawable) { return Resolve(MenuText.Key(Loc.PlayerAppearance.ValueNone)); } @@ -308,12 +373,25 @@ private static string PropValue(PedVariationScope scope, int slot) ("texturePosition", Position(PedVariationScope.CurrentPropTexture(ped, slot))))); } - private static string PropDescription(PedVariationScope scope, int slot) + private static string PropDescription(PedVariationScope scope, int slot, ShiftMemory memory) { var ped = API.PlayerPedId(); var name = PedPropSlots.NameKey(slot); + var worn = Worn(scope, ped, slot, component: false); + + if (memory.Pending(worn) is int asked) + { + return PendingDescription( + name, + scope, + asked, + worn, + scope.PropCount(ped, slot), + scope.PropTextureCount(ped, slot, asked), + memory); + } - if (scope.CurrentProp(ped, slot) is not { } drawable) + if (scope.CurrentProp(ped, slot) is not int drawable) { // Nothing worn and worn from elsewhere look the same on the row but are not the same thing, and a // player who cannot tell them apart will think the menu is broken. @@ -337,11 +415,18 @@ private static string PropDescription(PedVariationScope scope, int slot) scope.PropTextureCount(ped, slot, drawable)); } - private static void PropSelected(PedVariationScope scope, int slot, MenuDynamicListItem item) + private static void PropSelected(PedVariationScope scope, int slot, MenuDynamicListItem item, ShiftMemory memory) { var ped = API.PlayerPedId(); - if (scope.CurrentProp(ped, slot) is not { } drawable) + if (memory.Pending(Worn(scope, ped, slot, component: false)) is not null) + { + WarnIfRefused(memory); + + return; + } + + if (scope.CurrentProp(ped, slot) is not int drawable) { return; } @@ -352,7 +437,7 @@ private static void PropSelected(PedVariationScope scope, int slot, MenuDynamicL scope.SetProp(ped, slot, drawable, texture); - Redraw(item, PropValue(scope, slot), PropDescription(scope, slot)); + Redraw(item, PropValue(scope, slot, memory), PropDescription(scope, slot, memory)); PedVisorHint.ShowIfHelmet(ped, slot); } @@ -401,14 +486,14 @@ private static string Elsewhere(string nameKey, PedVariationScope scope) => private static int NextTexture(int current, int count) => count <= 0 ? 0 : (Math.Max(current, 0) + 1) % count; - // The current position is read off the ped every time rather than tracked alongside it, so another - // resource changing the player's clothes cannot leave this row counting from a place the ped has not - // been for a while. Props have one extra position at the front for wearing nothing, so they run from -1. + // Props have one extra position at the front for wearing nothing, so they run from -1. private static void Shift( PedVariationScope scope, int slot, bool left, bool component, + ShiftMemory memory, + Action redraw, bool fitTorso = false, Action? redrawTorso = null) { @@ -421,7 +506,13 @@ private static void Shift( } var first = component ? 0 : -1; - var current = (component ? scope.CurrentDrawable(ped, slot) : scope.CurrentProp(ped, slot)) ?? first; + var worn = Worn(scope, ped, slot, component); + + // The game refuses some valid pieces, stepping from what is worn would ask for them forever. + var current = memory.Pending(worn) is int asked && asked >= first && asked < count + ? asked + : worn; + var next = current + (left ? -1 : 1); // Wrapped by hand rather than with a modulo, because the range does not start at zero for a prop and @@ -442,24 +533,149 @@ private static void Shift( scope.SetComponent(ped, slot, next, 0, PedVariationScope.CurrentPalette(ped, slot)); TorsoFit.Apply(before, slot, redrawTorso); + } + else if (next < 0) + { + PedVariationScope.ClearProp(ped, slot); + } + else + { + scope.SetProp(ped, slot, next, 0); + } - ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); + Remember(scope, ped, slot, component, memory, worn, next, redraw); + + ClothingDiagnostics.Pressed(scope, slot, component, left, count, worn, current, next); + } + + private static int Worn(PedVariationScope scope, int ped, int slot, bool component) => component + ? scope.CurrentDrawable(ped, slot) ?? 0 + : scope.CurrentProp(ped, slot) ?? -1; + + private static void Remember( + PedVariationScope scope, + int ped, + int slot, + bool component, + ShiftMemory memory, + int worn, + int asked, + Action redraw) + { + memory.Attempt++; + + if (Worn(scope, ped, slot, component) == asked) + { + memory.Worn = null; return; } - if (next < 0) + memory.Worn = worn; + memory.Asked = asked; + memory.Confirmed = false; + memory.Slow = false; + + _ = ConfirmAsync(scope, slot, component, memory, memory.Attempt, redraw); + } + + // Streamed pieces can take a moment to go on, so a piece only counts as refused once it had time to load. + private static async Task ConfirmAsync( + PedVariationScope scope, + int slot, + bool component, + ShiftMemory memory, + int attempt, + Action redraw) + { + try { - PedVariationScope.ClearProp(ped, slot); + var started = API.GetGameTimer(); - ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); + while (true) + { + await BaseScript.Delay(ConfirmPollMs); - return; + if (memory.Attempt != attempt) + { + return; + } + + if (memory.Pending(Worn(scope, API.PlayerPedId(), slot, component)) is not int) + { + memory.Worn = null; + + redraw(); + + return; + } + + var elapsed = API.GetGameTimer() - started; + + if (elapsed >= RefusedAfterMs) + { + memory.Confirmed = true; + + WarnIfRefused(memory); + + redraw(); + + return; + } + + if (elapsed >= SlowAfterMs && !memory.Slow) + { + memory.Slow = true; + + redraw(); + } + } + } + catch (Exception exception) + { + Log.Error("[Appearance] Checking a clothing change failed: " + exception); } + } + + private static void WarnIfRefused(ShiftMemory memory) + { + if (memory.Confirmed) + { + Notifications.Warning(MenuText.Key(Loc.PlayerAppearance.NotAppliedNotification), RefusedNotificationMs); + } + } + + private static string PendingValue(int asked, int drawables, bool refused) => + Resolve(MenuText.Key( + refused ? Loc.PlayerAppearance.ValueNotApplied : Loc.PlayerAppearance.Value, + ("position", Position(asked)), + ("drawables", Number(drawables)), + ("texturePosition", Position(0)))); - scope.SetProp(ped, slot, next, 0); + private static string PendingDescription( + string nameKey, + PedVariationScope scope, + int asked, + int worn, + int drawables, + int textures, + ShiftMemory memory) + { + var description = Describe(nameKey, scope, asked, drawables, 0, textures); - ClothingDiagnostics.Pressed(scope, slot, component, left, count, current, next); + if (!memory.Confirmed) + { + return memory.Slow + ? description + "\n" + Resolve(MenuText.Key(Loc.PlayerAppearance.LoadingSlowly, ("id", Position(asked)))) + : description; + } + + return description + + "\n" + + Resolve(MenuText.Key( + Loc.PlayerAppearance.NotApplied, + ("id", Position(asked)), + ("worn", worn < 0 ? MenuText.Key(Loc.PlayerAppearance.ValueNone) : Position(worn)))); } // Asked for as a position counting from one, matching what the row shows. Legacy asked for a position @@ -470,6 +686,7 @@ private static async Task AskForExactIdAsync( int slot, MenuDynamicListItem item, bool component, + ShiftMemory memory, bool fitTorso = false, Action? redrawTorso = null) { @@ -509,6 +726,7 @@ private static async Task AskForExactIdAsync( ped = API.PlayerPedId(); var drawable = position - 1; + var worn = Worn(scope, ped, slot, component); if (component) { @@ -518,18 +736,53 @@ private static async Task AskForExactIdAsync( TorsoFit.Apply(before, slot, redrawTorso); - Redraw(item, ComponentValue(scope, slot), ComponentDescription(scope, slot)); + Remember( + scope, + ped, + slot, + component, + memory, + worn, + drawable, + () => Redraw(item, ComponentValue(scope, slot, memory), ComponentDescription(scope, slot, memory))); + + Redraw(item, ComponentValue(scope, slot, memory), ComponentDescription(scope, slot, memory)); return; } scope.SetProp(ped, slot, drawable, 0); - Redraw(item, PropValue(scope, slot), PropDescription(scope, slot)); + Remember( + scope, + ped, + slot, + component, + memory, + worn, + drawable, + () => Redraw(item, PropValue(scope, slot, memory), PropDescription(scope, slot, memory))); + + Redraw(item, PropValue(scope, slot, memory), PropDescription(scope, slot, memory)); PedVisorHint.ShowIfHelmet(ped, slot); } + internal sealed class ShiftMemory + { + internal int? Worn { get; set; } + + internal int Asked { get; set; } + + internal bool Confirmed { get; set; } + + internal bool Slow { get; set; } + + internal int Attempt { get; set; } + + internal int? Pending(int worn) => Worn == worn && Asked != worn ? Asked : null; + } + private static void Redraw(MenuDynamicListItem item, string value, string description) { item.CurrentItem = value; @@ -538,15 +791,15 @@ private static void Redraw(MenuDynamicListItem item, string value, string descri private static void RedrawTorso(PedVariationScope scope, DynamicListEntry? torsoRow) { - if (torsoRow?.Typed is not { } item) + if (torsoRow?.Typed is not { ItemData: SlotReference reference } item) { return; } Redraw( item, - ComponentValue(scope, PedComponentSlots.Torso), - ComponentDescription(scope, PedComponentSlots.Torso)); + ComponentValue(scope, PedComponentSlots.Torso, reference.Memory), + ComponentDescription(scope, PedComponentSlots.Torso, reference.Memory)); } private static CheckboxEntry FitTorsoRow() => new(Loc.CharacterCreator.FitTorso) diff --git a/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PropDiagnosticsCommand.cs b/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PropDiagnosticsCommand.cs index 920892474..92c99893e 100644 --- a/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PropDiagnosticsCommand.cs +++ b/src/Legacy/Client/vMenu.Legacy.Menus/Players/Appearance/PropDiagnosticsCommand.cs @@ -9,8 +9,6 @@ namespace vMenu.Enhanced.Menus.Players.Appearance; -// Temporary, to diagnose add-on hats that cannot be scrolled past. Not gated, so a reporter can run it -// without changing their config. Remove once that report is settled. public static class PropDiagnosticsCommand { private const string Command = "vmenu_debug_props"; @@ -32,9 +30,16 @@ public static void Initialize() private static async Task RunAsync() { + if (!Log.IsEnabled(LogLevel.Debug)) + { + Log.Info(Prefix + "Turn on vMenu.Enhanced.Debugging.Client to see this report."); + + return; + } + if (_running) { - Log.Info(Prefix + "Already running, wait for it to finish."); + Log.Debug(Prefix + "Already running, wait for it to finish."); return; } @@ -61,9 +66,9 @@ private static async Task ReportAsync() var model = NativeFixer.GetEntityModel(ped); var resource = API.GetCurrentResourceName(); - Log.Info(Prefix + "Start. This changes your hat for up to a minute, stand still until it says Done."); - Log.Info(Prefix + $"flavor Legacy, vMenu {API.GetResourceMetadata(resource, "version", 0)}, build {API.GetGameBuildNumber()}"); - Log.Info(Prefix + $"model {model}, freemode male {model == PedSpawning.FreemodeModel(true)}, freemode female {model == PedSpawning.FreemodeModel(false)}"); + Log.Debug(Prefix + "Start. This changes your hat for up to a minute, stand still until it says Done."); + Log.Debug(Prefix + $"flavor Legacy, vMenu {API.GetResourceMetadata(resource, "version", 0)}, build {API.GetGameBuildNumber()}"); + Log.Debug(Prefix + $"model {model}, freemode male {model == PedSpawning.FreemodeModel(true)}, freemode female {model == PedSpawning.FreemodeModel(false)}"); int[] slots = [0, 1, 2, 6, 7]; @@ -77,12 +82,12 @@ private static async Task ReportAsync() line += $", collection '{API.GetPedPropCollectionName(ped, slot)}' local {API.GetPedPropCollectionLocalIndex(ped, slot)}"; } - Log.Info(Prefix + line); + Log.Debug(Prefix + line); } var collections = API.GetPedCollectionsCount(ped); - Log.Info(Prefix + $"collections: {collections}"); + Log.Debug(Prefix + $"collections: {collections}"); for (var index = 0; index < collections; index++) { @@ -94,14 +99,14 @@ private static async Task ReportAsync() line += $" {slot}={API.GetNumberOfPedCollectionPropDrawableVariations(ped, slot, name)}"; } - Log.Info(Prefix + line); + Log.Debug(Prefix + line); } var count = API.GetNumberOfPedPropDrawableVariations(ped, Hats); if (count <= 0) { - Log.Info(Prefix + "This ped has no hats, nothing more to test. Done."); + Log.Debug(Prefix + "This ped has no hats, nothing more to test. Done."); return; } @@ -129,12 +134,12 @@ private static async Task ReportAsync() } } - Log.Info(Prefix + "Done."); + Log.Debug(Prefix + "Done."); } private static int HatRanges(int ped, int count) { - Log.Info(Prefix + $"hat ranges ({count} hats):"); + Log.Debug(Prefix + $"hat ranges ({count} hats):"); var start = 0; var name = API.GetPedCollectionNameFromProp(ped, Hats, 0) ?? string.Empty; @@ -152,7 +157,7 @@ private static int HatRanges(int ped, int count) var localEnd = API.GetPedCollectionLocalIndexFromProp(ped, Hats, drawable - 1); - Log.Info(Prefix + $" global {start}-{drawable - 1} '{name}' local {localStart}-{localEnd}, textures of first {API.GetNumberOfPedPropTextureVariations(ped, Hats, start)}"); + Log.Debug(Prefix + $" global {start}-{drawable - 1} '{name}' local {localStart}-{localEnd}, textures of first {API.GetNumberOfPedPropTextureVariations(ped, Hats, start)}"); if (next is null) { @@ -214,7 +219,7 @@ private static bool Has(List values, int value) private static async Task TimingAsync(int ped, List indices) { - Log.Info(Prefix + "timing (set a hat, then read it back every frame):"); + Log.Debug(Prefix + "timing (set a hat, then read it back every frame):"); foreach (var index in indices) { @@ -223,7 +228,7 @@ private static async Task TimingAsync(int ped, List indices) var immediate = NativeFixer.GetPedPropIndex(ped, Hats, false); var result = await WaitForAsync(ped, index); - Log.Info(Prefix + $" set {index}: immediate {immediate}, {result}"); + Log.Debug(Prefix + $" set {index}: immediate {immediate}, {result}"); } } @@ -276,7 +281,7 @@ private static async Task ReplayAsync(int ped, int count, int lastGroupStart) NativeFixer.SetPedPropIndex(ped, Hats, start, 0, true, false); - Log.Info(Prefix + $"replay right, menu logic, starting on {start}: {await WaitForAsync(ped, start)}"); + Log.Debug(Prefix + $"replay right, menu logic, starting on {start}: {await WaitForAsync(ped, start)}"); for (var press = 1; press <= 5; press++) { @@ -287,7 +292,7 @@ private static async Task ReplayAsync(int ped, int count, int lastGroupStart) await BaseScript.Delay(PressGapMs); - Log.Info(Prefix + $"replay left, menu logic, starting on none (read {NativeFixer.GetPedPropIndex(ped, Hats, false)}):"); + Log.Debug(Prefix + $"replay left, menu logic, starting on none (read {NativeFixer.GetPedPropIndex(ped, Hats, false)}):"); for (var press = 1; press <= 3; press++) { @@ -324,6 +329,6 @@ private static async Task PressAsync(int ped, int press, bool left) await BaseScript.Delay(PressGapMs); - Log.Info(Prefix + $" press {press}: read {current}, asked {next}, immediately {immediate}, after {PressGapMs} ms {NativeFixer.GetPedPropIndex(ped, Hats, false)}"); + Log.Debug(Prefix + $" press {press}: read {current}, asked {next}, immediately {immediate}, after {PressGapMs} ms {NativeFixer.GetPedPropIndex(ped, Hats, false)}"); } } diff --git a/src/Shared/vMenu.Enhanced.Localization/Loc.PlayerAppearance.cs b/src/Shared/vMenu.Enhanced.Localization/Loc.PlayerAppearance.cs index 0985fd7c2..c7eec72e9 100644 --- a/src/Shared/vMenu.Enhanced.Localization/Loc.PlayerAppearance.cs +++ b/src/Shared/vMenu.Enhanced.Localization/Loc.PlayerAppearance.cs @@ -139,6 +139,18 @@ public static class PlayerAppearance [English("~h~{slot}~h~\nNothing worn, ~y~{drawables}~s~ to choose from\nScroll to pick one.")] public const string PropRowDescriptionEmpty = "playerappearance.prop.desc.none"; + [English("[{position}/{drawables}] not applied")] + public const string ValueNotApplied = "playerappearance.value.notapplied"; + + [English("~r~ID {id} could not be applied, still wearing {worn}. Check the FAQ in the vMenu docs for more info.~s~")] + public const string NotApplied = "playerappearance.notapplied"; + + [English("~o~ID {id} is taking a while to load.~s~")] + public const string LoadingSlowly = "playerappearance.loadingslowly"; + + [English("A clothing item could not be applied. Check the FAQ in the vMenu docs for more info.")] + public const string NotAppliedNotification = "playerappearance.notapplied.notification"; + #endregion #region Typing an exact id From 8ca2a2ec53637a30af003b6aaeb8659f6b17f26a Mon Sep 17 00:00:00 2001 From: MrPizza <5529325+sir-lord-pizza@users.noreply.github.com> Date: Fri, 6 Nov 2026 11:22:51 +0100 Subject: [PATCH 3/4] docs(faq): explain clothing that could not be applied --- docs/astro.config.mjs | 1 + docs/src/content/docs/faq.md | 37 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 docs/src/content/docs/faq.md diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 432d7250c..c8e6088b8 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -83,6 +83,7 @@ export default defineConfig({ { label: 'Installing on FiveM Legacy', link: '/installing/fivem-legacy/' }, { label: 'Running on Linux', link: '/running-on-linux/' }, { label: 'Key Bindings', link: '/key-bindings/' }, + { label: 'FAQ', link: '/faq/' }, ], }, { diff --git a/docs/src/content/docs/faq.md b/docs/src/content/docs/faq.md new file mode 100644 index 000000000..ed2c4cdf0 --- /dev/null +++ b/docs/src/content/docs/faq.md @@ -0,0 +1,37 @@ +--- +title: "FAQ" +description: "Answers to questions that come up often about vMenu Enhanced." +--- + +## A clothing item says it could not be applied + +:::note[FiveM Legacy] +This is far more likely to happen on FiveM Legacy than on FiveM Enhanced. +::: + +Sometimes you scroll to a piece of clothing or a prop, the number goes up, but your character keeps wearing the previous item. The row then says **not applied**, the description shows a red line with the number that failed, and a short notification pops up. + +This means the game refused to put that item on. vMenu asked for it, the game says it exists, but it never loads it. It happens in Player Appearance and in the Custom Character Creator alike, and vMenu cannot force it. + +Some items take a moment to load. When that takes longer than a second, the description shows an orange line saying the item is taking a while to load. vMenu waits up to 4 seconds before it counts the item as not applied. + +The numbers in the menu start counting at 1, so the ID in that red line is the number you see in the menu. The game itself starts counting at 0, so the real ID in the game is always 1 lower. ID 446 in the menu is ID 445 in the game. + +You can keep scrolling. vMenu skips past items that fail, so you can still reach everything after them. Jump To A Number works too. + +### Why it happens + +The usual cause is the clothing files on the server or on your game: + +1. A streamed clothing pack replaces one of the base game items with a broken file. +2. A clothing pack was made for a different game build than the one the server runs. +3. Your own game files for that item are damaged. Verifying your game files _could_ fix that, but it's not guaranteed. +4. Just a random FiveM/GTA bug. Nothing we can do about this. We've seen this happen to native R\* games clothing items, without any streamed clothing items present. So there's no way to reliably tell what exactly causes it. + +### What a server owner can do + +Write down the numbers that fail. +Take out your streamed clothing packs one at a time and check if the item works again. +The pack that fixes it once removed is the one with the broken file. + +If the item still fails with every clothing pack removed, the problem is with that item in the game itself, and the only thing to do is skip it. From 907b1f578680a9926c58a3fa098dc6a50fd3a621 Mon Sep 17 00:00:00 2001 From: MrPizza <5529325+sir-lord-pizza@users.noreply.github.com> Date: Fri, 6 Nov 2026 11:35:25 +0100 Subject: [PATCH 4/4] chore(i18n): translate the freecam and filmmaker menus --- assets/shared/language/de.json | 190 +++++++++++++++++++++++++++++++++ assets/shared/language/es.json | 190 +++++++++++++++++++++++++++++++++ assets/shared/language/fr.json | 190 +++++++++++++++++++++++++++++++++ assets/shared/language/nl.json | 190 +++++++++++++++++++++++++++++++++ 4 files changed, 760 insertions(+) diff --git a/assets/shared/language/de.json b/assets/shared/language/de.json index f06ad815e..60027a5eb 100644 --- a/assets/shared/language/de.json +++ b/assets/shared/language/de.json @@ -825,6 +825,174 @@ "displaysettings.title": "Anzeigeeinstellungen", "displaysettings.vehiclehealth": "Fahrzeugzustand", "displaysettings.vehiclehealth.desc": "Fügt dem Tachofeld drei kleine Balken hinzu, die zeigen, wie gesund Motor, Karosserie und Tank deines Fahrzeugs sind. Sie funktionieren auch, wenn der Tacho selbst aus ist.", + "filmmaker.camera.hidehints": "Tastenhinweise ausblenden", + "filmmaker.camera.hidehints.desc": "Blendet die Tasten unten am Bildschirm aus, solange die Freecam an ist.", + "filmmaker.camera.invert": "Blick umkehren", + "filmmaker.camera.invert.desc": "Vertauscht nach oben und nach unten schauen.", + "filmmaker.camera.link.desc": "Wie sich die Freecam bewegt, dreht und zoomt.", + "filmmaker.camera.reset": "Neigung und Zoom zurücksetzen", + "filmmaker.camera.roll": "Neigung", + "filmmaker.camera.roll.desc": "Kippt die Kamera zur Seite.", + "filmmaker.camera.sensitivity": "Blickempfindlichkeit", + "filmmaker.camera.sensitivity.desc": "Wie schnell sich die Kamera mit der Maus oder dem rechten Stick dreht.", + "filmmaker.camera.smoothing": "Glättung", + "filmmaker.camera.smoothing.desc": "Wie lange die Kamera zum Beschleunigen und Abbremsen braucht. Bei null hält sie sofort an.", + "filmmaker.camera.speed": "Geschwindigkeit", + "filmmaker.camera.speed.desc": "Wie schnell die Freecam fliegt. Solange die Freecam an ist, ändert auch das Mausrad sie.", + "filmmaker.camera.subtitle": "Kameraeinstellungen", + "filmmaker.camera.title": "Kamera", + "filmmaker.camera.zoom": "Zoom", + "filmmaker.camera.zoom.desc": "Das Sichtfeld der Kamera. Eine kleinere Zahl zoomt weiter heran.", + "filmmaker.delete": "Löschen", + "filmmaker.deleted": "~b~{name}~s~ wurde gelöscht.", + "filmmaker.dof.aperture": "Blende", + "filmmaker.dof.aperture.desc": "Wie schmal der scharfe Bereich um den Fokuspunkt ist. Ein höherer Wert macht ihn schmaler, sodass mehr davor und dahinter unscharf wird, wie bei einem weit offenen Kameraobjektiv.", + "filmmaker.dof.distance": "Fokusentfernung", + "filmmaker.dof.distance.desc": "In welcher Entfernung von der Kamera alles scharf ist. Wird mit jeder Einstellung und jedem Keyframe gespeichert.", + "filmmaker.dof.enabled": "Tiefenschärfe", + "filmmaker.dof.focus": "Fokus", + "filmmaker.dof.focus.desc": "Manuell stellt auf eine feste Entfernung scharf. Ziel hält das gesperrte Ziel scharf.", + "filmmaker.dof.focus.manual": "Manuell", + "filmmaker.dof.focus.target": "Ziel", + "filmmaker.dof.link.desc": "Macht unscharf, was näher oder weiter weg ist als der Punkt, auf den du scharf stellst.", + "filmmaker.dof.subtitle": "Tiefenschärfe", + "filmmaker.dof.title": "Tiefenschärfe", + "filmmaker.effects.hidehud": "HUD ausblenden", + "filmmaker.effects.hidehud.desc": "Blendet das HUD, die Minikarte und Benachrichtigungen aus, solange die Freecam an ist.", + "filmmaker.effects.letterbox": "Letterbox", + "filmmaker.effects.letterbox.desc": "Fügt oben und unten am Bildschirm schwarze Kinobalken hinzu.", + "filmmaker.effects.link.desc": "Blende das HUD aus, füge schwarze Balken, Bewegungsunschärfe und Kamerawackeln hinzu.", + "filmmaker.effects.motionblur": "Bewegungsunschärfe", + "filmmaker.effects.shake": "Kamerawackeln", + "filmmaker.effects.shake.air": "Luftturbulenzen", + "filmmaker.effects.shake.drunk": "Betrunken", + "filmmaker.effects.shake.handheld": "Handkamera", + "filmmaker.effects.shake.intensity": "Wackelstärke", + "filmmaker.effects.shake.none": "Keins", + "filmmaker.effects.shake.road": "Straßenvibration", + "filmmaker.effects.shake.vibrate": "Vibrieren", + "filmmaker.effects.subtitle": "Kameraeffekte", + "filmmaker.effects.title": "Effekte", + "filmmaker.freecam": "Freecam", + "filmmaker.freecam.desc": "Startet oder beendet die Freecam. Deine Freecam Taste macht dasselbe, F3, wenn du sie nicht geändert hast.", + "filmmaker.keyframe.blend": "Übergang zum nächsten", + "filmmaker.keyframe.blend.cut": "Schnitt", + "filmmaker.keyframe.blend.desc": "Schnitt bleibt auf diesem Keyframe und springt dann. Linear fährt in einer geraden Linie. Weich fährt in einer Kurve durch die Keyframes drumherum.", + "filmmaker.keyframe.blend.linear": "Linear", + "filmmaker.keyframe.blend.smooth": "Weich", + "filmmaker.keyframe.duration": "Zeit bis zum nächsten Keyframe", + "filmmaker.keyframe.duration.desc": "Wie lange die Kamera bis zum nächsten Keyframe braucht.", + "filmmaker.keyframe.ease": "Beschleunigung", + "filmmaker.keyframe.ease.desc": "Langsamer Start beginnt langsam, langsames Ende hört langsam auf.", + "filmmaker.keyframe.ease.in": "Langsamer Start", + "filmmaker.keyframe.ease.inout": "Langsamer Start und Ende", + "filmmaker.keyframe.ease.none": "Keine", + "filmmaker.keyframe.ease.out": "Langsames Ende", + "filmmaker.keyframe.insert": "Aktuelle Kamera davor einfügen", + "filmmaker.keyframe.jump": "Zum Keyframe gehen", + "filmmaker.keyframe.jump.desc": "Bringt die Freecam zu diesem Keyframe, damit du von dort aus weiterfliegen kannst.", + "filmmaker.keyframe.movedown": "Nach unten", + "filmmaker.keyframe.moveup": "Nach oben", + "filmmaker.keyframe.replace": "Durch aktuelle Kamera ersetzen", + "filmmaker.keyframe.row": "Keyframe {index}", + "filmmaker.link.desc": "Richte filmische Aufnahmen mit der Freecam ein: Kameraeinstellungen, Effekte, Zielsperre, gespeicherte Einstellungen und Kamerapfade.", + "filmmaker.name.prompt": "Name", + "filmmaker.nametaken": "Es gibt schon etwas mit dem Namen ~b~{name}~s~.", + "filmmaker.path.addkeyframe": "Hier Keyframe hinzufügen", + "filmmaker.path.addkeyframe.desc": "Hängt die aktuelle Kamera an das Ende des Pfads an.", + "filmmaker.path.emptyrow": "Noch keine Keyframes", + "filmmaker.path.first": "Zum ersten Keyframe", + "filmmaker.path.goto": "Zum Keyframe gehen", + "filmmaker.path.goto.desc": "Bringt die Freecam zu einem Keyframe, damit du von dort aus weiterfliegen kannst. Drück links und rechts, um sie durchzugehen.", + "filmmaker.path.group.manage": "Verwalten", + "filmmaker.path.keyframes": "Keyframes", + "filmmaker.path.keyframes.desc": "Ändere, sortiere oder entferne die Keyframes dieses Pfads.", + "filmmaker.path.last": "Zum letzten Keyframe", + "filmmaker.path.link.desc": "Setze Keyframes und lass die Kamera von einem zum nächsten gleiten.", + "filmmaker.path.load": "Pfad laden", + "filmmaker.path.loaded": "~b~{name}~s~ geladen.", + "filmmaker.path.new": "Neuer Pfad", + "filmmaker.path.new.desc": "Startet einen leeren Pfad. Ein gespeicherter Pfad bleibt gespeichert.", + "filmmaker.path.pause": "Pause", + "filmmaker.path.play": "Pfad abspielen", + "filmmaker.path.play.desc": "Spielt den Pfad ab dem ersten Keyframe ab. Die Freecam muss an sein.", + "filmmaker.path.playback": "Wiedergabeeinstellungen", + "filmmaker.path.playback.desc": "Wiederholen, Geschwindigkeit und was der Bildschirm zeigt, während ein Pfad läuft.", + "filmmaker.path.resume": "Fortsetzen", + "filmmaker.path.saveas": "Speichern unter", + "filmmaker.path.saveas.desc": "Speichert diesen Pfad unter einem Namen. Ein gespeicherter Pfad hält sich nach jeder Änderung selbst auf dem neuesten Stand.", + "filmmaker.path.saved": "Gespeicherte Pfade", + "filmmaker.path.savedas": "Pfad als ~b~{name}~s~ gespeichert.", + "filmmaker.path.savedempty": "Noch keine gespeicherten Pfade", + "filmmaker.path.scrub": "Vorschau", + "filmmaker.path.scrub.desc": "Zeigt jeden Moment des Pfads. Beweg es nach links und rechts, um durchzuspulen.", + "filmmaker.path.status": "{name} · {count} Keyframes · {seconds} s", + "filmmaker.path.status.target": "{name} · {count} Keyframes · {seconds} s · folgt dem Ziel", + "filmmaker.path.stop": "Pfad stoppen", + "filmmaker.path.subtitle": "Kamerapfad", + "filmmaker.path.title": "Kamerapfad", + "filmmaker.path.unsaved": "Ungespeicherter Pfad", + "filmmaker.playback.delay": "Startverzögerung", + "filmmaker.playback.delay.desc": "Wartet so lange auf dem ersten Keyframe, bevor es losgeht.", + "filmmaker.playback.hidehud": "HUD beim Abspielen ausblenden", + "filmmaker.playback.letterbox": "Letterbox beim Abspielen", + "filmmaker.playback.loop": "Wiederholen", + "filmmaker.playback.loop.circuit": "Rundkurs", + "filmmaker.playback.loop.desc": "Einmal hält am Ende an. Wiederholen fängt von vorne an. Ping Pong spielt hin und her. Rundkurs fliegt vom letzten Keyframe weiter zurück zum ersten, mit den Einstellungen des letzten Keyframes.", + "filmmaker.playback.loop.once": "Einmal", + "filmmaker.playback.loop.pingpong": "Ping Pong", + "filmmaker.playback.loop.repeat": "Wiederholen", + "filmmaker.playback.speed": "Wiedergabegeschwindigkeit", + "filmmaker.playback.stay": "Am Ende bleiben", + "filmmaker.playback.stay.desc": "Wenn ein Pfad fertig ist, bleibt die Freecam dort, wo der Pfad endete, und du fliegst von dort aus weiter. Ausgeschaltet geht sie zurück dorthin, wo du vor dem Abspielen warst.", + "filmmaker.rename": "Umbenennen", + "filmmaker.renamed": "~b~{name}~s~ wurde umbenannt.", + "filmmaker.saverefused": "Das wurde von einem neueren vMenu gespeichert, deshalb wurde es nicht geändert.", + "filmmaker.shots.empty": "Noch keine gespeicherten Einstellungen", + "filmmaker.shots.goto": "Zur Einstellung gehen", + "filmmaker.shots.goto.desc": "Bringt die Freecam zu dieser Einstellung.", + "filmmaker.shots.group.saved": "Gespeichert", + "filmmaker.shots.link.desc": "Speichere, wo die Kamera ist, und spring später dorthin zurück.", + "filmmaker.shots.overwrite": "Mit aktueller Kamera überschreiben", + "filmmaker.shots.save": "Aktuelle Einstellung speichern", + "filmmaker.shots.save.desc": "Speichert Position, Winkel, Zoom und Fokus der Kamera.", + "filmmaker.shots.saved": "Einstellung ~b~{name}~s~ wurde gespeichert.", + "filmmaker.shots.subtitle": "Gespeicherte Einstellungen", + "filmmaker.shots.title": "Gespeicherte Einstellungen", + "filmmaker.subtitle": "Filmmaker Werkzeuge", + "filmmaker.target.aim": "Anvisiertes Ziel sperren", + "filmmaker.target.aim.desc": "Sperrt das, was in der Mitte des Bildschirms ist.", + "filmmaker.target.aim.nothing": "In der Mitte des Bildschirms ist nichts, das gesperrt werden kann.", + "filmmaker.target.attach.full": "Voll", + "filmmaker.target.attach.heading": "Nur Richtung", + "filmmaker.target.attach.position": "Nur Position", + "filmmaker.target.attachmode": "Folgemodus", + "filmmaker.target.attachmode.desc": "Voll dreht sich in jede Richtung mit dem Ziel. Nur Richtung dreht sich nach links und rechts mit. Nur Position dreht sich nie.", + "filmmaker.target.follow": "Ziel folgen", + "filmmaker.target.follow.desc": "Lässt die Kamera mit dem Ziel mitfahren und hält den Abstand, den sie beim Einschalten hatte.", + "filmmaker.target.group.behaviour": "Verhalten", + "filmmaker.target.link.desc": "Halte die Kamera auf einen Spieler, Ped, ein Fahrzeug oder Objekt gerichtet, oder lass sie mit einem mitfahren.", + "filmmaker.target.locked": "~b~{name}~s~ gesperrt.", + "filmmaker.target.lookat": "Auf Ziel schauen", + "filmmaker.target.lookat.desc": "Hält die Kamera auf das Ziel gerichtet, während du um es herumfliegst.", + "filmmaker.target.nonenearby": "Nichts in der Nähe", + "filmmaker.target.object.name": "Objekt", + "filmmaker.target.offset.x": "Blickversatz seitlich", + "filmmaker.target.offset.x.desc": "Verschiebt den Punkt, auf den die Kamera schaut, ausgehend vom Ziel.", + "filmmaker.target.offset.y": "Blickversatz nach vorne", + "filmmaker.target.offset.y.desc": "Verschiebt den Punkt, auf den die Kamera schaut, ausgehend vom Ziel.", + "filmmaker.target.offset.z": "Blickversatz nach oben", + "filmmaker.target.offset.z.desc": "Verschiebt den Punkt, auf den die Kamera schaut, ausgehend vom Ziel.", + "filmmaker.target.ped.name": "Ped", + "filmmaker.target.peds": "Peds in der Nähe", + "filmmaker.target.players": "Spieler in der Nähe", + "filmmaker.target.release": "Ziel freigeben", + "filmmaker.target.status.locked": "~b~{name}~s~ gesperrt", + "filmmaker.target.status.none": "Nichts gesperrt", + "filmmaker.target.subtitle": "Zielsperre", + "filmmaker.target.title": "Zielsperre", + "filmmaker.target.vehicles": "Fahrzeuge in der Nähe", + "filmmaker.title": "Filmmaker", "framework.confirm": "~r~Willst du das wirklich tun? Drücke noch einmal Enter, um zu bestätigen.", "framework.emptymenu": "Keine Rechte", "framework.emptymenu.desc": "Hier drin ist nichts, was du benutzen darfst. Frag den Serverbesitzer, wenn du denkst, dass das anders sein sollte.", @@ -842,6 +1010,28 @@ "framework.input.nomatches": "Keine Treffer", "framework.input.placeholder": "Tippe los…", "framework.restricted": "Der Serverbesitzer hat den Zugriff darauf eingeschränkt.", + "freecam.button.addkeyframe": "Keyframe hinzufügen", + "freecam.button.exit": "Beenden (halten, um hier zu bleiben)", + "freecam.button.fastslow": "Schnell / Langsam", + "freecam.button.height": "Hoch / Runter", + "freecam.button.hidehud": "HUD ausblenden", + "freecam.button.hints": "Hinweise ausblenden", + "freecam.button.move": "Bewegen", + "freecam.button.play": "Pfad abspielen / stoppen", + "freecam.button.reset": "Zurücksetzen", + "freecam.button.roll": "Neigung", + "freecam.button.speed": "Geschwindigkeit ({speed} m/s)", + "freecam.button.zoom": "Zoom", + "freecam.keyframe.added": "Keyframe hinzugefügt, der Pfad hat jetzt ~b~{count}~s~.", + "freecam.keyframe.removed": "Letzter Keyframe entfernt, der Pfad hat jetzt ~b~{count}~s~.", + "freecam.notactive": "Starte zuerst die Freecam.", + "freecam.novehiclespawning": "Du kannst keine Fahrzeuge spawnen, solange die Freecam an ist.", + "freecam.path.empty": "Dieser Pfad hat noch keine Keyframes.", + "freecam.path.full": "Dieser Pfad ist voll.", + "freecam.path.needstarget": "Dieser Pfad folgt einem Ziel. Sperre zuerst eins.", + "freecam.path.spacemismatch": "Dieser Pfad wurde mit einer anderen Folgeeinstellung aufgenommen. Stell Folgen und Folgemodus so ein, wie er gemacht wurde, oder starte einen neuen Pfad.", + "freecam.path.toofew": "Ein Pfad braucht mindestens zwei Keyframes zum Abspielen.", + "freecam.toggle.denied": "Du darfst die Freecam nicht benutzen.", "joinleave.joined": "~g~{player}~s~ ist dem Server beigetreten.", "joinleave.left": "~r~{player}~s~ hat den Server verlassen.", "joinleave.left.reason": "~r~{player}~s~ hat den Server verlassen. ~c~({reason})", diff --git a/assets/shared/language/es.json b/assets/shared/language/es.json index 0cc3c92d0..bc07807ee 100644 --- a/assets/shared/language/es.json +++ b/assets/shared/language/es.json @@ -825,6 +825,174 @@ "displaysettings.title": "Ajustes de pantalla", "displaysettings.vehiclehealth": "Estado del vehículo", "displaysettings.vehiclehealth.desc": "Añade tres barras pequeñas al panel del velocímetro que muestran cómo están el motor, la carrocería y el depósito de tu vehículo. Funcionan tanto si el velocímetro está encendido como si no.", + "filmmaker.camera.hidehints": "Ocultar ayudas de botones", + "filmmaker.camera.hidehints.desc": "Oculta los botones de la parte inferior de la pantalla mientras la freecam está activa.", + "filmmaker.camera.invert": "Invertir vista", + "filmmaker.camera.invert.desc": "Invierte mirar hacia arriba y hacia abajo.", + "filmmaker.camera.link.desc": "Cómo se mueve, gira y hace zoom la freecam.", + "filmmaker.camera.reset": "Restablecer inclinación y zoom", + "filmmaker.camera.roll": "Inclinación", + "filmmaker.camera.roll.desc": "Inclina la cámara hacia un lado.", + "filmmaker.camera.sensitivity": "Sensibilidad de la vista", + "filmmaker.camera.sensitivity.desc": "Lo rápido que gira la cámara con el ratón o el stick derecho.", + "filmmaker.camera.smoothing": "Suavizado", + "filmmaker.camera.smoothing.desc": "Cuánto tarda la cámara en acelerar y frenar. Con cero se para en seco.", + "filmmaker.camera.speed": "Velocidad", + "filmmaker.camera.speed.desc": "Lo rápido que vuela la freecam. La rueda del ratón también la cambia mientras la freecam está activa.", + "filmmaker.camera.subtitle": "Ajustes de cámara", + "filmmaker.camera.title": "Cámara", + "filmmaker.camera.zoom": "Zoom", + "filmmaker.camera.zoom.desc": "El campo de visión de la cámara. Un número más pequeño acerca más.", + "filmmaker.delete": "Eliminar", + "filmmaker.deleted": "Se eliminó ~b~{name}~s~.", + "filmmaker.dof.aperture": "Apertura", + "filmmaker.dof.aperture.desc": "Lo estrecha que es la zona nítida alrededor del punto de enfoque. Más alto la hace más estrecha, así que más de lo que hay delante y detrás se desenfoca, como con un objetivo muy abierto.", + "filmmaker.dof.distance": "Distancia de enfoque", + "filmmaker.dof.distance.desc": "A qué distancia de la cámara se ven las cosas nítidas. Se guarda con cada toma y cada fotograma clave.", + "filmmaker.dof.enabled": "Profundidad de campo", + "filmmaker.dof.focus": "Enfoque", + "filmmaker.dof.focus.desc": "Manual enfoca a una distancia fija. Objetivo mantiene nítido el objetivo fijado.", + "filmmaker.dof.focus.manual": "Manual", + "filmmaker.dof.focus.target": "Objetivo", + "filmmaker.dof.link.desc": "Desenfoca lo que está más cerca o más lejos que el punto en el que enfocas.", + "filmmaker.dof.subtitle": "Profundidad de campo", + "filmmaker.dof.title": "Profundidad de campo", + "filmmaker.effects.hidehud": "Ocultar HUD", + "filmmaker.effects.hidehud.desc": "Oculta el HUD, el minimapa y las notificaciones mientras la freecam está activa.", + "filmmaker.effects.letterbox": "Letterbox", + "filmmaker.effects.letterbox.desc": "Añade franjas negras de cine arriba y abajo de la pantalla.", + "filmmaker.effects.link.desc": "Oculta el HUD, añade franjas negras, desenfoque de movimiento y vibración de cámara.", + "filmmaker.effects.motionblur": "Desenfoque de movimiento", + "filmmaker.effects.shake": "Vibración de cámara", + "filmmaker.effects.shake.air": "Turbulencias", + "filmmaker.effects.shake.drunk": "Borracho", + "filmmaker.effects.shake.handheld": "Cámara en mano", + "filmmaker.effects.shake.intensity": "Intensidad de la vibración", + "filmmaker.effects.shake.none": "Ninguna", + "filmmaker.effects.shake.road": "Vibración de carretera", + "filmmaker.effects.shake.vibrate": "Vibrar", + "filmmaker.effects.subtitle": "Efectos de cámara", + "filmmaker.effects.title": "Efectos", + "filmmaker.freecam": "Freecam", + "filmmaker.freecam.desc": "Inicia o detiene la freecam. Tu tecla de freecam hace lo mismo, F3 si no la has cambiado.", + "filmmaker.keyframe.blend": "Transición a la siguiente", + "filmmaker.keyframe.blend.cut": "Corte", + "filmmaker.keyframe.blend.desc": "Corte se queda en este fotograma clave y luego salta. Lineal va en línea recta. Suave hace una curva a través de los fotogramas clave de alrededor.", + "filmmaker.keyframe.blend.linear": "Lineal", + "filmmaker.keyframe.blend.smooth": "Suave", + "filmmaker.keyframe.duration": "Tiempo hasta el siguiente fotograma clave", + "filmmaker.keyframe.duration.desc": "Cuánto tarda la cámara en llegar al siguiente fotograma clave.", + "filmmaker.keyframe.ease": "Aceleración", + "filmmaker.keyframe.ease.desc": "Inicio suave empieza despacio, final suave termina despacio.", + "filmmaker.keyframe.ease.in": "Inicio suave", + "filmmaker.keyframe.ease.inout": "Inicio y final suaves", + "filmmaker.keyframe.ease.none": "Ninguna", + "filmmaker.keyframe.ease.out": "Final suave", + "filmmaker.keyframe.insert": "Insertar la cámara actual antes de este", + "filmmaker.keyframe.jump": "Ir al fotograma clave", + "filmmaker.keyframe.jump.desc": "Mueve la freecam a este fotograma clave para que puedas seguir volando desde ahí.", + "filmmaker.keyframe.movedown": "Bajar", + "filmmaker.keyframe.moveup": "Subir", + "filmmaker.keyframe.replace": "Reemplazar con la cámara actual", + "filmmaker.keyframe.row": "Fotograma clave {index}", + "filmmaker.link.desc": "Prepara tomas cinematográficas con la freecam: ajustes de cámara, efectos, fijación de objetivo, tomas guardadas y recorridos de cámara.", + "filmmaker.name.prompt": "Nombre", + "filmmaker.nametaken": "Ya existe algo llamado ~b~{name}~s~.", + "filmmaker.path.addkeyframe": "Añadir fotograma clave aquí", + "filmmaker.path.addkeyframe.desc": "Añade la cámara actual al final del recorrido.", + "filmmaker.path.emptyrow": "Aún no hay fotogramas clave", + "filmmaker.path.first": "Ir al primer fotograma clave", + "filmmaker.path.goto": "Ir al fotograma clave", + "filmmaker.path.goto.desc": "Mueve la freecam a un fotograma clave para que puedas seguir volando desde ahí. Pulsa izquierda y derecha para recorrerlos.", + "filmmaker.path.group.manage": "Gestionar", + "filmmaker.path.keyframes": "Fotogramas clave", + "filmmaker.path.keyframes.desc": "Cambia, reordena o quita los fotogramas clave de este recorrido.", + "filmmaker.path.last": "Ir al último fotograma clave", + "filmmaker.path.link.desc": "Coloca fotogramas clave y deja que la cámara se deslice de uno al siguiente.", + "filmmaker.path.load": "Cargar recorrido", + "filmmaker.path.loaded": "Se cargó ~b~{name}~s~.", + "filmmaker.path.new": "Nuevo recorrido", + "filmmaker.path.new.desc": "Empieza un recorrido vacío. Un recorrido guardado sigue guardado.", + "filmmaker.path.pause": "Pausa", + "filmmaker.path.play": "Reproducir recorrido", + "filmmaker.path.play.desc": "Reproduce el recorrido desde el primer fotograma clave. La freecam tiene que estar activa.", + "filmmaker.path.playback": "Ajustes de reproducción", + "filmmaker.path.playback.desc": "Repetición, velocidad y lo que muestra la pantalla mientras se reproduce un recorrido.", + "filmmaker.path.resume": "Reanudar", + "filmmaker.path.saveas": "Guardar como", + "filmmaker.path.saveas.desc": "Guarda este recorrido con un nombre. Un recorrido guardado se mantiene al día solo después de cada cambio.", + "filmmaker.path.saved": "Recorridos guardados", + "filmmaker.path.savedas": "Recorrido guardado como ~b~{name}~s~.", + "filmmaker.path.savedempty": "Aún no hay recorridos guardados", + "filmmaker.path.scrub": "Vista previa", + "filmmaker.path.scrub.desc": "Muestra cualquier momento del recorrido. Muévelo a izquierda y derecha para recorrerlo.", + "filmmaker.path.status": "{name} · {count} fotogramas clave · {seconds} s", + "filmmaker.path.status.target": "{name} · {count} fotogramas clave · {seconds} s · sigue al objetivo", + "filmmaker.path.stop": "Detener recorrido", + "filmmaker.path.subtitle": "Recorrido de cámara", + "filmmaker.path.title": "Recorrido de cámara", + "filmmaker.path.unsaved": "Recorrido sin guardar", + "filmmaker.playback.delay": "Retraso de inicio", + "filmmaker.playback.delay.desc": "Espera este tiempo en el primer fotograma clave antes de moverse.", + "filmmaker.playback.hidehud": "Ocultar HUD al reproducir", + "filmmaker.playback.letterbox": "Letterbox al reproducir", + "filmmaker.playback.loop": "Repetir", + "filmmaker.playback.loop.circuit": "Circuito", + "filmmaker.playback.loop.desc": "Una vez se para al final. Repetir vuelve a empezar. Ping Pong va y viene. Circuito sigue volando desde el último fotograma clave hasta el primero, con los ajustes del último fotograma clave.", + "filmmaker.playback.loop.once": "Una vez", + "filmmaker.playback.loop.pingpong": "Ping Pong", + "filmmaker.playback.loop.repeat": "Repetir", + "filmmaker.playback.speed": "Velocidad de reproducción", + "filmmaker.playback.stay": "Quedarse al final", + "filmmaker.playback.stay.desc": "Cuando un recorrido termina, la freecam se queda donde acabó y sigues volando desde ahí. Desactivado, vuelve a donde estabas antes de reproducir.", + "filmmaker.rename": "Renombrar", + "filmmaker.renamed": "Se renombró ~b~{name}~s~.", + "filmmaker.saverefused": "Esto lo guardó un vMenu más nuevo, así que no se cambió.", + "filmmaker.shots.empty": "Aún no hay tomas guardadas", + "filmmaker.shots.goto": "Ir a la toma", + "filmmaker.shots.goto.desc": "Mueve la freecam a esta toma.", + "filmmaker.shots.group.saved": "Guardadas", + "filmmaker.shots.link.desc": "Guarda dónde está la cámara y vuelve ahí más tarde.", + "filmmaker.shots.overwrite": "Sobrescribir con la cámara actual", + "filmmaker.shots.save": "Guardar la toma actual", + "filmmaker.shots.save.desc": "Guarda la posición, el ángulo, el zoom y el enfoque de la cámara.", + "filmmaker.shots.saved": "Se guardó la toma ~b~{name}~s~.", + "filmmaker.shots.subtitle": "Tomas guardadas", + "filmmaker.shots.title": "Tomas guardadas", + "filmmaker.subtitle": "Herramientas Filmmaker", + "filmmaker.target.aim": "Fijar lo que apuntas", + "filmmaker.target.aim.desc": "Fija lo que esté en el centro de la pantalla.", + "filmmaker.target.aim.nothing": "No hay nada en el centro de la pantalla para fijar.", + "filmmaker.target.attach.full": "Completo", + "filmmaker.target.attach.heading": "Solo dirección", + "filmmaker.target.attach.position": "Solo posición", + "filmmaker.target.attachmode": "Modo de seguimiento", + "filmmaker.target.attachmode.desc": "Completo gira con el objetivo en todas las direcciones. Solo dirección gira con él a izquierda y derecha. Solo posición nunca gira.", + "filmmaker.target.follow": "Seguir al objetivo", + "filmmaker.target.follow.desc": "Hace que la cámara vaya con el objetivo, manteniendo la distancia que tenía cuando activaste esto.", + "filmmaker.target.group.behaviour": "Comportamiento", + "filmmaker.target.link.desc": "Mantén la cámara apuntando a un jugador, ped, vehículo u objeto, o haz que vaya con uno.", + "filmmaker.target.locked": "Fijado en ~b~{name}~s~.", + "filmmaker.target.lookat": "Mirar al objetivo", + "filmmaker.target.lookat.desc": "Mantiene la cámara apuntando al objetivo mientras vuelas a su alrededor.", + "filmmaker.target.nonenearby": "Nada cerca", + "filmmaker.target.object.name": "Objeto", + "filmmaker.target.offset.x": "Desplazamiento lateral de la mira", + "filmmaker.target.offset.x.desc": "Mueve el punto al que mira la cámara, medido desde el objetivo.", + "filmmaker.target.offset.y": "Desplazamiento frontal de la mira", + "filmmaker.target.offset.y.desc": "Mueve el punto al que mira la cámara, medido desde el objetivo.", + "filmmaker.target.offset.z": "Desplazamiento vertical de la mira", + "filmmaker.target.offset.z.desc": "Mueve el punto al que mira la cámara, medido desde el objetivo.", + "filmmaker.target.ped.name": "Ped", + "filmmaker.target.peds": "Peds cercanos", + "filmmaker.target.players": "Jugadores cercanos", + "filmmaker.target.release": "Soltar objetivo", + "filmmaker.target.status.locked": "Fijado en ~b~{name}~s~", + "filmmaker.target.status.none": "Nada fijado", + "filmmaker.target.subtitle": "Fijación de objetivo", + "filmmaker.target.title": "Fijación de objetivo", + "filmmaker.target.vehicles": "Vehículos cercanos", + "filmmaker.title": "Filmmaker", "framework.confirm": "~r~¿Seguro que quieres hacer esto? Pulsa enter otra vez para confirmar.", "framework.emptymenu": "Sin permisos", "framework.emptymenu.desc": "Aquí dentro no hay nada que puedas usar. Pregúntale al dueño del servidor si crees que debería ser de otra manera.", @@ -842,6 +1010,28 @@ "framework.input.nomatches": "Sin coincidencias", "framework.input.placeholder": "Empieza a escribir…", "framework.restricted": "El propietario del servidor ha restringido el acceso a esto.", + "freecam.button.addkeyframe": "Añadir fotograma clave", + "freecam.button.exit": "Salir (mantén para quedarte aquí)", + "freecam.button.fastslow": "Rápido / Lento", + "freecam.button.height": "Subir / Bajar", + "freecam.button.hidehud": "Ocultar HUD", + "freecam.button.hints": "Ocultar ayudas", + "freecam.button.move": "Mover", + "freecam.button.play": "Reproducir / Detener recorrido", + "freecam.button.reset": "Restablecer", + "freecam.button.roll": "Inclinación", + "freecam.button.speed": "Velocidad ({speed} m/s)", + "freecam.button.zoom": "Zoom", + "freecam.keyframe.added": "Fotograma clave añadido, el recorrido ahora tiene ~b~{count}~s~.", + "freecam.keyframe.removed": "Último fotograma clave quitado, el recorrido ahora tiene ~b~{count}~s~.", + "freecam.notactive": "Inicia primero la freecam.", + "freecam.novehiclespawning": "No puedes generar vehículos mientras la freecam está activa.", + "freecam.path.empty": "Este recorrido aún no tiene fotogramas clave.", + "freecam.path.full": "Este recorrido está lleno.", + "freecam.path.needstarget": "Este recorrido sigue a un objetivo. Fija uno primero.", + "freecam.path.spacemismatch": "Este recorrido se grabó con otro ajuste de seguimiento. Pon el seguimiento y el modo de seguimiento con los que se hizo, o empieza un recorrido nuevo.", + "freecam.path.toofew": "Un recorrido necesita al menos dos fotogramas clave para reproducirse.", + "freecam.toggle.denied": "No tienes permiso para usar la freecam.", "joinleave.joined": "~g~{player}~s~ se ha unido al servidor.", "joinleave.left": "~r~{player}~s~ ha salido del servidor.", "joinleave.left.reason": "~r~{player}~s~ ha salido del servidor. ~c~({reason})", diff --git a/assets/shared/language/fr.json b/assets/shared/language/fr.json index dcbacad97..1287f763e 100644 --- a/assets/shared/language/fr.json +++ b/assets/shared/language/fr.json @@ -825,6 +825,174 @@ "displaysettings.title": "Paramètres d'affichage", "displaysettings.vehiclehealth": "État du véhicule", "displaysettings.vehiclehealth.desc": "Ajoute trois petites barres au compteur qui montrent l'état du moteur, de la carrosserie et du réservoir de votre véhicule. Elles fonctionnent que le compteur soit affiché ou non.", + "filmmaker.camera.hidehints": "Masquer les aides de touches", + "filmmaker.camera.hidehints.desc": "Masque les touches en bas de l'écran tant que la freecam est active.", + "filmmaker.camera.invert": "Inverser la vue", + "filmmaker.camera.invert.desc": "Inverse le regard vers le haut et vers le bas.", + "filmmaker.camera.link.desc": "Comment la freecam se déplace, tourne et zoome.", + "filmmaker.camera.reset": "Réinitialiser l'inclinaison et le zoom", + "filmmaker.camera.roll": "Inclinaison", + "filmmaker.camera.roll.desc": "Penche la caméra sur le côté.", + "filmmaker.camera.sensitivity": "Sensibilité de la vue", + "filmmaker.camera.sensitivity.desc": "La vitesse à laquelle la caméra tourne avec la souris ou le stick droit.", + "filmmaker.camera.smoothing": "Lissage", + "filmmaker.camera.smoothing.desc": "Le temps que met la caméra à accélérer et à ralentir. À zéro, elle s'arrête net.", + "filmmaker.camera.speed": "Vitesse", + "filmmaker.camera.speed.desc": "La vitesse de vol de la freecam. La molette de la souris la change aussi tant que la freecam est active.", + "filmmaker.camera.subtitle": "Réglages de la caméra", + "filmmaker.camera.title": "Caméra", + "filmmaker.camera.zoom": "Zoom", + "filmmaker.camera.zoom.desc": "Le champ de vision de la caméra. Un nombre plus petit zoome davantage.", + "filmmaker.delete": "Supprimer", + "filmmaker.deleted": "~b~{name}~s~ a été supprimé.", + "filmmaker.dof.aperture": "Ouverture", + "filmmaker.dof.aperture.desc": "L'épaisseur de la zone nette autour du point de mise au point. Plus c'est haut, plus elle est fine, donc plus ce qui est devant et derrière devient flou, comme avec un objectif grand ouvert.", + "filmmaker.dof.distance": "Distance de mise au point", + "filmmaker.dof.distance.desc": "La distance à laquelle les choses sont nettes. Enregistrée avec chaque plan et chaque keyframe.", + "filmmaker.dof.enabled": "Profondeur de champ", + "filmmaker.dof.focus": "Mise au point", + "filmmaker.dof.focus.desc": "Manuelle fait la mise au point à une distance fixe. Cible garde la cible verrouillée nette.", + "filmmaker.dof.focus.manual": "Manuelle", + "filmmaker.dof.focus.target": "Cible", + "filmmaker.dof.link.desc": "Floute ce qui est plus proche ou plus loin que le point sur lequel tu fais la mise au point.", + "filmmaker.dof.subtitle": "Profondeur de champ", + "filmmaker.dof.title": "Profondeur de champ", + "filmmaker.effects.hidehud": "Masquer le HUD", + "filmmaker.effects.hidehud.desc": "Masque le HUD, la minicarte et les notifications tant que la freecam est active.", + "filmmaker.effects.letterbox": "Letterbox", + "filmmaker.effects.letterbox.desc": "Ajoute des bandes noires de cinéma en haut et en bas de l'écran.", + "filmmaker.effects.link.desc": "Masque le HUD, ajoute des bandes noires, du flou de mouvement et des secousses de caméra.", + "filmmaker.effects.motionblur": "Flou de mouvement", + "filmmaker.effects.shake": "Secousses de caméra", + "filmmaker.effects.shake.air": "Turbulences", + "filmmaker.effects.shake.drunk": "Ivre", + "filmmaker.effects.shake.handheld": "Caméra à l'épaule", + "filmmaker.effects.shake.intensity": "Intensité des secousses", + "filmmaker.effects.shake.none": "Aucune", + "filmmaker.effects.shake.road": "Vibrations de la route", + "filmmaker.effects.shake.vibrate": "Vibration", + "filmmaker.effects.subtitle": "Effets de caméra", + "filmmaker.effects.title": "Effets", + "filmmaker.freecam": "Freecam", + "filmmaker.freecam.desc": "Démarre ou arrête la freecam. Ta touche de freecam fait la même chose, F3 si tu ne l'as pas changée.", + "filmmaker.keyframe.blend": "Transition vers la suivante", + "filmmaker.keyframe.blend.cut": "Coupe", + "filmmaker.keyframe.blend.desc": "Coupe reste sur cette keyframe puis saute. Linéaire va en ligne droite. Douce suit une courbe à travers les keyframes voisines.", + "filmmaker.keyframe.blend.linear": "Linéaire", + "filmmaker.keyframe.blend.smooth": "Douce", + "filmmaker.keyframe.duration": "Temps jusqu'à la keyframe suivante", + "filmmaker.keyframe.duration.desc": "Le temps que met la caméra pour atteindre la keyframe suivante.", + "filmmaker.keyframe.ease": "Accélération", + "filmmaker.keyframe.ease.desc": "Départ doux commence lentement, arrivée douce finit lentement.", + "filmmaker.keyframe.ease.in": "Départ doux", + "filmmaker.keyframe.ease.inout": "Départ et arrivée doux", + "filmmaker.keyframe.ease.none": "Aucune", + "filmmaker.keyframe.ease.out": "Arrivée douce", + "filmmaker.keyframe.insert": "Insérer la caméra actuelle avant celle-ci", + "filmmaker.keyframe.jump": "Aller à la keyframe", + "filmmaker.keyframe.jump.desc": "Déplace la freecam sur cette keyframe pour que tu puisses continuer à voler à partir de là.", + "filmmaker.keyframe.movedown": "Descendre", + "filmmaker.keyframe.moveup": "Monter", + "filmmaker.keyframe.replace": "Remplacer par la caméra actuelle", + "filmmaker.keyframe.row": "Keyframe {index}", + "filmmaker.link.desc": "Prépare des plans cinématiques avec la freecam : réglages de la caméra, effets, verrouillage de cible, plans enregistrés et trajectoires de caméra.", + "filmmaker.name.prompt": "Nom", + "filmmaker.nametaken": "Quelque chose nommé ~b~{name}~s~ existe déjà.", + "filmmaker.path.addkeyframe": "Ajouter une keyframe ici", + "filmmaker.path.addkeyframe.desc": "Ajoute la caméra actuelle à la fin de la trajectoire.", + "filmmaker.path.emptyrow": "Pas encore de keyframes", + "filmmaker.path.first": "Aller à la première keyframe", + "filmmaker.path.goto": "Aller à la keyframe", + "filmmaker.path.goto.desc": "Déplace la freecam sur une keyframe pour que tu puisses continuer à voler à partir de là. Appuie sur gauche et droite pour les parcourir.", + "filmmaker.path.group.manage": "Gérer", + "filmmaker.path.keyframes": "Keyframes", + "filmmaker.path.keyframes.desc": "Modifie, réordonne ou supprime les keyframes de cette trajectoire.", + "filmmaker.path.last": "Aller à la dernière keyframe", + "filmmaker.path.link.desc": "Place des keyframes et laisse la caméra glisser de l'une à la suivante.", + "filmmaker.path.load": "Charger une trajectoire", + "filmmaker.path.loaded": "~b~{name}~s~ chargée.", + "filmmaker.path.new": "Nouvelle trajectoire", + "filmmaker.path.new.desc": "Démarre une trajectoire vide. Une trajectoire enregistrée reste enregistrée.", + "filmmaker.path.pause": "Pause", + "filmmaker.path.play": "Lire la trajectoire", + "filmmaker.path.play.desc": "Lit la trajectoire depuis la première keyframe. La freecam doit être active.", + "filmmaker.path.playback": "Réglages de lecture", + "filmmaker.path.playback.desc": "La boucle, la vitesse et ce que l'écran affiche pendant la lecture d'une trajectoire.", + "filmmaker.path.resume": "Reprendre", + "filmmaker.path.saveas": "Enregistrer sous", + "filmmaker.path.saveas.desc": "Enregistre cette trajectoire sous un nom. Une trajectoire enregistrée se met à jour toute seule après chaque modification.", + "filmmaker.path.saved": "Trajectoires enregistrées", + "filmmaker.path.savedas": "Trajectoire enregistrée sous ~b~{name}~s~.", + "filmmaker.path.savedempty": "Pas encore de trajectoires enregistrées", + "filmmaker.path.scrub": "Aperçu", + "filmmaker.path.scrub.desc": "Montre n'importe quel moment de la trajectoire. Déplace à gauche et à droite pour la parcourir.", + "filmmaker.path.status": "{name} · {count} keyframes · {seconds} s", + "filmmaker.path.status.target": "{name} · {count} keyframes · {seconds} s · suit la cible", + "filmmaker.path.stop": "Arrêter la trajectoire", + "filmmaker.path.subtitle": "Trajectoire de caméra", + "filmmaker.path.title": "Trajectoire de caméra", + "filmmaker.path.unsaved": "Trajectoire non enregistrée", + "filmmaker.playback.delay": "Délai de départ", + "filmmaker.playback.delay.desc": "Attend aussi longtemps sur la première keyframe avant de bouger.", + "filmmaker.playback.hidehud": "Masquer le HUD pendant la lecture", + "filmmaker.playback.letterbox": "Letterbox pendant la lecture", + "filmmaker.playback.loop": "Boucle", + "filmmaker.playback.loop.circuit": "Circuit", + "filmmaker.playback.loop.desc": "Une fois s'arrête à la fin. Boucle recommence. Ping Pong fait des allers et retours. Circuit vole de la dernière keyframe jusqu'à la première, avec les réglages de la dernière keyframe.", + "filmmaker.playback.loop.once": "Une fois", + "filmmaker.playback.loop.pingpong": "Ping Pong", + "filmmaker.playback.loop.repeat": "Boucle", + "filmmaker.playback.speed": "Vitesse de lecture", + "filmmaker.playback.stay": "Rester à la fin", + "filmmaker.playback.stay.desc": "Quand une trajectoire se termine, la freecam reste là où elle s'est arrêtée et tu continues à voler à partir de là. Désactivé, elle revient là où tu étais avant la lecture.", + "filmmaker.rename": "Renommer", + "filmmaker.renamed": "~b~{name}~s~ a été renommé.", + "filmmaker.saverefused": "Cela a été enregistré par un vMenu plus récent, donc rien n'a été modifié.", + "filmmaker.shots.empty": "Pas encore de plans enregistrés", + "filmmaker.shots.goto": "Aller au plan", + "filmmaker.shots.goto.desc": "Déplace la freecam sur ce plan.", + "filmmaker.shots.group.saved": "Enregistrés", + "filmmaker.shots.link.desc": "Enregistre où se trouve la caméra, et reviens-y plus tard.", + "filmmaker.shots.overwrite": "Écraser avec la caméra actuelle", + "filmmaker.shots.save": "Enregistrer le plan actuel", + "filmmaker.shots.save.desc": "Enregistre la position, l'angle, le zoom et la mise au point de la caméra.", + "filmmaker.shots.saved": "Le plan ~b~{name}~s~ a été enregistré.", + "filmmaker.shots.subtitle": "Plans enregistrés", + "filmmaker.shots.title": "Plans enregistrés", + "filmmaker.subtitle": "Outils Filmmaker", + "filmmaker.target.aim": "Verrouiller ce que tu vises", + "filmmaker.target.aim.desc": "Verrouille ce qui se trouve au milieu de l'écran.", + "filmmaker.target.aim.nothing": "Il n'y a rien au milieu de l'écran à verrouiller.", + "filmmaker.target.attach.full": "Complet", + "filmmaker.target.attach.heading": "Direction seulement", + "filmmaker.target.attach.position": "Position seulement", + "filmmaker.target.attachmode": "Mode de suivi", + "filmmaker.target.attachmode.desc": "Complet tourne avec la cible dans toutes les directions. Direction seulement tourne avec elle à gauche et à droite. Position seulement ne tourne jamais.", + "filmmaker.target.follow": "Suivre la cible", + "filmmaker.target.follow.desc": "Fait suivre la cible par la caméra, en gardant la distance qu'elle avait quand tu as activé ceci.", + "filmmaker.target.group.behaviour": "Comportement", + "filmmaker.target.link.desc": "Garde la caméra pointée sur un joueur, un ped, un véhicule ou un objet, ou fais-la suivre l'un d'eux.", + "filmmaker.target.locked": "~b~{name}~s~ verrouillé.", + "filmmaker.target.lookat": "Regarder la cible", + "filmmaker.target.lookat.desc": "Garde la caméra pointée sur la cible pendant que tu voles autour.", + "filmmaker.target.nonenearby": "Rien à proximité", + "filmmaker.target.object.name": "Objet", + "filmmaker.target.offset.x": "Décalage de visée latéral", + "filmmaker.target.offset.x.desc": "Déplace le point que regarde la caméra, mesuré depuis la cible.", + "filmmaker.target.offset.y": "Décalage de visée avant", + "filmmaker.target.offset.y.desc": "Déplace le point que regarde la caméra, mesuré depuis la cible.", + "filmmaker.target.offset.z": "Décalage de visée vertical", + "filmmaker.target.offset.z.desc": "Déplace le point que regarde la caméra, mesuré depuis la cible.", + "filmmaker.target.ped.name": "Ped", + "filmmaker.target.peds": "Peds à proximité", + "filmmaker.target.players": "Joueurs à proximité", + "filmmaker.target.release": "Libérer la cible", + "filmmaker.target.status.locked": "~b~{name}~s~ verrouillé", + "filmmaker.target.status.none": "Rien de verrouillé", + "filmmaker.target.subtitle": "Verrouillage de cible", + "filmmaker.target.title": "Verrouillage de cible", + "filmmaker.target.vehicles": "Véhicules à proximité", + "filmmaker.title": "Filmmaker", "framework.confirm": "~r~Tu es sûr de vouloir faire ça ? Appuie encore une fois sur entrée pour confirmer.", "framework.emptymenu": "Aucune permission", "framework.emptymenu.desc": "Il n'y a rien ici que vous ayez le droit d'utiliser. Demandez au propriétaire du serveur si vous pensez que cela devrait être autrement.", @@ -842,6 +1010,28 @@ "framework.input.nomatches": "Aucun résultat", "framework.input.placeholder": "Commencez à taper…", "framework.restricted": "Le propriétaire du serveur a restreint l'accès à cet élément.", + "freecam.button.addkeyframe": "Ajouter une keyframe", + "freecam.button.exit": "Quitter (maintenir pour rester ici)", + "freecam.button.fastslow": "Rapide / Lent", + "freecam.button.height": "Monter / Descendre", + "freecam.button.hidehud": "Masquer le HUD", + "freecam.button.hints": "Masquer les aides", + "freecam.button.move": "Déplacer", + "freecam.button.play": "Lire / Arrêter la trajectoire", + "freecam.button.reset": "Réinitialiser", + "freecam.button.roll": "Inclinaison", + "freecam.button.speed": "Vitesse ({speed} m/s)", + "freecam.button.zoom": "Zoom", + "freecam.keyframe.added": "Keyframe ajoutée, la trajectoire en a maintenant ~b~{count}~s~.", + "freecam.keyframe.removed": "Dernière keyframe supprimée, la trajectoire en a maintenant ~b~{count}~s~.", + "freecam.notactive": "Démarre d'abord la freecam.", + "freecam.novehiclespawning": "Tu ne peux pas faire apparaître de véhicules tant que la freecam est active.", + "freecam.path.empty": "Cette trajectoire n'a pas encore de keyframes.", + "freecam.path.full": "Cette trajectoire est pleine.", + "freecam.path.needstarget": "Cette trajectoire suit une cible. Verrouilles-en une d'abord.", + "freecam.path.spacemismatch": "Cette trajectoire a été enregistrée avec un autre réglage de suivi. Remets le suivi et le mode de suivi avec lesquels elle a été faite, ou démarre une nouvelle trajectoire.", + "freecam.path.toofew": "Une trajectoire a besoin d'au moins deux keyframes pour être lue.", + "freecam.toggle.denied": "Tu n'as pas le droit d'utiliser la freecam.", "joinleave.joined": "~g~{player}~s~ a rejoint le serveur.", "joinleave.left": "~r~{player}~s~ a quitté le serveur.", "joinleave.left.reason": "~r~{player}~s~ a quitté le serveur. ~c~({reason})", diff --git a/assets/shared/language/nl.json b/assets/shared/language/nl.json index d34170e01..f5155340a 100644 --- a/assets/shared/language/nl.json +++ b/assets/shared/language/nl.json @@ -825,6 +825,174 @@ "displaysettings.title": "Weergave-instellingen", "displaysettings.vehiclehealth": "Voertuigconditie", "displaysettings.vehiclehealth.desc": "Zet drie kleine balkjes bij de snelheidsmeter die laten zien hoe gezond de motor, de carrosserie en de brandstoftank van je voertuig zijn. Ze werken ook als de snelheidsmeter zelf uit staat.", + "filmmaker.camera.hidehints": "Knophints verbergen", + "filmmaker.camera.hidehints.desc": "Verbergt de knoppen onderaan het scherm zolang de freecam aan staat.", + "filmmaker.camera.invert": "Kijken omkeren", + "filmmaker.camera.invert.desc": "Draait omhoog en omlaag kijken om.", + "filmmaker.camera.link.desc": "Hoe de freecam beweegt, draait en zoomt.", + "filmmaker.camera.reset": "Kanteling en zoom resetten", + "filmmaker.camera.roll": "Kanteling", + "filmmaker.camera.roll.desc": "Kantelt de camera opzij.", + "filmmaker.camera.sensitivity": "Kijkgevoeligheid", + "filmmaker.camera.sensitivity.desc": "Hoe snel de camera draait met de muis of de rechterstick.", + "filmmaker.camera.smoothing": "Afvlakking", + "filmmaker.camera.smoothing.desc": "Hoe lang de camera nodig heeft om op te trekken en af te remmen. Bij nul stopt hij meteen.", + "filmmaker.camera.speed": "Snelheid", + "filmmaker.camera.speed.desc": "Hoe snel de freecam vliegt. Zolang de freecam aan staat verandert het muiswiel dit ook.", + "filmmaker.camera.subtitle": "Camera instellingen", + "filmmaker.camera.title": "Camera", + "filmmaker.camera.zoom": "Zoom", + "filmmaker.camera.zoom.desc": "Het gezichtsveld van de camera. Een kleiner getal zoomt verder in.", + "filmmaker.delete": "Verwijderen", + "filmmaker.deleted": "~b~{name}~s~ is verwijderd.", + "filmmaker.dof.aperture": "Diafragma", + "filmmaker.dof.aperture.desc": "Hoe smal het scherpe gebied rond het focuspunt is. Hoger maakt het smaller, zodat meer van wat ervoor en erachter is wazig wordt, net als bij een wijd open cameralens.", + "filmmaker.dof.distance": "Focusafstand", + "filmmaker.dof.distance.desc": "Op welke afstand van de camera alles scherp is. Wordt bij elk shot en elk keyframe opgeslagen.", + "filmmaker.dof.enabled": "Scherptediepte", + "filmmaker.dof.focus": "Focus", + "filmmaker.dof.focus.desc": "Handmatig stelt scherp op een vaste afstand. Doel houdt het vergrendelde doel scherp.", + "filmmaker.dof.focus.manual": "Handmatig", + "filmmaker.dof.focus.target": "Doel", + "filmmaker.dof.link.desc": "Maak wazig wat dichterbij of verder weg is dan het punt waar je op scherpstelt.", + "filmmaker.dof.subtitle": "Scherptediepte", + "filmmaker.dof.title": "Scherptediepte", + "filmmaker.effects.hidehud": "HUD verbergen", + "filmmaker.effects.hidehud.desc": "Verbergt de HUD, de minimap en meldingen zolang de freecam aan staat.", + "filmmaker.effects.letterbox": "Letterbox", + "filmmaker.effects.letterbox.desc": "Voegt zwarte bioscoopbalken toe aan de boven en onderkant van het scherm.", + "filmmaker.effects.link.desc": "Verberg de HUD, voeg zwarte balken, bewegingsonscherpte en cameraschudden toe.", + "filmmaker.effects.motionblur": "Bewegingsonscherpte", + "filmmaker.effects.shake": "Cameraschudden", + "filmmaker.effects.shake.air": "Luchtturbulentie", + "filmmaker.effects.shake.drunk": "Dronken", + "filmmaker.effects.shake.handheld": "Uit de hand", + "filmmaker.effects.shake.intensity": "Schudsterkte", + "filmmaker.effects.shake.none": "Geen", + "filmmaker.effects.shake.road": "Wegtrilling", + "filmmaker.effects.shake.vibrate": "Trillen", + "filmmaker.effects.subtitle": "Camera effecten", + "filmmaker.effects.title": "Effecten", + "filmmaker.freecam": "Freecam", + "filmmaker.freecam.desc": "Start of stopt de freecam. Je freecam toets doet hetzelfde, F3 tenzij je hem hebt veranderd.", + "filmmaker.keyframe.blend": "Overgang naar volgende", + "filmmaker.keyframe.blend.cut": "Knip", + "filmmaker.keyframe.blend.desc": "Knip blijft op dit keyframe staan en springt dan. Lineair gaat in een rechte lijn. Vloeiend buigt door de keyframes eromheen.", + "filmmaker.keyframe.blend.linear": "Lineair", + "filmmaker.keyframe.blend.smooth": "Vloeiend", + "filmmaker.keyframe.duration": "Tijd tot volgende keyframe", + "filmmaker.keyframe.duration.desc": "Hoe lang de camera erover doet om bij het volgende keyframe te komen.", + "filmmaker.keyframe.ease": "Versnelling", + "filmmaker.keyframe.ease.desc": "Rustig begin start langzaam, rustig einde eindigt langzaam.", + "filmmaker.keyframe.ease.in": "Rustig begin", + "filmmaker.keyframe.ease.inout": "Rustig begin en einde", + "filmmaker.keyframe.ease.none": "Geen", + "filmmaker.keyframe.ease.out": "Rustig einde", + "filmmaker.keyframe.insert": "Huidige camera hiervoor invoegen", + "filmmaker.keyframe.jump": "Naar keyframe gaan", + "filmmaker.keyframe.jump.desc": "Zet de freecam op dit keyframe zodat je vanaf daar verder kunt vliegen.", + "filmmaker.keyframe.movedown": "Omlaag", + "filmmaker.keyframe.moveup": "Omhoog", + "filmmaker.keyframe.replace": "Vervangen door huidige camera", + "filmmaker.keyframe.row": "Keyframe {index}", + "filmmaker.link.desc": "Zet filmische shots op met de freecam: camera instellingen, effecten, doelvergrendeling, opgeslagen shots en camerapaden.", + "filmmaker.name.prompt": "Naam", + "filmmaker.nametaken": "Er bestaat al iets met de naam ~b~{name}~s~.", + "filmmaker.path.addkeyframe": "Keyframe hier toevoegen", + "filmmaker.path.addkeyframe.desc": "Voegt de huidige camera toe aan het einde van het pad.", + "filmmaker.path.emptyrow": "Nog geen keyframes", + "filmmaker.path.first": "Naar eerste keyframe", + "filmmaker.path.goto": "Naar keyframe gaan", + "filmmaker.path.goto.desc": "Zet de freecam op een keyframe zodat je vanaf daar verder kunt vliegen. Druk op links en rechts om ze langs te gaan.", + "filmmaker.path.group.manage": "Beheren", + "filmmaker.path.keyframes": "Keyframes", + "filmmaker.path.keyframes.desc": "Wijzig, herschik of verwijder de keyframes van dit pad.", + "filmmaker.path.last": "Naar laatste keyframe", + "filmmaker.path.link.desc": "Plaats keyframes en laat de camera van het ene naar het volgende glijden.", + "filmmaker.path.load": "Pad laden", + "filmmaker.path.loaded": "~b~{name}~s~ geladen.", + "filmmaker.path.new": "Nieuw pad", + "filmmaker.path.new.desc": "Start een leeg pad. Een opgeslagen pad blijft opgeslagen.", + "filmmaker.path.pause": "Pauze", + "filmmaker.path.play": "Pad afspelen", + "filmmaker.path.play.desc": "Speelt het pad af vanaf het eerste keyframe. De freecam moet aan staan.", + "filmmaker.path.playback": "Afspeelinstellingen", + "filmmaker.path.playback.desc": "Herhalen, snelheid en wat het scherm laat zien terwijl een pad afspeelt.", + "filmmaker.path.resume": "Hervatten", + "filmmaker.path.saveas": "Opslaan als", + "filmmaker.path.saveas.desc": "Slaat dit pad op onder een naam. Een opgeslagen pad houdt zichzelf na elke wijziging bij.", + "filmmaker.path.saved": "Opgeslagen paden", + "filmmaker.path.savedas": "Pad opgeslagen als ~b~{name}~s~.", + "filmmaker.path.savedempty": "Nog geen opgeslagen paden", + "filmmaker.path.scrub": "Voorbeeld", + "filmmaker.path.scrub.desc": "Laat elk moment van het pad zien. Beweeg naar links en rechts om erdoorheen te spoelen.", + "filmmaker.path.status": "{name} · {count} keyframes · {seconds} s", + "filmmaker.path.status.target": "{name} · {count} keyframes · {seconds} s · volgt doel", + "filmmaker.path.stop": "Pad stoppen", + "filmmaker.path.subtitle": "Camerapad", + "filmmaker.path.title": "Camerapad", + "filmmaker.path.unsaved": "Niet opgeslagen pad", + "filmmaker.playback.delay": "Startvertraging", + "filmmaker.playback.delay.desc": "Wacht zo lang op het eerste keyframe voordat hij gaat bewegen.", + "filmmaker.playback.hidehud": "HUD verbergen tijdens afspelen", + "filmmaker.playback.letterbox": "Letterbox tijdens afspelen", + "filmmaker.playback.loop": "Herhalen", + "filmmaker.playback.loop.circuit": "Rondje", + "filmmaker.playback.loop.desc": "Eenmaal stopt aan het einde. Herhalen begint opnieuw. Ping Pong speelt heen en weer. Rondje vliegt van het laatste keyframe door naar het eerste, met de instellingen van het laatste keyframe.", + "filmmaker.playback.loop.once": "Eenmaal", + "filmmaker.playback.loop.pingpong": "Ping Pong", + "filmmaker.playback.loop.repeat": "Herhalen", + "filmmaker.playback.speed": "Afspeelsnelheid", + "filmmaker.playback.stay": "Aan het einde blijven", + "filmmaker.playback.stay.desc": "Als een pad klaar is, blijft de freecam waar het pad eindigde en vlieg je vanaf daar verder. Uitgeschakeld gaat hij terug naar waar je was voor het afspelen.", + "filmmaker.rename": "Hernoemen", + "filmmaker.renamed": "~b~{name}~s~ is hernoemd.", + "filmmaker.saverefused": "Dit is opgeslagen door een nieuwere vMenu, dus het is niet aangepast.", + "filmmaker.shots.empty": "Nog geen opgeslagen shots", + "filmmaker.shots.goto": "Naar shot gaan", + "filmmaker.shots.goto.desc": "Zet de freecam op dit shot.", + "filmmaker.shots.group.saved": "Opgeslagen", + "filmmaker.shots.link.desc": "Sla op waar de camera is, en spring er later naar terug.", + "filmmaker.shots.overwrite": "Overschrijven met huidige camera", + "filmmaker.shots.save": "Huidig shot opslaan", + "filmmaker.shots.save.desc": "Slaat de positie, hoek, zoom en focus van de camera op.", + "filmmaker.shots.saved": "Shot ~b~{name}~s~ is opgeslagen.", + "filmmaker.shots.subtitle": "Opgeslagen shots", + "filmmaker.shots.title": "Opgeslagen shots", + "filmmaker.subtitle": "Filmmaker tools", + "filmmaker.target.aim": "Vergrendelen op waar je op richt", + "filmmaker.target.aim.desc": "Vergrendelt op wat er in het midden van het scherm is.", + "filmmaker.target.aim.nothing": "Er is niets in het midden van het scherm om op te vergrendelen.", + "filmmaker.target.attach.full": "Volledig", + "filmmaker.target.attach.heading": "Alleen richting", + "filmmaker.target.attach.position": "Alleen positie", + "filmmaker.target.attachmode": "Volgmodus", + "filmmaker.target.attachmode.desc": "Volledig draait in elke richting mee met het doel. Alleen richting draait mee naar links en rechts. Alleen positie draait nooit.", + "filmmaker.target.follow": "Doel volgen", + "filmmaker.target.follow.desc": "Laat de camera meerijden met het doel, op de afstand die hij had toen je dit aanzette.", + "filmmaker.target.group.behaviour": "Gedrag", + "filmmaker.target.link.desc": "Houd de camera gericht op een speler, ped, voertuig of object, of laat hem met een meerijden.", + "filmmaker.target.locked": "Vergrendeld op ~b~{name}~s~.", + "filmmaker.target.lookat": "Naar doel kijken", + "filmmaker.target.lookat.desc": "Houdt de camera op het doel gericht terwijl je eromheen vliegt.", + "filmmaker.target.nonenearby": "Niets in de buurt", + "filmmaker.target.object.name": "Object", + "filmmaker.target.offset.x": "Richtverschuiving opzij", + "filmmaker.target.offset.x.desc": "Verschuift het punt waar de camera naar kijkt, gemeten vanaf het doel.", + "filmmaker.target.offset.y": "Richtverschuiving vooruit", + "filmmaker.target.offset.y.desc": "Verschuift het punt waar de camera naar kijkt, gemeten vanaf het doel.", + "filmmaker.target.offset.z": "Richtverschuiving omhoog", + "filmmaker.target.offset.z.desc": "Verschuift het punt waar de camera naar kijkt, gemeten vanaf het doel.", + "filmmaker.target.ped.name": "Ped", + "filmmaker.target.peds": "Peds in de buurt", + "filmmaker.target.players": "Spelers in de buurt", + "filmmaker.target.release": "Doel loslaten", + "filmmaker.target.status.locked": "Vergrendeld op ~b~{name}~s~", + "filmmaker.target.status.none": "Niets vergrendeld", + "filmmaker.target.subtitle": "Doelvergrendeling", + "filmmaker.target.title": "Doelvergrendeling", + "filmmaker.target.vehicles": "Voertuigen in de buurt", + "filmmaker.title": "Filmmaker", "framework.confirm": "~r~Weet je zeker dat je dit wilt doen? Druk nog een keer op enter om te bevestigen.", "framework.emptymenu": "Geen rechten", "framework.emptymenu.desc": "Er staat hier niets in wat jij mag gebruiken. Vraag het de servereigenaar als je denkt dat dat wel zo hoort te zijn.", @@ -842,6 +1010,28 @@ "framework.input.nomatches": "Geen resultaten", "framework.input.placeholder": "Begin met typen…", "framework.restricted": "De servereigenaar heeft de toegang hiertoe beperkt.", + "freecam.button.addkeyframe": "Keyframe toevoegen", + "freecam.button.exit": "Stoppen (vasthouden om hier te blijven)", + "freecam.button.fastslow": "Snel / Langzaam", + "freecam.button.height": "Omhoog / Omlaag", + "freecam.button.hidehud": "HUD verbergen", + "freecam.button.hints": "Hints verbergen", + "freecam.button.move": "Bewegen", + "freecam.button.play": "Pad afspelen / stoppen", + "freecam.button.reset": "Resetten", + "freecam.button.roll": "Kanteling", + "freecam.button.speed": "Snelheid ({speed} m/s)", + "freecam.button.zoom": "Zoom", + "freecam.keyframe.added": "Keyframe toegevoegd, het pad heeft er nu ~b~{count}~s~.", + "freecam.keyframe.removed": "Laatste keyframe verwijderd, het pad heeft er nu ~b~{count}~s~.", + "freecam.notactive": "Start eerst de freecam.", + "freecam.novehiclespawning": "Je kunt geen voertuigen spawnen zolang de freecam aan staat.", + "freecam.path.empty": "Dit pad heeft nog geen keyframes.", + "freecam.path.full": "Dit pad is vol.", + "freecam.path.needstarget": "Dit pad volgt een doel. Vergrendel er eerst een.", + "freecam.path.spacemismatch": "Dit pad is opgenomen met een andere volginstelling. Zet volgen en de volgmodus zoals waarmee het gemaakt is, of start een nieuw pad.", + "freecam.path.toofew": "Een pad heeft minstens twee keyframes nodig om af te spelen.", + "freecam.toggle.denied": "Je mag de freecam niet gebruiken.", "joinleave.joined": "~g~{player}~s~ is de server binnengekomen.", "joinleave.left": "~r~{player}~s~ heeft de server verlaten.", "joinleave.left.reason": "~r~{player}~s~ heeft de server verlaten. ~c~({reason})",