Update README.md, colors.txt, config.sh, and 10 more files for alpha v0.3

This commit is contained in:
Rainer 2025-06-22 02:50:07 +02:00
parent a08a86dc40
commit 6d9651b4ff
13 changed files with 449 additions and 109 deletions

View file

@ -31,7 +31,6 @@ generate_world_detail_page() {
local tiles_subdir_name; tiles_subdir_name=$(get_config_value_from_file "$web_conf_file" "TILES_SUBDIR_NAME" "$DEFAULT_TILES_SUBDIR_NAME")
local web_tiles_rel_path="${WEB_MAPS_BASE_SUBDIR}/${current_world_key}/${tiles_subdir_name}"
# HINZUGEFÜGT: Hintergrundfarbe auslesen
local map_background_color; map_background_color=$(get_config_value_from_file "$web_conf_file" "MM_OPT_BGCOLOR" "$DEFAULT_MM_OPT_BGCOLOR")
local WORLD_DISPLAY_NAME_PAGE; WORLD_DISPLAY_NAME_PAGE=$(get_config_value_from_file "$web_conf_file" "WORLD_DISPLAY_NAME")
@ -173,7 +172,8 @@ generate_world_detail_page() {
"RESOLUTIONS_JS_ARRAY" "$resolutions_array" \
"web_tiles_rel_path" "$web_tiles_rel_path" \
"web_map_info_rel_path" "${WEB_MAPS_BASE_SUBDIR}/${current_world_key}/map_info.txt" \
"map_background_color" "$map_background_color"
"map_background_color" "$map_background_color" \
"DEFAULT_PLAYER_SKIN_URL" "$DEFAULT_PLAYER_SKIN_URL"
local WORLD_RADAR_HTML; WORLD_RADAR_HTML=$(<"$temp_radar_file")
rm "$temp_radar_file"

View file

@ -49,13 +49,9 @@ generate_worlds_overview() {
local detail_page_filename="world_${current_world_key}.html"
local preview_img_rel_path="${WEB_MAPS_BASE_SUBDIR}/${current_world_key}/${current_map_png_filename_for_preview_ov}"
local preview_img_abs_path="${WEB_ROOT_PATH}/${preview_img_rel_path}"
local online_status_text="offline"; local online_status_class="offline"
local status_file_for_overview="${WEB_ROOT_PATH}/${WEB_MAPS_BASE_SUBDIR}/${current_world_key}/online_status.txt"
if [ -f "$status_file_for_overview" ]; then
local status_line_overview
status_line_overview=$(cat "$status_file_for_overview")
if [[ "$status_line_overview" == "online"* ]]; then online_status_text="online"; online_status_class="online"; fi
fi
# KORREKTUR: Logik zur Status-Prüfung entfernt. Stattdessen wird nur der Pfad zur Status-Datei erstellt.
local status_url_path="/${WEB_MAPS_BASE_SUBDIR}/${current_world_key}/online_status.txt"
local preview_img_html
if [ -f "$preview_img_abs_path" ]; then
@ -70,8 +66,7 @@ generate_worlds_overview() {
"detail_page_filename" "$detail_page_filename" \
"preview_img_html" "$preview_img_html" \
"world_display_name_ov" "$world_display_name_ov" \
"online_status_class" "$online_status_class" \
"online_status_text" "$online_status_text" \
"status_url" "$status_url_path" \
"admin_name_ov" "$admin_name_ov" \
"world_short_desc_ov" "$world_short_desc_ov"
cat "$temp_overview_entry_file" >> "$overview_file"