Archive ayuneaglerconfig (tool, any, clean)
This commit is contained in:
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"slug": "ayuneaglerconfig",
|
||||||
|
"name": "ayunEaglerConfig",
|
||||||
|
"category": "tool",
|
||||||
|
"mc_version": "any",
|
||||||
|
"author": "ayunami2000",
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"upstream_ref": "main",
|
||||||
|
"sha256": "b46afbfff6be03719003de9f12454553a3899f780f426f93f8e33d3c617e7b84",
|
||||||
|
"size": 542529,
|
||||||
|
"storage": {
|
||||||
|
"git_path": null,
|
||||||
|
"fs_url": null
|
||||||
|
},
|
||||||
|
"play": {
|
||||||
|
"sandbox_url": "https://play-archive.eaglercraft.tech/ayuneaglerconfig/",
|
||||||
|
"sandbox_attr": "allow-scripts",
|
||||||
|
"network_notes": "Static client configuration generator"
|
||||||
|
},
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"url": "https://github.com/ayunami2000/ayunEaglerConfig",
|
||||||
|
"retrieved_at": "2026-11-28T03:11:09Z",
|
||||||
|
"type": "upstream",
|
||||||
|
"notes": "Source repository on GitHub"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://ayunami2000.github.io/ayunEaglerConfig/",
|
||||||
|
"retrieved_at": "2026-11-28T03:11:09Z",
|
||||||
|
"type": "other",
|
||||||
|
"notes": "Live configuration tool on GitHub Pages"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vetting": {
|
||||||
|
"verdict": "clean",
|
||||||
|
"tools": [
|
||||||
|
"vet-static.mjs",
|
||||||
|
"virustotal-hash",
|
||||||
|
"static-code-review"
|
||||||
|
],
|
||||||
|
"date": "2026-11-28",
|
||||||
|
"notes": "Uses navigator.clipboard.writeText in index.html:520 and bundles standard jsoneditor.min.js.",
|
||||||
|
"reviewer": "vet-gemini"
|
||||||
|
},
|
||||||
|
"large_files_omitted_from_git": []
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# ayunEaglerConfig
|
||||||
|
|
||||||
|
Web-based Eaglercraft client configuration generator and asset override management tool developed by ayunami2000.
|
||||||
|
|
||||||
|
- **Archive page:** https://archive.eaglercraft.tech/entries/ayuneaglerconfig.html
|
||||||
|
- **Play:** https://play-archive.eaglercraft.tech/ayuneaglerconfig/
|
||||||
|
- **MC Version:** any
|
||||||
|
- **Author:** ayunami2000
|
||||||
|
- **License:** BSD-3-Clause
|
||||||
|
- **SHA-256:** `b46afbfff6be03719003de9f12454553a3899f780f426f93f8e33d3c617e7b84`
|
||||||
|
- **Vetting:** clean (2026-11-28)
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Auto detect text files and perform LF normalization
|
||||||
|
* text=auto
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
BSD 3-Clause License
|
||||||
|
|
||||||
|
Copyright (c) 2022, ayunami2000
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
+7
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
|||||||
|
# ayunEaglerConfig
|
||||||
|
Eaglercraft client configuration utility.
|
||||||
|
|
||||||
|
Utilizes:
|
||||||
|
- a slightly modified version of [powernbt-js](https://github.com/DPOH-VAR/powernbt-js)
|
||||||
|
- [long.js](https://github.com/dcodeIO/Long.js)
|
||||||
|
- [json-editor](https://github.com/json-editor/json-editor)
|
||||||
|
- [Nunito Font](https://fonts.google.com/specimen/Nunito)
|
||||||
@@ -0,0 +1,525 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script async src="https://arc.io/widget.min.js#HEPCFa3K"></script>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
|
||||||
|
<title>ayunEaglerConfig</title>
|
||||||
|
<script type="text/javascript" src="long.js"></script>
|
||||||
|
<script src="jsoneditor.min.js"></script>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com"/>
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Nunito&display=swap" rel="stylesheet"/>
|
||||||
|
<link href="style.css" rel="stylesheet"/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<sub><a href="old.html">Legacy NBT version</a></sub>
|
||||||
|
<h1>ayunEaglerConfig</h1>
|
||||||
|
<p>Configure & customize your Eaglercraft client here!</p>
|
||||||
|
<button onclick="saveOpts();">Export eaglercraftOpts variable...</button>
|
||||||
|
<br/>
|
||||||
|
<textarea id="output" readonly rows="16" cols="9"></textarea>
|
||||||
|
<br/>
|
||||||
|
<div id="editor"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
const relayId = Math.floor(Math.random() * 3);
|
||||||
|
const startJson = {
|
||||||
|
container: "game_frame",
|
||||||
|
assetsURI: "assets.epk",
|
||||||
|
serverWorkerURI: "worker_bootstrap.js",
|
||||||
|
worldsFolder: "MAIN",
|
||||||
|
servers: [
|
||||||
|
{
|
||||||
|
serverName: "placeholder",
|
||||||
|
serverAddress: "address here",
|
||||||
|
hideAddress: false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
relays: [
|
||||||
|
{
|
||||||
|
addr: "wss://relay.deev.is/",
|
||||||
|
name: "lax1dude relay #1",
|
||||||
|
primary: relayId == 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
addr: "wss://relay.lax1dude.net/",
|
||||||
|
name: "lax1dude relay #2",
|
||||||
|
primary: relayId == 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
addr: "wss://relay.shhnowisnottheti.me/",
|
||||||
|
name: "ayunami relay #1",
|
||||||
|
primary: relayId == 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
mainMenu: {
|
||||||
|
splashes: [
|
||||||
|
"Darviglet!",
|
||||||
|
"eaglerenophile!",
|
||||||
|
"You Eagler!",
|
||||||
|
"Yeeeeeee!",
|
||||||
|
"yeee",
|
||||||
|
"EEEEEEEEE!",
|
||||||
|
"You Darvig!",
|
||||||
|
"You Vigg!",
|
||||||
|
":>",
|
||||||
|
"|>",
|
||||||
|
"You Yumpster!"
|
||||||
|
],
|
||||||
|
eaglerLogo: false
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const editor = new JSONEditor(document.getElementById('editor'), {
|
||||||
|
startval: startJson,
|
||||||
|
no_additional_properties: true,
|
||||||
|
schema: {
|
||||||
|
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
||||||
|
"$id": "http://example.com/example.json",
|
||||||
|
"type": "object",
|
||||||
|
"default": {},
|
||||||
|
"title": "Eaglercraft Client Settings",
|
||||||
|
"required": [
|
||||||
|
"container",
|
||||||
|
"assetsURI"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"container": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Element where Eaglercraft will be placed",
|
||||||
|
"examples": [
|
||||||
|
"game_frame"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"assetsURI": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "URI to assets.epk",
|
||||||
|
"examples": [
|
||||||
|
"assets.epk"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serverWorkerURI": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "URI to worker_bootstrap.js for singleplayer's web worker",
|
||||||
|
"examples": [
|
||||||
|
"worker_bootstrap.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"worldsFolder": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Internal folder name for worlds",
|
||||||
|
"examples": [
|
||||||
|
"MAIN"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"servers": {
|
||||||
|
"type": "array",
|
||||||
|
"default": [],
|
||||||
|
"title": "Default servers to show in server list",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"default": {},
|
||||||
|
"title": "Server entry",
|
||||||
|
"required": [
|
||||||
|
"serverName",
|
||||||
|
"serverAddress"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"serverName": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Name of server",
|
||||||
|
"examples": [
|
||||||
|
"server name"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serverAddress": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Address of server",
|
||||||
|
"examples": [
|
||||||
|
"ws://localhost:25565/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hideAddress": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"title": "Hide server address",
|
||||||
|
"examples": [
|
||||||
|
false
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"examples": [{
|
||||||
|
"serverName": "server name",
|
||||||
|
"serverAddress": "ws://localhost:25565/",
|
||||||
|
"hideAddress": false
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
"examples": [
|
||||||
|
[{
|
||||||
|
"serverName": "server name",
|
||||||
|
"serverAddress": "ws://localhost:25565/",
|
||||||
|
"hideAddress": false
|
||||||
|
}]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hideDownServers": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"title": "Hide servers that seem to be down",
|
||||||
|
"examples": [
|
||||||
|
false
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"joinServer": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Automatically join this server on client load",
|
||||||
|
"examples": [
|
||||||
|
"wss://sus.shhnowisnottheti.me/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"assetOverrides": {
|
||||||
|
"type": "object",
|
||||||
|
"default": {},
|
||||||
|
"title": "Map asset paths to URLs here",
|
||||||
|
"required": [
|
||||||
|
|
||||||
|
],
|
||||||
|
"examples": [{
|
||||||
|
"title/no-pano-blur.flag": "",
|
||||||
|
"sounds/gta.mp3": "https://real.shhnowisnottheti.me/menu.mp3",
|
||||||
|
"records/mellohi.mp3": "https://stream.nightride.fm/chillsynth.m4a"
|
||||||
|
}],
|
||||||
|
"additionalProperties": true,
|
||||||
|
"patternProperties": {
|
||||||
|
"^.*$": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"profanity": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"title": "Allow username profanity",
|
||||||
|
"examples": [
|
||||||
|
false
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serverListTitle": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Title for link at the top of multiplayer",
|
||||||
|
"examples": [
|
||||||
|
"My cool link"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serverListLink": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Link at the top of multiplayer",
|
||||||
|
"examples": [
|
||||||
|
"https://example.com"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"relays": {
|
||||||
|
"type": "array",
|
||||||
|
"default": [],
|
||||||
|
"title": "Default LAN Relays",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"title": "LAN Relay",
|
||||||
|
"required": [
|
||||||
|
"addr",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"addr": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Relay address",
|
||||||
|
"examples": [
|
||||||
|
"wss://relay.deev.is/",
|
||||||
|
"wss://relay.lax1dude.net/",
|
||||||
|
"wss://relay.shhnowisnottheti.me/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Relay name",
|
||||||
|
"examples": [
|
||||||
|
"lax1dude relay #1",
|
||||||
|
"lax1dude relay #2",
|
||||||
|
"ayunami relay #1"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"primary": {
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "Use this relay by default",
|
||||||
|
"examples": [
|
||||||
|
true,
|
||||||
|
false
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"examples": [{
|
||||||
|
"addr": "wss://relay.deev.is/",
|
||||||
|
"name": "lax1dude relay #1",
|
||||||
|
"primary": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"addr": "wss://relay.lax1dude.net/",
|
||||||
|
"name": "lax1dude relay #2",
|
||||||
|
"primary": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"addr": "wss://relay.shhnowisnottheti.me/",
|
||||||
|
"name": "ayunami relay #1",
|
||||||
|
"primary": false
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
"examples": [
|
||||||
|
[{
|
||||||
|
"addr": "wss://relay.deev.is/",
|
||||||
|
"name": "lax1dude relay #1",
|
||||||
|
"primary": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"addr": "wss://relay.lax1dude.net/",
|
||||||
|
"name": "lax1dude relay #2",
|
||||||
|
"primary": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"addr": "wss://relay.shhnowisnottheti.me/",
|
||||||
|
"name": "ayunami relay #1",
|
||||||
|
"primary": false
|
||||||
|
}]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mainMenu": {
|
||||||
|
"type": "object",
|
||||||
|
"default": {},
|
||||||
|
"title": "Title screen options",
|
||||||
|
"required": [
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"splashes": {
|
||||||
|
"type": "array",
|
||||||
|
"default": [],
|
||||||
|
"title": "Title screen splash texts",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Splash text",
|
||||||
|
"examples": [
|
||||||
|
"Darviglet!",
|
||||||
|
"eaglerenophile!",
|
||||||
|
"You Eagler!",
|
||||||
|
"Yeeeeeee!",
|
||||||
|
"yeee",
|
||||||
|
"EEEEEEEEE!",
|
||||||
|
"You Darvig!",
|
||||||
|
"You Vigg!",
|
||||||
|
":\u003e",
|
||||||
|
"|\u003e",
|
||||||
|
"You Yumpster!"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"examples": [
|
||||||
|
["Darviglet!",
|
||||||
|
"eaglerenophile!",
|
||||||
|
"You Eagler!",
|
||||||
|
"Yeeeeeee!",
|
||||||
|
"yeee",
|
||||||
|
"EEEEEEEEE!",
|
||||||
|
"You Darvig!",
|
||||||
|
"You Vigg!",
|
||||||
|
":\u003e",
|
||||||
|
"|\u003e",
|
||||||
|
"You Yumpster!"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"eaglerLogo": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"title": "Use Eaglercraft logo instead",
|
||||||
|
"examples": [
|
||||||
|
false
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"itemLink": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Link for item on title screen",
|
||||||
|
"examples": [
|
||||||
|
"https://totalfreedom.me"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"itemLine0": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "First line for item on title screen",
|
||||||
|
"examples": [
|
||||||
|
"Hello..."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"itemLine1": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Second line for item on title screen",
|
||||||
|
"examples": [
|
||||||
|
"...Please click this!"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"itemLine2": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Last line for item on title screen",
|
||||||
|
"examples": [
|
||||||
|
"It's very cool!"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"examples": [{
|
||||||
|
"splashes": [
|
||||||
|
"Darviglet!",
|
||||||
|
"eaglerenophile!",
|
||||||
|
"You Eagler!",
|
||||||
|
"Yeeeeeee!",
|
||||||
|
"yeee",
|
||||||
|
"EEEEEEEEE!",
|
||||||
|
"You Darvig!",
|
||||||
|
"You Vigg!",
|
||||||
|
":\u003e",
|
||||||
|
"|\u003e",
|
||||||
|
"You Yumpster!"
|
||||||
|
],
|
||||||
|
"eaglerLogo": false,
|
||||||
|
"itemLink": "https://totalfreedom.me",
|
||||||
|
"itemLine0": "First line for item on title screen",
|
||||||
|
"itemLine1": "Second line for item on title screen",
|
||||||
|
"itemLine2": "Last line for item on title screen"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"examples": [{
|
||||||
|
"container": "game_frame",
|
||||||
|
"assetsURI": "assets.epk",
|
||||||
|
"serverWorkerURI": "worker_bootstrap.js",
|
||||||
|
"worldsFolder": "MAIN",
|
||||||
|
"servers": [{
|
||||||
|
"serverName": "server name",
|
||||||
|
"serverAddress": "ws://localhost:25565/",
|
||||||
|
"hideAddress": false
|
||||||
|
}],
|
||||||
|
"hideDownServers": false,
|
||||||
|
"joinServer": "wss://sus.shhnowisnottheti.me/",
|
||||||
|
"assetOverrides": {
|
||||||
|
"title/no-pano-blur.flag": "",
|
||||||
|
"sounds/gta.mp3": "https://real.shhnowisnottheti.me/menu.mp3",
|
||||||
|
"records/mellohi.mp3": "https://stream.nightride.fm/chillsynth.m4a"
|
||||||
|
},
|
||||||
|
"profanity": false,
|
||||||
|
"serverListTitle": "My cool link",
|
||||||
|
"serverListLink": "https://example.com",
|
||||||
|
"relays": [{
|
||||||
|
"addr": "wss://relay.deev.is/",
|
||||||
|
"name": "lax1dude relay #1",
|
||||||
|
"primary": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"addr": "wss://relay.lax1dude.net/",
|
||||||
|
"name": "lax1dude relay #2",
|
||||||
|
"primary": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"addr": "wss://relay.shhnowisnottheti.me/",
|
||||||
|
"name": "ayunami relay #1",
|
||||||
|
"primary": false
|
||||||
|
}],
|
||||||
|
"mainMenu": {
|
||||||
|
"splashes": [
|
||||||
|
"Darviglet!",
|
||||||
|
"eaglerenophile!",
|
||||||
|
"You Eagler!",
|
||||||
|
"Yeeeeeee!",
|
||||||
|
"yeee",
|
||||||
|
"EEEEEEEEE!",
|
||||||
|
"You Darvig!",
|
||||||
|
"You Vigg!",
|
||||||
|
":\u003e",
|
||||||
|
"|\u003e",
|
||||||
|
"You Yumpster!"
|
||||||
|
],
|
||||||
|
"eaglerLogo": false,
|
||||||
|
"itemLink": "https://totalfreedom.me",
|
||||||
|
"itemLine0": "First line for item on title screen",
|
||||||
|
"itemLine1": "Second line for item on title screen",
|
||||||
|
"itemLine2": "Last line for item on title screen"
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const ta = document.getElementById('output');
|
||||||
|
|
||||||
|
function relaysEqual(obj1, obj2) {
|
||||||
|
if (obj1 == null || obj2 == null) {
|
||||||
|
return obj1 == obj2;
|
||||||
|
}
|
||||||
|
if (obj1 == obj2) return true;
|
||||||
|
if (obj1.length != obj2.length) return false;
|
||||||
|
let good = 0;
|
||||||
|
for (const i in obj1) {
|
||||||
|
for (const ii in obj2) {
|
||||||
|
if (obj1[i] == obj2[ii]) {
|
||||||
|
++good;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (obj1[i].addr == obj2[ii].addr && obj1[i].name == obj2[ii].name) {
|
||||||
|
if (('primary' in obj1[i] && 'primary' in obj2[ii] && obj1[i].primary == obj2[ii].primary) || (!('primary' in obj1[i]) && !('primary' in obj2[ii]))) {
|
||||||
|
++good;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (good == obj1.length) return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function saveOpts() {
|
||||||
|
const errors = editor.validate();
|
||||||
|
|
||||||
|
if (errors.length) {
|
||||||
|
for (const error of errors) {
|
||||||
|
console.error(error);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
const outJson = JSON.parse(JSON.stringify(editor.getValue()));
|
||||||
|
if (outJson == null) return;
|
||||||
|
const uniqueId = Array.from(Array(20), () => Math.floor(Math.random() * 36).toString(36)).join('');
|
||||||
|
const setRelays = relaysEqual(outJson.relays, startJson.relays);
|
||||||
|
if (setRelays && 'relays' in outJson) {
|
||||||
|
for (const relay of outJson.relays) {
|
||||||
|
relay.primary = uniqueId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ta.value = 'window.eaglercraftOpts = ' + JSON.stringify(outJson, null, 4) + ';';
|
||||||
|
if (setRelays) {
|
||||||
|
let h = -1;
|
||||||
|
ta.value = 'const relayId = Math.floor(Math.random() * ' + outJson.relays.length + ');\n' + ta.value.replaceAll('"' + uniqueId + '"', function() {
|
||||||
|
return 'relayId == ' + (++h);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
ta.select();
|
||||||
|
ta.setSelectionRange(0, ta.value.length);
|
||||||
|
window.navigator.clipboard.writeText(ta.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
+20
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,242 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script async src="https://arc.io/widget.min.js#HEPCFa3K"></script>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
|
||||||
|
<title>ayunEaglerConfig [Legacy]</title>
|
||||||
|
<script type="text/javascript" src="long.js"></script>
|
||||||
|
<script type="text/javascript" src="PowerNBT.min.js"></script>
|
||||||
|
<script src="jsoneditor.min.js"></script>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com"/>
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Nunito&display=swap" rel="stylesheet"/>
|
||||||
|
<link href="style.css" rel="stylesheet"/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<sub><a href=".">Back to current version</a></sub>
|
||||||
|
<h1>ayunEaglerConfig [Legacy]</h1>
|
||||||
|
<p>Configure & customize your Eaglercraft client here!</p>
|
||||||
|
<button onclick="const nbtnbt = prompt('Enter base64 to import data from:', defB64); if (nbtnbt) loadNBT(nbtnbt);">Import NBT from base64...</button>
|
||||||
|
<button onclick="saveNBT();">Export NBT as base64...</button>
|
||||||
|
<br/>
|
||||||
|
<div id="editor"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
const textEncoder = new TextEncoder();
|
||||||
|
const textDecoder = new TextDecoder();
|
||||||
|
const defB64 = 'CgAACQAHc2VydmVycwoAAAABCAAEbmFtZQAMbG9jYWwgc2VydmVyCAACaXAAD2xvY2FsaG9zdDoyNTU2NQEAC2hpZGVBZGRyZXNzAAAKAAhtYWluTWVudQkACHNwbGFzaGVzCAAAAAoACkRhcnZpZ2xldCEADkRhcnZpZ2xvcGhpbGUhAAtZb3UgRWFnbGVyIQALWWVlZWVlZWVlZSEAC1lvdSBZZWVsZXIhAA1FRUVFRUVFRUVFRUUhAAtZb3UgRGFydmlnIQAJWW91IFZpZ2chAAI6PgACfD4AAA==';
|
||||||
|
|
||||||
|
let nbt = NBT.readTag(textEncoder.encode(atob(defB64)));
|
||||||
|
let parsedNBT = {};
|
||||||
|
|
||||||
|
loadNBTPieces();
|
||||||
|
|
||||||
|
const editor = new JSONEditor(document.getElementById('editor'), {
|
||||||
|
startval: parsedNBT,
|
||||||
|
no_additional_properties: true,
|
||||||
|
schema: {
|
||||||
|
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
||||||
|
"$id": "http://example.com/example.json",
|
||||||
|
"type": "object",
|
||||||
|
"default": {},
|
||||||
|
"title": "Eaglercraft Client Settings",
|
||||||
|
"required": [
|
||||||
|
"splashes",
|
||||||
|
"servers"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"splashes": {
|
||||||
|
"type": "array",
|
||||||
|
"default": [],
|
||||||
|
"title": "Splashes",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"title": "Splash Text",
|
||||||
|
"examples": [
|
||||||
|
"Amongst ourselves",
|
||||||
|
"you eagler",
|
||||||
|
"yee",
|
||||||
|
"you darviglet"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"examples": [
|
||||||
|
["Amongst ourselves",
|
||||||
|
"you eagler",
|
||||||
|
"yee",
|
||||||
|
"you darviglet"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"servers": {
|
||||||
|
"type": "array",
|
||||||
|
"default": [],
|
||||||
|
"title": "Server Items",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"default": {},
|
||||||
|
"title": "Server",
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"ip",
|
||||||
|
"hideAddress"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "Name",
|
||||||
|
"examples": [
|
||||||
|
"template"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ip": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"title": "IP",
|
||||||
|
"examples": [
|
||||||
|
"ws(s):// (address here):(port) /"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hideAddress": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"title": "Hide Address",
|
||||||
|
"examples": [
|
||||||
|
true
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"examples": [{
|
||||||
|
"name": "template",
|
||||||
|
"ip": "ws(s):// (address here):(port) /",
|
||||||
|
"hideAddress": true
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
"examples": [
|
||||||
|
[{
|
||||||
|
"name": "template",
|
||||||
|
"ip": "ws(s):// (address here):(port) /",
|
||||||
|
"hideAddress": true
|
||||||
|
}]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"examples": [{
|
||||||
|
"splashes": [
|
||||||
|
"Amongst ourselves",
|
||||||
|
"you eagler",
|
||||||
|
"yee",
|
||||||
|
"you darviglet"
|
||||||
|
],
|
||||||
|
"servers": [{
|
||||||
|
"name": "template",
|
||||||
|
"ip": "ws(s):// (address here):(port) /",
|
||||||
|
"hideAddress": true
|
||||||
|
}]
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function loadNBT(b64) {
|
||||||
|
let succeeded = false;
|
||||||
|
try {
|
||||||
|
nbt = NBT.readTag(textEncoder.encode(atob(b64)));
|
||||||
|
succeeded = loadNBTPieces();
|
||||||
|
editor.setValue(parsedNBT);
|
||||||
|
} catch (e) { }
|
||||||
|
if (!succeeded) alert('something is wrong with your NBT!');
|
||||||
|
}
|
||||||
|
|
||||||
|
function saveNBT() {
|
||||||
|
const errors = editor.validate();
|
||||||
|
|
||||||
|
if (errors.length) {
|
||||||
|
console.error(errors);
|
||||||
|
} else {
|
||||||
|
parsedNBT = editor.getValue();
|
||||||
|
saveNBTPieces();
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt('Copy and paste this ', btoa(textDecoder.decode(nbt.save().toArrayBuffer())));
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadNBTPieces() {
|
||||||
|
if (nbt.typeName == 'compound') {
|
||||||
|
let mainMenu = nbt.get('mainMenu');
|
||||||
|
let splashes = null;
|
||||||
|
if (mainMenu != null && mainMenu.typeName == 'compound') {
|
||||||
|
splashes = mainMenu.get('splashes');
|
||||||
|
if (splashes != null && splashes.typeName == 'list') {
|
||||||
|
let splashesOut = [];
|
||||||
|
for (let splash of splashes.list) {
|
||||||
|
if (splash != null && splash.typeName == 'string') {
|
||||||
|
splashesOut.push(splash.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
splashes = splashesOut;
|
||||||
|
} else {
|
||||||
|
splashes = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let servers = nbt.get('servers');
|
||||||
|
if (servers != null && servers.typeName == 'list') {
|
||||||
|
let serversOut = [];
|
||||||
|
for (let server of servers.list) {
|
||||||
|
if (server != null && server.typeName == 'compound') {
|
||||||
|
let serverOut = {};
|
||||||
|
let serverIp = server.get('ip');
|
||||||
|
if (serverIp != null && serverIp.typeName == 'string') {
|
||||||
|
serverIp = serverIp.toString();
|
||||||
|
let serverName = server.get('name');
|
||||||
|
if (serverName != null && serverName.typeName == 'string') {
|
||||||
|
serverName = serverName.toString();
|
||||||
|
let serverHideAddress = server.get('hideAddress');
|
||||||
|
if (serverHideAddress != null && serverHideAddress.typeName == 'byte') {
|
||||||
|
serverHideAddress = serverHideAddress.valueOf() > 0;
|
||||||
|
serverOut.ip = serverIp;
|
||||||
|
serverOut.name = serverName;
|
||||||
|
serverOut.hideAddress = serverHideAddress;
|
||||||
|
serversOut.push(serverOut);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
servers = serversOut;
|
||||||
|
|
||||||
|
parsedNBT = { splashes: splashes, servers: servers };
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function saveNBTPieces() {
|
||||||
|
if (nbt.get('mainMenu') == null) {
|
||||||
|
nbt.put('mainMenu', new NBT.NBTTagCompound());
|
||||||
|
}
|
||||||
|
if (nbt.get('mainMenu').get('splashes') == null) {
|
||||||
|
nbt.get('mainMenu').put('splashes', new NBT.NBTTagList());
|
||||||
|
}
|
||||||
|
nbt.get('mainMenu').get('splashes').clear();
|
||||||
|
if (parsedNBT.splashes.length > 0) {
|
||||||
|
for (let splash of parsedNBT.splashes) {
|
||||||
|
nbt.get('mainMenu').get('splashes').add(new NBT.NBTTagString(splash));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
//nbt.get('mainMenu').remove('splashes');
|
||||||
|
nbt.remove('mainMenu');
|
||||||
|
}
|
||||||
|
nbt.get('servers').clear();
|
||||||
|
for (let server of parsedNBT.servers) {
|
||||||
|
const serverItem = new NBT.NBTTagCompound();
|
||||||
|
serverItem.put('name', new NBT.NBTTagString(server.name));
|
||||||
|
serverItem.put('ip', new NBT.NBTTagString(server.ip));
|
||||||
|
serverItem.put('hideAddress', new NBT.NBTTagString(server.hideAddress));
|
||||||
|
nbt.get('servers').add(serverItem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
* {
|
||||||
|
font-family: 'Nunito', sans-serif;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
background-color: #111111;
|
||||||
|
color: #dddddd;
|
||||||
|
}
|
||||||
|
.je-modal {
|
||||||
|
border-radius: 4px !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
border: 1px solid #eeeeee !important;
|
||||||
|
background-color: #111111 !important;
|
||||||
|
color: #dddddd !important;
|
||||||
|
}
|
||||||
|
button, select, input, .je-indented-panel, textarea {
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
button, select {
|
||||||
|
background-color: #343434;
|
||||||
|
color: #eeeeee;
|
||||||
|
border: 1px solid #eeeeee;
|
||||||
|
}
|
||||||
|
input, textarea {
|
||||||
|
background-color: #222222;
|
||||||
|
color: #dddddd;
|
||||||
|
border: 1px solid #dddddd;
|
||||||
|
}
|
||||||
|
textarea {
|
||||||
|
resize: none;
|
||||||
|
}
|
||||||
|
.je-indented-panel {
|
||||||
|
border: 1px solid #eeeeee;
|
||||||
|
}
|
||||||
|
input[type=checkbox] {
|
||||||
|
background-color: #343434;
|
||||||
|
color: #eeeeee;
|
||||||
|
border: 1px solid #eeeeee;
|
||||||
|
border-radius: 4px;
|
||||||
|
-webkit-appearance: initial;
|
||||||
|
-moz-appearance: initial;
|
||||||
|
appearance: initial;
|
||||||
|
width: 1.5em;
|
||||||
|
height: 1.5em;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
input[type=checkbox]:checked {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
}
|
||||||
|
input[type=checkbox]:before {
|
||||||
|
content: 'x<';
|
||||||
|
margin-left: 0em;
|
||||||
|
text-align: center;
|
||||||
|
color: #dddddd;
|
||||||
|
}
|
||||||
|
input[type=checkbox]:checked:before {
|
||||||
|
content: ':>';
|
||||||
|
margin-left: 0.3em;
|
||||||
|
color: #343434;
|
||||||
|
}
|
||||||
|
input[disabled] {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
#output {
|
||||||
|
width: 64em;
|
||||||
|
height: 24em;
|
||||||
|
max-width: 75vw;
|
||||||
|
max-height: 50vh;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #dddddd;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user