Giter Site home page Giter Site logo

Comments (4)

Clownacy avatar Clownacy commented on June 29, 2024

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.

OrionNavattan avatar OrionNavattan commented on June 29, 2024

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.

cvghivebrain avatar cvghivebrain commented on June 29, 2024

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.

Brainulator9 avatar Brainulator9 commented on June 29, 2024

Maybe just allow the user to set their own mapping macro format as need be?

from clownmaped.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.