Triforce v0.8.0

Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-25 10:21:32 -06:00
parent 861702476a
commit 4fa4f9188b
881 changed files with 179428 additions and 15581 deletions

View File

@@ -176,3 +176,35 @@ body.kb .cp-sv.held.kf { outline: 4px double var(--gold-hi) !important; box-shad
.cp-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; font-size: 14px; }
.cp-foot em { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 17px; color: var(--gold-hi); }
.cp-foot .lnk { font-weight: 600; color: var(--gold); cursor: pointer; }
/* ((Triforce, 11-25) Evil HD on the home screen: under the save's picture, in its frame's lines; the switch lit in the theme's
own colour when on (the gold variables follow the colour chosen in Settings) */
.evilhd { position: absolute; left: 672px; top: 470px; width: 544px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 22px 0 24px; box-sizing: border-box; cursor: pointer;
background: linear-gradient(90deg, rgba(10, 9, 8, .78), rgba(10, 9, 8, .52)); border: 1px solid rgba(var(--gold-rgb), .38); transition: border-color .2s, box-shadow .2s; }
.evilhd::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(var(--gold-rgb), .14); pointer-events: none; }
.evilhd:hover, .evilhd.kf { border-color: rgba(var(--gold-rgb), .7); }
.evilhd .eh-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.evilhd .eh-txt b { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 700; font-size: 25px; line-height: 1; color: var(--text); letter-spacing: .01em; transition: color .2s, text-shadow .2s; }
.evilhd .eh-txt span { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evilhd .eh-sw { position: relative; flex: none; width: 64px; height: 30px; border-radius: 15px; background: rgba(10, 9, 8, .85); border: 1px solid rgba(var(--gold-rgb), .5); transition: background .2s, box-shadow .2s; }
.evilhd .eh-sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text3); transition: left .2s, background .2s; }
.evilhd.on { border-color: rgba(var(--gold-rgb), .7); box-shadow: 0 0 28px rgba(var(--gold-glow-rgb), .18); }
.evilhd.on .eh-txt b { color: var(--gold-hi); text-shadow: 0 0 18px rgba(var(--gold-glow-rgb), .55); }
.evilhd.on .eh-sw { background: linear-gradient(180deg, rgb(var(--gold-hi-rgb)), rgb(var(--gold-low-rgb))); box-shadow: 0 0 16px rgba(var(--gold-glow-rgb), .5); border-color: rgba(var(--gold-hi-rgb), .9); }
.evilhd.on .eh-sw i { left: 37px; background: var(--ink); }
.evilhd.off { cursor: default; opacity: .6; }
#s-home.nopic .evilhd { top: 118px; }
/* ((Triforce, 11-25) the Remastered textures row under the switch: Evil HD's texture pack, its download and progress) */
.ehpack { position: absolute; left: 672px; top: 544px; width: 544px; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px 0 24px; box-sizing: border-box;
background: rgba(10, 9, 8, .55); border: 1px solid rgba(var(--gold-rgb), .22); }
.ehpack .ehp-txt { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ehpack .ehp-txt b { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 700; font-size: 18px; color: var(--text); white-space: nowrap; }
.ehpack .ehp-txt span { font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ehpack .ehp-btn { flex: none; height: 28px; padding: 0 16px; font: 600 13px Commissioner, sans-serif; letter-spacing: .04em; color: var(--gold-hi); background: transparent;
border: 1px solid rgba(var(--gold-rgb), .55); cursor: pointer; transition: background .2s, color .2s; }
.ehpack .ehp-btn:hover, .ehpack .ehp-btn.kf { background: rgba(var(--gold-rgb), .16); }
.ehpack.have .ehp-txt b { color: var(--gold-hi); }
.ehpack .ehp-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.ehpack .ehp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgb(var(--gold-low-rgb)), rgb(var(--gold-hi-rgb))); box-shadow: 0 0 10px rgba(var(--gold-glow-rgb), .6); transition: width .4s; }
#s-home.nopic .ehpack { top: 192px; }
@media (prefers-reduced-motion: reduce) { .evilhd, .evilhd * { transition: none !important; } }

View File

@@ -327,6 +327,8 @@ const ACTIONS = {
mod: (id) => openModSheet(id),
sc: (i) => openSaveSheet(+i),
file: (i) => { S.cur = +i; drawHome(); },
texpack: () => cmd(S.texpack && S.texpack.busy ? 'texpackstop' : 'texpack'),
evilhd: () => { const r = evilRow(); if (!r) return; r.v = +r.v === 1 ? 0 : 1; drawEvilHd(); cmd('gopt.value', { key: 'evil_hd', value: r.v }); },
bringin: () => openSaveFlow('import'),
copyout: () => openSaveFlow('export'),
opt: (a, el) => { $$('.opt', el.parentElement).forEach(o => o.classList.toggle('sel', o === el)); },
@@ -426,6 +428,36 @@ function addLog(lines) {
}
/* ---------------- home ---------------- */
/// ((Triforce, 11-25) Evil HD on the home screen, the owner's ask: the game's own row (evil_hd, the Graphics tab), on or off
/// with one click; the same setting as the game's menu and F2. Hidden where the game's settings are not known (no game yet))
function evilRow() {
const g = S.gameopts; if (!g || !g.data) return null;
for (const t in g.data) for (const s of g.data[t]) for (const r of s.rows) if (r.key === 'evil_hd') return r;
return null;
}
function drawEvilHd() {
const r = evilRow(), box = $('#evilHd'); if (!box) return;
box.style.display = r ? '' : 'none'; if (!r) return;
const on = +r.v === 1, locked = !!(S.gameopts && S.gameopts.locked);
box.classList.toggle('on', on); box.classList.toggle('off', locked);
box.title = r.help || '';
$('#evilHdSub').textContent = locked ? 'Close the game to change it · F2 works while you play'
: 'Remastered textures, edges and shadows · F2 in game';
drawTexPack();
}
// ((Triforce, 11-25) the Remastered textures row under the switch: Evil HD's texture pack, downloaded into the game folder
function drawTexPack() {
const p = S.texpack, box = $('#ehPack'), r = evilRow(); if (!box) return;
const show = !!(p && r && p.have !== 'nogame'); box.style.display = show ? '' : 'none'; if (!show) return;
box.classList.toggle('busy', !!p.busy); box.classList.toggle('have', p.have === 'installed');
const pct = Math.round((p.frac || 0) * 100);
$('#ehPackSub').textContent = p.busy ? (p.line || 'Downloading') + ' · ' + pct + '%'
: p.have === 'installed' ? 'Installed · shown while Evil HD is on'
: p.have === 'partial' ? 'Stopped part way · goes on where it stopped'
: '4,505 textures at twice the detail · ' + (p.size || '18 GB');
$('#ehPackBtn').textContent = p.busy ? 'Stop' : p.have === 'installed' ? 'Manage' : p.have === 'partial' ? 'Continue' : 'Download';
$('#ehPackBar').style.width = (p.busy ? pct : 0) + '%';
}
function picUrl(f) { return f && f.pic ? `url("${f.pic}")` : 'none'; }
function drawHome() {
const h = S.home; if (!h) return;
@@ -446,6 +478,7 @@ function drawHome() {
$('#hCap').textContent = f ? `${f.label} · ${f.last ? 'your last save · ' : ''}picture from the game` : '';
$('#strip').innerHTML = files.map((x, i) => `<div class="f${i === S.cur ? ' on' : ''}" data-f data-act="file:${i}" id="f${i}"><img src="${esc(x.pic)}" alt=""><small>${esc(x.label)}</small></div>`).join('');
$('.files').style.display = files.length ? '' : 'none';
drawEvilHd();
const n = h.news;
$('#whatsnew').innerHTML = n ? `<h4>${esc(n.title)}${n.more && h.mode !== 'update' ? ' · <span class="lnk" data-f data-act="open:changes">All changes</span>' : ''}</h4>` + n.items.map(i => `<p><b>${esc(i.b)}</b> ${esc(i.p)}</p>`).join('') : '';
}

View File

@@ -15,7 +15,7 @@
{ slot: 6, label: 'File 6', place: 'Hyrule Castle', when: '9 Nov', meta: '5 h 50 min played · Saved 9 Nov', time: '5 h 50 min played', pic: 'img/save5.jpg' },
];
const NEWS = { title: 'New in 0.5.2', items: [{ b: 'Battle music', p: 'ends again after the last enemy.' }, { b: 'Menu text', p: 'always shows on every screen.' }, { b: 'Updates', p: 'download 12 MB and keep your shaders.' }], more: true };
const st = { lang: 'English (US)', folder: 'D:\\Games\\Triforce', ver: '0.5.2', update: false, timer: 0, kind: '', sound: { music: .4, sfx: .7, muted: false } };
const st = { lang: 'English (US)', folder: 'D:\\Games\\Triforce', ver: '0.5.2', update: false, timer: 0, kind: '', evil: 0, pack: { have: 'none', busy: false, frac: 0, line: '', size: '18.4 GB' }, packTimer: 0, sound: { music: .4, sfx: .7, muted: false } };
const SET = () => [
{ h: 'Launcher' }, { id: 'music', label: 'Music', kind: 'slider' }, { id: 'sfx', label: 'Sounds', kind: 'slider' },
{ id: 'autostart', label: 'Start with Windows', value: 'No', actLabel: 'Change' },
@@ -27,6 +27,10 @@
];
function home() {
const s = { t: 'state', files: FILES, settings: SET(), bench: { available: true, last: 'Not run yet on this PC' }, sound: st.sound };
// ((Triforce, 11-25) the game's own settings, Evil HD's row alone: the home screen's switch shows it)
s.gameopts = { tabs: [{ id: 'graphics', name: 'Graphics' }], locked: false, note: '', data: { graphics: [{ h: 'Evil HD', rows: [
{ key: 'evil_hd', label: 'Evil HD', value: st.evil ? 'On' : 'Off', v: st.evil, kind: 'choice', lo: 0, hi: 1, step: 1, restart: false, help: 'The fullest picture the game can give, for a powerful PC.' }] }] } };
s.texpack = Object.assign({}, st.pack); // ((Triforce, 11-25) the Remastered textures row
if (st.update) {
s.home = { mode: 'update', eb: 'An update is ready', title: 'Version 0.5.3', meta: '12 MB download · About 4 minutes · your saves and mods stay', button: 'Update', act: 'update',
links: [{ html: '<b>Play 0.5.2 first</b>', act: 'playold' }, { html: 'See all changes', act: 'open:changes' }], news: { title: 'New in 0.5.3', items: [{ b: 'RX 580', p: 'no more white speckles on grass and Link.' }, { b: 'Controller', p: 'LB and RB reach every menu tab.' }, { b: 'Mods', p: 'the whole list, and online co-op.' }] } };
@@ -119,6 +123,7 @@
receive(m, fn) {
out = fn;
if (m.t === 'ready') { emit({ t: 'hello', chrome: true, os: 'windows' }); emit({ t: 'state', sound: st.sound, media: { art: false, music: false, sfx: true } }); const j = location.hash.slice(1); if (j) window.DEMO.jump(j, fn); else emit({ t: 'go', s: 'welcome' }); return; }
if (m.t === 'gopt.value' && m.key === 'evil_hd') { st.evil = +m.value ? 1 : 0; return emit(home()); }
if (m.t === 'pick') return check(m.kind === 'folder' ? 'OcarinaOfTime (folder)' : 'OcarinaOfTime.nup');
if (m.t === 'drop') return check(m.names[0] || 'file');
if (m.t === 'win') return emit({ t: 'toast', html: 'Window button: ' + m.a + ' <span style="color:var(--text3)">· in the launcher only</span>' });
@@ -139,6 +144,21 @@
else if (c === 'saves.importfrom') emit({ t: 'toast', html: '<b>&#9670;</b> 6 files brought in from Eden · the old ones are in backups', sfx: 'success' });
else if (c === 'saves.export') emit({ t: 'choice', title: 'Copy saves out', text: 'Your files, copied. Nothing here changes.', ok: 'Copy them out', reply: 'saves.exportto', options: [{ id: 'eden', name: 'To Eden', sub: 'its files are backed up first', sel: true }, { id: 'dir', name: 'To a folder…' }] });
else if (c === 'saves.exportto') emit({ t: 'toast', html: '<b>&#9670;</b> 6 files copied out', sfx: 'success' });
else if (c === 'texpack') { // ((Triforce, 11-25) the Remastered textures row: a pretend download, 19 parts
if (st.pack.have === 'installed') emit({ t: 'ask', title: 'Remastered textures', html: '<p>Evil HD\'s remastered textures are installed in your game folder. The game shows them while <b>Evil HD</b> is on.</p><p>Remove them to free 18.4 GB. You can download them again any time.</p>', reply: 'texpack.go', buttons: [{ id: 'no', label: 'Keep them', main: true }, { id: 'rm', label: 'Remove' }] });
else emit({ t: 'ask', title: 'Remastered textures', html: '<p>4,505 of the game\'s textures, remastered at twice the detail with their own grain kept. The game shows them while <b>Evil HD</b> is on, from its next start.</p><p><b>18.4 GB to download</b> (about 26 minutes at 100 Mbit/s), unpacked into your game folder as it comes. You can stop any time: it goes on where it stopped.</p><p>They take more video memory: best with a graphics card of 10 GB or more.</p>', reply: 'texpack.go', buttons: [{ id: 'no', label: 'Not now' }, { id: 'go', label: st.pack.have === 'partial' ? 'Continue' : 'Download', main: true }] });
}
else if (c === 'texpack.go' && m.id === 'go') {
st.pack.busy = true; emit(home()); clearInterval(st.packTimer);
st.packTimer = setInterval(() => {
st.pack.frac = Math.min(1, st.pack.frac + 0.02); const n = Math.min(19, 1 + Math.floor(st.pack.frac * 19));
st.pack.line = (st.pack.frac * 19 % 1 > 0.9 ? 'Unpacking part ' : 'Downloading part ') + n + ' of 19';
if (st.pack.frac >= 1) { clearInterval(st.packTimer); st.pack = { have: 'installed', busy: false, frac: 1, line: '', size: '18.4 GB' }; emit({ t: 'toast', html: '<b>&#9670;</b> Remastered textures installed · turn on <b>Evil HD</b> to see them' }); }
emit(home());
}, 300);
}
else if (c === 'texpack.go' && m.id === 'rm') { st.pack = { have: 'none', busy: false, frac: 0, line: '', size: '18.4 GB' }; emit({ t: 'toast', html: 'Remastered textures removed' }); emit(home()); }
else if (c === 'texpackstop') { clearInterval(st.packTimer); st.pack.busy = false; st.pack.have = 'partial'; emit({ t: 'toast', html: 'Download stopped · it goes on where it stopped next time' }); emit(home()); }
else if (c === 'setting' && m.id === 'uninstall') emit({ t: 'ask', title: 'Uninstall Triforce?', html: '<p>Removes the launcher, its tools and the built game.</p><p>Your saves and mods stay in a backup folder.</p>', reply: 'uninstall', buttons: [{ id: 'no', label: 'Keep it' }, { id: 'yes', label: 'Uninstall', main: true }] });
else if (c === 'setting') emit({ t: 'toast', html: m.id + ' <span style="color:var(--text3)">· the launcher does this</span>' });
else if (c === 'bench') bench();

View File

@@ -55,6 +55,8 @@
<div class="logo"><div class="aura"></div><img class="gamelogo" src="img/game/Logo_USEU_00.png" alt=""></div>
<div class="cont"><div class="eb" id="hEb"></div><h1 id="hH1"></h1><div class="meta" id="hMeta"></div></div>
<div class="frame" id="hFrame"><div class="pic" id="homePic"></div><div class="edge"></div><div class="top"><i></i><i></i></div><div class="cap"><span></span><span id="hCap"></span></div></div>
<div class="evilhd" id="evilHd" data-f data-act="evilhd"><div class="eh-txt"><b>Evil HD</b><span id="evilHdSub"></span></div><div class="eh-sw"><i></i></div></div>
<div class="ehpack" id="ehPack"><div class="ehp-txt"><b>Remastered textures</b><span id="ehPackSub"></span></div><button class="ehp-btn" id="ehPackBtn" data-f data-act="texpack"></button><div class="ehp-bar"><i id="ehPackBar"></i></div></div>
<div class="glow"></div>
<div class="playrow"><div class="orn"></div><div class="play" data-f id="playBtn" data-act="play" data-big>Play</div><div class="orn r"></div></div>
<div class="links" id="hLinks"></div>