Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Python Console application to randomize palettes in The Legend of Zelda: A Link to the Past.
A palette randomizer is, as the name suggests, something that randomizes a game's palettes (its color collections). This randomizer is designed to randomize colors according to their groupings. For example, all colors that represent grass will be randomized with the same logic, whereas water's colors will be randomized with different logic. This creates a consistent color scheme without any disconnects in colors (e.g. grass having two different colors).
A set of colors is randomized according to the following rules:
While Link to the Past Randomizer already has a built-in palette randomizer, it does not take the necessary care to ensure every palette can be randomized. Certain items like houses and rocks are never randomized. Further, the overworld palette randomizer does not have as much control as this app does, which allows for much richer variety of colors.
TODO: Add pictures
Go to our Releases page. From there, download z3pr.zip under the Assets tab of the latest release.
Or you can install it through pip with pip install --user maseya.z3pr
It is recommended that your logic randomizer app keep the vanilla palette, or you may still experience ugly colors after using this app.
The following command-line arguments are supported by the app:
[args...] inputFile <outputFile>
inputFile Input path of ROM. Required
outputFile Output destination. Optional
If no path is specified, the app will
decide an appropriate file name.
args:
-w --overworld Randomize overworld palettes. Default
-W --no-overworld Do not randomize overworld palettes.
-d --dungeon Randomize dungeon palettes. Default
-D --no-dungeon Do not randomize dungeon palettes.
-l --link-sprite Randomize Link sprite palette.
-L --no-link-sprite Do not randomize Link sprite palette. Default
--sword Randomize sword palettes.
--no-sword Do not randomize sword palettes. Default
--shield Randomize shield palettes.
--no-shield Do not randomize shield palettes. Default
--hud Randomize HUD palettes.
--no-hud Do not randomize HUD palettes. Default
--seed=value Use specific seed for random generator.
Hex is supported with "0x" prefix. Default value
is -1, which specifies not using predetermined
seed.
--data-dir=value Read JSON offset files from custom directory.
--mode=value None: Makes no changes to rom.
Default: Default color mixing algorithm.
Maseya: Same as "Default".
Negative: Invert all colors.
Grayscale: Desaturate all colors.
Blackout: Set all colors to black.
Classic: Randomize palette similar to classic web API.
Produces less aesthetic colors if that's your thing.
Dizzy: Randomize each color without logic but preserve
saturation and lightness.
Sick: Randomize each color without logic but preserve
lightness.
Puke: Randomize each color without logic.
You can override the default arguments in the args.config
file located
in the application folder.
Do you want to add a feature, report a bug, or propose a change to the project? That's awesome! First, please refer to our Contributing file. We use it in hopes having the best working environment we can.
Python Console App for randomizing Link to the Past palettes Copyright (C) 2018-2020 Nelson Garcia
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.
FAQs
Randomize palette data for Legend of Zelda: A Link to the Past.
We found that maseya-z3pr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.