From 0189e9d1de740767e9fdab1d64b77db22dd365f9 Mon Sep 17 00:00:00 2001 From: Liam Ralph Date: Thu, 20 Nov 2025 11:41:27 -0500 Subject: [PATCH 1/4] remove c-rewrite progress bar --- projects/biomegen/index.html | 5 ----- projects/biomegen/script.js | 28 ---------------------------- 2 files changed, 33 deletions(-) diff --git a/projects/biomegen/index.html b/projects/biomegen/index.html index 0bdaaef..b857a65 100644 --- a/projects/biomegen/index.html +++ b/projects/biomegen/index.html @@ -95,11 +95,6 @@ - -
-
-
-

BiomeGen is a map generation and visualization console app, diff --git a/projects/biomegen/script.js b/projects/biomegen/script.js index 0850d56..267e4c8 100644 --- a/projects/biomegen/script.js +++ b/projects/biomegen/script.js @@ -2,10 +2,6 @@ const startTime = new Date(); -// Import From Data Loader - -import { projects } from "/data-loader.js"; - // Test Result Class class TestResult { @@ -24,30 +20,6 @@ class TestResult { } -// C Rerwite Progress Bar - -// Getting Number of Lines Left - -let urlName = - "https://raw.githubusercontent.com/Liam-Ralph/biomegen/refs/heads/c-rewrite/main_left.txt"; -let response = await fetch(urlName); -const fileText = await response.text(); -const linesLeft = fileText.split("\n").length; - -// Calculating Progress Percentage - -const linesTotal = projects[0].linesList[0]; -const progress = (linesTotal - linesLeft) / linesTotal; - -// Updating Progress bar - -let barInner = document.getElementById("c-rewrite-progress-bar-inner"); -barInner.textContent = - "C Rewrite Progress: " + Math.round(progress * 1000) / 10 + "%"; -barInner.style.width = - (document.getElementById("c-rewrite-progress-bar").offsetWidth * progress - 20) + "px"; - - // Statistics // Getting CSV Data From 3ed6e0038f898b040ed989827d0219af542653e0 Mon Sep 17 00:00:00 2001 From: Liam Ralph Date: Mon, 24 Nov 2025 16:01:02 -0500 Subject: [PATCH 2/4] finish prep --- projects/biomegen/script.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/projects/biomegen/script.js b/projects/biomegen/script.js index 267e4c8..f41765c 100644 --- a/projects/biomegen/script.js +++ b/projects/biomegen/script.js @@ -24,9 +24,10 @@ class TestResult { // Getting CSV Data -urlName = "https://raw.githubusercontent.com/Liam-Ralph/biomegen/refs/heads/main/autorun_results.csv"; -response = await fetch(urlName); +let urlName = "/autorun_results.csv"; +let response = await fetch(urlName); const csvLines = await response.text() +console.log(csvLines); let csvTextLines = csvLines.split("\n"); csvTextLines = csvTextLines.splice(1, csvTextLines.length - 1); @@ -35,7 +36,7 @@ csvTextLines = csvTextLines.splice(1, csvTextLines.length - 1); let testResults = []; for (let i in csvTextLines) { - let textLine = csvTextLines[i].split(", "); + let textLine = csvTextLines[i].split(", "); testResults.push( new TestResult( textLine[0], Number(textLine[1]), Number(textLine[2]), // version, width, height @@ -48,6 +49,8 @@ for (let i in csvTextLines) { ); } +const newestVersion = testResults[testResults.length - 1].version; + // Getting Graph Values let xValues = { @@ -112,7 +115,7 @@ for (let i in testResults) { result.std_dev / result.mean * 100 ); - if (result.version === testResults[0].version) { + if (result.version === newestVersion) { xValues["Resolution"].push(result.width + "x" + result.height); xValues["Pixels"].push(result.width * result.height); @@ -135,7 +138,7 @@ for (let i in testResults) { } - if (result.version === testResults[0].version) { + if (result.version === newestVersion) { let index = 0; @@ -192,21 +195,25 @@ new Chart(graph, { { label: "5th Percentile", backgroundColor: "#808080", + borderColor: "#808080", data: yValues["Version vs Time"][1] }, { label: "Mean", backgroundColor: "#0000FF", + borderColor: "#0000FF", data: yValues["Version vs Time"][0] }, { label: "50th Percentile", backgroundColor: "#00FF00", + borderColor: "#00FF00", data: yValues["Version vs Time"][2] }, { label: "95th Percentile", backgroundColor: "#808080", + borderColor: "#808080", data: yValues["Version vs Time"][3] } ] From 2c6a4658a73360028281c2a86c153ca38b2cc351 Mon Sep 17 00:00:00 2001 From: Liam Ralph Date: Mon, 24 Nov 2025 16:03:25 -0500 Subject: [PATCH 3/4] fix results link --- projects/biomegen/script.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/biomegen/script.js b/projects/biomegen/script.js index f41765c..ed9c5b3 100644 --- a/projects/biomegen/script.js +++ b/projects/biomegen/script.js @@ -24,10 +24,11 @@ class TestResult { // Getting CSV Data -let urlName = "/autorun_results.csv"; + +let urlName = + "https://raw.githubusercontent.com/Liam-Ralph/biomegen/refs/heads/main/autorun_results.csv"; let response = await fetch(urlName); const csvLines = await response.text() -console.log(csvLines); let csvTextLines = csvLines.split("\n"); csvTextLines = csvTextLines.splice(1, csvTextLines.length - 1); From ec3708ad2ddad964cfd441264d7050fa7f64b030 Mon Sep 17 00:00:00 2001 From: Liam Ralph Date: Mon, 24 Nov 2025 16:06:36 -0500 Subject: [PATCH 4/4] update markdown files --- CHANGELOG.md | 7 ++++++- README.md | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a56892d..08b0d37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ +## Version 1.2.3 (November 2025) + + - Remove C rewrite progress bar. + - Edited BiomeGen page for v2.1.6. + ## Version 1.2.2 (November 2025) -- Changed C language colour. + - Changed C language colour. ## Version 1.2.1 (November 2025) diff --git a/README.md b/README.md index 747945a..daf34d9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # My Website ### Released August 2025 -### Version 1.2.2 +### Version 1.2.3 ### Updated November 2025