Comments (4)
Geez, so much for settling on a single universal format.
Because of the need to preserve labels, addressing this may have to wait until I make libsonassmd bypass the assembler and parse mappings directly. Those macros of your could help, though I'd like to license them however I want so I may have to write them myself from scratch like I did with MainMemory's.
from clownmaped.
It's nice to have a more human-readable format, but alas it makes supporting everything more complicated. xD
Parsing the mappings directly is probably the way to go, though the way Hivebrain has implemented them, the DPLC files explicitly depend on the mapping files (the index tables are synchronized via macro), so they would need to be loaded simultaneously. The DPLCs themselves have a interesting caveat: the individual frames are all separate files rather than a single blob, and the DPLCs are generated via macro rather than hard-coded. This may pose an issue while loading the DPLCs, but will simplify generating them (simply writing a macro argument rather than calculating the DPLCs). This feature is only implemented in the HB 2022 disasm for the moment, but I plan to extend it to my Sonic 2 disasm in time, and I suspect it'll be added to Sonic 1 Squared.
Anyhow, I've put together a file with all of the macros required to assemble this format, which hopefully should illustrate how it works. https://gist.github.com/OrionNavattan/6e0a6be89096d2b9593557f759b214ef
from clownmaped.
Sonic 1-squared actually uses yet another format, inline DPLCs which eliminate the need for a second index. Here's an example:
https://github.com/cvghivebrain/Sonic1sq/blob/main/Objects/Giant%20Ring%20%5BMappings%5D.asm
Don't worry about adding support for that though. It'll probably only ever be used in my hacks.
from clownmaped.
Maybe just allow the user to set their own mapping macro format as need be?
from clownmaped.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clownmaped.