Spectate
in the Spectator UI (I want it to be changed to Spectating
while leaving the Spectate
button alone);Name
in the server browser, so that it is different from Name
in the scoreboard.spectate
in the context of SpectateIngame
So you'd "translate" spectate
to spectating
in the context of SpectateIngame
Already described in my previous comment 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 [Spectator UI]
Spectate
== Spectating
or what? How do I make it to show "Spectating" again where it was before they made the change?
I am really confused... that's why I said "I can't make a PR"...A
sgfx_fullscreen 1
gfx_vsync 0
gfx_fsaa_samples 0
cl_refresh_rate 0
gfx_refresh_rate 120
gfx_asyncrender_old 1
gfx_fullscreen 1
gfx_vsync 0
gfx_fsaa_samples 0
cl_refresh_rate 0
gfx_refresh_rate 120
gfx_asyncrender_old 1
monitor hz * 4
on.c.o -c /var/tmp/portage/games-action/ddnet-9999/work/ddnet-9999/src/engine/external/json-parser/json.c
/var/tmp/portage/games-action/ddnet-9999/work/ddnet-9999/src/engine/external/json-parser/json.c: In function ‘new_value’:
/var/tmp/portage/games-action/ddnet-9999/work/ddnet-9999/src/engine/external/json-parser/json.c:140:45: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
140 | value->_reserved.object_mem = (*(char **) &value->u.object.values) + values_size;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-action/ddnet-9999/work/ddnet-9999/src/engine/external/json-parser/json.c: In function ‘json_parse_ex’:
/var/tmp/portage/games-action/ddnet-9999/work/ddnet-9999/src/engine/external/json-parser/json.c:402:27: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
402 | (*(json_char **) &top->u.object.values) += string_length + 1;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
on.c.o -c /var/tmp/portage/games-action/ddnet-9999/work/ddnet-9999/src/engine/external/json-parser/json.c
/var/tmp/portage/games-action/ddnet-9999/work/ddnet-9999/src/engine/external/json-parser/json.c: In function ‘new_value’:
/var/tmp/portage/games-action/ddnet-9999/work/ddnet-9999/src/engine/external/json-parser/json.c:140:45: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
140 | value->_reserved.object_mem = (*(char **) &value->u.object.values) + values_size;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-action/ddnet-9999/work/ddnet-9999/src/engine/external/json-parser/json.c: In function ‘json_parse_ex’:
/var/tmp/portage/games-action/ddnet-9999/work/ddnet-9999/src/engine/external/json-parser/json.c:402:27: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
402 | (*(json_char **) &top->u.object.values) += string_length + 1;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Spectating
in Spectator UI. How to deal with Name
in server browser, though?Spectating
in Spectator UI. How to deal with Name
in server browser, though? "Spectate"
which should lead you to a line in hud.cpp
that you can change.spectate
field, if you misunderstood meLocalizable
don't work with context yet Localizable
just drops the context, as such it can't work at runtime because it doesn't know its context anymore.
Possible solution: Return a struct containing both the string and the context instead of just the string.
CC #8403void CGameContext::CreateExplosion(vec2 Pos, int Owner, int Weapon, bool NoDamage, int ActivatedTeam, CClientMask Mask)
{
// create the event
CNetEvent_Explosion *pEvent = m_Events.Create<CNetEvent_Explosion>(Mask); <--- ?
if(pEvent)
{
pEvent->m_X = (int)Pos.x;
pEvent->m_Y = (int)Pos.y;
}
// deal damage
// ommitted code below...
}
<build_directory>/src/game/generated/protocol.h
datasrc/network.py
#!/bin/bash
# Function to check if the DDNet-Server is running and push status to uptime server
check_ddnet_server() {
# Get the PID of the DDNet-Server
PID=$(pgrep -f DDNet-Server)
# Check if PID is found
if [ -z "$PID" ]; then
echo "DDNet-Server is not running"
else
# Check if the PID is actually being used by DDNet-Server
CMD=$(ps -p $PID -o comm=)
if [ "$CMD" == "DDNet-Server" ]; then
# Push the status to the uptime server
curl -s "http://YOURUPTIMEKUMALINK"
echo "Status sent to uptime server"
else
echo "PID $PID is not DDNet-Server"
fi
fi
}
# Run the check_ddnet_server function in an infinite loop
while true; do
check_ddnet_server
# Sleep for 10 seconds before checking again
sleep 10
done
(edited)if pgrep DDNet-Server
would probably be better. instead of the whole check_ddnet_server
function# Run the check_ddnet_server function in an infinite loop
if pgrep DDNet-Server
would probably be better. instead of the whole check_ddnet_server
function ;
does not work?;
only works for search dunno#!/bin/bash
# Function to check if the DDNet-Server is running and push status to uptime server
check_ddnet_server() {
# Get the PID of the DDNet-Server
PID=$(pgrep -f DDNet-Server)
# Check if PID is found
if [ -z "$PID" ]; then
echo "DDNet-Server is not running"
else
# Check if the PID is actually being used by DDNet-Server
CMD=$(ps -p $PID -o comm=)
if [ "$CMD" == "DDNet-Server" ]; then
# Push the status to the uptime server
curl -s "http://YOURUPTIMEKUMALINK"
echo "Status sent to uptime server"
else
echo "PID $PID is not DDNet-Server"
fi
fi
}
# Run the check_ddnet_server function in an infinite loop
while true; do
check_ddnet_server
# Sleep for 10 seconds before checking again
sleep 10
done
(edited)Point 1 and 3 should ideally be implemented differently
- so this issue is meant as a place to discuss and agree o...[_BlaiZephyr:fix-cmake-warning_](`
_**###
@url
**_
`)
XD (edited)