Code Monkey home page Code Monkey logo

Comments (4)

spiiin avatar spiiin commented on May 10, 2024

You can edit layerA and layerB level maps and blocks (metatiles) for all levels with CadEditor, and view (read-only, because I have no decode all objects codes) all level objects.

To start CadEditor with one of game map

There are many runCadEditorContra*.bat in settings_sega_contra_hard_corps folder for every level in game.
Run one of them or pass Config_*.cs parameter to CadEditor wia command line as it is written in the bat files – "start CadEditor.exe settings_sega_contra_hard_corps/Config_1.cs" for example.

There are three important functions in this file:

  1. getFileName – name of your Contra Hard Corps ROM file, it's not included in the repository.
  2. getConfigName – settings file Settings_SegaContra_*.cs, this file show how data will be loaded from ROM and dump files)
  3. getDumpName – dumped level map. It's separated from ROM file, because inside ROM level maps are compressed, so you need either rip it from RAM while game running in emulator, either rip original archives from ROM file and decompress it with LZKN decompressor/decompressor:
    I put all decompressed archives to map_*.bin files, so you don't need to do this step manually.

To put changed map inside game
After editing level, you must compress map file back with LZKN decompressor/decompressor and replace original archive inside ROM with your new archive.
I save offsets of original archive in Setting_SegaContra*.cs files, for example for 1st level:
https://github.com/spiiin/CadEditor/blob/master/CadEditor/settings_sega_contra_hard_corps/Settings_SegaContra_1.cs#L55
private string BLOCKS_NAME = "blocks_11.bin"; //1E391A//1E597C
1E391A - offset for layerA archive
1E597C - offset for layerB archive

After this you can load game in emulator and view changed level.

from cadeditor.

salvadorc17 avatar salvadorc17 commented on May 10, 2024

So it will be expanded to edit objects/events?? That is like most important..

from cadeditor.

spiiin avatar spiiin commented on May 10, 2024

Maybe, but not soon

from cadeditor.

spiiin avatar spiiin commented on May 10, 2024

Objects can be edited now (with a changing bytes in table, so you must know what exactly you doing). Also improved sega block editor and added recompressing plugin for inject maps back in ROM from CadEditor
https://github.com/spiiin/CadEditor/releases/tag/v4.6

video example in release notes

from cadeditor.

Related Issues (14)

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.