From 4a0c9115b5e184ee4e5eb651dc318e38d2d71a22 Mon Sep 17 00:00:00 2001 From: "Erymanthus[#5074] | (u/)RayDeeUx" <51521765+RayDeeUx@users.noreply.github.com> Date: Fri, 12 Apr 2024 11:40:58 -0400 Subject: [PATCH 1/4] implement groundwork for an FAQ page --- build-faq.js | 39 ++++++++++++ build.js | 1 + deploy.js | 1 + src/faq/index.html | 113 +++++++++++++++++++++++++++++++++++ src/index.html | 8 ++- src/mods/[mod.id]/index.html | 12 ++-- 6 files changed, 166 insertions(+), 8 deletions(-) create mode 100644 build-faq.js create mode 100644 src/faq/index.html diff --git a/build-faq.js b/build-faq.js new file mode 100644 index 0000000..8da4227 --- /dev/null +++ b/build-faq.js @@ -0,0 +1,39 @@ +import { readFileSync, writeFileSync } from 'fs'; +import { htmlEscape } from 'escape-goat'; +import * as feather from 'feather-icons'; + +let faqPage = readFileSync('src/faq/index.html').toString(); +let questionsHtml = ""; + +const faq = [ + { + question: "When will Geode be available for iOS?", + answer: "Lorem ipsum." + }, + { + question: ":youshould:", + answer: ":firee:" + }, + { + question: "h", + answer: "i" + } +] + +const addQuestion = (question, answer) => { + questionsHtml += `
+

${htmlEscape(question)}

+

${htmlEscape(answer)}

+
`; +}; + +async function main() { + for (const item of faq) { + addQuestion(item.question, item.answer); + } + + faqPage = faqPage.replace("$FAQS_HTML", questionsHtml); + + writeFileSync("gen/faq/index.html", faqPage); +} +main(); \ No newline at end of file diff --git a/build.js b/build.js index 843e746..07740c6 100644 --- a/build.js +++ b/build.js @@ -10,6 +10,7 @@ const commands = [ "node copy-html-files.js", "node build-mods-pages.js", "node build-install.js", + "node build-faq.js", "tailwindcss -i gen/index.css -o dist/index.css", "tailwindcss -i gen/mods/index.css -o dist/mods/index.css", "html-minifier --input-dir ./gen --output-dir ./dist --file-ext html", diff --git a/deploy.js b/deploy.js index 972bc5b..d9b63b3 100644 --- a/deploy.js +++ b/deploy.js @@ -11,6 +11,7 @@ const commands = [ "node copy-html-files.js", "node build-mods-pages.js", "node build-install.js", + "node build-faq.js", "tailwindcss -i gen/index.css -o dist/index.css --minify", "tailwindcss -i gen/mods/index.css -o dist/mods/index.css --minify", "html-minifier --input-dir ./gen --output-dir ./dist --collapse-whitespace --file-ext html", diff --git a/src/faq/index.html b/src/faq/index.html new file mode 100644 index 0000000..a2528ac --- /dev/null +++ b/src/faq/index.html @@ -0,0 +1,113 @@ + + + + + + + + Geode FAQ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +
+ +
+
+
+ The Geode logo +
+
+

Geode FAQ

+

+ Frequent questions about the Geode mod loader +

+
+
+
+
+

How do I install Geode?

+

+ Please visit the "Install" page below. +

+ +
+ + $FAQS_HTML + + + +
+ + + + + diff --git a/src/index.html b/src/index.html index fb8e2c6..094c52a 100644 --- a/src/index.html +++ b/src/index.html @@ -59,6 +59,10 @@

Geode

Mods + + + FAQ + Documentation @@ -67,9 +71,9 @@

Geode

Discord
- + - Github + GitHub diff --git a/src/mods/[mod.id]/index.html b/src/mods/[mod.id]/index.html index bbd431b..71cbdd8 100644 --- a/src/mods/[mod.id]/index.html +++ b/src/mods/[mod.id]/index.html @@ -5,21 +5,21 @@ - $MOD_NAME - Geode - + $MOD_NAME by $MOD_DEVELOPER - Geode + - - + + - - + + From ec937743f7daff1d9a1b3241d1078303bb7bef6b Mon Sep 17 00:00:00 2001 From: "Erymanthus[#5074] | (u/)RayDeeUx" <51521765+RayDeeUx@users.noreply.github.com> Date: Sat, 13 Apr 2024 16:19:29 -0400 Subject: [PATCH 2/4] faq pt2 --- build-faq.js | 138 +++++++++++++++++++++++++++++++++++++++++---- src/faq/index.html | 14 +++++ src/index.css | 4 ++ 3 files changed, 146 insertions(+), 10 deletions(-) diff --git a/build-faq.js b/build-faq.js index 8da4227..ab12a12 100644 --- a/build-faq.js +++ b/build-faq.js @@ -1,29 +1,147 @@ import { readFileSync, writeFileSync } from 'fs'; -import { htmlEscape } from 'escape-goat'; -import * as feather from 'feather-icons'; let faqPage = readFileSync('src/faq/index.html').toString(); let questionsHtml = ""; +let discordInvite = `https://discord.gg/9e43WMKzhp`; +let codeblockOpen = ``; +let codeblockClose = ``; +let hyperlinkCSS = `class="underline text-yellow hover:text-cyan"`; +let helpChannel = `and drop by the ${codeblockOpen}#help${codeblockClose} channel`; const faq = [ { - question: "When will Geode be available for iOS?", - answer: "Lorem ipsum." + question: `I can't find the Geode button.`, + answer: ` + All users: +
  • Make sure you've followed the installation instructions for your specifc platform. + If you would like to re-download the installer for your specifc platform, check here.
  • + Linux users from Steam: +
  • In your launch options for Geometry Dash, put in ${codeblockOpen}WINEDLLOVERRIDES="xinput9_1_0=n,b" %command%${codeblockClose}.
  • + Linux users from Lutris: +
  • Go into ${codeblockOpen}Properties -> Runner Options${codeblockClose} and enter the following:
    Key: ${codeblockOpen}xinput9_1_0.dll${codeblockClose}
    + Value: ${codeblockOpen}n,b${codeblockClose}
  • + Android users: +
  • Make sure your Geometry Dash is on version 2.205. Paths should cost 25000 mana orbs, + and levels such as ONETheLegendOf1000 by JuNiOr202 (Level ID 99566839) + shouldn't be broken.
  • +
  • Make sure you're loading Geometry Dash from the Geode launcher. You should see the "Loading loader resources" text for a brief moment on the loading screen.
  • + ` }, { - question: ":youshould:", - answer: ":firee:" + question: `When will Geode be available for iOS?`, + answer: ` + There are several issues with iOS that make it very difficult + for Geode to work as smoothly on iOS as it does compared to other platforms + that Geode supports, such as being unable to modify apps just before being loaded. + More technical responses exist on GitHub + here + and here.

    + iCreate Pro is only possible on iOS because it patches the game once, as explained on GitHub + here.

    + Despite these barriers, there are still ongoing efforts to find a sliver of hope to get + Geode working on iOS, with a higher priority on jailbroken iOS devices. + ` }, { - question: "h", - answer: "i" + question: `Is Geode only available on GitHub?`, + answer: ` + Yes.

    + As Geode is a mod loader, it is impossible to distribute Geode through app stores + or similar platforms without violating their respective guidelines.

    + While mod loaders for other video games may exist in any given app store, Geode will + remain on GitHub. + ` + }, + // for the rust beggars + /* + { + question: `Will Geode use something besides C++?`, + answer: ` + No.

    + Much like how mods for Minecraft: Java Edition are written in Java (or Kotlin) in order + to easily interact with the Minecraft source code, anything from Geode that + directly interacts with Geometry Dash's C++ source code will also be written in C++.

    + Technical explanations on the difficulty in implementing + Geode in other progamming languages can be found + here + and + here.

    + There's nothing stopping you from attempting to rewrite Geode in a different programming language, + but the time investment necessary to make it usable for the general public outweighs any probable benefits from doing so. + ` + }, + */ + { + question: `What happens when GD updates?`, + answer: ` + Windows + Android users:
    + Geode will be put into a forward compatibility mode. + All of Geode's ingame features and all your installed mods will be disabled. + Don't worry though, as Geode will still auto-update to any newly available version.

    + macOS users:
    + Curl up into a fetal position and cry. + ` + }, + { + question: `A mod has failed loading.`, + answer: ` + Install the latest version of Geode + here, then try again.
    + If you still see the same error, download and install that specific mod again.
    + If the issue still persists after that, join our Discord server + here + ${helpChannel}. + ` + }, + { + question: `A mod has failed unzipping.`, + answer: ` + Windows/macOS/Linux users: +
  • Check if there are any more instances of Geometry Dash running + in Task Manager/Activity Monitor (or your OS's equivalent) and close them. + Restart your computer if all else fails.
  • + Android users: +
  • Please try uninstalling and reinstalling the mod. If you've already attempted this, + join the Discord server + ${helpChannel}. +
  • + ` + }, + { + question: `The mod index is still loading.`, + answer: ` + All users: +
  • Please find a stronger Internet connection. After that, it should be far smoother sailing if you're not on Android.
  • + Android users: +
  • Unzipping the entire mod index is a far slower process on Android compared to other platforms. Please wait until + the new Geode mod index + is complete, as it eliminates this problem through an entirely different approach.
  • + ` + }, + { + question: `I can't open the game!`, + answer: ` + macOS users: +
  • Join our Discord server + here + ${helpChannel}. If lucky enough, someone from the Geode Team will give you further instructions.
  • + Windows users: +
  • Hold the ${codeblockOpen}SHIFT${codeblockClose} key, and without letting go of it, launch Geometry Dash. + Confirm that you wish to launch Geode in Safe Mode.
  • + Android users: +
  • Press and hold the ${codeblockOpen}Launch${codeblockClose} button from the Geode launcher. + Confirm that you wish to launch Geode in Safe Mode.
  • + Once you've followed the instructions depending on your platform, + find the mod causing Geometry Dash to crash on startup and disable/uninstall it. + ` } ] +// everything is inside a

    tag to suppress all line breaks besides manual
    tags const addQuestion = (question, answer) => { questionsHtml += `

    -

    ${htmlEscape(question)}

    -

    ${htmlEscape(answer)}

    +

    ${question}

    +

    ${answer}

    `; }; diff --git a/src/faq/index.html b/src/faq/index.html index a2528ac..4229df4 100644 --- a/src/faq/index.html +++ b/src/faq/index.html @@ -77,6 +77,20 @@

    How do I install Geode?

    +
    +

    My game is crashing!

    +

    + Join our Discord server below,
    and get help at the #help channel. +

    +
    + + + Discord + +
    +
    $FAQS_HTML diff --git a/src/index.css b/src/index.css index c8cffe4..e47171f 100644 --- a/src/index.css +++ b/src/index.css @@ -271,3 +271,7 @@ em.tag { text-cyan p-1; } + +.one-line-code-block { + font-size: 10.75pt !important; +} \ No newline at end of file From 3fc022edc72072834b582efe99747151ceef6abf Mon Sep 17 00:00:00 2001 From: "Erymanthus[#5074] | (u/)RayDeeUx" <51521765+RayDeeUx@users.noreply.github.com> Date: Sat, 13 Apr 2024 16:21:18 -0400 Subject: [PATCH 3/4] oops --- src/install/index.html | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/install/index.html b/src/install/index.html index a59d300..9066a26 100644 --- a/src/install/index.html +++ b/src/install/index.html @@ -156,17 +156,5 @@

    Need help?

    - - From 36f7feac84151ba125fd2624456b7ebe281f7684 Mon Sep 17 00:00:00 2001 From: "Erymanthus[#5074] | (u/)RayDeeUx" <51521765+RayDeeUx@users.noreply.github.com> Date: Sat, 13 Apr 2024 16:23:41 -0400 Subject: [PATCH 4/4] oopsie daisy --- src/faq/index.html | 12 ------------ src/install/index.html | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/faq/index.html b/src/faq/index.html index 4229df4..aa01678 100644 --- a/src/faq/index.html +++ b/src/faq/index.html @@ -111,17 +111,5 @@

    My game is crashing!

    - - diff --git a/src/install/index.html b/src/install/index.html index 9066a26..a59d300 100644 --- a/src/install/index.html +++ b/src/install/index.html @@ -156,5 +156,17 @@

    Need help?

    + +