Compare commits

...

13 Commits

Author SHA1 Message Date
sanasol
fcf041be39 v2.4.7: Fix Linux SDL3_image crash and NVIDIA Wayland stability
- Add LD_LIBRARY_PATH with Client directory so the dynamic linker finds
  bundled native libraries (libSDL3_image.so.0, etc). Official Hytale
  uses Flatpak which provides these; F2P runs natively and needs this.
- Add __NV_DISABLE_EXPLICIT_SYNC=1 for NVIDIA on Wayland to prevent
  crashes on Hyprland and other Wayland compositors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 20:11:42 +01:00
sanasol
d53ac915f3 Update fastutil classloader issue docs: outdated HytaleServer.jar identified as root cause, add fix steps for users 2026-02-28 18:30:33 +01:00
sanasol
7347910fe9 feat: identity protection UI, duplicate guards, name-lock enforcement (v2.4.6)
- Add password set/change/remove with loading states and double-click prevention
- Add protected identity deletion flow (server-side password removal first)
- Add restore flow for password-protected UUIDs (verify password before saving)
- Add UUID duplicate checks in setUuidForUser (prevent accidental overwrites)
- Add name-locked error handling in launch flow (server enforces registered name)
- Sync shield icon across all identity mutation paths
- Refresh identity dropdown after all password/identity operations
- Propagate force flag through IPC for legitimate overwrites

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 18:22:40 +01:00
sanasol
0b861904ba feat: add password protection UI and fix launch flow
- Password management UI in settings (set/change/remove password)
- Shield icon on play button for protected identities
- Interactive password popup on launch with inline error display
- Fix: re-throw password errors instead of falling to local tokens
- Fix: password popup properly cleans up on success/cancel
- Fix: expose updatePasswordShieldIcon for cross-module access

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 16:45:46 +01:00
sanasol
ee53911a06 Revert debug builds, update fastutil issue docs
Agent and -Xshare:off both ruled out as causes.
Restored normal agent injection. Updated docs with
complete findings — issue remains unsolved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 23:15:01 +01:00
sanasol
43a2b6d004 debug: disable DualAuth agent to test fastutil classloader issue
Temporarily skip -javaagent injection to determine if agent's
appendToBootstrapClassLoaderSearch() causes the fastutil
ClassNotFoundException on affected Windows systems.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 22:47:46 +01:00
sanasol
ce6455314d debug: add -Xshare:off to JAVA_TOOL_OPTIONS to test fastutil classloader fix
Disables JVM Class Data Sharing when DualAuth agent is active.
May fix singleplayer crash (NoClassDefFoundError: fastutil) on some Windows systems
where appendToBootstrapClassLoaderSearch breaks CDS classloading.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 22:32:50 +01:00
sanasol
3abdd10cab v2.4.5: Add multi-instance setting for mod developers
Allow running multiple game clients simultaneously via a new
"Allow multiple game instances" toggle in Settings. When enabled,
skips the Electron single-instance lock and the pre-launch process
kill, so existing game instances stay alive.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 21:52:13 +01:00
sanasol
e1a3f919a2 Fix JRE flatten failing silently on Windows EPERM
When extracting the bundled JRE, flattenJREDir renames files from
the nested jdk subdirectory up one level. On Windows this fails with
EPERM when antivirus or file indexing holds handles open, leaving
the JRE nested and unfindable — causing "Server failed to boot".

- Fall back to copy+delete when rename gets EPERM/EACCES/EBUSY
- getBundledJavaPath checks nested JRE subdirs as last resort
2026-02-26 23:39:43 +01:00
sanasol
e3fe1b6a10 Delete server/commit-msg.txt 2026-02-26 19:45:57 +00:00
sanasol
7042188696 fix: use HTTP for uploads, add debug output
- Switch upload URL to HTTP (port 3000) to bypass expired SSL cert
- Add HTTP status code and response body to upload output for debugging
- Upload URL kept in secret (FORGEJO_UPLOAD_URL), not exposed in workflow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 20:29:26 +01:00
sanasol
c067efbcea fix: add -k to curl uploads to bypass expired IP cert
The Let's Encrypt certificate on the direct IP (208.69.78.130) expired
and HTTP-01 challenge renewal is failing due to port 80 being blocked.
Adding -k skips cert verification while keeping TLS encryption.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 20:20:55 +01:00
sanasol
b83b728d21 v2.4.4: Rename Profiles to Configurations, add Identity Switcher
- Rename "Profiles" to "Configurations" in all UI text and 11 locale files
- Add identity switcher dropdown in header (green accent, fa-id-badge icon)
- Quick-switch player identity without opening Settings
- "Manage" action opens UUID Management modal
- Header tooltips explaining what each dropdown does
- Config dropdown icon changed from fa-user-circle to fa-sliders-h
- Global Escape key handler for closing modals and dropdowns
- Fix identity selector not clickable (missing -webkit-app-region: no-drag)
- Sync header identity name after all identity-changing operations
- XSS protection in identity list rendering

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 20:01:40 +01:00
27 changed files with 2433 additions and 348 deletions

View File

@@ -52,12 +52,20 @@ jobs:
run: | run: |
RELEASE_ID=$(curl -s "${FORGEJO_API}/repos/${GITHUB_REPOSITORY}/releases/tags/${{ github.ref_name }}" \ RELEASE_ID=$(curl -s "${FORGEJO_API}/repos/${GITHUB_REPOSITORY}/releases/tags/${{ github.ref_name }}" \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" | python3 -c 'import sys,json; print(json.load(sys.stdin)["id"])') -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" | python3 -c 'import sys,json; print(json.load(sys.stdin)["id"])')
echo "Release ID: ${RELEASE_ID}"
echo "Upload URL: ${FORGEJO_UPLOAD}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets"
for file in dist/*.exe dist/*.exe.blockmap dist/latest.yml; do for file in dist/*.exe dist/*.exe.blockmap dist/latest.yml; do
[ -f "$file" ] || continue [ -f "$file" ] || continue
echo "Uploading $file..." echo "Uploading $file ($(stat -c%s "$file" 2>/dev/null || stat -f%z "$file") bytes)..."
curl -s --max-time 600 -X POST "${FORGEJO_UPLOAD}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=$(basename $file)" \ HTTP_CODE=$(curl -w '%{http_code}' --max-time 600 -X POST "${FORGEJO_UPLOAD}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=$(basename $file)" \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
-F "attachment=@${file}" || echo "Failed to upload $file" -F "attachment=@${file}" -o /tmp/upload_response.txt 2>/tmp/upload_err.txt)
if [ "$HTTP_CODE" = "201" ]; then
echo "OK — uploaded $(basename $file)"
else
echo "FAILED (HTTP $HTTP_CODE): $(cat /tmp/upload_response.txt)"
echo "Curl stderr: $(cat /tmp/upload_err.txt)"
fi
done done
build-macos: build-macos:
@@ -83,12 +91,19 @@ jobs:
run: | run: |
RELEASE_ID=$(curl -s "${FORGEJO_API}/repos/${GITHUB_REPOSITORY}/releases/tags/${{ github.ref_name }}" \ RELEASE_ID=$(curl -s "${FORGEJO_API}/repos/${GITHUB_REPOSITORY}/releases/tags/${{ github.ref_name }}" \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" | python3 -c 'import sys,json; print(json.load(sys.stdin)["id"])') -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" | python3 -c 'import sys,json; print(json.load(sys.stdin)["id"])')
echo "Release ID: ${RELEASE_ID}"
for file in dist/*.dmg dist/*.zip dist/*.blockmap dist/latest-mac.yml; do for file in dist/*.dmg dist/*.zip dist/*.blockmap dist/latest-mac.yml; do
[ -f "$file" ] || continue [ -f "$file" ] || continue
echo "Uploading $file..." echo "Uploading $file..."
curl -s --max-time 600 -X POST "${FORGEJO_UPLOAD}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=$(basename $file)" \ HTTP_CODE=$(curl -w '%{http_code}' --max-time 600 -X POST "${FORGEJO_UPLOAD}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=$(basename $file)" \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
-F "attachment=@${file}" || echo "Failed to upload $file" -F "attachment=@${file}" -o /tmp/upload_response.txt 2>/tmp/upload_err.txt)
if [ "$HTTP_CODE" = "201" ]; then
echo "OK — uploaded $(basename $file)"
else
echo "FAILED (HTTP $HTTP_CODE): $(cat /tmp/upload_response.txt)"
echo "Curl stderr: $(cat /tmp/upload_err.txt)"
fi
done done
build-linux: build-linux:
@@ -113,10 +128,17 @@ jobs:
run: | run: |
RELEASE_ID=$(curl -s "${FORGEJO_API}/repos/${GITHUB_REPOSITORY}/releases/tags/${{ github.ref_name }}" \ RELEASE_ID=$(curl -s "${FORGEJO_API}/repos/${GITHUB_REPOSITORY}/releases/tags/${{ github.ref_name }}" \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" | python3 -c 'import sys,json; print(json.load(sys.stdin)["id"])') -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" | python3 -c 'import sys,json; print(json.load(sys.stdin)["id"])')
echo "Release ID: ${RELEASE_ID}"
for file in dist/*.AppImage dist/*.AppImage.blockmap dist/*.deb dist/*.rpm dist/*.pacman dist/latest-linux.yml; do for file in dist/*.AppImage dist/*.AppImage.blockmap dist/*.deb dist/*.rpm dist/*.pacman dist/latest-linux.yml; do
[ -f "$file" ] || continue [ -f "$file" ] || continue
echo "Uploading $file..." echo "Uploading $file ($(stat -c%s "$file" 2>/dev/null || stat -f%z "$file") bytes)..."
curl -s --max-time 600 -X POST "${FORGEJO_UPLOAD}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=$(basename $file)" \ HTTP_CODE=$(curl -w '%{http_code}' --max-time 600 -X POST "${FORGEJO_UPLOAD}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=$(basename $file)" \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
-F "attachment=@${file}" || echo "Failed to upload $file" -F "attachment=@${file}" -o /tmp/upload_response.txt 2>/tmp/upload_err.txt)
if [ "$HTTP_CODE" = "201" ]; then
echo "OK — uploaded $(basename $file)"
else
echo "FAILED (HTTP $HTTP_CODE): $(cat /tmp/upload_response.txt)"
echo "Curl stderr: $(cat /tmp/upload_err.txt)"
fi
done done

View File

@@ -73,22 +73,41 @@
<span id="onlineCount" class="counter-value">0</span> <span id="onlineCount" class="counter-value">0</span>
</div> </div>
<div class="identity-selector" id="identitySelector">
<button class="identity-btn" onclick="toggleIdentityDropdown()">
<i class="fas fa-id-badge"></i>
<span id="currentIdentityName">Player</span>
<i id="passwordShieldIcon" class="fas fa-unlock password-shield unprotected" data-tooltip="Click to protect identity" onclick="event.stopPropagation(); openPasswordModal()"></i>
<i class="fas fa-chevron-down"></i>
</button>
<div class="identity-dropdown" id="identityDropdown">
<div class="identity-list" id="identityList"></div>
<div class="identity-divider"></div>
<div class="identity-action" onclick="openIdentityManager()">
<i class="fas fa-fingerprint"></i>
<span data-i18n="header.manageIdentities">Manage</span>
</div>
</div>
<span class="header-tooltip" data-i18n="header.identityTooltip">Your player name &amp; UUID used in-game</span>
</div>
<div class="profile-selector" id="profileSelector"> <div class="profile-selector" id="profileSelector">
<button class="profile-btn" onclick="toggleProfileDropdown()"> <button class="profile-btn" onclick="toggleProfileDropdown()">
<i class="fas fa-user-circle"></i> <i class="fas fa-sliders-h"></i>
<span id="currentProfileName">Default</span> <span id="currentProfileName">Default</span>
<i class="fas fa-chevron-down"></i> <i class="fas fa-chevron-down"></i>
</button> </button>
<div class="profile-dropdown" id="profileDropdown"> <div class="profile-dropdown" id="profileDropdown">
<div class="profile-list" id="profileList"> <div class="profile-list" id="profileList">
<!-- Profiles populated by JS --> <!-- Configurations populated by JS -->
</div> </div>
<div class="profile-divider"></div> <div class="profile-divider"></div>
<div class="profile-action" onclick="openProfileManager()"> <div class="profile-action" onclick="openProfileManager()">
<i class="fas fa-cog"></i> <i class="fas fa-cog"></i>
<span data-i18n="header.manageProfiles">Manage Profiles</span> <span data-i18n="header.manageProfiles">Manage</span>
</div> </div>
</div> </div>
<span class="header-tooltip" data-i18n="header.configTooltip">Game config: mods, Java &amp; memory settings</span>
</div> </div>
<div class="window-controls"> <div class="window-controls">
@@ -574,6 +593,18 @@
</div> </div>
</label> </label>
</div> </div>
<div class="settings-option">
<label class="settings-checkbox">
<input type="checkbox" id="allowMultiInstanceCheck" />
<span class="checkmark"></span>
<div class="checkbox-content">
<div class="checkbox-title" data-i18n="settings.allowMultiInstance">Allow multiple game instances</div>
<div class="checkbox-description" data-i18n="settings.allowMultiInstanceDescription">
Allow running multiple game clients at the same time (useful for mod development)
</div>
</div>
</label>
</div>
<div class="settings-option"> <div class="settings-option">
<label class="settings-checkbox"> <label class="settings-checkbox">
<input type="checkbox" id="launcherHwAccelCheck" /> <input type="checkbox" id="launcherHwAccelCheck" />
@@ -736,28 +767,40 @@
</div> </div>
<div class="uuid-modal-body"> <div class="uuid-modal-body">
<div class="uuid-current-section">
<h3 class="uuid-section-title" data-i18n="uuid.currentUserUUID">Current User UUID</h3>
<div class="uuid-current-display">
<input type="text" id="modalCurrentUuid" class="uuid-display-input" readonly />
<button id="modalCopyUuidBtn" class="uuid-action-btn copy-btn" title="Copy UUID">
<i class="fas fa-copy"></i>
</button>
<button id="modalRegenerateUuidBtn" class="uuid-action-btn regenerate-btn"
title="Generate New UUID">
<i class="fas fa-sync-alt"></i>
</button>
</div>
</div>
<div class="uuid-list-section"> <div class="uuid-list-section">
<div class="uuid-list-header"> <div class="uuid-list-header">
<h3 class="uuid-section-title" data-i18n="uuid.allPlayerUUIDs">All Player UUIDs</h3> <h3 class="uuid-section-title" data-i18n="uuid.allPlayerUUIDs">All Player UUIDs</h3>
<button id="generateNewUuidBtn" class="uuid-generate-btn"> <button id="addIdentityBtn" class="uuid-generate-btn">
<i class="fas fa-plus"></i> <i class="fas fa-plus"></i>
<span data-i18n="uuid.generateNew">Generate New UUID</span> <span data-i18n="uuid.addIdentity">Add Identity</span>
</button> </button>
</div> </div>
<div id="uuidAddForm" class="uuid-add-form" style="display: none;">
<div class="uuid-add-form-row">
<input type="text" id="addIdentityUsername" class="uuid-input"
data-i18n-placeholder="uuid.usernamePlaceholder"
placeholder="Username" maxlength="16" />
</div>
<div class="uuid-add-form-row">
<input type="text" id="addIdentityUuid" class="uuid-input"
data-i18n-placeholder="uuid.customPlaceholder"
placeholder="UUID (auto-generated)" maxlength="36" />
<button id="addIdentityRegenerateBtn" class="uuid-action-btn regenerate-btn"
title="Generate new UUID">
<i class="fas fa-sync-alt"></i>
</button>
</div>
<div class="uuid-add-form-actions">
<button id="addIdentityConfirmBtn" class="uuid-set-btn">
<i class="fas fa-check"></i>
<span data-i18n="uuid.add">Add</span>
</button>
<button id="addIdentityCancelBtn" class="uuid-cancel-btn">
<i class="fas fa-times"></i>
<span data-i18n="uuid.cancel">Cancel</span>
</button>
</div>
</div>
<div id="uuidList" class="uuid-list"> <div id="uuidList" class="uuid-list">
<div class="uuid-loading"> <div class="uuid-loading">
<i class="fas fa-spinner fa-spin"></i> <i class="fas fa-spinner fa-spin"></i>
@@ -766,21 +809,62 @@
</div> </div>
</div> </div>
<div class="uuid-custom-section"> <div class="uuid-advanced-section">
<h3 class="uuid-section-title" data-i18n="uuid.setCustomUUID">Set Custom UUID</h3> <button id="uuidAdvancedToggle" class="uuid-advanced-toggle">
<div class="uuid-custom-form"> <i class="fas fa-chevron-right uuid-advanced-chevron"></i>
<input type="text" id="customUuidInput" class="uuid-input" <span data-i18n="uuid.advanced">Advanced</span>
data-i18n-placeholder="uuid.customPlaceholder" maxlength="36" /> </button>
<button id="setCustomUuidBtn" class="uuid-set-btn"> <div id="uuidAdvancedContent" class="uuid-advanced-content" style="display: none;">
<i class="fas fa-check"></i> <h3 class="uuid-section-title" data-i18n="uuid.setCustomUUID">Set Custom UUID</h3>
<span data-i18n="uuid.setUUID">Set UUID</span> <div class="uuid-custom-form">
</button> <input type="text" id="customUuidInput" class="uuid-input"
data-i18n-placeholder="uuid.customPlaceholder" maxlength="36" />
<button id="setCustomUuidBtn" class="uuid-set-btn">
<i class="fas fa-check"></i>
<span data-i18n="uuid.setUUID">Set UUID</span>
</button>
</div>
<p class="uuid-custom-hint">
<i class="fas fa-exclamation-triangle"></i>
<span data-i18n="uuid.warning">Warning: Setting a custom UUID will change your current player
identity</span>
</p>
</div>
</div>
<div class="uuid-advanced-section" style="margin-top: 12px;">
<button id="passwordSectionToggle" class="uuid-advanced-toggle">
<i class="fas fa-chevron-right uuid-advanced-chevron"></i>
<span>Password Protection</span>
</button>
<div id="passwordSectionContent" class="uuid-advanced-content" style="display: none;">
<h3 class="uuid-section-title">Protect Your Identity</h3>
<p class="uuid-custom-hint" style="margin-bottom: 12px;">
<i class="fas fa-shield-alt"></i>
<span>Set a password to prevent others from using your UUID</span>
</p>
<div id="passwordStatusMsg" class="uuid-custom-hint" style="margin-bottom: 8px; color: #93a3b8;"></div>
<div id="passwordSetForm">
<div class="uuid-custom-form" style="margin-bottom: 8px;">
<input type="password" id="currentPasswordInput" class="uuid-input"
placeholder="Current password" style="display: none;" />
</div>
<div class="uuid-custom-form" style="margin-bottom: 8px;">
<input type="password" id="newPasswordInput" class="uuid-input"
placeholder="New password (min 6 chars)" />
</div>
<div class="uuid-custom-form">
<button id="setPasswordBtn" class="uuid-set-btn" onclick="handleSetPassword()">
<i class="fas fa-lock"></i>
<span>Set Password</span>
</button>
<button id="removePasswordBtn" class="uuid-cancel-btn" onclick="handleRemovePassword()" style="display: none;">
<i class="fas fa-unlock"></i>
<span>Remove Password</span>
</button>
</div>
</div>
</div> </div>
<p class="uuid-custom-hint">
<i class="fas fa-exclamation-triangle"></i>
<span data-i18n="uuid.warning">Warning: Setting a custom UUID will change your current player
identity</span>
</p>
</div> </div>
</div> </div>
</div> </div>
@@ -791,8 +875,8 @@
<div class="profile-modal-content"> <div class="profile-modal-content">
<div class="profile-modal-header"> <div class="profile-modal-header">
<h2 class="profile-modal-title"> <h2 class="profile-modal-title">
<i class="fas fa-users-cog mr-2"></i> <i class="fas fa-sliders-h mr-2"></i>
<span data-i18n="profiles.modalTitle">Manage Profiles</span> <span data-i18n="configurations.modalTitle">Manage Configurations</span>
</h2> </h2>
<button class="modal-close-btn" onclick="closeProfileManager()"> <button class="modal-close-btn" onclick="closeProfileManager()">
<i class="fas fa-times"></i> <i class="fas fa-times"></i>
@@ -803,16 +887,69 @@
<!-- Populated by JS --> <!-- Populated by JS -->
</div> </div>
<div class="profile-create-section"> <div class="profile-create-section">
<input type="text" id="newProfileName" data-i18n-placeholder="profiles.newProfilePlaceholder" <input type="text" id="newProfileName" data-i18n-placeholder="configurations.newProfilePlaceholder"
class="profile-input" maxlength="20"> class="profile-input" maxlength="20">
<button class="profile-create-btn" onclick="createNewProfile()"> <button class="profile-create-btn" onclick="createNewProfile()">
<i class="fas fa-plus"></i> <span data-i18n="profiles.createProfile">Create Profile</span> <i class="fas fa-plus"></i> <span data-i18n="configurations.createProfile">Create Configuration</span>
</button> </button>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- Password Protection Modal -->
<div id="passwordModal" class="uuid-modal" style="display: none;">
<div class="uuid-modal-content" style="max-width: 420px;">
<div class="uuid-modal-header">
<h2 class="uuid-modal-title">
<i class="fas fa-shield-alt mr-2"></i>
<span>Identity Protection</span>
</h2>
<button class="modal-close-btn" onclick="closePasswordModal()">
<i class="fas fa-times"></i>
</button>
</div>
<div class="uuid-modal-body" style="padding: 16px 20px;">
<div style="display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06);">
<i class="fas fa-user" style="color: #22c55e; font-size: 1.2em;"></i>
<div style="flex:1; min-width:0;">
<div id="pwModalName" style="font-weight: 600; font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">Player</div>
<div id="pwModalUuid" style="font-size: 0.7em; color: #6b7280; font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"></div>
</div>
<div id="pwModalStatusBadge" style="flex-shrink:0;"></div>
</div>
<div id="pwModalStatusText" style="margin-bottom: 14px; font-size: 0.85em; color: #93a3b8; text-align: center;"></div>
<div id="pwModalSetForm">
<div style="margin-bottom: 10px;">
<input type="password" id="pwModalCurrentPassword" class="uuid-input"
placeholder="Current password" style="display: none; width: 100%;" />
</div>
<div style="margin-bottom: 10px;">
<input type="password" id="pwModalNewPassword" class="uuid-input"
placeholder="New password (min 6 chars)" style="width: 100%;" />
</div>
<div style="display: flex; gap: 8px;">
<button id="pwModalSetBtn" class="uuid-set-btn" style="flex:1;" onclick="handlePasswordModalSet()">
<i class="fas fa-lock"></i>
<span>Set Password</span>
</button>
<button id="pwModalRemoveBtn" class="uuid-cancel-btn" style="display: none;" onclick="handlePasswordModalRemove()">
<i class="fas fa-unlock"></i>
<span>Remove</span>
</button>
</div>
</div>
<div id="pwModalUsernameInfo" style="margin-top: 14px; padding: 10px; background: rgba(34,197,94,0.06); border-radius: 6px; border: 1px solid rgba(34,197,94,0.15); font-size: 0.8em; color: #93a3b8; display: none;">
<i class="fas fa-info-circle" style="color: #22c55e;"></i>
<span>Setting a password also reserves your username — no one else can use it.</span>
</div>
</div>
</div>
</div>
<div class="version-display-bottom"> <div class="version-display-bottom">
<i class="fas fa-code-branch"></i> <i class="fas fa-code-branch"></i>
<span id="launcherVersion"></span> <span id="launcherVersion"></span>

View File

@@ -35,13 +35,21 @@ export function setupLauncher() {
// Initial Profile Load // Initial Profile Load
loadProfiles(); loadProfiles();
// Close dropdown on outside click // Initial Identity Load
loadIdentities();
// Close dropdowns on outside click
document.addEventListener('click', (e) => { document.addEventListener('click', (e) => {
const selector = document.getElementById('profileSelector'); const profileSelector = document.getElementById('profileSelector');
if (selector && !selector.contains(e.target)) { if (profileSelector && !profileSelector.contains(e.target)) {
const dropdown = document.getElementById('profileDropdown'); const dropdown = document.getElementById('profileDropdown');
if (dropdown) dropdown.classList.remove('show'); if (dropdown) dropdown.classList.remove('show');
} }
const identitySelector = document.getElementById('identitySelector');
if (identitySelector && !identitySelector.contains(e.target)) {
const dropdown = document.getElementById('identityDropdown');
if (dropdown) dropdown.classList.remove('show');
}
}); });
} }
@@ -83,7 +91,7 @@ function renderProfileList(profiles, activeProfile) {
managerList.innerHTML = profiles.map(p => ` managerList.innerHTML = profiles.map(p => `
<div class="profile-manager-item ${p.id === activeProfile.id ? 'active' : ''}"> <div class="profile-manager-item ${p.id === activeProfile.id ? 'active' : ''}">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<i class="fas fa-user-circle text-xl text-gray-400"></i> <i class="fas fa-sliders-h text-xl text-gray-400"></i>
<div> <div>
<div class="font-bold">${p.name}</div> <div class="font-bold">${p.name}</div>
<div class="text-xs text-gray-500">ID: ${p.id.substring(0, 8)}...</div> <div class="text-xs text-gray-500">ID: ${p.id.substring(0, 8)}...</div>
@@ -106,13 +114,6 @@ function updateCurrentProfileUI(profile) {
} }
} }
window.toggleProfileDropdown = () => {
const dropdown = document.getElementById('profileDropdown');
if (dropdown) {
dropdown.classList.toggle('show');
}
};
window.openProfileManager = () => { window.openProfileManager = () => {
const modal = document.getElementById('profileManagerModal'); const modal = document.getElementById('profileManagerModal');
if (modal) { if (modal) {
@@ -146,7 +147,7 @@ window.createNewProfile = async () => {
}; };
window.deleteProfile = async (id) => { window.deleteProfile = async (id) => {
if (!confirm('Are you sure you want to delete this profile? parameters and mods configuration will be lost.')) return; if (!confirm('Are you sure you want to delete this configuration? Mod settings will be lost.')) return;
try { try {
await window.electronAPI.profile.delete(id); await window.electronAPI.profile.delete(id);
@@ -160,7 +161,7 @@ window.deleteProfile = async (id) => {
window.switchProfile = async (id) => { window.switchProfile = async (id) => {
try { try {
if (window.LauncherUI) window.LauncherUI.showProgress(); if (window.LauncherUI) window.LauncherUI.showProgress();
const switchingMsg = window.i18n ? window.i18n.t('progress.switchingProfile') : 'Switching Profile...'; const switchingMsg = window.i18n ? window.i18n.t('progress.switchingProfile') : 'Switching configuration...';
if (window.LauncherUI) window.LauncherUI.updateProgress({ message: switchingMsg }); if (window.LauncherUI) window.LauncherUI.updateProgress({ message: switchingMsg });
await window.electronAPI.profile.activate(id); await window.electronAPI.profile.activate(id);
@@ -179,7 +180,7 @@ window.switchProfile = async (id) => {
if (dropdown) dropdown.classList.remove('show'); if (dropdown) dropdown.classList.remove('show');
if (window.LauncherUI) { if (window.LauncherUI) {
const switchedMsg = window.i18n ? window.i18n.t('progress.profileSwitched') : 'Profile Switched!'; const switchedMsg = window.i18n ? window.i18n.t('progress.profileSwitched') : 'Configuration switched!';
window.LauncherUI.updateProgress({ message: switchedMsg }); window.LauncherUI.updateProgress({ message: switchedMsg });
setTimeout(() => window.LauncherUI.hideProgress(), 1000); setTimeout(() => window.LauncherUI.hideProgress(), 1000);
} }
@@ -192,7 +193,8 @@ window.switchProfile = async (id) => {
}; };
export async function launch() { export async function launch() {
if (isDownloading || (playBtn && playBtn.disabled)) return; const btn = homePlayBtn || playBtn;
if (isDownloading || (btn && btn.disabled)) return;
// ========================================================================== // ==========================================================================
// STEP 1: Check launch readiness from backend (single source of truth) // STEP 1: Check launch readiness from backend (single source of truth)
@@ -270,11 +272,7 @@ export async function launch() {
// STEP 3: Start launch process // STEP 3: Start launch process
// ========================================================================== // ==========================================================================
if (window.LauncherUI) window.LauncherUI.showProgress(); if (window.LauncherUI) window.LauncherUI.showProgress();
isDownloading = true; lockPlayButton('LAUNCHING...');
if (playBtn) {
playBtn.disabled = true;
playText.textContent = 'LAUNCHING...';
}
try { try {
const startingMsg = window.i18n ? window.i18n.t('progress.startingGame') : 'Starting game...'; const startingMsg = window.i18n ? window.i18n.t('progress.startingGame') : 'Starting game...';
@@ -284,20 +282,92 @@ export async function launch() {
// Pass playerName from config - backend will validate again // Pass playerName from config - backend will validate again
const result = await window.electronAPI.launchGame(playerName, javaPath, '', gpuPreference); const result = await window.electronAPI.launchGame(playerName, javaPath, '', gpuPreference);
isDownloading = false; if (result.usernameTaken) {
// Username reserved by another player
if (window.LauncherUI) { isDownloading = false;
window.LauncherUI.hideProgress(); if (window.LauncherUI) window.LauncherUI.hideProgress();
resetPlayButton();
if (window.LauncherUI && window.LauncherUI.showError) {
window.LauncherUI.showError('This username is reserved by another player. Please change your player name in Identity settings.');
} else {
showNotification('This username is reserved by another player. Please change your player name.', 'error');
}
return;
}
if (result.nameLocked) {
// UUID is password-protected and locked to a specific name
isDownloading = false;
if (window.LauncherUI) window.LauncherUI.hideProgress();
resetPlayButton();
const msg = result.registeredName
? `This UUID is locked to username "${result.registeredName}". Change your identity name to "${result.registeredName}" in Settings.`
: 'This UUID is locked to a different username. Check your identity settings.';
if (window.LauncherUI && window.LauncherUI.showError) {
window.LauncherUI.showError(msg);
} else {
showNotification(msg, 'error');
}
return;
}
if (result.passwordRequired) {
// Check for saved password first
let savedPw = null;
try {
const cfg = await window.electronAPI.loadConfig();
const uuid = result.uuid || '';
savedPw = cfg && cfg.savedPasswords && cfg.savedPasswords[uuid] ? cfg.savedPasswords[uuid] : null;
} catch (e) { /* ignore */ }
if (savedPw) {
// Try saved password silently
if (window.LauncherUI) window.LauncherUI.showProgress();
lockPlayButton('LAUNCHING...');
const autoResult = await window.electronAPI.launchGameWithPassword(playerName, javaPath, '', gpuPreference, savedPw);
if (autoResult.success) {
isDownloading = false;
if (window.LauncherUI) window.LauncherUI.hideProgress();
resetPlayButton();
if (window.electronAPI.minimizeWindow) setTimeout(() => { window.electronAPI.minimizeWindow(); }, 500);
return;
}
// Saved password failed — clear it and show popup
isDownloading = false;
if (window.LauncherUI) window.LauncherUI.hideProgress();
resetPlayButton();
try {
const cfg2 = await window.electronAPI.loadConfig();
const sp = cfg2.savedPasswords || {};
delete sp[result.uuid || ''];
await window.electronAPI.saveConfig({ savedPasswords: sp });
} catch (e) { /* ignore */ }
}
// Show interactive password dialog
const launchResult = await promptForPasswordAndLaunch(playerName, javaPath, gpuPreference, result.uuid);
if (launchResult && launchResult.success) {
if (window.electronAPI.minimizeWindow) setTimeout(() => { window.electronAPI.minimizeWindow(); }, 500);
}
return;
} }
resetPlayButton();
if (result.success) { if (result.success) {
// Keep button locked so user can't double-launch
if (window.LauncherUI) window.LauncherUI.hideProgress();
lockPlayButton('GAME RUNNING');
setTimeout(() => {
resetPlayButton();
}, 10000); // Reset after 10s (game should be visible by then)
if (window.electronAPI.minimizeWindow) { if (window.electronAPI.minimizeWindow) {
setTimeout(() => { setTimeout(() => {
window.electronAPI.minimizeWindow(); window.electronAPI.minimizeWindow();
}, 500); }, 500);
} }
} else { } else {
isDownloading = false;
if (window.LauncherUI) window.LauncherUI.hideProgress();
resetPlayButton();
console.error('[Launcher] Launch failed:', result.error); console.error('[Launcher] Launch failed:', result.error);
// Handle specific error cases // Handle specific error cases
@@ -353,6 +423,187 @@ export async function launch() {
} }
} }
function promptForPasswordAndLaunch(playerName, javaPath, gpuPreference, uuid) {
return new Promise((resolve) => {
// Remove any existing password prompt
const existing = document.querySelector('.custom-confirm-modal');
if (existing) existing.remove();
const overlay = document.createElement('div');
overlay.className = 'custom-confirm-modal';
overlay.style.cssText = `
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(4px);
z-index: 20000;
display: flex;
align-items: center;
justify-content: center;
`;
const dialog = document.createElement('div');
dialog.style.cssText = `
background: #1f2937;
border-radius: 12px;
padding: 0;
min-width: 380px;
max-width: 420px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
`;
dialog.innerHTML = `
<div style="padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1);">
<div style="display: flex; align-items: center; gap: 10px; color: #f59e0b;">
<i class="fas fa-lock" style="font-size: 20px;"></i>
<h3 style="margin: 0; font-size: 1.1rem; font-weight: 600; color: #e5e7eb;">Password Required</h3>
</div>
</div>
<div style="padding: 20px 24px;">
<p style="margin: 0 0 12px 0; color: #9ca3af; font-size: 0.9rem; line-height: 1.5;">This identity is password-protected. Enter your password to continue.</p>
<div id="pwErrorMsg" style="display: none; margin-bottom: 12px; padding: 8px 12px; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); border-radius: 6px; color: #f87171; font-size: 0.85rem;"></div>
<input type="password" id="launchPasswordInput" style="
width: 100%;
box-sizing: border-box;
padding: 10px 14px;
background: rgba(0,0,0,0.3);
border: 1px solid rgba(255,255,255,0.15);
border-radius: 8px;
color: #e5e7eb;
font-size: 0.95rem;
outline: none;
" placeholder="Password" autofocus />
<label style="display: flex; align-items: center; gap: 8px; margin-top: 12px; cursor: pointer; color: #9ca3af; font-size: 0.85rem; user-select: none;">
<input type="checkbox" id="pwRememberCheck" style="accent-color: #f59e0b; width: 16px; height: 16px; cursor: pointer;" />
Remember password
</label>
</div>
<div style="padding: 16px 24px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid rgba(255,255,255,0.1);">
<button id="pwCancelBtn" style="
background: transparent;
color: #9ca3af;
border: 1px solid rgba(156,163,175,0.3);
padding: 9px 18px;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
">Cancel</button>
<button id="pwConfirmBtn" style="
background: #f59e0b;
color: #000;
border: none;
padding: 9px 18px;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
font-size: 0.9rem;
">Login</button>
</div>
`;
overlay.appendChild(dialog);
document.body.appendChild(overlay);
const input = overlay.querySelector('#launchPasswordInput');
const confirmBtn = overlay.querySelector('#pwConfirmBtn');
const cancelBtn = overlay.querySelector('#pwCancelBtn');
const errorMsg = overlay.querySelector('#pwErrorMsg');
const rememberCheck = overlay.querySelector('#pwRememberCheck');
let busy = false;
const close = (result) => {
overlay.remove();
isDownloading = false;
if (window.LauncherUI) window.LauncherUI.hideProgress();
resetPlayButton();
resolve(result);
};
const showError = (msg) => {
errorMsg.textContent = msg;
errorMsg.style.display = 'block';
input.style.borderColor = 'rgba(239,68,68,0.5)';
input.value = '';
input.focus();
};
const tryLogin = async () => {
const password = input.value;
if (!password) {
showError('Please enter your password.');
return;
}
if (busy) return;
busy = true;
// Show loading state
confirmBtn.disabled = true;
confirmBtn.textContent = 'Logging in...';
errorMsg.style.display = 'none';
input.style.borderColor = 'rgba(255,255,255,0.15)';
try {
if (window.LauncherUI) window.LauncherUI.showProgress();
lockPlayButton('LAUNCHING...');
const result = await window.electronAPI.launchGameWithPassword(playerName, javaPath, '', gpuPreference, password);
if (result.success) {
// Save password if "Remember" checked
if (rememberCheck.checked && uuid) {
try {
const cfg = await window.electronAPI.loadConfig();
const sp = cfg.savedPasswords || {};
sp[uuid] = password;
await window.electronAPI.saveConfig({ savedPasswords: sp });
} catch (e) { /* ignore */ }
}
overlay.remove();
isDownloading = false;
if (window.LauncherUI) window.LauncherUI.hideProgress();
resetPlayButton();
resolve(result);
return;
}
// Wrong password
if (result.passwordRequired) {
showError(result.error || 'Incorrect password. Please try again.');
} else {
showError(result.error || 'Launch failed.');
}
isDownloading = false;
if (window.LauncherUI) window.LauncherUI.hideProgress();
resetPlayButton();
} catch (err) {
showError(err.message || 'An error occurred.');
isDownloading = false;
if (window.LauncherUI) window.LauncherUI.hideProgress();
resetPlayButton();
} finally {
busy = false;
confirmBtn.disabled = false;
confirmBtn.textContent = 'Login';
}
};
confirmBtn.addEventListener('click', tryLogin);
cancelBtn.addEventListener('click', () => close(null));
input.addEventListener('keydown', (e) => {
if (e.key === 'Enter') tryLogin();
if (e.key === 'Escape') close(null);
});
setTimeout(() => input.focus(), 100);
});
}
function showCustomConfirm(message, title, onConfirm, onCancel = null, confirmText, cancelText) { function showCustomConfirm(message, title, onConfirm, onCancel = null, confirmText, cancelText) {
// Apply defaults with i18n support // Apply defaults with i18n support
title = title || (window.i18n ? window.i18n.t('confirm.defaultTitle') : 'Confirm Action'); title = title || (window.i18n ? window.i18n.t('confirm.defaultTitle') : 'Confirm Action');
@@ -588,9 +839,21 @@ async function performRepair() {
function resetPlayButton() { function resetPlayButton() {
isDownloading = false; isDownloading = false;
if (playBtn) { const btn = homePlayBtn || playBtn;
playBtn.disabled = false; if (btn) {
playText.textContent = window.i18n ? window.i18n.t('play.play') : 'PLAY'; btn.disabled = false;
const textEl = btn.querySelector('span');
if (textEl) textEl.textContent = window.i18n ? window.i18n.t('play.playButton') : 'PLAY HYTALE';
}
}
function lockPlayButton(text) {
isDownloading = true;
const btn = homePlayBtn || playBtn;
if (btn) {
btn.disabled = true;
const textEl = btn.querySelector('span');
if (textEl) textEl.textContent = text || 'LAUNCHING...';
} }
} }
@@ -676,6 +939,142 @@ async function loadCustomJavaPath() {
} }
} }
// ==========================================
// IDENTITY SWITCHER
// ==========================================
function escapeHtml(text) {
const div = document.createElement('div');
div.textContent = text;
return div.innerHTML;
}
async function loadIdentities() {
try {
if (!window.electronAPI) return;
const nameEl = document.getElementById('currentIdentityName');
// Load current username
let currentUsername = 'Player';
if (window.electronAPI.loadUsername) {
const name = await window.electronAPI.loadUsername();
if (name) currentUsername = name;
}
if (nameEl) nameEl.textContent = currentUsername;
// Load all identities for dropdown
const list = document.getElementById('identityList');
if (!list || !window.electronAPI.getAllUuidMappings) return;
const mappings = await window.electronAPI.getAllUuidMappings();
renderIdentityList(mappings, currentUsername);
} catch (error) {
console.error('Failed to load identities:', error);
}
}
async function renderIdentityList(mappings, currentUsername) {
const list = document.getElementById('identityList');
if (!list) return;
if (!mappings || mappings.length === 0) {
list.innerHTML = '<div class="identity-empty">No identities</div>';
return;
}
// Check password status for all identities in parallel
const statusChecks = mappings.map(async m => {
try {
if (m.uuid && window.electronAPI?.checkPasswordStatus) {
const s = await window.electronAPI.checkPasswordStatus(m.uuid);
return s?.hasPassword || false;
}
} catch {}
return false;
});
const statuses = await Promise.all(statusChecks);
list.innerHTML = mappings.map((m, i) => {
const safe = escapeHtml(m.username);
const isActive = m.username === currentUsername;
const hasPassword = statuses[i];
const pwBadge = hasPassword
? '<span class="pw-badge locked"><i class="fas fa-lock"></i></span>'
: '<span class="pw-badge unlocked"><i class="fas fa-unlock"></i></span>';
return `
<div class="identity-item ${isActive ? 'active' : ''}"
onclick="switchIdentity('${safe.replace(/'/g, "&#39;")}')">
<span>${safe}</span>
${pwBadge}
${isActive ? '<i class="fas fa-check" style="margin-left:4px;"></i>' : ''}
</div>
`;
}).join('');
}
window.toggleIdentityDropdown = () => {
const dropdown = document.getElementById('identityDropdown');
if (dropdown) {
dropdown.classList.toggle('show');
// Close profile dropdown
const profileDropdown = document.getElementById('profileDropdown');
if (profileDropdown) profileDropdown.classList.remove('show');
}
};
window.openIdentityManager = () => {
// Close dropdown
const dropdown = document.getElementById('identityDropdown');
if (dropdown) dropdown.classList.remove('show');
// Open UUID modal from settings
if (window.openUuidModal) {
window.openUuidModal();
}
};
window.switchIdentity = async (username) => {
try {
if (!window.electronAPI || !window.electronAPI.saveUsername) return;
const result = await window.electronAPI.saveUsername(username);
if (result && result.success === false) {
throw new Error(result.error || 'Failed to switch identity');
}
// Refresh identity dropdown
await loadIdentities();
// Close dropdown
const dropdown = document.getElementById('identityDropdown');
if (dropdown) dropdown.classList.remove('show');
// Update settings page username field and UUID display
const settingsInput = document.getElementById('settingsPlayerName');
if (settingsInput) settingsInput.value = username;
if (window.loadCurrentUuid) window.loadCurrentUuid();
// Update password shield icon for new identity
if (window.updatePasswordShieldIcon) window.updatePasswordShieldIcon();
} catch (error) {
console.error('Failed to switch identity:', error);
}
};
// Make loadIdentities available globally for settings.js to call
window.loadIdentities = loadIdentities;
window.toggleProfileDropdown = () => {
const dropdown = document.getElementById('profileDropdown');
if (dropdown) {
dropdown.classList.toggle('show');
// Close identity dropdown
const identityDropdown = document.getElementById('identityDropdown');
if (identityDropdown) identityDropdown.classList.remove('show');
}
};
window.launch = launch; window.launch = launch;
window.uninstallGame = uninstallGame; window.uninstallGame = uninstallGame;
window.repairGame = repairGame; window.repairGame = repairGame;

File diff suppressed because it is too large Load Diff

View File

@@ -79,12 +79,18 @@ function setupWindowControls() {
const header = document.querySelector('.header'); const header = document.querySelector('.header');
const profileSelector = document.querySelector('.profile-selector'); const profileSelector = document.querySelector('.profile-selector');
const identitySelector = document.querySelector('.identity-selector');
if (profileSelector) { if (profileSelector) {
profileSelector.style.pointerEvents = 'auto'; profileSelector.style.pointerEvents = 'auto';
profileSelector.style.zIndex = '10000'; profileSelector.style.zIndex = '10000';
} }
if (identitySelector) {
identitySelector.style.pointerEvents = 'auto';
identitySelector.style.zIndex = '10000';
}
if (windowControls) { if (windowControls) {
windowControls.style.pointerEvents = 'auto'; windowControls.style.pointerEvents = 'auto';
windowControls.style.zIndex = '10000'; windowControls.style.zIndex = '10000';
@@ -98,6 +104,9 @@ function setupWindowControls() {
if (profileSelector) { if (profileSelector) {
profileSelector.style.webkitAppRegion = 'no-drag'; profileSelector.style.webkitAppRegion = 'no-drag';
} }
if (identitySelector) {
identitySelector.style.webkitAppRegion = 'no-drag';
}
} }
if (window.electronAPI) { if (window.electronAPI) {
@@ -1109,4 +1118,50 @@ window.openDiscordExternal = function() {
window.toggleMaximize = toggleMaximize; window.toggleMaximize = toggleMaximize;
// Global Escape key handler for closing popups/modals/dropdowns
document.addEventListener('keydown', (e) => {
if (e.key !== 'Escape') return;
// Custom confirm dialogs handle their own Escape — skip if one is open
if (document.querySelector('.custom-confirm-modal')) return;
// Close modals (highest priority)
const profileModal = document.getElementById('profileManagerModal');
if (profileModal && profileModal.style.display !== 'none') {
if (window.closeProfileManager) window.closeProfileManager();
return;
}
const uuidModal = document.getElementById('uuidModal');
if (uuidModal && uuidModal.style.display !== 'none') {
if (window.closeUuidModal) window.closeUuidModal();
return;
}
const discordModal = document.getElementById('discordPopupModal');
if (discordModal && discordModal.style.display !== 'none') {
discordModal.style.display = 'none';
return;
}
const versionModal = document.getElementById('versionSelectModal');
if (versionModal && versionModal.style.display !== 'none') {
versionModal.style.display = 'none';
return;
}
// Close dropdowns (lower priority)
const identityDropdown = document.getElementById('identityDropdown');
if (identityDropdown && identityDropdown.classList.contains('show')) {
identityDropdown.classList.remove('show');
return;
}
const profileDropdown = document.getElementById('profileDropdown');
if (profileDropdown && profileDropdown.classList.contains('show')) {
profileDropdown.classList.remove('show');
return;
}
});
document.addEventListener('DOMContentLoaded', setupUI); document.addEventListener('DOMContentLoaded', setupUI);

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "اللاعبون:", "playersLabel": "اللاعبون:",
"manageProfiles": "إدارة الملفات الشخصية", "manageProfiles": "إدارة",
"manageIdentities": "إدارة",
"identityTooltip": "اسم اللاعب ومعرّف UUID المستخدمان في اللعبة",
"configTooltip": "إعدادات اللعبة: المودات، Java والذاكرة",
"defaultProfile": "الافتراضي" "defaultProfile": "الافتراضي"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "سلوك المشغل", "closeLauncher": "سلوك المشغل",
"closeOnStart": "إغلاق المشغل عند بدء اللعبة", "closeOnStart": "إغلاق المشغل عند بدء اللعبة",
"closeOnStartDescription": "إغلاق المشغل تلقائياً بعد تشغيل Hytale", "closeOnStartDescription": "إغلاق المشغل تلقائياً بعد تشغيل Hytale",
"allowMultiInstance": "Allow multiple game instances",
"allowMultiInstanceDescription": "Allow running multiple game clients at the same time (useful for mod development)",
"hwAccel": "تسريع الأجهزة (Hardware Acceleration)", "hwAccel": "تسريع الأجهزة (Hardware Acceleration)",
"hwAccelDescription": "تفعيل تسريع الأجهزة للمشغل", "hwAccelDescription": "تفعيل تسريع الأجهزة للمشغل",
"gameBranch": "فرع اللعبة", "gameBranch": "فرع اللعبة",
@@ -151,9 +156,12 @@
}, },
"uuid": { "uuid": {
"modalTitle": "إدارة UUID", "modalTitle": "إدارة UUID",
"currentUserUUID": "UUID المستخدم الحالي",
"allPlayerUUIDs": "جميع معرفات UUID للاعبين", "allPlayerUUIDs": "جميع معرفات UUID للاعبين",
"generateNew": "إنشاء UUID جديد", "addIdentity": "إضافة هوية",
"usernamePlaceholder": "اسم المستخدم",
"add": "إضافة",
"cancel": "إلغاء",
"advanced": "متقدم",
"loadingUUIDs": "جاري تحميل الـ UUIDs...", "loadingUUIDs": "جاري تحميل الـ UUIDs...",
"setCustomUUID": "تعيين UUID مخصص", "setCustomUUID": "تعيين UUID مخصص",
"customPlaceholder": "أدخل UUID مخصص (الصيغة: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "أدخل UUID مخصص (الصيغة: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
@@ -162,10 +170,10 @@
"copyTooltip": "نسخ UUID", "copyTooltip": "نسخ UUID",
"regenerateTooltip": "إنشاء UUID جديد" "regenerateTooltip": "إنشاء UUID جديد"
}, },
"profiles": { "configurations": {
"modalTitle": "إدارة الملفات الشخصية", "modalTitle": "إدارة التكوينات",
"newProfilePlaceholder": "اسم الملف الشخصي الجديد", "newProfilePlaceholder": "اسم التكوين الجديد",
"createProfile": "إنشاء ملف شخصي" "createProfile": "إنشاء تكوين"
}, },
"discord": { "discord": {
"notificationText": "انضم إلى مجتمعنا على ديسكورد!", "notificationText": "انضم إلى مجتمعنا على ديسكورد!",
@@ -219,6 +227,8 @@
"hwAccelSaved": "تم حفظ إعداد تسريع الأجهزة", "hwAccelSaved": "تم حفظ إعداد تسريع الأجهزة",
"hwAccelSaveFailed": "فشل حفظ إعداد تسريع الأجهزة", "hwAccelSaveFailed": "فشل حفظ إعداد تسريع الأجهزة",
"noUsername": "لم يتم تهيئة اسم مستخدم. يرجى حفظ اسم المستخدم أولاً.", "noUsername": "لم يتم تهيئة اسم مستخدم. يرجى حفظ اسم المستخدم أولاً.",
"identityAdded": "تمت إضافة الهوية بنجاح!",
"identityAddFailed": "فشل في إضافة الهوية",
"switchUsernameSuccess": "تم التبديل إلى المستخدم \"{username}\" بنجاح!", "switchUsernameSuccess": "تم التبديل إلى المستخدم \"{username}\" بنجاح!",
"switchUsernameFailed": "فشل تبديل اسم المستخدم", "switchUsernameFailed": "فشل تبديل اسم المستخدم",
"playerNameTooLong": "يجب أن يكون اسم اللاعب 16 حرفاً أو أقل" "playerNameTooLong": "يجب أن يكون اسم اللاعب 16 حرفاً أو أقل"
@@ -247,8 +257,8 @@
"installing": "جاري التثبيت...", "installing": "جاري التثبيت...",
"extracting": "جاري الاستخراج...", "extracting": "جاري الاستخراج...",
"verifying": "جاري التحقق...", "verifying": "جاري التحقق...",
"switchingProfile": "جاري تبديل الملف الشخصي...", "switchingProfile": "جاري تبديل التكوين...",
"profileSwitched": "تم تبديل الملف الشخصي!", "profileSwitched": "تم تبديل التكوين!",
"startingGame": "جاري بدء اللعبة...", "startingGame": "جاري بدء اللعبة...",
"launching": "جاري التشغيل...", "launching": "جاري التشغيل...",
"uninstallingGame": "جاري إلغاء تثبيت اللعبة...", "uninstallingGame": "جاري إلغاء تثبيت اللعبة...",

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "Spieler:", "playersLabel": "Spieler:",
"manageProfiles": "Profile verwalten", "manageProfiles": "Verwalten",
"manageIdentities": "Verwalten",
"identityTooltip": "Dein Spielername und UUID im Spiel",
"configTooltip": "Spielkonfiguration: Mods, Java- und Speichereinstellungen",
"defaultProfile": "Standard" "defaultProfile": "Standard"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "Launcher-Verhalten", "closeLauncher": "Launcher-Verhalten",
"closeOnStart": "Launcher beim Spielstart schließen", "closeOnStart": "Launcher beim Spielstart schließen",
"closeOnStartDescription": "Schließe den Launcher automatisch, nachdem Hytale gestartet wurde", "closeOnStartDescription": "Schließe den Launcher automatisch, nachdem Hytale gestartet wurde",
"allowMultiInstance": "Allow multiple game instances",
"allowMultiInstanceDescription": "Allow running multiple game clients at the same time (useful for mod development)",
"hwAccel": "Hardware-Beschleunigung", "hwAccel": "Hardware-Beschleunigung",
"hwAccelDescription": "Hardware-Beschleunigung für den Launcher aktivieren", "hwAccelDescription": "Hardware-Beschleunigung für den Launcher aktivieren",
"gameBranch": "Spiel-Branch", "gameBranch": "Spiel-Branch",
@@ -151,9 +156,12 @@
}, },
"uuid": { "uuid": {
"modalTitle": "UUID-Verwaltung", "modalTitle": "UUID-Verwaltung",
"currentUserUUID": "Aktuelle Benutzer-UUID",
"allPlayerUUIDs": "Alle Spieler-UUIDs", "allPlayerUUIDs": "Alle Spieler-UUIDs",
"generateNew": "Neue UUID generieren", "addIdentity": "Identität hinzufügen",
"usernamePlaceholder": "Benutzername",
"add": "Hinzufügen",
"cancel": "Abbrechen",
"advanced": "Erweitert",
"loadingUUIDs": "UUIDs werden geladen...", "loadingUUIDs": "UUIDs werden geladen...",
"setCustomUUID": "Benutzerdefinierte UUID festlegen", "setCustomUUID": "Benutzerdefinierte UUID festlegen",
"customPlaceholder": "Benutzerdefinierte UUID eingeben (Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "Benutzerdefinierte UUID eingeben (Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
@@ -162,10 +170,10 @@
"copyTooltip": "UUID kopieren", "copyTooltip": "UUID kopieren",
"regenerateTooltip": "Neue UUID generieren" "regenerateTooltip": "Neue UUID generieren"
}, },
"profiles": { "configurations": {
"modalTitle": "Profile verwalten", "modalTitle": "Konfigurationen verwalten",
"newProfilePlaceholder": "Neuer Profilname", "newProfilePlaceholder": "Neuer Konfigurationsname",
"createProfile": "Profil erstellen" "createProfile": "Konfiguration erstellen"
}, },
"discord": { "discord": {
"notificationText": "Tritt unserer Discord-Community bei!", "notificationText": "Tritt unserer Discord-Community bei!",
@@ -219,6 +227,8 @@
"hwAccelSaved": "Hardware-Beschleunigungseinstellung gespeichert", "hwAccelSaved": "Hardware-Beschleunigungseinstellung gespeichert",
"hwAccelSaveFailed": "Hardware-Beschleunigungseinstellung konnte nicht gespeichert werden", "hwAccelSaveFailed": "Hardware-Beschleunigungseinstellung konnte nicht gespeichert werden",
"noUsername": "Kein Benutzername konfiguriert. Bitte speichere zuerst deinen Benutzernamen.", "noUsername": "Kein Benutzername konfiguriert. Bitte speichere zuerst deinen Benutzernamen.",
"identityAdded": "Identität erfolgreich hinzugefügt!",
"identityAddFailed": "Fehler beim Hinzufügen der Identität",
"switchUsernameSuccess": "Erfolgreich zu \"{username}\" gewechselt!", "switchUsernameSuccess": "Erfolgreich zu \"{username}\" gewechselt!",
"switchUsernameFailed": "Benutzername konnte nicht gewechselt werden", "switchUsernameFailed": "Benutzername konnte nicht gewechselt werden",
"playerNameTooLong": "Spielername darf maximal 16 Zeichen haben" "playerNameTooLong": "Spielername darf maximal 16 Zeichen haben"
@@ -247,8 +257,8 @@
"installing": "Installiere...", "installing": "Installiere...",
"extracting": "Entpacke...", "extracting": "Entpacke...",
"verifying": "Überprüfe...", "verifying": "Überprüfe...",
"switchingProfile": "Profil wird gewechselt...", "switchingProfile": "Konfiguration wird gewechselt...",
"profileSwitched": "Profil gewechselt!", "profileSwitched": "Konfiguration gewechselt!",
"startingGame": "Spiel wird gestartet...", "startingGame": "Spiel wird gestartet...",
"launching": "STARTET...", "launching": "STARTET...",
"uninstallingGame": "Spiel wird deinstalliert...", "uninstallingGame": "Spiel wird deinstalliert...",

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "Players:", "playersLabel": "Players:",
"manageProfiles": "Manage Profiles", "manageProfiles": "Manage",
"manageIdentities": "Manage",
"identityTooltip": "Your player name & UUID used in-game",
"configTooltip": "Game config: mods, Java & memory settings",
"defaultProfile": "Default" "defaultProfile": "Default"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "Launcher Behavior", "closeLauncher": "Launcher Behavior",
"closeOnStart": "Close Launcher on game start", "closeOnStart": "Close Launcher on game start",
"closeOnStartDescription": "Automatically close the launcher after Hytale has launched", "closeOnStartDescription": "Automatically close the launcher after Hytale has launched",
"allowMultiInstance": "Allow multiple game instances",
"allowMultiInstanceDescription": "Allow running multiple game clients at the same time (useful for mod development)",
"hwAccel": "Hardware Acceleration", "hwAccel": "Hardware Acceleration",
"hwAccelDescription": "Enable hardware acceleration for the launcher", "hwAccelDescription": "Enable hardware acceleration for the launcher",
"gameBranch": "Game Branch", "gameBranch": "Game Branch",
@@ -162,21 +167,24 @@
}, },
"uuid": { "uuid": {
"modalTitle": "UUID Management", "modalTitle": "UUID Management",
"currentUserUUID": "Current User UUID",
"allPlayerUUIDs": "All Player UUIDs", "allPlayerUUIDs": "All Player UUIDs",
"generateNew": "Generate New UUID", "addIdentity": "Add Identity",
"usernamePlaceholder": "Username",
"add": "Add",
"cancel": "Cancel",
"advanced": "Advanced",
"loadingUUIDs": "Loading UUIDs...", "loadingUUIDs": "Loading UUIDs...",
"setCustomUUID": "Set Custom UUID", "setCustomUUID": "Set Custom UUID for Current User",
"customPlaceholder": "Enter custom UUID (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "Enter custom UUID (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
"setUUID": "Set UUID", "setUUID": "Set UUID",
"warning": "Warning: Setting a custom UUID will change your current player identity", "warning": "Warning: Setting a custom UUID will change your current player identity",
"copyTooltip": "Copy UUID", "copyTooltip": "Copy UUID",
"regenerateTooltip": "Generate New UUID" "regenerateTooltip": "Generate New UUID"
}, },
"profiles": { "configurations": {
"modalTitle": "Manage Profiles", "modalTitle": "Manage Configurations",
"newProfilePlaceholder": "New Profile Name", "newProfilePlaceholder": "New Configuration Name",
"createProfile": "Create Profile" "createProfile": "Create Configuration"
}, },
"discord": { "discord": {
"notificationText": "Join our Discord community!", "notificationText": "Join our Discord community!",
@@ -230,6 +238,8 @@
"hwAccelSaved": "Hardware acceleration setting saved", "hwAccelSaved": "Hardware acceleration setting saved",
"hwAccelSaveFailed": "Failed to save hardware acceleration setting", "hwAccelSaveFailed": "Failed to save hardware acceleration setting",
"noUsername": "No username configured. Please save your username first.", "noUsername": "No username configured. Please save your username first.",
"identityAdded": "Identity added successfully!",
"identityAddFailed": "Failed to add identity",
"switchUsernameSuccess": "Switched to \"{username}\" successfully!", "switchUsernameSuccess": "Switched to \"{username}\" successfully!",
"switchUsernameFailed": "Failed to switch username", "switchUsernameFailed": "Failed to switch username",
"playerNameTooLong": "Player name must be 16 characters or less", "playerNameTooLong": "Player name must be 16 characters or less",
@@ -266,8 +276,8 @@
"installing": "Installing...", "installing": "Installing...",
"extracting": "Extracting...", "extracting": "Extracting...",
"verifying": "Verifying...", "verifying": "Verifying...",
"switchingProfile": "Switching profile...", "switchingProfile": "Switching configuration...",
"profileSwitched": "Profile switched!", "profileSwitched": "Configuration switched!",
"startingGame": "Starting game...", "startingGame": "Starting game...",
"launching": "LAUNCHING...", "launching": "LAUNCHING...",
"uninstallingGame": "Uninstalling game...", "uninstallingGame": "Uninstalling game...",

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "Jugadores:", "playersLabel": "Jugadores:",
"manageProfiles": "Gestionar Perfiles", "manageProfiles": "Gestionar",
"manageIdentities": "Gestionar",
"identityTooltip": "Tu nombre de jugador y UUID usados en el juego",
"configTooltip": "Configuración del juego: mods, Java y memoria",
"defaultProfile": "Predeterminado" "defaultProfile": "Predeterminado"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "Comportamiento del Launcher", "closeLauncher": "Comportamiento del Launcher",
"closeOnStart": "Cerrar Launcher al iniciar el juego", "closeOnStart": "Cerrar Launcher al iniciar el juego",
"closeOnStartDescription": "Cierra automáticamente el launcher después de que Hytale se haya iniciado", "closeOnStartDescription": "Cierra automáticamente el launcher después de que Hytale se haya iniciado",
"allowMultiInstance": "Allow multiple game instances",
"allowMultiInstanceDescription": "Allow running multiple game clients at the same time (useful for mod development)",
"hwAccel": "Aceleración por Hardware", "hwAccel": "Aceleración por Hardware",
"hwAccelDescription": "Habilitar aceleración por hardware para el launcher", "hwAccelDescription": "Habilitar aceleración por hardware para el launcher",
"gameBranch": "Rama del Juego", "gameBranch": "Rama del Juego",
@@ -151,9 +156,12 @@
}, },
"uuid": { "uuid": {
"modalTitle": "Gestión de UUID", "modalTitle": "Gestión de UUID",
"currentUserUUID": "UUID del usuario actual",
"allPlayerUUIDs": "Todos los UUIDs de jugadores", "allPlayerUUIDs": "Todos los UUIDs de jugadores",
"generateNew": "Generar nuevo UUID", "addIdentity": "Añadir identidad",
"usernamePlaceholder": "Nombre de usuario",
"add": "Añadir",
"cancel": "Cancelar",
"advanced": "Avanzado",
"loadingUUIDs": "Cargando UUIDs...", "loadingUUIDs": "Cargando UUIDs...",
"setCustomUUID": "Establecer UUID personalizado", "setCustomUUID": "Establecer UUID personalizado",
"customPlaceholder": "Ingresa un UUID personalizado (formato: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "Ingresa un UUID personalizado (formato: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
@@ -162,10 +170,10 @@
"copyTooltip": "Copiar UUID", "copyTooltip": "Copiar UUID",
"regenerateTooltip": "Generar nuevo UUID" "regenerateTooltip": "Generar nuevo UUID"
}, },
"profiles": { "configurations": {
"modalTitle": "Gestionar perfiles", "modalTitle": "Gestionar Configuraciones",
"newProfilePlaceholder": "Nombre del nuevo perfil", "newProfilePlaceholder": "Nombre de la nueva configuración",
"createProfile": "Crear perfil" "createProfile": "Crear Configuración"
}, },
"discord": { "discord": {
"notificationText": "¡Únete a nuestra comunidad de Discord!", "notificationText": "¡Únete a nuestra comunidad de Discord!",
@@ -219,6 +227,8 @@
"hwAccelSaved": "Configuración de aceleración por hardware guardada", "hwAccelSaved": "Configuración de aceleración por hardware guardada",
"hwAccelSaveFailed": "Error al guardar la configuración de aceleración por hardware", "hwAccelSaveFailed": "Error al guardar la configuración de aceleración por hardware",
"noUsername": "No hay nombre de usuario configurado. Por favor, guarda tu nombre de usuario primero.", "noUsername": "No hay nombre de usuario configurado. Por favor, guarda tu nombre de usuario primero.",
"identityAdded": "¡Identidad añadida con éxito!",
"identityAddFailed": "Error al añadir identidad",
"switchUsernameSuccess": "¡Cambiado a \"{username}\" con éxito!", "switchUsernameSuccess": "¡Cambiado a \"{username}\" con éxito!",
"switchUsernameFailed": "Error al cambiar nombre de usuario", "switchUsernameFailed": "Error al cambiar nombre de usuario",
"playerNameTooLong": "El nombre del jugador debe tener 16 caracteres o menos" "playerNameTooLong": "El nombre del jugador debe tener 16 caracteres o menos"
@@ -247,8 +257,8 @@
"installing": "Instalando...", "installing": "Instalando...",
"extracting": "Extrayendo...", "extracting": "Extrayendo...",
"verifying": "Verificando...", "verifying": "Verificando...",
"switchingProfile": "Cambiando perfil...", "switchingProfile": "Cambiando configuración...",
"profileSwitched": Perfil cambiado!", "profileSwitched": Configuración cambiada!",
"startingGame": "Iniciando juego...", "startingGame": "Iniciando juego...",
"launching": "INICIANDO...", "launching": "INICIANDO...",
"uninstallingGame": "Desinstalando juego...", "uninstallingGame": "Desinstalando juego...",

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "Joueurs:", "playersLabel": "Joueurs:",
"manageProfiles": "Gérer les Profils", "manageProfiles": "Gérer",
"manageIdentities": "Gérer",
"identityTooltip": "Votre nom de joueur et UUID utilisés en jeu",
"configTooltip": "Configuration du jeu : mods, Java et mémoire",
"defaultProfile": "Par défaut" "defaultProfile": "Par défaut"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "Comportement du Launcher", "closeLauncher": "Comportement du Launcher",
"closeOnStart": "Fermer le Launcher au démarrage du jeu", "closeOnStart": "Fermer le Launcher au démarrage du jeu",
"closeOnStartDescription": "Fermer automatiquement le launcher après le lancement d'Hytale", "closeOnStartDescription": "Fermer automatiquement le launcher après le lancement d'Hytale",
"allowMultiInstance": "Allow multiple game instances",
"allowMultiInstanceDescription": "Allow running multiple game clients at the same time (useful for mod development)",
"hwAccel": "Accélération Matérielle", "hwAccel": "Accélération Matérielle",
"hwAccelDescription": "Activer l'accélération matérielle pour le launcher", "hwAccelDescription": "Activer l'accélération matérielle pour le launcher",
"gameBranch": "Branche du Jeu", "gameBranch": "Branche du Jeu",
@@ -151,9 +156,12 @@
}, },
"uuid": { "uuid": {
"modalTitle": "Gestion UUID", "modalTitle": "Gestion UUID",
"currentUserUUID": "UUID Utilisateur Actuel",
"allPlayerUUIDs": "Tous les UUIDs Joueurs", "allPlayerUUIDs": "Tous les UUIDs Joueurs",
"generateNew": "Générer Nouvel UUID", "addIdentity": "Ajouter une identité",
"usernamePlaceholder": "Nom d'utilisateur",
"add": "Ajouter",
"cancel": "Annuler",
"advanced": "Avancé",
"loadingUUIDs": "Chargement des UUIDs...", "loadingUUIDs": "Chargement des UUIDs...",
"setCustomUUID": "Définir UUID Personnalisé", "setCustomUUID": "Définir UUID Personnalisé",
"customPlaceholder": "Entrez UUID personnalisé (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "Entrez UUID personnalisé (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
@@ -162,10 +170,10 @@
"copyTooltip": "Copier UUID", "copyTooltip": "Copier UUID",
"regenerateTooltip": "Générer Nouvel UUID" "regenerateTooltip": "Générer Nouvel UUID"
}, },
"profiles": { "configurations": {
"modalTitle": "Gérer les Profils", "modalTitle": "Gérer les Configurations",
"newProfilePlaceholder": "Nom du Nouveau Profil", "newProfilePlaceholder": "Nom de la Nouvelle Configuration",
"createProfile": "Créer un Profil" "createProfile": "Créer une Configuration"
}, },
"discord": { "discord": {
"notificationText": "Rejoignez notre communauté Discord!", "notificationText": "Rejoignez notre communauté Discord!",
@@ -219,6 +227,8 @@
"hwAccelSaved": "Paramètre d'accélération matérielle sauvegardé", "hwAccelSaved": "Paramètre d'accélération matérielle sauvegardé",
"hwAccelSaveFailed": "Échec de la sauvegarde du paramètre d'accélération matérielle", "hwAccelSaveFailed": "Échec de la sauvegarde du paramètre d'accélération matérielle",
"noUsername": "Aucun nom d'utilisateur configuré. Veuillez d'abord enregistrer votre nom d'utilisateur.", "noUsername": "Aucun nom d'utilisateur configuré. Veuillez d'abord enregistrer votre nom d'utilisateur.",
"identityAdded": "Identité ajoutée avec succès !",
"identityAddFailed": "Échec de l'ajout de l'identité",
"switchUsernameSuccess": "Basculé vers \"{username}\" avec succès!", "switchUsernameSuccess": "Basculé vers \"{username}\" avec succès!",
"switchUsernameFailed": "Échec du changement de nom d'utilisateur", "switchUsernameFailed": "Échec du changement de nom d'utilisateur",
"playerNameTooLong": "Le nom du joueur doit comporter 16 caractères ou moins" "playerNameTooLong": "Le nom du joueur doit comporter 16 caractères ou moins"
@@ -247,8 +257,8 @@
"installing": "Installation...", "installing": "Installation...",
"extracting": "Extraction...", "extracting": "Extraction...",
"verifying": "Vérification...", "verifying": "Vérification...",
"switchingProfile": "Changement de profil...", "switchingProfile": "Changement de configuration...",
"profileSwitched": "Profil changé!", "profileSwitched": "Configuration changée !",
"startingGame": "Démarrage du jeu...", "startingGame": "Démarrage du jeu...",
"launching": "LANCEMENT...", "launching": "LANCEMENT...",
"uninstallingGame": "Désinstallation du jeu...", "uninstallingGame": "Désinstallation du jeu...",

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "Pemain:", "playersLabel": "Pemain:",
"manageProfiles": "Kelola Profil", "manageProfiles": "Kelola",
"manageIdentities": "Kelola",
"identityTooltip": "Nama pemain & UUID yang digunakan dalam game",
"configTooltip": "Konfigurasi game: mod, Java & pengaturan memori",
"defaultProfile": "Default" "defaultProfile": "Default"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "Perilaku Launcher", "closeLauncher": "Perilaku Launcher",
"closeOnStart": "Tutup launcher saat game dimulai", "closeOnStart": "Tutup launcher saat game dimulai",
"closeOnStartDescription": "Tutup launcher secara otomatis setelah Hytale diluncurkan", "closeOnStartDescription": "Tutup launcher secara otomatis setelah Hytale diluncurkan",
"allowMultiInstance": "Allow multiple game instances",
"allowMultiInstanceDescription": "Allow running multiple game clients at the same time (useful for mod development)",
"hwAccel": "Akselerasi Perangkat Keras", "hwAccel": "Akselerasi Perangkat Keras",
"hwAccelDescription": "Aktifkan akselerasi perangkat keras untuk launcher`", "hwAccelDescription": "Aktifkan akselerasi perangkat keras untuk launcher`",
"gameBranch": "Cabang Game", "gameBranch": "Cabang Game",
@@ -151,9 +156,12 @@
}, },
"uuid": { "uuid": {
"modalTitle": "Manajemen UUID", "modalTitle": "Manajemen UUID",
"currentUserUUID": "UUID Pengguna Saat Ini",
"allPlayerUUIDs": "Semua UUID Pemain", "allPlayerUUIDs": "Semua UUID Pemain",
"generateNew": "Hasilkan UUID Baru", "addIdentity": "Tambah Identitas",
"usernamePlaceholder": "Nama Pengguna",
"add": "Tambah",
"cancel": "Batal",
"advanced": "Lanjutan",
"loadingUUIDs": "Memuat UUID...", "loadingUUIDs": "Memuat UUID...",
"setCustomUUID": "Setel UUID Kustom", "setCustomUUID": "Setel UUID Kustom",
"customPlaceholder": "Masukkan UUID kustom (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "Masukkan UUID kustom (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
@@ -162,10 +170,10 @@
"copyTooltip": "Salin UUID", "copyTooltip": "Salin UUID",
"regenerateTooltip": "Hasilkan UUID Baru" "regenerateTooltip": "Hasilkan UUID Baru"
}, },
"profiles": { "configurations": {
"modalTitle": "Kelola Profil", "modalTitle": "Kelola Konfigurasi",
"newProfilePlaceholder": "Nama Profil Baru", "newProfilePlaceholder": "Nama Konfigurasi Baru",
"createProfile": "Buat Profil" "createProfile": "Buat Konfigurasi"
}, },
"discord": { "discord": {
"notificationText": "Gabung komunitas Discord kami!", "notificationText": "Gabung komunitas Discord kami!",
@@ -219,6 +227,8 @@
"hwAccelSaved": "Pengaturan akselerasi perangkat keras disimpan", "hwAccelSaved": "Pengaturan akselerasi perangkat keras disimpan",
"hwAccelSaveFailed": "Gagal menyimpan pengaturan akselerasi perangkat keras", "hwAccelSaveFailed": "Gagal menyimpan pengaturan akselerasi perangkat keras",
"noUsername": "Nama pengguna belum dikonfigurasi. Silakan simpan nama pengguna terlebih dahulu.", "noUsername": "Nama pengguna belum dikonfigurasi. Silakan simpan nama pengguna terlebih dahulu.",
"identityAdded": "Identitas berhasil ditambahkan!",
"identityAddFailed": "Gagal menambahkan identitas",
"switchUsernameSuccess": "Berhasil beralih ke \"{username}\"!", "switchUsernameSuccess": "Berhasil beralih ke \"{username}\"!",
"switchUsernameFailed": "Gagal beralih nama pengguna", "switchUsernameFailed": "Gagal beralih nama pengguna",
"playerNameTooLong": "Nama pemain harus 16 karakter atau kurang" "playerNameTooLong": "Nama pemain harus 16 karakter atau kurang"
@@ -247,8 +257,8 @@
"installing": "Menginstal...", "installing": "Menginstal...",
"extracting": "Mengekstrak...", "extracting": "Mengekstrak...",
"verifying": "Memverifikasi...", "verifying": "Memverifikasi...",
"switchingProfile": "Beralih profil...", "switchingProfile": "Beralih konfigurasi...",
"profileSwitched": "Profil dialihkan!", "profileSwitched": "Konfigurasi dialihkan!",
"startingGame": "Memulai game...", "startingGame": "Memulai game...",
"launching": "MELUNCURKAN...", "launching": "MELUNCURKAN...",
"uninstallingGame": "Menghapus instalasi game...", "uninstallingGame": "Menghapus instalasi game...",

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "Graczy:", "playersLabel": "Graczy:",
"manageProfiles": "Zarządzaj Profilami", "manageProfiles": "Zarządzaj",
"manageIdentities": "Zarządzaj",
"identityTooltip": "Twoja nazwa gracza i UUID używane w grze",
"configTooltip": "Konfiguracja gry: mody, Java i ustawienia pamięci",
"defaultProfile": "Domyślny" "defaultProfile": "Domyślny"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "Zachowanie Launchera", "closeLauncher": "Zachowanie Launchera",
"closeOnStart": "Zamknij Launcher przy starcie gry", "closeOnStart": "Zamknij Launcher przy starcie gry",
"closeOnStartDescription": "Automatycznie zamknij launcher po uruchomieniu Hytale", "closeOnStartDescription": "Automatycznie zamknij launcher po uruchomieniu Hytale",
"allowMultiInstance": "Allow multiple game instances",
"allowMultiInstanceDescription": "Allow running multiple game clients at the same time (useful for mod development)",
"hwAccel": "Przyspieszenie Sprzętowe", "hwAccel": "Przyspieszenie Sprzętowe",
"hwAccelDescription": "Włącz przyspieszenie sprzętowe dla launchera", "hwAccelDescription": "Włącz przyspieszenie sprzętowe dla launchera",
"gameBranch": "Gałąź Gry", "gameBranch": "Gałąź Gry",
@@ -151,9 +156,12 @@
}, },
"uuid": { "uuid": {
"modalTitle": "Zarządzanie UUID", "modalTitle": "Zarządzanie UUID",
"currentUserUUID": "Aktualny UUID użytkownika",
"allPlayerUUIDs": "Wszystkie identyfikatory UUID graczy", "allPlayerUUIDs": "Wszystkie identyfikatory UUID graczy",
"generateNew": "Wygeneruj nowy UUID", "addIdentity": "Dodaj tożsamość",
"usernamePlaceholder": "Nazwa użytkownika",
"add": "Dodaj",
"cancel": "Anuluj",
"advanced": "Zaawansowane",
"loadingUUIDs": "Ładowanie UUID...", "loadingUUIDs": "Ładowanie UUID...",
"setCustomUUID": "Ustaw niestandardowy UUID", "setCustomUUID": "Ustaw niestandardowy UUID",
"customPlaceholder": "Wprowadź niestandardowy UUID (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "Wprowadź niestandardowy UUID (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
@@ -162,10 +170,10 @@
"copyTooltip": "Kopiuj UUID", "copyTooltip": "Kopiuj UUID",
"regenerateTooltip": "Wygeneruj nowy UUID" "regenerateTooltip": "Wygeneruj nowy UUID"
}, },
"profiles": { "configurations": {
"modalTitle": "Zarządzaj Profilami", "modalTitle": "Zarządzaj Konfiguracjami",
"newProfilePlaceholder": "Nowa Nazwa Profilu", "newProfilePlaceholder": "Nazwa Nowej Konfiguracji",
"createProfile": "Utwórz Profil" "createProfile": "Utwórz Konfigurację"
}, },
"discord": { "discord": {
"notificationText": "Dołącz do naszej społeczności Discord!", "notificationText": "Dołącz do naszej społeczności Discord!",
@@ -219,6 +227,8 @@
"hwAccelSaved": "Zapisano ustawienie przyspieszenia sprzętowego", "hwAccelSaved": "Zapisano ustawienie przyspieszenia sprzętowego",
"hwAccelSaveFailed": "Nie udało się zapisać ustawienia przyspieszenia sprzętowego", "hwAccelSaveFailed": "Nie udało się zapisać ustawienia przyspieszenia sprzętowego",
"noUsername": "Nie skonfigurowano nazwy użytkownika. Najpierw zapisz swoją nazwę użytkownika.", "noUsername": "Nie skonfigurowano nazwy użytkownika. Najpierw zapisz swoją nazwę użytkownika.",
"identityAdded": "Tożsamość dodana pomyślnie!",
"identityAddFailed": "Nie udało się dodać tożsamości",
"switchUsernameSuccess": "Pomyślnie przełączono na \"{username}\"!", "switchUsernameSuccess": "Pomyślnie przełączono na \"{username}\"!",
"switchUsernameFailed": "Nie udało się przełączyć nazwy użytkownika", "switchUsernameFailed": "Nie udało się przełączyć nazwy użytkownika",
"playerNameTooLong": "Nazwa gracza musi mieć 16 znaków lub mniej" "playerNameTooLong": "Nazwa gracza musi mieć 16 znaków lub mniej"
@@ -247,8 +257,8 @@
"installing": "Instalowanie...", "installing": "Instalowanie...",
"extracting": "Ekstraktowanie...", "extracting": "Ekstraktowanie...",
"verifying": "Weryfikowanie...", "verifying": "Weryfikowanie...",
"switchingProfile": "Przełączanie profilu...", "switchingProfile": "Przełączanie konfiguracji...",
"profileSwitched": "Profil zmieniony!", "profileSwitched": "Konfiguracja zmieniona!",
"startingGame": "Uruchamianie gry...", "startingGame": "Uruchamianie gry...",
"launching": "URUCHAMIANIE...", "launching": "URUCHAMIANIE...",
"uninstallingGame": "Odinstalowywanie gry...", "uninstallingGame": "Odinstalowywanie gry...",

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "Jogadores:", "playersLabel": "Jogadores:",
"manageProfiles": "Gerenciar Perfis", "manageProfiles": "Gerenciar",
"manageIdentities": "Gerenciar",
"identityTooltip": "Seu nome de jogador e UUID usados no jogo",
"configTooltip": "Configuração do jogo: mods, Java e memória",
"defaultProfile": "Padrão" "defaultProfile": "Padrão"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "Comportamento do Lançador", "closeLauncher": "Comportamento do Lançador",
"closeOnStart": "Fechar Lançador ao iniciar o jogo", "closeOnStart": "Fechar Lançador ao iniciar o jogo",
"closeOnStartDescription": "Fechar automaticamente o lançador após o Hytale ter sido iniciado", "closeOnStartDescription": "Fechar automaticamente o lançador após o Hytale ter sido iniciado",
"allowMultiInstance": "Allow multiple game instances",
"allowMultiInstanceDescription": "Allow running multiple game clients at the same time (useful for mod development)",
"hwAccel": "Aceleração de Hardware", "hwAccel": "Aceleração de Hardware",
"hwAccelDescription": "Ativar aceleração de hardware para o lançador", "hwAccelDescription": "Ativar aceleração de hardware para o lançador",
"gameBranch": "Versão do Jogo", "gameBranch": "Versão do Jogo",
@@ -151,9 +156,12 @@
}, },
"uuid": { "uuid": {
"modalTitle": "Gerenciamento de UUID", "modalTitle": "Gerenciamento de UUID",
"currentUserUUID": "UUID do usuário atual",
"allPlayerUUIDs": "Todos os UUIDs de jogadores", "allPlayerUUIDs": "Todos os UUIDs de jogadores",
"generateNew": "Gerar novo UUID", "addIdentity": "Adicionar identidade",
"usernamePlaceholder": "Nome de usuário",
"add": "Adicionar",
"cancel": "Cancelar",
"advanced": "Avançado",
"loadingUUIDs": "Carregando UUIDs...", "loadingUUIDs": "Carregando UUIDs...",
"setCustomUUID": "Definir UUID personalizado", "setCustomUUID": "Definir UUID personalizado",
"customPlaceholder": "Digite um UUID personalizado (formato: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "Digite um UUID personalizado (formato: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
@@ -162,10 +170,10 @@
"copyTooltip": "Copiar UUID", "copyTooltip": "Copiar UUID",
"regenerateTooltip": "Gerar novo UUID" "regenerateTooltip": "Gerar novo UUID"
}, },
"profiles": { "configurations": {
"modalTitle": "Gerenciar perfis", "modalTitle": "Gerenciar Configurações",
"newProfilePlaceholder": "Nome do novo perfil", "newProfilePlaceholder": "Nome da Nova Configuração",
"createProfile": "Criar perfil" "createProfile": "Criar Configuração"
}, },
"discord": { "discord": {
"notificationText": "Junte-se à nossa comunidade do Discord!", "notificationText": "Junte-se à nossa comunidade do Discord!",
@@ -219,6 +227,8 @@
"hwAccelSaved": "Configuração de aceleração de hardware salva", "hwAccelSaved": "Configuração de aceleração de hardware salva",
"hwAccelSaveFailed": "Falha ao salvar configuração de aceleração de hardware", "hwAccelSaveFailed": "Falha ao salvar configuração de aceleração de hardware",
"noUsername": "Nenhum nome de usuário configurado. Por favor, salve seu nome de usuário primeiro.", "noUsername": "Nenhum nome de usuário configurado. Por favor, salve seu nome de usuário primeiro.",
"identityAdded": "Identidade adicionada com sucesso!",
"identityAddFailed": "Falha ao adicionar identidade",
"switchUsernameSuccess": "Alterado para \"{username}\" com sucesso!", "switchUsernameSuccess": "Alterado para \"{username}\" com sucesso!",
"switchUsernameFailed": "Falha ao trocar nome de usuário", "switchUsernameFailed": "Falha ao trocar nome de usuário",
"playerNameTooLong": "O nome do jogador deve ter 16 caracteres ou menos" "playerNameTooLong": "O nome do jogador deve ter 16 caracteres ou menos"
@@ -247,8 +257,8 @@
"installing": "Instalando...", "installing": "Instalando...",
"extracting": "Extraindo...", "extracting": "Extraindo...",
"verifying": "Verificando...", "verifying": "Verificando...",
"switchingProfile": "Alternando perfil...", "switchingProfile": "Alternando configuração...",
"profileSwitched": "Perfil alternado!", "profileSwitched": "Configuração alternada!",
"startingGame": "Iniciando jogo...", "startingGame": "Iniciando jogo...",
"launching": "INICIANDO...", "launching": "INICIANDO...",
"uninstallingGame": "Desinstalando jogo...", "uninstallingGame": "Desinstalando jogo...",

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "Игроки:", "playersLabel": "Игроки:",
"manageProfiles": "Управлять профилями:", "manageProfiles": "Управление",
"manageIdentities": "Управление",
"identityTooltip": "Ваш игровой ник и UUID, используемые в игре",
"configTooltip": "Конфигурация игры: моды, Java и настройки памяти",
"defaultProfile": "По умолчанию" "defaultProfile": "По умолчанию"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "Поведение лаунчера", "closeLauncher": "Поведение лаунчера",
"closeOnStart": "Закрыть лаунчер при старте игры", "closeOnStart": "Закрыть лаунчер при старте игры",
"closeOnStartDescription": "Автоматически закрыть лаунчер после запуска Hytale", "closeOnStartDescription": "Автоматически закрыть лаунчер после запуска Hytale",
"allowMultiInstance": "Несколько копий игры",
"allowMultiInstanceDescription": "Разрешить запуск нескольких клиентов одновременно (полезно для разработки модов)",
"hwAccel": "Аппаратное ускорение", "hwAccel": "Аппаратное ускорение",
"hwAccelDescription": "Включить аппаратное ускорение для лаунчера", "hwAccelDescription": "Включить аппаратное ускорение для лаунчера",
"gameBranch": "Ветка игры", "gameBranch": "Ветка игры",
@@ -151,9 +156,12 @@
}, },
"uuid": { "uuid": {
"modalTitle": "Управление UUID", "modalTitle": "Управление UUID",
"currentUserUUID": "UUID текущего пользователя",
"allPlayerUUIDs": "UUID всех игроков", "allPlayerUUIDs": "UUID всех игроков",
"generateNew": "Сгенерировать новый UUID", "addIdentity": "Добавить личность",
"usernamePlaceholder": "Имя пользователя",
"add": "Добавить",
"cancel": "Отмена",
"advanced": "Дополнительно",
"loadingUUIDs": "Загрузка UUID...", "loadingUUIDs": "Загрузка UUID...",
"setCustomUUID": "Установить кастомный UUID", "setCustomUUID": "Установить кастомный UUID",
"customPlaceholder": "Ввести кастомный UUID (форматы: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "Ввести кастомный UUID (форматы: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
@@ -162,10 +170,10 @@
"copyTooltip": "Скопировать UUID", "copyTooltip": "Скопировать UUID",
"regenerateTooltip": "Сгенерировать новый UUID" "regenerateTooltip": "Сгенерировать новый UUID"
}, },
"profiles": { "configurations": {
"modalTitle": "Управление профилями", "modalTitle": "Управление конфигурациями",
"newProfilePlaceholder": "Новое имя профиля", "newProfilePlaceholder": "Название новой конфигурации",
"createProfile": "Создать профиль" "createProfile": "Создать конфигурацию"
}, },
"discord": { "discord": {
"notificationText": "Присоединитесь к нашему сообществу в Discord!", "notificationText": "Присоединитесь к нашему сообществу в Discord!",
@@ -219,6 +227,8 @@
"hwAccelSaved": "Настройка аппаратного ускорения сохранена!", "hwAccelSaved": "Настройка аппаратного ускорения сохранена!",
"hwAccelSaveFailed": "Не удалось сохранить настройку аппаратного ускорения", "hwAccelSaveFailed": "Не удалось сохранить настройку аппаратного ускорения",
"noUsername": "Имя пользователя не настроено. Пожалуйста, сначала сохраните имя пользователя.", "noUsername": "Имя пользователя не настроено. Пожалуйста, сначала сохраните имя пользователя.",
"identityAdded": "Личность успешно добавлена!",
"identityAddFailed": "Не удалось добавить личность",
"switchUsernameSuccess": "Успешно переключено на \"{username}\"!", "switchUsernameSuccess": "Успешно переключено на \"{username}\"!",
"switchUsernameFailed": "Не удалось переключить имя пользователя", "switchUsernameFailed": "Не удалось переключить имя пользователя",
"playerNameTooLong": "Имя игрока должно быть не более 16 символов" "playerNameTooLong": "Имя игрока должно быть не более 16 символов"
@@ -247,8 +257,8 @@
"installing": "Установка...", "installing": "Установка...",
"extracting": "Извлечение...", "extracting": "Извлечение...",
"verifying": "Проверка...", "verifying": "Проверка...",
"switchingProfile": "Смена профиля...", "switchingProfile": "Смена конфигурации...",
"profileSwitched": "Профиль сменён!", "profileSwitched": "Конфигурация изменена!",
"startingGame": "Запуск игры...", "startingGame": "Запуск игры...",
"launching": "ЗАПУСК...", "launching": "ЗАПУСК...",
"uninstallingGame": "Удаление игры...", "uninstallingGame": "Удаление игры...",

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "Spelare:", "playersLabel": "Spelare:",
"manageProfiles": "Hantera profiler", "manageProfiles": "Hantera",
"manageIdentities": "Hantera",
"identityTooltip": "Ditt spelarnamn och UUID som används i spelet",
"configTooltip": "Spelkonfiguration: moddar, Java- och minnesinställningar",
"defaultProfile": "Standard" "defaultProfile": "Standard"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "Launcher-beteende", "closeLauncher": "Launcher-beteende",
"closeOnStart": "Stäng launcher vid spelstart", "closeOnStart": "Stäng launcher vid spelstart",
"closeOnStartDescription": "Stäng automatiskt launcher efter att Hytale har startats", "closeOnStartDescription": "Stäng automatiskt launcher efter att Hytale har startats",
"allowMultiInstance": "Allow multiple game instances",
"allowMultiInstanceDescription": "Allow running multiple game clients at the same time (useful for mod development)",
"hwAccel": "Hårdvaruacceleration", "hwAccel": "Hårdvaruacceleration",
"hwAccelDescription": "Aktivera hårdvaruacceleration för launchern", "hwAccelDescription": "Aktivera hårdvaruacceleration för launchern",
"gameBranch": "Spelgren", "gameBranch": "Spelgren",
@@ -151,9 +156,12 @@
}, },
"uuid": { "uuid": {
"modalTitle": "UUID-hantering", "modalTitle": "UUID-hantering",
"currentUserUUID": "Nuvarande användar-UUID",
"allPlayerUUIDs": "Alla spelare-UUID:er", "allPlayerUUIDs": "Alla spelare-UUID:er",
"generateNew": "Generera ny UUID", "addIdentity": "Lägg till identitet",
"usernamePlaceholder": "Användarnamn",
"add": "Lägg till",
"cancel": "Avbryt",
"advanced": "Avancerat",
"loadingUUIDs": "Laddar UUID:er...", "loadingUUIDs": "Laddar UUID:er...",
"setCustomUUID": "Ange anpassad UUID", "setCustomUUID": "Ange anpassad UUID",
"customPlaceholder": "Ange anpassad UUID (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "Ange anpassad UUID (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
@@ -162,10 +170,10 @@
"copyTooltip": "Kopiera UUID", "copyTooltip": "Kopiera UUID",
"regenerateTooltip": "Generera ny UUID" "regenerateTooltip": "Generera ny UUID"
}, },
"profiles": { "configurations": {
"modalTitle": "Hantera profiler", "modalTitle": "Hantera konfigurationer",
"newProfilePlaceholder": "Nytt profilnamn", "newProfilePlaceholder": "Nytt konfigurationsnamn",
"createProfile": "Skapa profil" "createProfile": "Skapa konfiguration"
}, },
"discord": { "discord": {
"notificationText": "Gå med i vår Discord-gemenskap!", "notificationText": "Gå med i vår Discord-gemenskap!",
@@ -219,6 +227,8 @@
"hwAccelSaved": "Hårdvaruaccelerationsinställning sparad", "hwAccelSaved": "Hårdvaruaccelerationsinställning sparad",
"hwAccelSaveFailed": "Misslyckades med att spara hårdvaruaccelerationsinställning", "hwAccelSaveFailed": "Misslyckades med att spara hårdvaruaccelerationsinställning",
"noUsername": "Inget användarnamn konfigurerat. Vänligen spara ditt användarnamn först.", "noUsername": "Inget användarnamn konfigurerat. Vänligen spara ditt användarnamn först.",
"identityAdded": "Identitet tillagd!",
"identityAddFailed": "Kunde inte lägga till identitet",
"switchUsernameSuccess": "Bytte till \"{username}\" framgångsrikt!", "switchUsernameSuccess": "Bytte till \"{username}\" framgångsrikt!",
"switchUsernameFailed": "Misslyckades med att byta användarnamn", "switchUsernameFailed": "Misslyckades med att byta användarnamn",
"playerNameTooLong": "Spelarnamnet måste vara 16 tecken eller mindre" "playerNameTooLong": "Spelarnamnet måste vara 16 tecken eller mindre"
@@ -247,8 +257,8 @@
"installing": "Installerar...", "installing": "Installerar...",
"extracting": "Extraherar...", "extracting": "Extraherar...",
"verifying": "Verifierar...", "verifying": "Verifierar...",
"switchingProfile": "Byter profil...", "switchingProfile": "Byter konfiguration...",
"profileSwitched": "Profil bytt!", "profileSwitched": "Konfiguration bytt!",
"startingGame": "Startar spel...", "startingGame": "Startar spel...",
"launching": "STARTAR...", "launching": "STARTAR...",
"uninstallingGame": "Avinstallerar spel...", "uninstallingGame": "Avinstallerar spel...",

View File

@@ -8,7 +8,10 @@
}, },
"header": { "header": {
"playersLabel": "Oyuncular:", "playersLabel": "Oyuncular:",
"manageProfiles": "Profilleri Yönet", "manageProfiles": "Yönet",
"manageIdentities": "Yönet",
"identityTooltip": "Oyun içinde kullanılan oyuncu adınız ve UUID'niz",
"configTooltip": "Oyun yapılandırması: modlar, Java ve bellek ayarları",
"defaultProfile": "Varsayılan" "defaultProfile": "Varsayılan"
}, },
"install": { "install": {
@@ -137,6 +140,8 @@
"closeLauncher": "Başlatıcı Davranışı", "closeLauncher": "Başlatıcı Davranışı",
"closeOnStart": "Oyun başlatıldığında Başlatıcıyı Kapat", "closeOnStart": "Oyun başlatıldığında Başlatıcıyı Kapat",
"closeOnStartDescription": "Hytale başlatıldıktan sonra başlatıcıyı otomatik olarak kapatın", "closeOnStartDescription": "Hytale başlatıldıktan sonra başlatıcıyı otomatik olarak kapatın",
"allowMultiInstance": "Allow multiple game instances",
"allowMultiInstanceDescription": "Allow running multiple game clients at the same time (useful for mod development)",
"hwAccel": "Donanım Hızlandırma", "hwAccel": "Donanım Hızlandırma",
"hwAccelDescription": "Başlatıcı için donanım hızlandırmasını etkinleştir", "hwAccelDescription": "Başlatıcı için donanım hızlandırmasını etkinleştir",
"gameBranch": "Oyun Dalı", "gameBranch": "Oyun Dalı",
@@ -151,9 +156,12 @@
}, },
"uuid": { "uuid": {
"modalTitle": "UUID Yönetimi", "modalTitle": "UUID Yönetimi",
"currentUserUUID": "Geçerli Kullanıcı UUID",
"allPlayerUUIDs": "Tüm Oyuncu UUID'leri", "allPlayerUUIDs": "Tüm Oyuncu UUID'leri",
"generateNew": "Yeni UUID Oluştur", "addIdentity": "Kimlik Ekle",
"usernamePlaceholder": "Kullanıcı Adı",
"add": "Ekle",
"cancel": "İptal",
"advanced": "Gelişmiş",
"loadingUUIDs": "UUID'ler yükleniyor...", "loadingUUIDs": "UUID'ler yükleniyor...",
"setCustomUUID": "Özel UUID Ayarla", "setCustomUUID": "Özel UUID Ayarla",
"customPlaceholder": "Özel UUID girin (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)", "customPlaceholder": "Özel UUID girin (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)",
@@ -162,10 +170,10 @@
"copyTooltip": "UUID'yi Kopyala", "copyTooltip": "UUID'yi Kopyala",
"regenerateTooltip": "Yeni UUID Oluştur" "regenerateTooltip": "Yeni UUID Oluştur"
}, },
"profiles": { "configurations": {
"modalTitle": "Profilleri Yönet", "modalTitle": "Yapılandırmaları Yönet",
"newProfilePlaceholder": "Yeni Profil Adı", "newProfilePlaceholder": "Yeni Yapılandırma Adı",
"createProfile": "Profil Oluştur" "createProfile": "Yapılandırma Oluştur"
}, },
"discord": { "discord": {
"notificationText": "Discord topluluğumuza katılın!", "notificationText": "Discord topluluğumuza katılın!",
@@ -219,6 +227,8 @@
"hwAccelSaved": "Donanım hızlandırma ayarı kaydedildi", "hwAccelSaved": "Donanım hızlandırma ayarı kaydedildi",
"hwAccelSaveFailed": "Donanım hızlandırma ayarı kaydedilemedi", "hwAccelSaveFailed": "Donanım hızlandırma ayarı kaydedilemedi",
"noUsername": "Kullanıcı adı yapılandırılmadı. Lütfen önce kullanıcı adınızı kaydedin.", "noUsername": "Kullanıcı adı yapılandırılmadı. Lütfen önce kullanıcı adınızı kaydedin.",
"identityAdded": "Kimlik başarıyla eklendi!",
"identityAddFailed": "Kimlik eklenemedi",
"switchUsernameSuccess": "\"{username}\" adına başarıyla geçildi!", "switchUsernameSuccess": "\"{username}\" adına başarıyla geçildi!",
"switchUsernameFailed": "Kullanıcı adı değiştirilemedi", "switchUsernameFailed": "Kullanıcı adı değiştirilemedi",
"playerNameTooLong": "Oyuncu adı 16 karakter veya daha az olmalıdır" "playerNameTooLong": "Oyuncu adı 16 karakter veya daha az olmalıdır"
@@ -247,8 +257,8 @@
"installing": "Kuruluyur...", "installing": "Kuruluyur...",
"extracting": "Ayıklanıyor...", "extracting": "Ayıklanıyor...",
"verifying": "Doğrulanıyor...", "verifying": "Doğrulanıyor...",
"switchingProfile": "Profil değiştiriliyor...", "switchingProfile": "Yapılandırma değiştiriliyor...",
"profileSwitched": "Profil değiştirildi!", "profileSwitched": "Yapılandırma değiştirildi!",
"startingGame": "Oyun başlatılıyor...", "startingGame": "Oyun başlatılıyor...",
"launching": "BAŞLATILIYOR...", "launching": "BAŞLATILIYOR...",
"uninstallingGame": "Oyun kaldırılıyor...", "uninstallingGame": "Oyun kaldırılıyor...",

View File

@@ -5575,9 +5575,8 @@ input[type="text"].uuid-input,
font-family: 'Space Grotesk', sans-serif; font-family: 'Space Grotesk', sans-serif;
} }
.uuid-current-section,
.uuid-list-section, .uuid-list-section,
.uuid-custom-section { .uuid-advanced-section {
background: rgba(255, 255, 255, 0.03); background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px; border-radius: 12px;
@@ -5824,6 +5823,96 @@ input[type="text"].uuid-input,
color: #3b82f6; color: #3b82f6;
} }
.uuid-item-btn.regenerate:hover {
background: rgba(249, 115, 22, 0.2);
border-color: rgba(249, 115, 22, 0.4);
color: #f97316;
}
/* Add Identity Form */
.uuid-add-form {
background: rgba(147, 51, 234, 0.05);
border: 1px dashed rgba(147, 51, 234, 0.3);
border-radius: 8px;
padding: 1rem;
margin-bottom: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.uuid-add-form-row {
display: flex;
align-items: stretch;
gap: 0.5rem;
}
.uuid-add-form-row .uuid-input {
flex: 1;
padding: 0.75rem 1rem;
border-radius: 8px;
}
.uuid-add-form-actions {
display: flex;
gap: 0.5rem;
justify-content: flex-end;
}
.uuid-cancel-btn {
padding: 0.75rem 1.25rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
color: rgba(255, 255, 255, 0.7);
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}
.uuid-cancel-btn:hover {
background: rgba(239, 68, 68, 0.15);
border-color: rgba(239, 68, 68, 0.3);
color: #ef4444;
}
/* Advanced Section */
.uuid-advanced-toggle {
display: flex;
align-items: center;
gap: 0.5rem;
background: none;
border: none;
color: rgba(255, 255, 255, 0.6);
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
padding: 0.5rem 0;
transition: color 0.3s ease;
font-family: 'Space Grotesk', sans-serif;
}
.uuid-advanced-toggle:hover {
color: rgba(255, 255, 255, 0.9);
}
.uuid-advanced-chevron {
font-size: 0.75rem;
transition: transform 0.3s ease;
}
.uuid-advanced-chevron.open {
transform: rotate(90deg);
}
.uuid-advanced-content {
margin-top: 1rem;
}
@media (max-width: 600px) { @media (max-width: 600px) {
.uuid-modal-content { .uuid-modal-content {
width: 95vw; width: 95vw;
@@ -5835,8 +5924,8 @@ input[type="text"].uuid-input,
gap: 1.5rem; gap: 1.5rem;
} }
.uuid-current-display, .uuid-custom-form,
.uuid-custom-form { .uuid-add-form-row {
flex-direction: column; flex-direction: column;
} }
@@ -6213,6 +6302,228 @@ input[type="text"].uuid-input,
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
} }
/* Header Tooltip Styles */
.header-tooltip {
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%) translateY(4px);
font-size: 0.65rem;
font-weight: 500;
letter-spacing: 0.03em;
color: #9ca3af;
opacity: 0;
transition: opacity 0.2s ease;
pointer-events: none;
white-space: nowrap;
background: rgba(0, 0, 0, 0.85);
padding: 0.3rem 0.6rem;
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.08);
z-index: 1;
}
.identity-selector:hover .header-tooltip,
.profile-selector:hover .header-tooltip {
opacity: 1;
}
.identity-dropdown.show ~ .header-tooltip,
.profile-dropdown.show ~ .header-tooltip {
opacity: 0 !important;
}
/* Identity Selector Styles */
.identity-selector {
position: relative;
pointer-events: auto;
margin-left: 1rem;
z-index: 9999 !important;
}
.identity-btn {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 1rem;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
color: white;
cursor: pointer;
font-family: 'Space Grotesk', sans-serif;
font-weight: 600;
transition: all 0.2s ease;
z-index: 100000 !important;
pointer-events: auto !important;
}
.identity-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(34, 197, 94, 0.4);
}
.identity-btn i {
color: #22c55e;
}
.identity-btn .password-shield {
position: relative;
font-size: 0.8rem;
padding: 4px 6px;
border-radius: 6px;
transition: all 0.2s ease;
cursor: pointer;
z-index: 10;
}
.identity-btn .password-shield.unprotected {
color: #f59e0b;
background: rgba(245, 158, 11, 0.15);
border: 1px solid rgba(245, 158, 11, 0.3);
animation: shieldPulse 2s ease-in-out infinite;
}
.identity-btn .password-shield.protected {
color: #22c55e;
background: rgba(34, 197, 94, 0.1);
border: 1px solid rgba(34, 197, 94, 0.2);
animation: none;
}
.identity-btn .password-shield:hover {
transform: scale(1.15);
filter: brightness(1.3);
}
.identity-btn .password-shield::after {
content: attr(data-tooltip);
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.9);
color: #fff;
padding: 6px 10px;
border-radius: 6px;
font-size: 0.7rem;
font-weight: 400;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transition: opacity 0.15s ease;
border: 1px solid rgba(255,255,255,0.1);
}
.identity-btn .password-shield:hover::after {
opacity: 1;
}
@keyframes shieldPulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Password status in identity dropdown */
.identity-item .pw-badge {
font-size: 0.65rem;
margin-left: auto;
padding: 1px 5px;
border-radius: 4px;
}
.identity-item .pw-badge.locked {
color: #22c55e;
background: rgba(34, 197, 94, 0.15);
}
.identity-item .pw-badge.unlocked {
color: #f59e0b;
background: rgba(245, 158, 11, 0.1);
}
.identity-dropdown {
position: absolute;
top: 100%;
left: 0;
margin-top: 0.5rem;
width: 200px;
background: rgba(20, 20, 20, 0.95);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 0.5rem;
display: none;
flex-direction: column;
z-index: 2000;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
animation: fadeIn 0.1s ease;
}
.identity-dropdown.show {
display: flex;
}
.identity-list {
max-height: 200px;
overflow-y: auto;
}
.identity-item {
padding: 0.6rem 0.8rem;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.5rem;
color: #ccc;
transition: all 0.2s;
}
.identity-item:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
}
.identity-item.active {
background: rgba(34, 197, 94, 0.2);
color: white;
font-weight: bold;
}
.identity-item.active::before {
content: '\2022';
color: #22c55e;
font-size: 1.2rem;
}
.identity-divider {
height: 1px;
background: rgba(255, 255, 255, 0.1);
margin: 0.5rem 0;
}
.identity-action {
padding: 0.6rem 0.8rem;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.5rem;
color: #22c55e;
font-weight: 600;
}
.identity-action:hover {
background: rgba(34, 197, 94, 0.1);
}
.identity-empty {
padding: 0.6rem 0.8rem;
color: #666;
font-size: 0.85rem;
text-align: center;
}
/* Profile Selector Styles */ /* Profile Selector Styles */
.profile-selector { .profile-selector {
position: relative; position: relative;

View File

@@ -529,7 +529,7 @@ function getAllUuidMappingsArray() {
* Validates UUID format before saving * Validates UUID format before saving
* Preserves original case of username * Preserves original case of username
*/ */
function setUuidForUser(username, uuid) { function setUuidForUser(username, uuid, { force = false } = {}) {
const { validate: validateUuid } = require('uuid'); const { validate: validateUuid } = require('uuid');
if (!username || typeof username !== 'string' || !username.trim()) { if (!username || typeof username !== 'string' || !username.trim()) {
@@ -543,15 +543,29 @@ function setUuidForUser(username, uuid) {
const displayName = username.trim(); const displayName = username.trim();
const normalizedLookup = displayName.toLowerCase(); const normalizedLookup = displayName.toLowerCase();
// 1. Update UUID store (source of truth) // 1. Check for existing entries — reject overwrite unless forced
migrateUuidStoreIfNeeded(); migrateUuidStoreIfNeeded();
const uuidStore = loadUuidStore(); const uuidStore = loadUuidStore();
const storeKey = Object.keys(uuidStore).find(k => k.toLowerCase() === normalizedLookup); const storeKey = Object.keys(uuidStore).find(k => k.toLowerCase() === normalizedLookup);
if (storeKey && uuidStore[storeKey] !== uuid && !force) {
console.log(`[Config] Rejected UUID overwrite for "${displayName}": existing ${uuidStore[storeKey]}, attempted ${uuid}`);
return { success: false, error: 'duplicate', existingUuid: uuidStore[storeKey] };
}
// Check if UUID already used by a different name
if (!force) {
const existingByUuid = Object.entries(uuidStore).find(([k, v]) => v.toLowerCase() === uuid.toLowerCase() && k.toLowerCase() !== normalizedLookup);
if (existingByUuid) {
console.log(`[Config] Rejected duplicate UUID for "${displayName}": UUID ${uuid} already used by "${existingByUuid[0]}"`);
return { success: false, error: 'uuid_in_use', existingUsername: existingByUuid[0] };
}
}
// 2. Update UUID store (source of truth)
if (storeKey) delete uuidStore[storeKey]; if (storeKey) delete uuidStore[storeKey];
uuidStore[displayName] = uuid; uuidStore[displayName] = uuid;
saveUuidStore(uuidStore); saveUuidStore(uuidStore);
// 2. Update config.json (backward compat) // 3. Update config.json (backward compat)
const config = loadConfig(); const config = loadConfig();
const userUuids = config.userUuids || {}; const userUuids = config.userUuids || {};
const existingKey = Object.keys(userUuids).find(k => k.toLowerCase() === normalizedLookup); const existingKey = Object.keys(userUuids).find(k => k.toLowerCase() === normalizedLookup);
@@ -560,7 +574,7 @@ function setUuidForUser(username, uuid) {
saveConfig({ userUuids }); saveConfig({ userUuids });
console.log(`[Config] UUID set for "${displayName}": ${uuid}`); console.log(`[Config] UUID set for "${displayName}": ${uuid}`);
return uuid; return { success: true, uuid };
} }
/** /**
@@ -619,7 +633,7 @@ function resetCurrentUserUuid() {
const { v4: uuidv4 } = require('uuid'); const { v4: uuidv4 } = require('uuid');
const newUuid = uuidv4(); const newUuid = uuidv4();
return setUuidForUser(username, newUuid); return setUuidForUser(username, newUuid, { force: true });
} }
// ============================================================================= // =============================================================================
@@ -708,6 +722,15 @@ function loadLauncherHardwareAcceleration() {
return config.launcherHardwareAcceleration !== undefined ? config.launcherHardwareAcceleration : true; return config.launcherHardwareAcceleration !== undefined ? config.launcherHardwareAcceleration : true;
} }
function saveAllowMultiInstance(enabled) {
saveConfig({ allowMultiInstance: !!enabled });
}
function loadAllowMultiInstance() {
const config = loadConfig();
return config.allowMultiInstance !== undefined ? config.allowMultiInstance : false;
}
// ============================================================================= // =============================================================================
// MODS MANAGEMENT // MODS MANAGEMENT
// ============================================================================= // =============================================================================
@@ -1105,6 +1128,8 @@ module.exports = {
loadCloseLauncherOnStart, loadCloseLauncherOnStart,
saveLauncherHardwareAcceleration, saveLauncherHardwareAcceleration,
loadLauncherHardwareAcceleration, loadLauncherHardwareAcceleration,
saveAllowMultiInstance,
loadAllowMultiInstance,
// Mods // Mods
saveModsToConfig, saveModsToConfig,

View File

@@ -20,6 +20,8 @@ const {
saveLauncherHardwareAcceleration, saveLauncherHardwareAcceleration,
loadLauncherHardwareAcceleration, loadLauncherHardwareAcceleration,
saveAllowMultiInstance,
loadAllowMultiInstance,
loadConfig, loadConfig,
saveConfig, saveConfig,
@@ -151,6 +153,10 @@ module.exports = {
saveLauncherHardwareAcceleration, saveLauncherHardwareAcceleration,
loadLauncherHardwareAcceleration, loadLauncherHardwareAcceleration,
// Multi-instance functions
saveAllowMultiInstance,
loadAllowMultiInstance,
// Config functions // Config functions
loadConfig, loadConfig,
saveConfig, saveConfig,

View File

@@ -30,6 +30,7 @@ const { syncModsForCurrentProfile } = require('./modManager');
const { getUserDataPath } = require('../utils/userDataMigration'); const { getUserDataPath } = require('../utils/userDataMigration');
const { syncServerList } = require('../utils/serverListSync'); const { syncServerList } = require('../utils/serverListSync');
const { killGameProcesses } = require('./gameManager'); const { killGameProcesses } = require('./gameManager');
const { loadAllowMultiInstance } = require('../core/config');
// Client patcher for custom auth server (sanasol.ws) // Client patcher for custom auth server (sanasol.ws)
let clientPatcher = null; let clientPatcher = null;
@@ -42,24 +43,51 @@ try {
const execAsync = promisify(exec); const execAsync = promisify(exec);
// Fetch tokens from the auth server (properly signed with server's Ed25519 key) // Fetch tokens from the auth server (properly signed with server's Ed25519 key)
async function fetchAuthTokens(uuid, name) { async function fetchAuthTokens(uuid, name, password) {
const authServerUrl = getAuthServerUrl(); const authServerUrl = getAuthServerUrl();
try { try {
console.log(`Fetching auth tokens from ${authServerUrl}/game-session/child`); console.log(`Fetching auth tokens from ${authServerUrl}/game-session/child`);
const bodyData = {
uuid: uuid,
name: name,
scopes: ['hytale:server', 'hytale:client']
};
if (password) bodyData.password = password;
const response = await fetch(`${authServerUrl}/game-session/child`, { const response = await fetch(`${authServerUrl}/game-session/child`, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
body: JSON.stringify({ body: JSON.stringify(bodyData)
uuid: uuid,
name: name,
scopes: ['hytale:server', 'hytale:client']
})
}); });
if (!response.ok) { if (!response.ok) {
const errBody = await response.json().catch(() => ({}));
if (response.status === 401 && errBody.password_required) {
const err = new Error('Password required');
err.passwordRequired = true;
err.attemptsRemaining = errBody.attemptsRemaining;
throw err;
}
if (response.status === 429) {
const err = new Error('Too many failed attempts. Try again later.');
err.lockedOut = true;
err.lockoutSeconds = errBody.lockoutSeconds;
throw err;
}
if (response.status === 403 && errBody.username_taken) {
const err = new Error('This username is reserved by another player who has set a password. Please use a different name.');
err.usernameTaken = true;
throw err;
}
if (response.status === 403 && errBody.name_locked) {
const err = new Error(`This UUID is locked to username "${errBody.registeredName}". Change your identity name to match.`);
err.nameLocked = true;
err.registeredName = errBody.registeredName;
throw err;
}
throw new Error(`Auth server returned ${response.status}`); throw new Error(`Auth server returned ${response.status}`);
} }
@@ -76,10 +104,12 @@ async function fetchAuthTokens(uuid, name) {
if (payload.username && payload.username !== name && name !== 'Player') { if (payload.username && payload.username !== name && name !== 'Player') {
console.warn(`[Auth] Token username mismatch: token has "${payload.username}", expected "${name}". Retrying...`); console.warn(`[Auth] Token username mismatch: token has "${payload.username}", expected "${name}". Retrying...`);
// Retry once with explicit name // Retry once with explicit name
const retryBody = { uuid: uuid, name: name, scopes: ['hytale:server', 'hytale:client'] };
if (password) retryBody.password = password;
const retryResponse = await fetch(`${authServerUrl}/game-session/child`, { const retryResponse = await fetch(`${authServerUrl}/game-session/child`, {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ uuid: uuid, name: name, scopes: ['hytale:server', 'hytale:client'] }) body: JSON.stringify(retryBody)
}); });
if (retryResponse.ok) { if (retryResponse.ok) {
const retryData = await retryResponse.json(); const retryData = await retryResponse.json();
@@ -98,6 +128,10 @@ async function fetchAuthTokens(uuid, name) {
console.log('Auth tokens received from server'); console.log('Auth tokens received from server');
return { identityToken, sessionToken }; return { identityToken, sessionToken };
} catch (error) { } catch (error) {
// Re-throw authentication errors — must not fall back to local tokens
if (error.passwordRequired || error.lockedOut || error.usernameTaken || error.nameLocked) {
throw error;
}
console.error('Failed to fetch auth tokens:', error.message); console.error('Failed to fetch auth tokens:', error.message);
// Fallback to local generation if server unavailable // Fallback to local generation if server unavailable
return generateLocalTokens(uuid, name); return generateLocalTokens(uuid, name);
@@ -146,7 +180,7 @@ function generateLocalTokens(uuid, name) {
}; };
} }
async function launchGame(playerNameOverride = null, progressCallback, javaPathOverride, installPathOverride, gpuPreference = 'auto', branchOverride = null) { async function launchGame(playerNameOverride = null, progressCallback, javaPathOverride, installPathOverride, gpuPreference = 'auto', branchOverride = null, options = {}) {
// ========================================================================== // ==========================================================================
// CACHE INVALIDATION: Clear proxyClient module cache to force fresh .env load // CACHE INVALIDATION: Clear proxyClient module cache to force fresh .env load
// This prevents stale cached values from affecting multiple launch attempts // This prevents stale cached values from affecting multiple launch attempts
@@ -255,11 +289,12 @@ async function launchGame(playerNameOverride = null, progressCallback, javaPathO
const uuid = getUuidForUser(playerName); const uuid = getUuidForUser(playerName);
console.log(`[Launcher] UUID for "${playerName}": ${uuid} (verify this stays constant across launches)`); console.log(`[Launcher] UUID for "${playerName}": ${uuid} (verify this stays constant across launches)`);
// Fetch tokens from auth server // Fetch tokens from auth server (with password if provided)
if (progressCallback) { if (progressCallback) {
progressCallback('Fetching authentication tokens...', null, null, null, null); progressCallback('Fetching authentication tokens...', null, null, null, null);
} }
const { identityToken, sessionToken } = await fetchAuthTokens(uuid, playerName); const launchPassword = options?.password || null;
const { identityToken, sessionToken } = await fetchAuthTokens(uuid, playerName, launchPassword);
// Patch client and server binaries to use custom auth server (BEFORE signing on macOS) // Patch client and server binaries to use custom auth server (BEFORE signing on macOS)
// FORCE patch on every launch to ensure consistency // FORCE patch on every launch to ensure consistency
@@ -410,6 +445,17 @@ async function launchGame(playerNameOverride = null, progressCallback, javaPathO
const env = { ...process.env }; const env = { ...process.env };
// Linux: Add Client directory to LD_LIBRARY_PATH so the dynamic linker can find
// bundled native libraries (e.g. libSDL3_image.so.0). The .NET DllImport only tries
// bare names like "SDL3_image.so" which don't match versioned .so.0 files.
// LD_LIBRARY_PATH lets dlopen() find them via standard library resolution.
if (process.platform === 'linux') {
const clientDir = path.dirname(clientPath);
const existing = env.LD_LIBRARY_PATH || '';
env.LD_LIBRARY_PATH = existing ? `${clientDir}:${existing}` : clientDir;
console.log(`Linux: LD_LIBRARY_PATH includes ${clientDir}`);
}
const waylandEnv = setupWaylandEnvironment(); const waylandEnv = setupWaylandEnvironment();
Object.assign(env, waylandEnv); Object.assign(env, waylandEnv);
const gpuEnv = setupGpuEnvironment(gpuPreference); const gpuEnv = setupGpuEnvironment(gpuPreference);
@@ -464,8 +510,10 @@ async function launchGame(playerNameOverride = null, progressCallback, javaPathO
} }
// Kill any stalled game processes from a previous launch to prevent file locks // Kill any stalled game processes from a previous launch to prevent file locks
// and "game already running" issues // and "game already running" issues (skip if multi-instance mode is enabled)
await killGameProcesses(); if (!loadAllowMultiInstance()) {
await killGameProcesses();
}
// Remove AOT cache: generated by official Hytale JRE, incompatible with F2P JRE. // Remove AOT cache: generated by official Hytale JRE, incompatible with F2P JRE.
// Client adds -XX:AOTCache when this file exists, causing classloading failures. // Client adds -XX:AOTCache when this file exists, causing classloading failures.
@@ -575,7 +623,7 @@ async function launchGame(playerNameOverride = null, progressCallback, javaPathO
} }
} }
async function launchGameWithVersionCheck(playerNameOverride = null, progressCallback, javaPathOverride, installPathOverride, gpuPreference = 'auto', branchOverride = null) { async function launchGameWithVersionCheck(playerNameOverride = null, progressCallback, javaPathOverride, installPathOverride, gpuPreference = 'auto', branchOverride = null, options = {}) {
try { try {
// ========================================================================== // ==========================================================================
// PRE-LAUNCH VALIDATION: Check username is configured // PRE-LAUNCH VALIDATION: Check username is configured
@@ -648,7 +696,7 @@ async function launchGameWithVersionCheck(playerNameOverride = null, progressCal
progressCallback('Launching game...', 80, null, null, null); progressCallback('Launching game...', 80, null, null, null);
} }
const launchResult = await launchGame(playerNameOverride, progressCallback, javaPathOverride, installPathOverride, gpuPreference, branch); const launchResult = await launchGame(playerNameOverride, progressCallback, javaPathOverride, installPathOverride, gpuPreference, branch, options);
// Ensure we always return a result // Ensure we always return a result
if (!launchResult) { if (!launchResult) {
@@ -662,6 +710,10 @@ async function launchGameWithVersionCheck(playerNameOverride = null, progressCal
if (progressCallback) { if (progressCallback) {
progressCallback(`Error: ${error.message}`, -1, null, null, null); progressCallback(`Error: ${error.message}`, -1, null, null, null);
} }
// Re-throw authentication errors so IPC handler can return proper flags
if (error.passwordRequired || error.lockedOut || error.usernameTaken || error.nameLocked) {
throw error;
}
// Always return an error response instead of throwing // Always return an error response instead of throwing
return { success: false, error: error.message || 'Unknown launch error' }; return { success: false, error: error.message || 'Unknown launch error' };
} }

View File

@@ -106,6 +106,23 @@ function getBundledJavaPath(jreDir = JRE_DIR) {
} }
} }
// Fallback: check for nested JRE directory (e.g. jdk-25.0.2+10-jre/bin/java)
// This happens when flattenJREDir fails due to EPERM/EACCES on Windows
try {
if (fs.existsSync(jreDir)) {
const entries = fs.readdirSync(jreDir, { withFileTypes: true });
for (const entry of entries) {
if (entry.isDirectory() && entry.name !== 'bin' && entry.name !== 'lib') {
const nestedCandidate = path.join(jreDir, entry.name, 'bin', JAVA_EXECUTABLE);
if (fs.existsSync(nestedCandidate)) {
console.log(`[JRE] Using nested Java path: ${nestedCandidate}`);
return nestedCandidate;
}
}
}
}
} catch (_) { /* ignore */ }
return null; return null;
} }
@@ -409,7 +426,7 @@ function extractTarGz(tarGzPath, dest) {
function flattenJREDir(jreLatest) { function flattenJREDir(jreLatest) {
try { try {
const entries = fs.readdirSync(jreLatest, { withFileTypes: true }); const entries = fs.readdirSync(jreLatest, { withFileTypes: true });
if (entries.length !== 1 || !entries[0].isDirectory()) { if (entries.length !== 1 || !entries[0].isDirectory()) {
return; return;
} }
@@ -420,12 +437,48 @@ function flattenJREDir(jreLatest) {
for (const file of files) { for (const file of files) {
const oldPath = path.join(nested, file.name); const oldPath = path.join(nested, file.name);
const newPath = path.join(jreLatest, file.name); const newPath = path.join(jreLatest, file.name);
fs.renameSync(oldPath, newPath); try {
fs.renameSync(oldPath, newPath);
} catch (renameErr) {
if (renameErr.code === 'EPERM' || renameErr.code === 'EACCES' || renameErr.code === 'EBUSY') {
console.log(`[JRE] Rename failed for ${file.name} (${renameErr.code}), using copy fallback`);
copyRecursiveSync(oldPath, newPath);
} else {
throw renameErr;
}
}
} }
fs.rmSync(nested, { recursive: true, force: true }); try {
fs.rmSync(nested, { recursive: true, force: true });
} catch (rmErr) {
console.log('[JRE] Could not remove nested JRE dir (non-critical):', rmErr.message);
}
} catch (err) { } catch (err) {
console.log('Notice: could not restructure Java directory:', err.message); console.error('[JRE] Failed to restructure Java directory:', err.message);
// Last resort: check if java exists in a nested subdir and skip flatten
try {
const entries = fs.readdirSync(jreLatest, { withFileTypes: true });
const nestedDir = entries.find(e => e.isDirectory() && e.name !== 'bin' && e.name !== 'lib');
if (nestedDir) {
const nestedBin = path.join(jreLatest, nestedDir.name, 'bin', process.platform === 'win32' ? 'java.exe' : 'java');
if (fs.existsSync(nestedBin)) {
console.log(`[JRE] Java found in nested dir: ${nestedDir.name}, leaving structure as-is`);
}
}
} catch (_) { /* ignore */ }
}
}
function copyRecursiveSync(src, dest) {
const stat = fs.statSync(src);
if (stat.isDirectory()) {
fs.mkdirSync(dest, { recursive: true });
for (const child of fs.readdirSync(src)) {
copyRecursiveSync(path.join(src, child), path.join(dest, child));
}
} else {
fs.copyFileSync(src, dest);
} }
} }

View File

@@ -594,6 +594,10 @@ function setupGpuEnvironment(gpuPreference) {
if (detected.vendor === 'nvidia') { if (detected.vendor === 'nvidia') {
envVars.__NV_PRIME_RENDER_OFFLOAD = '1'; envVars.__NV_PRIME_RENDER_OFFLOAD = '1';
envVars.__GLX_VENDOR_LIBRARY_NAME = 'nvidia'; envVars.__GLX_VENDOR_LIBRARY_NAME = 'nvidia';
// Prevent Wayland explicit sync crashes on NVIDIA (Hyprland, etc.)
if (isWaylandSession()) {
envVars.__NV_DISABLE_EXPLICIT_SYNC = '1';
}
const nvidiaEglFile = '/usr/share/glvnd/egl_vendor.d/10_nvidia.json'; const nvidiaEglFile = '/usr/share/glvnd/egl_vendor.d/10_nvidia.json';
if (fs.existsSync(nvidiaEglFile)) { if (fs.existsSync(nvidiaEglFile)) {
envVars.__EGL_VENDOR_LIBRARY_FILENAMES = nvidiaEglFile; envVars.__EGL_VENDOR_LIBRARY_FILENAMES = nvidiaEglFile;

View File

@@ -1,10 +1,10 @@
# Singleplayer Server Crash: fastutil ClassNotFoundException # Singleplayer Server Crash: fastutil ClassNotFoundException
## Status: Open (user-specific, Feb 24 2026) ## Status: Open — likely outdated HytaleServer.jar (Feb 24-28 2026)
## Symptom ## Symptom
Singleplayer server crashes immediately after DualAuth Agent installs successfully: Singleplayer server crashes immediately on boot:
``` ```
Exception in thread "main" java.lang.NoClassDefFoundError: it/unimi/dsi/fastutil/objects/ObjectArrayList Exception in thread "main" java.lang.NoClassDefFoundError: it/unimi/dsi/fastutil/objects/ObjectArrayList
@@ -16,98 +16,75 @@ Caused by: java.lang.ClassNotFoundException: it.unimi.dsi.fastutil.objects.Objec
Server exits with code 1. Multiplayer works fine for the same user. Server exits with code 1. Multiplayer works fine for the same user.
## Affected User ## Affected Users
- Discord: ヅ𝚃 JAYED ! 1. **ヅ𝚃 JAYED !** (Feb 24) — Windows x86_64, had AOT cache errors before fastutil crash
- Platform: Windows (standard x86_64, NOT ARM) 2. **Asentrix** (Feb 27) — Windows x86_64 (NT 10.0.26200.0), RTX 4060, Launcher v2.4.4, NO AOT cache errors
- Reproduces 100% on singleplayer, every attempt 3. **7645754** (Feb 28) — Standalone server on localhost, **FIXED by updating HytaleServer.jar**
- Other users (including macOS/Linux) are NOT affected
## What Works - Reproduces 100% on singleplayer, every attempt (users 1-2)
- Multiplayer works fine for users 1-2
- macOS/Linux users are NOT affected
- Java wrapper correctly strips `-XX:+UseCompactObjectHeaders` ## Ruled Out (confirmed via debug builds)
- Java wrapper correctly injects `--disable-sentry`
- DualAuth Agent v1.1.12 installs successfully (STATIC mode)
- Multiplayer connections work fine
- Repair and reinstall did NOT fix the issue
## Root Cause Analysis | Suspect | Tested | Result |
|---------|--------|--------|
| **DualAuth Agent** | Debug build with agent completely disabled (`debug-no-agent` tag) | **Same crash.** Agent is innocent. |
| **`-Xshare:off` (CDS)** | Added to `JAVA_TOOL_OPTIONS` in launcher code (`debug-xshare-off` tag) | **Did not help.** CDS is not the cause. |
| **`-XX:+UseCompactObjectHeaders`** | Stripped via wrapper | **Did not help.** Server has `-XX:+IgnoreUnrecognizedVMOptions` anyway. |
| **Corrupted game files** | User did repair + full reinstall | **Same crash.** |
| **Java wrapper** | Logs confirm wrapper works correctly | Not the cause. |
| **ARM64/Parallels** | User is on standard Windows x86_64 | Not applicable. |
| **AOT cache** | Asentrix has no AOT errors (JAYED did), both crash the same way | Not the root cause. |
`fastutil` (`it.unimi.dsi.fastutil`) should be bundled inside `HytaleServer.jar` (fat JAR). The `ClassNotFoundException` means the JVM's app classloader cannot find it despite it being in the JAR. ## Key Finding: Outdated HytaleServer.jar (Feb 28)
### Ruled Out User `7645754` had the **exact same error** on their standalone localhost server but NOT on their VPS. **Fixed by replacing `HytaleServer.jar` with the current version.** The old JAR used to work but stopped — likely the bundled JRE was updated and is now incompatible with older JAR versions.
- **Wrapper issue**: Wrapper is working correctly (confirmed in logs) This strongly suggests the root cause for F2P launcher users is also a **stale/mismatched `HytaleServer.jar`**. The launcher may report the correct version but the actual file on disk could be from an older download.
- **UseCompactObjectHeaders**: Server also has `-XX:+IgnoreUnrecognizedVMOptions`, so unrecognized flags don't crash it
- **DualAuth Agent**: Works for all other users; agent installs successfully before the crash
- **Corrupted game files**: Repair/reinstall didn't help
- **ARM64/Parallels**: User is on standard Windows, not ARM
### Likely Causes (user-specific) ## What We Know
1. **Antivirus interference** — Windows Defender or third-party AV blocking Java from reading classes out of JAR files, especially with `-javaagent` active - `fastutil` is bundled inside `HytaleServer.jar` (fat/shaded JAR)
2. **Corrupted/incompatible JRE** — bundled JRE might be broken on their system - JVM's `BuiltinClassLoader` cannot find `it.unimi.dsi.fastutil.objects.ObjectArrayList` despite it being in the JAR
3. **File locking** — another process holding HytaleServer.jar open - Crash happens at `EarlyPluginLoader` static initializer (line 34) which imports `ObjectArrayList`
- **Replacing `HytaleServer.jar` with a fresh copy fixes the issue** (confirmed by user 3)
- The issue is NOT caused by the DualAuth agent or any launcher modification
## Debugging Steps (ask user) ## Fix for Users
1. **Does official Hytale singleplayer work?** (without F2P launcher) ### F2P Launcher users (Asentrix, JAYED)
- Yes → something about our launch setup 1. **Delete the entire game folder**: `%LOCALAPPDATA%\HytaleF2P\release\package\game\`
- No → their system/JRE issue 2. Relaunch — launcher will re-download everything fresh
3. NOT just "repair" — full delete to ensure no stale files remain
2. **Check antivirus** — add game directory to Windows Defender exclusions: ### Standalone server users
- Settings → Windows Security → Virus & threat protection → Exclusions 1. Download fresh `HytaleServer.jar` from current game version
- Add their HytaleF2P install folder 2. Replace the old JAR file
3. **Verify fastutil is in the JAR**: ## Update History
```cmd
jar tf "D:\path\to\Server\HytaleServer.jar" | findstr fastutil
```
- If output shows fastutil classes → JAR is fine, classloader issue
- If no output → JAR is incomplete/corrupt (different from other users)
4. **Try without DualAuth agent** — rename `dualauth-agent.jar` in Server/ folder, retry singleplayer ### Feb 24: First report (JAYED)
- If works → agent's classloader manipulation breaks fastutil on their setup User reported singleplayer crash. Initial investigation found AOT cache errors + fastutil ClassNotFoundException. Stripping `-XX:+UseCompactObjectHeaders` did not help.
- If still fails → unrelated to agent
5. **Check JRE version** — have them run: ### Feb 27: Second report (Asentrix), extensive debugging
```cmd - Asentrix hit same crash, no AOT errors — ruled out AOT as root cause
"D:\path\to\jre\latest\bin\java.exe" -version - Built `debug-xshare-off`: added `-Xshare:off` to `JAVA_TOOL_OPTIONS`**did not help**
``` - Built `debug-no-agent`: completely disabled DualAuth agent — **same crash**
- **Conclusion**: Neither the agent nor CDS is the cause. The JVM itself cannot load classes from the fat JAR on these specific Windows systems.
- Note: wrapper `injectArgs` append AFTER `-jar`, so they cannot inject JVM flags — only `JAVA_TOOL_OPTIONS` works for JVM flags
## Update (Feb 24): `-XX:+UseCompactObjectHeaders` stripping removed from defaults ### Feb 28: Third user (7645754) — FIXED by replacing HytaleServer.jar
- Standalone server user had same crash on localhost, VPS worked fine
Stripping this flag did NOT fix the issue. The server already has `-XX:+IgnoreUnrecognizedVMOptions` so unrecognized flags are harmless. The flag was removed from default `stripFlags` in `backend/core/config.js`. - **Fixed by updating `HytaleServer.jar` to match VPS version**
- Root cause likely: outdated JAR incompatible with current/updated JRE
## Using the Java Wrapper to Strip JVM Flags - For F2P launcher users: need to delete game folder and force fresh re-download
If a user needs to strip a specific JVM flag (e.g., for debugging or compatibility), they can do it via the launcher UI:
1. Open **Settings** → scroll to **Java Wrapper Configuration**
2. Under **JVM Flags to Remove**, type the flag (e.g. `-XX:+UseCompactObjectHeaders`) and click **Add**
3. The flag will be stripped from all JVM invocations at launch time
4. To inject custom arguments, use the **Arguments to Inject** section (with optional "Server Only" condition)
5. **Restore Defaults** resets to empty strip flags + `--disable-sentry` (server only)
The wrapper generates platform-specific scripts at launch time:
- **Windows**: `java-wrapper.bat` in `jre/latest/bin/`
- **macOS/Linux**: `java-wrapper` shell script in the same directory
Config is stored in `config.json` under `javaWrapperConfig`:
```json
{
"javaWrapperConfig": {
"stripFlags": ["-XX:+SomeFlag"],
"injectArgs": [
{ "arg": "--some-arg", "condition": "server" },
{ "arg": "--other-arg", "condition": "always" }
]
}
}
```
## Related ## Related
- Java wrapper config: `backend/core/config.js` (stripFlags / injectArgs) - Java wrapper config: `backend/core/config.js` (stripFlags / injectArgs)
- DualAuth Agent: v1.1.12, package `ws.sanasol.dualauth` - DualAuth Agent: v1.1.12, package `ws.sanasol.dualauth`
- Game version at time of report: `2026.02.19-1a311a592` - Game version at time of reports: `2026.02.19-1a311a592`
- Debug tags: `debug-xshare-off`, `debug-no-agent`
- Log submission IDs: `c88e7b71` (Asentrix initial), `0445e4dc` (xshare test), `748dceeb` (no-agent test)

184
main.js
View File

@@ -3,7 +3,7 @@ require('dotenv').config({ path: path.join(__dirname, '.env') });
const { app, BrowserWindow, ipcMain, dialog, shell } = require('electron'); const { app, BrowserWindow, ipcMain, dialog, shell } = require('electron');
const { autoUpdater } = require('electron-updater'); const { autoUpdater } = require('electron-updater');
const fs = require('fs'); const fs = require('fs');
const { launchGame, launchGameWithVersionCheck, installGame, saveUsername, loadUsername, saveJavaPath, loadJavaPath, saveInstallPath, loadInstallPath, saveDiscordRPC, loadDiscordRPC, saveLanguage, loadLanguage, saveCloseLauncherOnStart, loadCloseLauncherOnStart, saveLauncherHardwareAcceleration, loadLauncherHardwareAcceleration, isGameInstalled, uninstallGame, repairGame, getHytaleNews, handleFirstLaunchCheck, proposeGameUpdate, markAsLaunched, loadConfig, saveConfig, checkLaunchReady } = require('./backend/launcher'); const { launchGame, launchGameWithVersionCheck, installGame, saveUsername, loadUsername, saveJavaPath, loadJavaPath, saveInstallPath, loadInstallPath, saveDiscordRPC, loadDiscordRPC, saveLanguage, loadLanguage, saveCloseLauncherOnStart, loadCloseLauncherOnStart, saveLauncherHardwareAcceleration, loadLauncherHardwareAcceleration, saveAllowMultiInstance, loadAllowMultiInstance, isGameInstalled, uninstallGame, repairGame, getHytaleNews, handleFirstLaunchCheck, proposeGameUpdate, markAsLaunched, loadConfig, saveConfig, checkLaunchReady } = require('./backend/launcher');
const { retryPWRDownload } = require('./backend/managers/gameManager'); const { retryPWRDownload } = require('./backend/managers/gameManager');
const { migrateUserDataToCentralized } = require('./backend/utils/userDataMigration'); const { migrateUserDataToCentralized } = require('./backend/utils/userDataMigration');
@@ -23,8 +23,9 @@ const profileManager = require('./backend/managers/profileManager');
logger.interceptConsole(); logger.interceptConsole();
// Single instance lock // Single instance lock (skip if multi-instance mode is enabled)
const gotTheLock = app.requestSingleInstanceLock(); const multiInstanceEnabled = loadAllowMultiInstance();
const gotTheLock = multiInstanceEnabled || app.requestSingleInstanceLock();
if (!gotTheLock) { if (!gotTheLock) {
console.log('Another instance is already running. Quitting...'); console.log('Another instance is already running. Quitting...');
@@ -529,7 +530,26 @@ ipcMain.handle('launch-game', async (event, playerName, javaPath, installPath, g
} }
}; };
const result = await launchGameWithVersionCheck(playerName, progressCallback, javaPath, installPath, gpuPreference); // Check if UUID has password before launching
let launchOptions = {};
const { getAuthServerUrl, getUuidForUser } = require('./backend/core/config');
const launchUuid = getUuidForUser(playerName);
try {
const uuid = launchUuid;
const authServerUrl = getAuthServerUrl();
const statusResp = await fetch(`${authServerUrl}/player/password/status/${uuid}`);
if (statusResp.ok) {
const status = await statusResp.json();
if (status.hasPassword) {
// Return to renderer to prompt for password
return { success: false, passwordRequired: true, uuid };
}
}
} catch (pwErr) {
console.log('[Launch] Password check skipped:', pwErr.message);
}
const result = await launchGameWithVersionCheck(playerName, progressCallback, javaPath, installPath, gpuPreference, null, launchOptions);
if (result.success && result.launched) { if (result.success && result.launched) {
const closeOnStart = loadCloseLauncherOnStart(); const closeOnStart = loadCloseLauncherOnStart();
@@ -553,10 +573,68 @@ ipcMain.handle('launch-game', async (event, playerName, javaPath, installPath, g
}, 2000); }, 2000);
} }
if (error.passwordRequired) {
return { success: false, passwordRequired: true, uuid: launchUuid, error: 'Password required' };
}
if (error.lockedOut) {
return { success: false, error: 'Too many failed attempts. Try again in ' + Math.ceil((error.lockoutSeconds || 900) / 60) + ' minutes.' };
}
if (error.usernameTaken) {
return { success: false, usernameTaken: true, error: errorMessage };
}
if (error.nameLocked) {
return { success: false, nameLocked: true, registeredName: error.registeredName, error: error.message };
}
return { success: false, error: errorMessage }; return { success: false, error: errorMessage };
} }
}); });
ipcMain.handle('launch-game-with-password', async (event, playerName, javaPath, installPath, gpuPreference, password) => {
try {
const progressCallback = (message, percent, speed, downloaded, total, retryState) => {
if (mainWindow && !mainWindow.isDestroyed()) {
mainWindow.webContents.send('progress-update', {
message: message || null,
percent: percent !== null && percent !== undefined ? Math.min(100, Math.max(0, percent)) : null,
speed: speed !== null && speed !== undefined ? speed : null,
downloaded: downloaded !== null && downloaded !== undefined ? downloaded : null,
total: total !== null && total !== undefined ? total : null,
retryState: retryState || null
});
}
};
const result = await launchGameWithVersionCheck(playerName, progressCallback, javaPath, installPath, gpuPreference, null, { password });
if (result.success && result.launched) {
const closeOnStart = loadCloseLauncherOnStart();
if (closeOnStart) {
setTimeout(() => { app.quit(); }, 1000);
}
}
return result;
} catch (error) {
console.error('Launch with password error:', error);
if (mainWindow && !mainWindow.isDestroyed()) {
setTimeout(() => { mainWindow.webContents.send('progress-complete'); }, 2000);
}
if (error.passwordRequired) {
return { success: false, passwordRequired: true, error: 'Incorrect password. ' + (error.attemptsRemaining != null ? error.attemptsRemaining + ' attempts remaining.' : '') };
}
if (error.lockedOut) {
return { success: false, error: 'Too many failed attempts. Try again in ' + Math.ceil((error.lockoutSeconds || 900) / 60) + ' minutes.' };
}
if (error.usernameTaken) {
return { success: false, usernameTaken: true, error: error.message || error.toString() };
}
if (error.nameLocked) {
return { success: false, nameLocked: true, registeredName: error.registeredName, error: error.message };
}
return { success: false, error: error.message || error.toString() };
}
});
ipcMain.handle('install-game', async (event, playerName, javaPath, installPath, branch) => { ipcMain.handle('install-game', async (event, playerName, javaPath, installPath, branch) => {
try { try {
console.log(`[IPC] install-game called with parameters:`); console.log(`[IPC] install-game called with parameters:`);
@@ -740,6 +818,15 @@ ipcMain.handle('load-close-launcher', () => {
return loadCloseLauncherOnStart(); return loadCloseLauncherOnStart();
}); });
ipcMain.handle('save-allow-multi-instance', (event, enabled) => {
saveAllowMultiInstance(enabled);
return { success: true };
});
ipcMain.handle('load-allow-multi-instance', () => {
return loadAllowMultiInstance();
});
ipcMain.handle('save-launcher-hw-accel', (event, enabled) => { ipcMain.handle('save-launcher-hw-accel', (event, enabled) => {
saveLauncherHardwareAcceleration(enabled); saveLauncherHardwareAcceleration(enabled);
return { success: true }; return { success: true };
@@ -1342,9 +1429,12 @@ ipcMain.handle('get-all-uuid-mappings', async () => {
} }
}); });
ipcMain.handle('set-uuid-for-user', async (event, username, uuid) => { ipcMain.handle('set-uuid-for-user', async (event, username, uuid, force) => {
try { try {
await setUuidForUser(username, uuid); const result = setUuidForUser(username, uuid, { force: !!force });
if (result && result.success === false) {
return result; // { success: false, error: 'duplicate', existingUuid }
}
return { success: true }; return { success: true };
} catch (error) { } catch (error) {
console.error('Error setting UUID for user:', error); console.error('Error setting UUID for user:', error);
@@ -1381,6 +1471,88 @@ ipcMain.handle('reset-current-user-uuid', async () => {
} }
}); });
// Password Management IPC handlers
ipcMain.handle('check-password-status', async (event, uuid) => {
try {
const { getAuthServerUrl } = require('./backend/core/config');
const authServerUrl = getAuthServerUrl();
const response = await fetch(`${authServerUrl}/player/password/status/${uuid}`);
if (!response.ok) return { hasPassword: false };
return await response.json();
} catch (error) {
console.error('Error checking password status:', error);
return { hasPassword: false, error: error.message };
}
});
ipcMain.handle('set-player-password', async (event, uuid, password, currentPassword) => {
try {
const { getAuthServerUrl } = require('./backend/core/config');
const { getUuidForUser, loadUsername } = require('./backend/core/config');
const authServerUrl = getAuthServerUrl();
// First get a bearer token for auth
const name = loadUsername() || 'Player';
const tokenResp = await fetch(`${authServerUrl}/game-session/child`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ uuid, name, password: currentPassword || undefined })
});
if (!tokenResp.ok) {
const err = await tokenResp.json().catch(() => ({}));
return { success: false, error: err.error || 'Failed to authenticate' };
}
const tokenData = await tokenResp.json();
const bearerToken = tokenData.identityToken || tokenData.IdentityToken;
const response = await fetch(`${authServerUrl}/player/password/set`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${bearerToken}`
},
body: JSON.stringify({ uuid, password, currentPassword: currentPassword || undefined })
});
return await response.json();
} catch (error) {
console.error('Error setting password:', error);
return { success: false, error: error.message };
}
});
ipcMain.handle('remove-player-password', async (event, uuid, currentPassword) => {
try {
const { getAuthServerUrl } = require('./backend/core/config');
const { loadUsername } = require('./backend/core/config');
const authServerUrl = getAuthServerUrl();
const name = loadUsername() || 'Player';
// Get bearer token with current password
const tokenResp = await fetch(`${authServerUrl}/game-session/child`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ uuid, name, password: currentPassword })
});
if (!tokenResp.ok) {
const err = await tokenResp.json().catch(() => ({}));
return { success: false, error: err.error || 'Failed to authenticate' };
}
const tokenData = await tokenResp.json();
const bearerToken = tokenData.identityToken || tokenData.IdentityToken;
const response = await fetch(`${authServerUrl}/player/password/remove`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${bearerToken}`
},
body: JSON.stringify({ uuid, currentPassword })
});
return await response.json();
} catch (error) {
console.error('Error removing password:', error);
return { success: false, error: error.message };
}
});
ipcMain.handle('get-recent-logs', async (event, maxLines = 100) => { ipcMain.handle('get-recent-logs', async (event, maxLines = 100) => {
try { try {
const logDir = logger.getLogDirectory(); const logDir = logger.getLogDirectory();

View File

@@ -1,6 +1,6 @@
{ {
"name": "hytale-f2p-launcher", "name": "hytale-f2p-launcher",
"version": "2.4.3", "version": "2.4.7",
"description": "A modern, cross-platform launcher for Hytale with automatic updates and multi-client support", "description": "A modern, cross-platform launcher for Hytale with automatic updates and multi-client support",
"homepage": "https://git.sanhost.net/sanasol/hytale-f2p", "homepage": "https://git.sanhost.net/sanasol/hytale-f2p",
"main": "main.js", "main": "main.js",

View File

@@ -2,6 +2,7 @@ const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', { contextBridge.exposeInMainWorld('electronAPI', {
launchGame: (playerName, javaPath, installPath, gpuPreference) => ipcRenderer.invoke('launch-game', playerName, javaPath, installPath, gpuPreference), launchGame: (playerName, javaPath, installPath, gpuPreference) => ipcRenderer.invoke('launch-game', playerName, javaPath, installPath, gpuPreference),
launchGameWithPassword: (playerName, javaPath, installPath, gpuPreference, password) => ipcRenderer.invoke('launch-game-with-password', playerName, javaPath, installPath, gpuPreference, password),
installGame: (playerName, javaPath, installPath, branch) => ipcRenderer.invoke('install-game', playerName, javaPath, installPath, branch), installGame: (playerName, javaPath, installPath, branch) => ipcRenderer.invoke('install-game', playerName, javaPath, installPath, branch),
closeWindow: () => ipcRenderer.invoke('window-close'), closeWindow: () => ipcRenderer.invoke('window-close'),
minimizeWindow: () => ipcRenderer.invoke('window-minimize'), minimizeWindow: () => ipcRenderer.invoke('window-minimize'),
@@ -20,6 +21,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
loadLanguage: () => ipcRenderer.invoke('load-language'), loadLanguage: () => ipcRenderer.invoke('load-language'),
saveCloseLauncher: (enabled) => ipcRenderer.invoke('save-close-launcher', enabled), saveCloseLauncher: (enabled) => ipcRenderer.invoke('save-close-launcher', enabled),
loadCloseLauncher: () => ipcRenderer.invoke('load-close-launcher'), loadCloseLauncher: () => ipcRenderer.invoke('load-close-launcher'),
saveAllowMultiInstance: (enabled) => ipcRenderer.invoke('save-allow-multi-instance', enabled),
loadAllowMultiInstance: () => ipcRenderer.invoke('load-allow-multi-instance'),
loadConfig: () => ipcRenderer.invoke('load-config'), loadConfig: () => ipcRenderer.invoke('load-config'),
saveConfig: (configUpdate) => ipcRenderer.invoke('save-config', configUpdate), saveConfig: (configUpdate) => ipcRenderer.invoke('save-config', configUpdate),
@@ -100,11 +103,20 @@ contextBridge.exposeInMainWorld('electronAPI', {
// UUID Management methods // UUID Management methods
getCurrentUuid: () => ipcRenderer.invoke('get-current-uuid'), getCurrentUuid: () => ipcRenderer.invoke('get-current-uuid'),
getAllUuidMappings: () => ipcRenderer.invoke('get-all-uuid-mappings'), getAllUuidMappings: () => ipcRenderer.invoke('get-all-uuid-mappings'),
setUuidForUser: (username, uuid) => ipcRenderer.invoke('set-uuid-for-user', username, uuid), setUuidForUser: (username, uuid, force) => ipcRenderer.invoke('set-uuid-for-user', username, uuid, force),
generateNewUuid: () => ipcRenderer.invoke('generate-new-uuid'), generateNewUuid: () => ipcRenderer.invoke('generate-new-uuid'),
deleteUuidForUser: (username) => ipcRenderer.invoke('delete-uuid-for-user', username), deleteUuidForUser: (username) => ipcRenderer.invoke('delete-uuid-for-user', username),
resetCurrentUserUuid: () => ipcRenderer.invoke('reset-current-user-uuid'), resetCurrentUserUuid: () => ipcRenderer.invoke('reset-current-user-uuid'),
// Password Management methods
checkPasswordStatus: (uuid) => ipcRenderer.invoke('check-password-status', uuid),
setPlayerPassword: (uuid, password, currentPassword) => ipcRenderer.invoke('set-player-password', uuid, password, currentPassword),
removePlayerPassword: (uuid, currentPassword) => ipcRenderer.invoke('remove-player-password', uuid, currentPassword),
promptPassword: () => ipcRenderer.invoke('prompt-password'),
onPasswordPrompt: (callback) => {
ipcRenderer.on('show-password-prompt', (event, data) => callback(data));
},
// Java Wrapper Config API // Java Wrapper Config API
loadWrapperConfig: () => ipcRenderer.invoke('load-wrapper-config'), loadWrapperConfig: () => ipcRenderer.invoke('load-wrapper-config'),
saveWrapperConfig: (config) => ipcRenderer.invoke('save-wrapper-config', config), saveWrapperConfig: (config) => ipcRenderer.invoke('save-wrapper-config', config),

View File

@@ -1,17 +0,0 @@
## v2.4.0
### New Features
- **Send Logs** — One-click button to submit launcher & game logs to support. Collects launcher logs, game client logs, and config snapshot into a ZIP, uploads to server, and returns an 8-character ID to share with support ([320ca54](https://git.sanhost.net/sanasol/hytale-f2p/commit/320ca547585c67d0773dba262612db5026378f52), [19c8991](https://git.sanhost.net/sanasol/hytale-f2p/commit/19c8991a44641ebbf44eec73a0ecd9db05241c49))
- **Arabic (ar-SA) locale** with full RTL support (community contribution by @Yugurten) ([30929ee](https://git.sanhost.net/sanasol/hytale-f2p/commit/30929ee0da5a9c64e65869d6157bd705db3b80f0))
- **One-click dedicated server scripts** for self-hosting ([552ec42](https://git.sanhost.net/sanasol/hytale-f2p/commit/552ec42d6c7e1e7d1a2803d284019ccae963f41e))
### Bug Fixes
- Fix Intel Arc iGPU (Meteor Lake/Lunar Lake) on PCI bus 00 being misdetected as discrete GPU on dual-GPU Linux systems ([19c8991](https://git.sanhost.net/sanasol/hytale-f2p/commit/19c8991a44641ebbf44eec73a0ecd9db05241c49))
- Fix stalled game processes blocking launcher operations — automatic process cleanup on repair and relaunch ([e14d56e](https://git.sanhost.net/sanasol/hytale-f2p/commit/e14d56ef4846423c1fd172d88334cb76193ee741))
- Fix AOT cache crashes — stale cache cleared before game launch ([e14d56e](https://git.sanhost.net/sanasol/hytale-f2p/commit/e14d56ef4846423c1fd172d88334cb76193ee741))
- Fix Arabic RTL CSS syntax ([fb90277](https://git.sanhost.net/sanasol/hytale-f2p/commit/fb90277be9cf5f0b8a90195a7d089273b6be082b))
### Other
- Updated README with Forgejo URLs and server setup video ([a649bf1](https://git.sanhost.net/sanasol/hytale-f2p/commit/a649bf1fcc7cbb2cd0d9aa0160b07828a144b9dd), [66faa1b](https://git.sanhost.net/sanasol/hytale-f2p/commit/66faa1bb1e39575fecb462310af338d13b1cb183))
**Full changelog**: [v2.3.8...v2.4.0](https://git.sanhost.net/sanasol/hytale-f2p/compare/v2.3.8...v2.4.0)