freedesktop.org
I get chills down my spinemale
to make
xdCPlayer **m_papPlayers[MAX_CLIENTS];
Segmentation fault
CPlayer **m_papPlayers[MAX_CLIENTS];
had the right idea but you can only declare things this wayCPlayer *pPlayer = (*apPlayers)[0];
i wonder if i can make my pointer feel like the original m_apPlayers"Spectate"
which should lead you to a line in hud.cpp
that you can change.SERVERBROWSE_GETINFO
protocolhud.cpp
, and I think it changes both the button text and the text in right bottom corner.hud.cpp
is fine. The button you are talking about can be found in menus_ingame.cpp
.ewan@machine ~ [127]> DDNet
2024-05-27 04:15:22 I engine: running on unix-linux-amd64
2024-05-27 04:15:22 I engine: arch is little endian
2024-05-27 04:15:22 I engine: operating system version: Linux 6.9.2-arch1-1 (x86_64, #1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 01:30:29 +0000); "Arch Linux"
2024-05-27 04:15:22 I storage: couldn't open storage.cfg
2024-05-27 04:15:22 I storage: using standard paths
2024-05-27 04:15:22 I storage: added path '$USERDIR' ('/home/ewan/.local/share/ddnet')
2024-05-27 04:15:22 I storage: added path '$DATADIR' ('/usr/share/ddnet/data')
2024-05-27 04:15:22 I storage: added path '$CURRENTDIR' ('/home/ewan')
2024-05-27 04:15:22 I console: executing 'settings_ddnet.cfg'
2024-05-27 04:15:22 I client: adding 72.204.22.162:6629 to favorites
2024-05-27 04:15:22 I sdl: SDL version 2.30.3 (compiled = 2.30.3)
2024-05-27 04:15:22 I gfx: Created Vulkan 1.1 context.
2024-05-27 04:15:22 I gfx: GPU vendor: NVIDIA
2024-05-27 04:15:22 I gfx: GPU renderer: NVIDIA GeForce RTX 3060
2024-05-27 04:15:22 I gfx: GPU version: Vulkan 1.3.277 (driver: 550.78.0.0)
/usr/include/c++/14.1.1/bits/stl_vector.h:1130: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = std::vector<CCommandProcessorFragment_Vulkan::SDelayedBufferCleanupItem>; _Alloc = std::allocator<std::vector<CCommandProcessorFragment_Vulkan::SDelayedBufferCleanupItem> >; reference = std::vector<CCommandProcessorFragment_Vulkan::SDelayedBufferCleanupItem>&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
fish: Job 1, 'DDNet' terminated by signal SIGABRT (Abort)
️CCommandProcessorFragment_Vulkan::SDelayedBufferCleanupItem
sounds like ddnet graphics codeCCommandProcessorFragment_Vulkan::SDelayedBufferCleanupItem
sounds like ddnet graphics code ewan@machine ~ [127]> DDNet
2024-05-27 04:15:22 I engine: running on unix-linux-amd64
2024-05-27 04:15:22 I engine: arch is little endian
2024-05-27 04:15:22 I engine: operating system version: Linux 6.9.2-arch1-1 (x86_64, #1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 01:30:29 +0000); "Arch Linux"
2024-05-27 04:15:22 I storage: couldn't open storage.cfg
2024-05-27 04:15:22 I storage: using standard paths
2024-05-27 04:15:22 I storage: added path '$USERDIR' ('/home/ewan/.local/share/ddnet')
2024-05-27 04:15:22 I storage: added path '$DATADIR' ('/usr/share/ddnet/data')
2024-05-27 04:15:22 I storage: added path '$CURRENTDIR' ('/home/ewan')
2024-05-27 04:15:22 I console: executing 'settings_ddnet.cfg'
2024-05-27 04:15:22 I client: adding 72.204.22.162:6629 to favorites
2024-05-27 04:15:22 I sdl: SDL version 2.30.3 (compiled = 2.30.3)
2024-05-27 04:15:22 I gfx: Created Vulkan 1.1 context.
2024-05-27 04:15:22 I gfx: GPU vendor: NVIDIA
2024-05-27 04:15:22 I gfx: GPU renderer: NVIDIA GeForce RTX 3060
2024-05-27 04:15:22 I gfx: GPU version: Vulkan 1.3.277 (driver: 550.78.0.0)
/usr/include/c++/14.1.1/bits/stl_vector.h:1130: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = std::vector<CCommandProcessorFragment_Vulkan::SDelayedBufferCleanupItem>; _Alloc = std::allocator<std::vector<CCommandProcessorFragment_Vulkan::SDelayedBufferCleanupItem> >; reference = std::vector<CCommandProcessorFragment_Vulkan::SDelayedBufferCleanupItem>&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
fish: Job 1, 'DDNet' terminated by signal SIGABRT (Abort)
️ Localize
passes through the string as-isLocalize
passes through the string as-is extern const char *Localize(const char *pStr, const char *pContext = "")
GNUC_ATTRIBUTE((format_arg(1)));
The build failure seems related to the str_format
templateextern const char *Localize(const char *pStr, const char *pContext = "")
GNUC_ATTRIBUTE((format_arg(1)));
The build failure seems related to the str_format
template CNetChunk
s)CNetChunk
s)chat: *** Do you know someone who uses a bot? Please report them to the moderators.
Where does this message come from? Is this hardcoded?chat: *** Do you know someone who uses a bot? Please report them to the moderators.
Where does this message come from? Is this hardcoded? xd sure chillerbot.png is lyfe
, which makes the current run not eligible for finish. It was always a bug that players could see this message though, see also #8276m_aReceivedSnapshots[!g_Config.m_ClDummy] >= 3
conditionsstr_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Spectate")
it will look up the Spectate string and display the fitting translation given in the .txt files (e.G german.txt)
if you have str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Spectate", "SpectateIngame"),
it still translates Spectate but will consider the context "SpectateIngame", if now the translation has a translation for Spectate with the context of SpectateIngame - it will choose that. (edited) if(DoButton_Menu(&s_RelativeButton, Localize("Relative", "Ingame controller mode"), g_Config.m_InpControllerAbsolute == 0, &ButtonRelative, nullptr, IGraphics::CORNER_L))
and in the translation file:
[Ingame controller mode]
Relative
== Relativ
where [Ingame controller mode]
is the context[Server browser]
Name
== <translation>
yeah? (edited)