mirror of
https://github.com/a-bad-dev/luanti-no-place-rep-limit.git
synced 2026-06-09 00:41:32 +00:00
Compare commits
5 commits
5.16.0-rc1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74a5ce327e | ||
|
|
ffe0cc49f2 |
||
|
|
fcd69b1eec |
||
|
|
5f73e291cd |
||
|
|
6a144dd147 |
5 changed files with 26 additions and 62 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
# this script is intended to be run on debian 13 aarch64
|
# this script is intended to be run on debian 13 aarch64
|
||||||
|
|
||||||
|
|
||||||
VERSION="5.16.0-rc1"
|
VERSION="5.16.1"
|
||||||
SDL_VERSION="2.32.10"
|
SDL_VERSION="2.32.10"
|
||||||
|
|
||||||
BOLD="\x1b[1m"
|
BOLD="\x1b[1m"
|
||||||
|
|
@ -11,6 +11,8 @@ RED="\x1b[31m"
|
||||||
GREEN="\x1b[32m"
|
GREEN="\x1b[32m"
|
||||||
RESET="\x1b[0m"
|
RESET="\x1b[0m"
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||||
|
|
||||||
# make sure we are root
|
# make sure we are root
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo -e "${BOLD}${RED}This script must be run as root!${RESET}"
|
echo -e "${BOLD}${RED}This script must be run as root!${RESET}"
|
||||||
|
|
@ -62,26 +64,9 @@ unzip sdl2.zip
|
||||||
mv SDL2-${SDL_VERSION} sdl2
|
mv SDL2-${SDL_VERSION} sdl2
|
||||||
rm sdl2.zip
|
rm sdl2.zip
|
||||||
|
|
||||||
# create patch files
|
# apply external patch files
|
||||||
cat > patch-1.patch <<'EOF'
|
patch luanti/src/client/game.cpp "$SCRIPT_DIR"/patches/patch-1.patch
|
||||||
3753c3753
|
patch luanti/builtin/settingtypes.txt "$SCRIPT_DIR"/patches/patch-2.patch
|
||||||
< m_repeat_place_time = g_settings->getFloat("repeat_place_time", 0.16f, 2.0f);
|
|
||||||
---
|
|
||||||
> m_repeat_place_time = g_settings->getFloat("repeat_place_time", 0.001f, 2.0f);
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat > patch-2.patch <<'EOF'
|
|
||||||
151c151
|
|
||||||
< repeat_place_time (Place repetition interval) float 0.25 0.16 2.0
|
|
||||||
---
|
|
||||||
> repeat_place_time (Place repetition interval) float 0.25 0.001 2.0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# apply patches
|
|
||||||
patch luanti/src/client/game.cpp patch-1.patch
|
|
||||||
patch luanti/builtin/settingtypes.txt patch-2.patch
|
|
||||||
|
|
||||||
rm patch-[1-2].patch
|
|
||||||
|
|
||||||
# compile luajit
|
# compile luajit
|
||||||
echo -e "${BOLD}Compiling LuaJIT...${RESET}"
|
echo -e "${BOLD}Compiling LuaJIT...${RESET}"
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# this script is intended to be run in MSYS2 CLANG64
|
# this script is intended to be run in MSYS2 CLANG64
|
||||||
|
|
||||||
VERSION="5.16.0-rc1"
|
VERSION="5.16.1"
|
||||||
|
|
||||||
BOLD="\x1b[1m"
|
BOLD="\x1b[1m"
|
||||||
GREEN="\x1b[32m"
|
GREEN="\x1b[32m"
|
||||||
RESET="\x1b[0m"
|
RESET="\x1b[0m"
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||||
|
|
||||||
# system update (skip this most of the time)
|
# system update (skip this most of the time)
|
||||||
echo -e "${BOLD}Updating system...${RESET}"
|
echo -e "${BOLD}Updating system...${RESET}"
|
||||||
pacman -Syu
|
pacman -Syu
|
||||||
|
|
@ -24,25 +26,9 @@ tar -xf luanti.tar
|
||||||
|
|
||||||
cd luanti-${VERSION}/
|
cd luanti-${VERSION}/
|
||||||
|
|
||||||
# create and apply patches
|
# apply external patch files
|
||||||
cat > patch-1.patch <<'EOF'
|
patch src/client/game.cpp "${SCRIPT_DIR}/patches/patch-1.patch"
|
||||||
3753c3753
|
patch builtin/settingtypes.txt "${SCRIPT_DIR}/patches/patch-2.patch"
|
||||||
< m_repeat_place_time = g_settings->getFloat("repeat_place_time", 0.16f, 2.0f);
|
|
||||||
---
|
|
||||||
> m_repeat_place_time = g_settings->getFloat("repeat_place_time", 0.001f, 2.0f);
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat > patch-2.patch <<'EOF'
|
|
||||||
151c151
|
|
||||||
< repeat_place_time (Place repetition interval) float 0.25 0.16 2.0
|
|
||||||
---
|
|
||||||
> repeat_place_time (Place repetition interval) float 0.25 0.001 2.0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
patch src/client/game.cpp patch-1.patch
|
|
||||||
patch builtin/settingtypes.txt patch-2.patch
|
|
||||||
|
|
||||||
rm patch-[1-2].patch
|
|
||||||
|
|
||||||
# configure
|
# configure
|
||||||
echo -e "${BOLD}Preparing to compile...${RESET}"
|
echo -e "${BOLD}Preparing to compile...${RESET}"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
# this script is intended to be run on debian 13 x86_64
|
# this script is intended to be run on debian 13 x86_64
|
||||||
|
|
||||||
|
|
||||||
VERSION="5.16.0-rc1"
|
VERSION="5.16.1"
|
||||||
SDL_VERSION="2.32.10"
|
SDL_VERSION="2.32.10"
|
||||||
|
|
||||||
BOLD="\x1b[1m"
|
BOLD="\x1b[1m"
|
||||||
|
|
@ -11,6 +11,8 @@ RED="\x1b[31m"
|
||||||
GREEN="\x1b[32m"
|
GREEN="\x1b[32m"
|
||||||
RESET="\x1b[0m"
|
RESET="\x1b[0m"
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||||
|
|
||||||
# make sure we are root
|
# make sure we are root
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo -e "${BOLD}${RED}This script must be run as root!${RESET}"
|
echo -e "${BOLD}${RED}This script must be run as root!${RESET}"
|
||||||
|
|
@ -62,26 +64,9 @@ unzip sdl2.zip
|
||||||
mv SDL2-${SDL_VERSION} sdl2
|
mv SDL2-${SDL_VERSION} sdl2
|
||||||
rm sdl2.zip
|
rm sdl2.zip
|
||||||
|
|
||||||
# create patch files
|
# apply external patch files
|
||||||
cat > patch-1.patch <<'EOF'
|
patch luanti/src/client/game.cpp "${SCRIPT_DIR}/patches/patch-1.patch"
|
||||||
3753c3753
|
patch luanti/builtin/settingtypes.txt "${SCRIPT_DIR}/patches/patch-2.patch"
|
||||||
< m_repeat_place_time = g_settings->getFloat("repeat_place_time", 0.16f, 2.0f);
|
|
||||||
---
|
|
||||||
> m_repeat_place_time = g_settings->getFloat("repeat_place_time", 0.001f, 2.0f);
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat > patch-2.patch <<'EOF'
|
|
||||||
151c151
|
|
||||||
< repeat_place_time (Place repetition interval) float 0.25 0.16 2.0
|
|
||||||
---
|
|
||||||
> repeat_place_time (Place repetition interval) float 0.25 0.001 2.0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# apply patches
|
|
||||||
patch luanti/src/client/game.cpp patch-1.patch
|
|
||||||
patch luanti/builtin/settingtypes.txt patch-2.patch
|
|
||||||
|
|
||||||
rm patch-[1-2].patch
|
|
||||||
|
|
||||||
# compile luajit
|
# compile luajit
|
||||||
echo -e "${BOLD}Compiling LuaJIT...${RESET}"
|
echo -e "${BOLD}Compiling LuaJIT...${RESET}"
|
||||||
|
|
|
||||||
4
patches/patch-1.patch
Normal file
4
patches/patch-1.patch
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
3753c3753
|
||||||
|
< m_repeat_place_time = g_settings->getFloat("repeat_place_time", 0.16f, 2.0f);
|
||||||
|
---
|
||||||
|
> m_repeat_place_time = g_settings->getFloat("repeat_place_time", 0.001f, 2.0f);
|
||||||
4
patches/patch-2.patch
Normal file
4
patches/patch-2.patch
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
151c151
|
||||||
|
< repeat_place_time (Place repetition interval) float 0.25 0.16 2.0
|
||||||
|
---
|
||||||
|
> repeat_place_time (Place repetition interval) float 0.25 0.001 2.0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue