1
ROM Hacking Discussion / Need help with CadEditor and FCEUX lua script.
« on: April 09, 2020, 09:28:48 pm »
Hey Everybody!
I'm trying to get CadEditor to display some newly created tiles for editing levels in Robocop. The game is supported and from the instructions below it should be simple to do, but no, not for me. Could someone take a look and tell me what I'm doing wrong.
Per Spiiin's instructions to sics:
I've tried in 2 versions of FCEUX and they give different errors (same game and script).
FCEUX 2.2.0 error:

FCEUX 2.2.3 error:

And to be sure I copied it correctly from GitHub, this is Spiiin's lua script:

Any ideas guys?
I'm trying to get CadEditor to display some newly created tiles for editing levels in Robocop. The game is supported and from the instructions below it should be simple to do, but no, not for me. Could someone take a look and tell me what I'm doing wrong.

Per Spiiin's instructions to sics:
Quote
CadEditor already supported your romhack (Sonic 5 - Improvement Vol.2 (Nes))
There are configs for this game:
https://github.com/spiiin/CadEditor/tree/master/CadEditor/settings_nes/sonic_the_hedgehog_unl
You need to make only one change - replace dumps of PPU memory and palette files.
For example - for level 1 you need to open 1st level in emulator fceux and run my script:
https://github.com/spiiin/CadEditor/blob/master/Stuff/nes_lua/dump_chr_and_pal/dump_chr_and_pal.lua
It will create files chr.bin and pal.bin.
Next, rename this files to chr1-1(a).bin and pal1-1.bin (as I used in my configs) and replace files in settings_nes/sonic_the_hedgehog_unl directory.
That's all, you can open config in CadEditor with your ROM and edit it
I've tried in 2 versions of FCEUX and they give different errors (same game and script).

FCEUX 2.2.0 error:

FCEUX 2.2.3 error:

And to be sure I copied it correctly from GitHub, this is Spiiin's lua script:

Any ideas guys?