Upload files to "run"
This commit is contained in:
1 parent
ad9f7a0f24
commit
d9e8b5c226
4 files changed
+315
No files matched your search
+108
@@ -0,0 +1,108 @@
|
|||||||
|
invertYMouse:false
|
||||||
|
mouseSensitivity:0.5
|
||||||
|
fov:1.0
|
||||||
|
gamma:100.0
|
||||||
|
saturation:0.0
|
||||||
|
renderDistance:8
|
||||||
|
guiScale:2
|
||||||
|
particles:0
|
||||||
|
bobView:false
|
||||||
|
anaglyph3d:false
|
||||||
|
maxFps:260
|
||||||
|
fboEnable:true
|
||||||
|
difficulty:3
|
||||||
|
fancyGraphics:false
|
||||||
|
ao:2
|
||||||
|
renderClouds:false
|
||||||
|
resourcePacks:[]
|
||||||
|
incompatibleResourcePacks:[]
|
||||||
|
lastServer:
|
||||||
|
lang:en_US
|
||||||
|
chatVisibility:0
|
||||||
|
chatColors:true
|
||||||
|
chatLinks:true
|
||||||
|
chatLinksPrompt:true
|
||||||
|
chatOpacity:1.0
|
||||||
|
snooperEnabled:true
|
||||||
|
fullscreen:false
|
||||||
|
enableVsync:false
|
||||||
|
useVbo:false
|
||||||
|
hideServerAddress:false
|
||||||
|
advancedItemTooltips:false
|
||||||
|
pauseOnLostFocus:true
|
||||||
|
touchscreen:false
|
||||||
|
overrideWidth:0
|
||||||
|
overrideHeight:0
|
||||||
|
heldItemTooltips:false
|
||||||
|
chatHeightFocused:1.0
|
||||||
|
chatHeightUnfocused:0.44366196
|
||||||
|
chatScale:1.0
|
||||||
|
chatWidth:1.0
|
||||||
|
showInventoryAchievementHint:false
|
||||||
|
mipmapLevels:4
|
||||||
|
streamBytesPerPixel:0.5
|
||||||
|
streamMicVolume:1.0
|
||||||
|
streamSystemVolume:1.0
|
||||||
|
streamKbps:0.5412844
|
||||||
|
streamFps:0.31690142
|
||||||
|
streamCompression:1
|
||||||
|
streamSendMetadata:true
|
||||||
|
streamPreferredServer:
|
||||||
|
streamChatEnabled:0
|
||||||
|
streamChatUserFilter:0
|
||||||
|
streamMicToggleBehavior:0
|
||||||
|
forceUnicodeFont:false
|
||||||
|
allowBlockAlternatives:false
|
||||||
|
reducedDebugInfo:false
|
||||||
|
useNativeTransport:true
|
||||||
|
entityShadows:true
|
||||||
|
realmsNotifications:false
|
||||||
|
key_key.attack:-100
|
||||||
|
key_key.use:-99
|
||||||
|
key_key.forward:17
|
||||||
|
key_key.left:30
|
||||||
|
key_key.back:31
|
||||||
|
key_key.right:32
|
||||||
|
key_key.jump:57
|
||||||
|
key_key.sneak:42
|
||||||
|
key_key.sprint:29
|
||||||
|
key_key.drop:16
|
||||||
|
key_key.inventory:18
|
||||||
|
key_key.chat:20
|
||||||
|
key_key.playerlist:15
|
||||||
|
key_key.pickItem:-98
|
||||||
|
key_key.command:53
|
||||||
|
key_key.screenshot:60
|
||||||
|
key_key.togglePerspective:63
|
||||||
|
key_key.smoothCamera:0
|
||||||
|
key_key.streamStartStop:64
|
||||||
|
key_key.streamPauseUnpause:65
|
||||||
|
key_key.streamCommercial:0
|
||||||
|
key_key.streamToggleMic:0
|
||||||
|
key_key.fullscreen:87
|
||||||
|
key_key.spectatorOutlines:0
|
||||||
|
key_key.hotbar.1:2
|
||||||
|
key_key.hotbar.2:3
|
||||||
|
key_key.hotbar.3:4
|
||||||
|
key_key.hotbar.4:5
|
||||||
|
key_key.hotbar.5:6
|
||||||
|
key_key.hotbar.6:7
|
||||||
|
key_key.hotbar.7:8
|
||||||
|
key_key.hotbar.8:9
|
||||||
|
key_key.hotbar.9:10
|
||||||
|
soundCategory_master:1.0
|
||||||
|
soundCategory_music:1.0
|
||||||
|
soundCategory_record:1.0
|
||||||
|
soundCategory_weather:1.0
|
||||||
|
soundCategory_block:1.0
|
||||||
|
soundCategory_hostile:1.0
|
||||||
|
soundCategory_neutral:1.0
|
||||||
|
soundCategory_player:1.0
|
||||||
|
soundCategory_ambient:1.0
|
||||||
|
modelPart_cape:true
|
||||||
|
modelPart_jacket:true
|
||||||
|
modelPart_left_sleeve:true
|
||||||
|
modelPart_right_sleeve:true
|
||||||
|
modelPart_left_pants_leg:true
|
||||||
|
modelPart_right_pants_leg:true
|
||||||
|
modelPart_hat:true
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
ofFogType:1
|
||||||
|
ofFogStart:0.8
|
||||||
|
ofMipmapType:0
|
||||||
|
ofOcclusionFancy:false
|
||||||
|
ofSmoothFps:false
|
||||||
|
ofSmoothWorld:true
|
||||||
|
ofAoLevel:1.0
|
||||||
|
ofClouds:3
|
||||||
|
ofCloudsHeight:0.0
|
||||||
|
ofTrees:0
|
||||||
|
ofDroppedItems:0
|
||||||
|
ofRain:0
|
||||||
|
ofAnimatedWater:0
|
||||||
|
ofAnimatedLava:0
|
||||||
|
ofAnimatedFire:true
|
||||||
|
ofAnimatedPortal:true
|
||||||
|
ofAnimatedRedstone:true
|
||||||
|
ofAnimatedExplosion:true
|
||||||
|
ofAnimatedFlame:true
|
||||||
|
ofAnimatedSmoke:true
|
||||||
|
ofVoidParticles:true
|
||||||
|
ofWaterParticles:true
|
||||||
|
ofPortalParticles:true
|
||||||
|
ofPotionParticles:true
|
||||||
|
ofFireworkParticles:true
|
||||||
|
ofDrippingWaterLava:true
|
||||||
|
ofAnimatedTerrain:true
|
||||||
|
ofAnimatedTextures:true
|
||||||
|
ofRainSplash:true
|
||||||
|
ofLagometer:false
|
||||||
|
ofShowFps:false
|
||||||
|
ofAutoSaveTicks:4000
|
||||||
|
ofBetterGrass:3
|
||||||
|
ofConnectedTextures:2
|
||||||
|
ofWeather:true
|
||||||
|
ofSky:true
|
||||||
|
ofStars:true
|
||||||
|
ofSunMoon:true
|
||||||
|
ofVignette:0
|
||||||
|
ofChunkUpdates:1
|
||||||
|
ofChunkUpdatesDynamic:false
|
||||||
|
ofTime:0
|
||||||
|
ofClearWater:false
|
||||||
|
ofAaLevel:0
|
||||||
|
ofAfLevel:1
|
||||||
|
ofProfiler:false
|
||||||
|
ofBetterSnow:false
|
||||||
|
ofSwampColors:true
|
||||||
|
ofRandomEntities:true
|
||||||
|
ofSmoothBiomes:true
|
||||||
|
ofCustomFonts:true
|
||||||
|
ofCustomColors:true
|
||||||
|
ofCustomItems:true
|
||||||
|
ofCustomSky:true
|
||||||
|
ofShowCapes:true
|
||||||
|
ofNaturalTextures:false
|
||||||
|
ofEmissiveTextures:true
|
||||||
|
ofLazyChunkLoading:true
|
||||||
|
ofRenderRegions:false
|
||||||
|
ofSmartAnimations:false
|
||||||
|
ofDynamicFov:false
|
||||||
|
ofAlternateBlocks:true
|
||||||
|
ofDynamicLights:3
|
||||||
|
ofScreenshotSize:1
|
||||||
|
ofCustomEntityModels:true
|
||||||
|
ofCustomGuis:true
|
||||||
|
ofShowGlErrors:true
|
||||||
|
ofFullscreenMode:Default
|
||||||
|
ofFastMath:false
|
||||||
|
ofFastRender:false
|
||||||
|
ofTranslucentBlocks:0
|
||||||
|
key_of.key.zoom:0
|
||||||
+23
@@ -0,0 +1,23 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
cd /d "%~dp0"
|
||||||
|
rem Starts OpenOnyx (run\client\*.jar, built by tools\build.sh) on Java 21.
|
||||||
|
|
||||||
|
rem Use the bundled jre\ when Git LFS fetched it (lib\modules is ~140 MB, not a 134-byte pointer); otherwise Temurin 21.
|
||||||
|
set "JAVA_EXE=jre\bin\java.exe"
|
||||||
|
for %%F in ("jre\lib\modules") do if %%~zF LSS 1000000 set "JAVA_EXE=C:\Program Files\Eclipse Adoptium\jdk-21.0.13.9-hotspot\bin\java.exe"
|
||||||
|
if not exist "%JAVA_EXE%" (
|
||||||
|
echo Java 21 was not found. Install Temurin 21 or fetch jre\ with Git LFS.
|
||||||
|
pause
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
rem The game reads assets from .\assets; link the vanilla launcher's 1.8 assets in (sounds, language files).
|
||||||
|
if not exist "assets" mkdir "assets"
|
||||||
|
for %%D in (indexes objects) do if not exist "assets\%%D" if exist "%APPDATA%\.minecraft\assets\%%D" mklink /J "assets\%%D" "%APPDATA%\.minecraft\assets\%%D" >nul
|
||||||
|
|
||||||
|
rem Generational ZGC keeps GC pauses under 0.05 ms (the default G1 paused up to ~40 ms, which showed as stutter).
|
||||||
|
set "JVM_FLAGS=-Xms2G -Xmx4G -XX:+UseZGC -XX:+ZGenerational -XX:+AlwaysPreTouch"
|
||||||
|
|
||||||
|
"%JAVA_EXE%" %JVM_FLAGS% -Dfile.encoding=UTF-8 -Donyx.user="admin" -Djava.library.path="rt\natives" -cp "client\onyx.jar;client\patches.jar;client\mc.jar;rt\libs\*" Start --username i_use_pastes --gameDir "." --width 925 --height 530
|
||||||
|
if errorlevel 1 pause
|
||||||
+112
@@ -0,0 +1,112 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
script_dir="$(CDPATH='' cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
cd "$script_dir"
|
||||||
|
|
||||||
|
if [[ -n "${XDG_DATA_HOME:-}" ]]; then
|
||||||
|
data_home="$XDG_DATA_HOME"
|
||||||
|
elif [[ -n "${HOME:-}" ]]; then
|
||||||
|
data_home="$HOME/.local/share"
|
||||||
|
else
|
||||||
|
printf 'Neither XDG_DATA_HOME nor HOME is set, so PrismLauncher cannot be located.\n' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
prism_root="${PRISM_ROOT:-$data_home/PrismLauncher}"
|
||||||
|
prism_java_root="$prism_root/java"
|
||||||
|
assets_dir="${ASSETS_DIR:-$prism_root/assets}"
|
||||||
|
assets_link="$script_dir/assets"
|
||||||
|
native_dir="$script_dir/rt/natives-linux"
|
||||||
|
|
||||||
|
java_is_compatible() {
|
||||||
|
local candidate="$1"
|
||||||
|
local version
|
||||||
|
local major
|
||||||
|
|
||||||
|
[[ -x "$candidate" ]] || return 1
|
||||||
|
version="$("$candidate" -version 2>&1 | sed -n '1s/.*version "\([^"]*\)".*/\1/p')"
|
||||||
|
major="${version%%.*}"
|
||||||
|
if [[ "$major" == "1" ]]; then
|
||||||
|
version="${version#*.}"
|
||||||
|
major="${version%%.*}"
|
||||||
|
fi
|
||||||
|
[[ "$major" == "21" ]]
|
||||||
|
}
|
||||||
|
|
||||||
|
java_bin="${JAVA_BIN:-}"
|
||||||
|
if [[ -z "$java_bin" && -d "$prism_java_root" ]]; then
|
||||||
|
for search_pattern in '*/eclipse_temurin_jre21*/bin/java' '*/bin/java'; do
|
||||||
|
while IFS= read -r candidate; do
|
||||||
|
if java_is_compatible "$candidate"; then
|
||||||
|
java_bin="$candidate"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done < <(find "$prism_java_root" -mindepth 3 -maxdepth 3 -type f -path "$search_pattern" -print 2>/dev/null | sort -Vr)
|
||||||
|
[[ -n "$java_bin" ]] && break
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z "$java_bin" ]] && command -v java >/dev/null 2>&1; then
|
||||||
|
candidate="$(command -v java)"
|
||||||
|
if java_is_compatible "$candidate"; then
|
||||||
|
java_bin="$candidate"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z "$java_bin" ]] || ! java_is_compatible "$java_bin"; then
|
||||||
|
printf 'A compatible Java installation was not found. OpenOnyx requires Java 21.\n' >&2
|
||||||
|
printf 'Set JAVA_BIN to the full path of a compatible java executable and try again.\n' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -e "$assets_link" && ! -L "$assets_link" ]]; then
|
||||||
|
ln -s "$assets_dir" "$assets_link"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f "$assets_link/indexes/1.8.json" ]]; then
|
||||||
|
printf 'Minecraft 1.8 assets were not found at:\n %s\n' "$assets_dir" >&2
|
||||||
|
printf 'Set ASSETS_DIR to your PrismLauncher assets folder and try again.\n' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
required_natives=(
|
||||||
|
libjinput-linux64.so
|
||||||
|
liblwjgl-linux-amd64.so
|
||||||
|
libopenal-amd64.so
|
||||||
|
)
|
||||||
|
|
||||||
|
required_libraries=(
|
||||||
|
"$script_dir/rt/libs-linux/lwjgl-2.9.4+legacyfabric.8.jar"
|
||||||
|
"$script_dir/rt/libs-linux/lwjgl_util-2.9.4+legacyfabric.8.jar"
|
||||||
|
"$script_dir/client/onyx.jar"
|
||||||
|
"$script_dir/client/patches.jar"
|
||||||
|
"$script_dir/client/mc-linux.jar"
|
||||||
|
)
|
||||||
|
|
||||||
|
for native in "${required_natives[@]}"; do
|
||||||
|
if [[ ! -f "$native_dir/$native" ]]; then
|
||||||
|
printf 'A required Linux library is missing:\n %s\n' "$native_dir/$native" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
for library in "${required_libraries[@]}"; do
|
||||||
|
if [[ ! -f "$library" ]]; then
|
||||||
|
printf 'A required Linux library is missing:\n %s\n' "$library" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
exec "$java_bin" \
|
||||||
|
-Xms2G -Xmx4G -XX:+UseZGC -XX:+ZGenerational -XX:+AlwaysPreTouch \
|
||||||
|
-Dfile.encoding=UTF-8 \
|
||||||
|
-Donyx.user=admin \
|
||||||
|
-Djava.library.path="$native_dir" \
|
||||||
|
-cp "client/onyx.jar:client/patches.jar:client/mc-linux.jar:rt/libs-linux/*:rt/libs/*" \
|
||||||
|
Start \
|
||||||
|
--username i_use_pastes \
|
||||||
|
--gameDir . \
|
||||||
|
--width 925 \
|
||||||
|
--height 530
|
||||||
Reference in new issue
Block a user