bates64 / merlon Goto Github PK
View Code? Open in Web Editor NEWMod manager for the Paper Mario decompilation
Home Page: http://merlon.readthedocs.io/
License: Mozilla Public License 2.0
Mod manager for the Paper Mario decompilation
Home Page: http://merlon.readthedocs.io/
License: Mozilla Public License 2.0
Result: The papermario folder gets deleted and the following error is printed:
fatal: destination path 'papermario' already exists and is not an empty directory.
Error: failed to initialise package test by Pronyo <[email protected]>
Caused by:
failed to clone decomp repository
This is a potentially destructive operation if the user had unpushed/unexported changes in the papermario folder
Lets you view metadata of a mod without applying it. e.g.
merlon inspect examples/skip-intro-logos.merlon
Name: Skip intro logos
Description: Skips the Nintendo 64, Intelligent Systems, and Nintendo logos at boot, launching straight to the title screen.
Author: Alex Bates <[email protected]>
License: none
Lots of this data should be stored in merlon.toml
.
Should make debugging easier, plus its just cool
editorconfig/rustfmt/clippy/etc
e.g.
curl https://github.com/nanaian/merlon/releases/download/latest/merlon-linux-x86_64 -o merlon && chmod +x merlon && sudo mv merlon /usr/local/bin/merlon
For me who signs his commits, this was unexpected and I didn't know what I was signing
Changed some code so kmr_20 now redirects to tst_01, and made some edits to the test_01 stage using Star Rod. I then copied the binary files from star rod over to my merlon project and tried to run, but crashed when trying to load the stage. Attached file contains all assets, the output ROM, and the .merlon distributable
custom_map_assets.zip
With egui
Users shouldn't need to build from source
I don't have Windows, so I'd greatly appreciate help with this! Message me on Discord for more info (nanalan#0771).
Merlon currently supports Windows via WSL 2 and the Linux build. However, there shouldn't be anything stopping us from executing shell commands inside WSL but from a native Windows executable.
Specifically:
Command::new
within the package (package.rs, init.rs, tests/dependencies.rs) need to be calls to wsl
followed by the rest of the args. It would be good to create a method on Package
like pub fn run_command(args: &[str]) -> Result<String>
that constructs a Command
with the given args, runs it with the current directory being the package directory, and returns stdout/stderr. On Windows (#[cfg(target_os = "win32")]
) we can prepend wsl
to args
.emulator::run_rom
needs to use a Windows version of the ROM path (i.e. $wsl://
or whatever it is). wslpath2 might be useful here!Package
is created with a non-WSL path on Windows arguing that compiling in the Windows filesystem is a source of performance issues.The current distributable format is a tar archive with AES-256-CBC encryption, SHA-512 as the message digest algorithm, and PBKDF2 for key derivation. My thinking is that we don't really need any encryption on distributables, and can just use an archive format like zip instead
For multiple packages in a repo
e.g. nanaian/pm-mods
Could be a Discord bot too. Can train on the Merlon docs once they're further ahead
https://vaadin.com/blog/how-to-build-a-chatgpt-assistant-for-your-documentation
cargo init
, add .github/workflows/merlon.yml
cargo install merlon
merlon build
I have installed the latest version of Project64 (which currently is 3.0.1) to a common directory, C:\Program Files (x86)\Project64 3.0
.
This is an issue as merlon only looks for 2.3.x
.
It would be useful for packages to only include certain deps when testing (cargo run
), but not when exporting. For example, skip developer logos.
Why: line number diffs are unstable across decomp versions
dyff
: https://github.com/homeport/dyffgit
/ git format-patch
/ etcLet's say I have a mod big
that depends on a mod small
.
I don't want to have to include small
's commits in big.merlon
.
Instead, big
's merlon.toml
should declare small
as a dependency, and Merlon can figure out how to resolve it.
This will also affect the order in which mods are applied, i.e. small
must be before big
.
we really should separate things that need to install inside the specific repo (compilers) and things that need to be installed to your environment (python packages, system packages)
I can't reproduce, neither can @Ponmander
The following should result in no changes:
merlon apply mod.merlon
merlon unapply mod.merlon
Currently, dependency patches are applied before the packages that depend on them: https://github.com/nanaian/merlon/blob/main/src/package/registry.rs#L188-L205
@Gorialis has had some thoughts about this: https://discord.com/channels/279322074412089344/1099844075399696394/1101066445472935966
Note: There's no need to do this until a user actually wants this behaviour and we have a concrete use-case to design around.
Running merlon add --path Skip-developer-logos-1.0.0.merlon
in my merlon directory results in the following error:
merlon_v1/
merlon_v1/._LICENSE
merlon_v1/LICENSE
merlon_v1/._patches
merlon_v1/patches/
merlon_v1/._README.md
merlon_v1/README.md
merlon_v1/._merlon.toml
merlon_v1/merlon.toml
merlon_v1/patches/._0001-set-bSkipIntro-to-true.patch
merlon_v1/patches/0001-set-bSkipIntro-to-true.patch
merlon_v1/
merlon_v1/._LICENSE
merlon_v1/LICENSE
merlon_v1/._patches
merlon_v1/patches/
merlon_v1/._README.md
merlon_v1/README.md
merlon_v1/._merlon.toml
merlon_v1/merlon.toml
merlon_v1/patches/._0001-set-bSkipIntro-to-true.patch
merlon_v1/patches/0001-set-bSkipIntro-to-true.patch
Error: No such file or directory (os error 2)
The BASEROM_US_URL secret isn't passed to PRs from people who don't have collaborator access (i.e. right now, anyone but me).
For example: https://github.com/striezel-stash/merlon/actions/runs/4927238627/jobs/8803936605
This behaviour is fine, but we shouldn't fail CI tests for people without collaborator access. Instead, we should have certain tests that need the baserom run conditionally on whether BASEROM_US_URL is defined or not.
Why?
Implementation:
id
is not a slugged version of name
? i.e. convert to kebab lower case
merlon publish
commandA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.