Romhacking.net

Romhacking => ROM Hacking Discussion => Topic started by: bogaabogaa on May 17, 2017, 07:36:24 am

Title: Super Castlevania 4 Maker
Post by: bogaabogaa on May 17, 2017, 07:36:24 am
Everything that belongs to creative work on SC4 goes here.

- Artwork
- Tutorials
- Share SCL
- Patches
- Ideas

When you use SC4ed make backups of the ROM as you do with any project

Newest Editor/Rendomizer
CV4 Randomizer:                     https://www.dropbox.com/s/pnci0e3t9rl9mgf/SCV4Randomizer.exe?dl=0

Official editor source code Download
https://www.dropbox.com/s/x328b005vt1fhli/SC4Ed-master.zip?dl=0

Official editor binary (win executable) Download
https://www.dropbox.com/s/0h1v2h37huaoept/SCV4edBIN.zip?dl=0

old CV4 Level Editor:                  https://tinyurl.com/ydfj7wdc

Tutorial and Project page SC4ed:
Click on quote to get to the Tutorial

Buglist:
Click on quote to get to the Buglist
Common bug fix patches for broken ROMs: https://www.dropbox.com/sh/yy2thhg77wqolf6/AAD65ht0qFBVAaLYFYegjC_wa?dl=0

Click on quote for Text-Editing help

I am the creator of Othercastle and I used some patches I like to share here. I did not make them credit goes to Redguy:

Buwexil (SkullBoss) will overwrite tiles in the background when using his breath weapon. This patch overwrites Buwexils routine to write tiles into VRAM with NOP.
https://www.dropbox.com/s/xmomcynbwr8mv17/puwexil_mentos.ips?dl=0

When killing a skeleton the bones will usually lag the game a lot. Less bones
https://www.dropbox.com/s/7gxtk4pa7vrj57p/scv4_less_bones.ips?dl=0

When Standing in the Waterfall at 3.3 you will get a lot of bubbles that lag the game
https://www.dropbox.com/s/1d775r5bbo1aihr/scv4_less_bubbles.ips?dl=0

Speedpotion. This will replace the invisibility potion with the speedpotion
https://www.dropbox.com/s/olacetve164gd5a/scv4_speed_potion_v0c.ips?dl=0

If you have bad entrance. They just don't work how they should. You may have a missing instruction in your rom
https://www.dropbox.com/s/mvdyl3948yqssdj/scv4_bad_entrance_fix0_v0.ips?dl=0

I found a other patch made by Redguy that will make the game very challenging by itself. One HitKo!! https://www.dropbox.com/s/0poecl9syjztcjz/scv4_1hitKO.ips?dl=0
(Known Bug: There are some stuff that doesn't kill you like: mud, some enemy weapoen, Slogys dash or Draculas body)


(https://i.imgur.com/Gk0d1ra.png)
Revers Gears with supID 1 and 3
https://www.dropbox.com/s/eg0rrnwkfi0mpgy/ReverseGearPatch%20SubID%201%20and%203.ips?dl=0
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on June 14, 2017, 06:16:40 am
I did work on a Rommap that should make things easier but I am not very far yet. You can look at it as the advanced tutorial of SC4ed
https://www.dropbox.com/sh/vo8gq86piv79f48/AACt_Gct9pPDTs7hILyLbqE1a?dl=0

(https://i.imgur.com/pXODpfi.png)



Here a new Patch categories. This patches may not be as easy to understand. They will put enemy sprites and event pointers into a level and replace a other one. If you like to make them yourself this will help. https://pastebin.com/sQE5ePK1


(https://i.imgur.com/t3nKthY.png)

Harpy in A-1-1 patch https://www.dropbox.com/s/2okd1ei9q6ddinx/Harpy%20in%20stage%20A-1-1%20Patch.ips?dl=0

.. more patches. If not included please request: https://www.dropbox.com/sh/prf9crjpgh79fca/AACnYVqUOwzV-JDXXzXU_P0Ta?dl=0


I did find a new enemy though ;P
https://www.youtube.com/embed/Vu_s8lxs7z4

Never found out about the spike in 8 though.. read document for more unused stuff..
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on August 14, 2017, 12:44:45 pm
With this you should be able to create a custom Player Sprite Sheet. Haven't tested it fully yet.
Tilemapping is done with pyxel. (haven't tested with free version glad for feedback)
I recomand Tilemolester for in/exporting

PyxelCreatorSheet https://www.dropbox.com/s/fmkaaxcl7hho82d/Simon%20Finnal%20Animation%20Sheet.pyxel?dl=0

You may wanna past the whole sheet in and fix the code around the area with this patch. Makes it easy ond quick ;P
https://www.dropbox.com/s/8hkt3u7cz1xrvct/Graphic%20Fix%20Simon%20Spite%20Sheet.ips?dl=0

(https://i.imgur.com/02nEKD7.png)


Opening:
https://www.dropbox.com/s/ui21wxo060vu9kd/Simon%20Opening%20Whiping.pyxel?dl=0

(https://i.imgur.com/OAcanTV.png)

I may to a tutorial after I finished my first Skin.



(https://i.imgur.com/kANE2ek.png)



I like to share my TileMolester Resource File. Just copy the xml file in the resource folder of your copy of TM and you will have access graphics and most palettes.  Also some not unclouded in SC4ed.


This is continuing to be updated the longer I work with it!

If you did not know TM does check the name of file you open and take the resource file with the same name. Happy Hacking and don't be shy to show some of your work here.

(https://i.imgur.com/TRILROT.png)

https://www.dropbox.com/sh/5ksz8d2scy8hx87/AAD031JoRdBSQWEszfmcTqdGa?dl=0

Also I use TM to copy block/scene maps. I did test some and it seemed to be working for this. I know this method is very dirty and does eat values that are not in color spectrum. If you would like IPS or HEX sheets let me know. Also I would be happy people would help sorting things like that and share. You will find Bookmakrs in my TM resouce file. Also did add a folder with sorted maps into the Rommap folder.

(https://i.imgur.com/Oa7eb4r.png)


TitelScreenLogo editing and importing with TM and my resource file like usual.

https://www.dropbox.com/s/5ureqdwdcjd2zlt/Titelscreen%20editing.pyxel?dl=0

(https://i.imgur.com/TfiSknS.png)
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on October 01, 2017, 07:52:33 am
Summery of my Projects

OtherCastle
I did never finish OtherCastle since I don't have the skill to get it to a point where I would call it a finished project. It is still a good level hack in my opinion. There are still bugs. Missing graphics, lore and some boss tweaking. The hack seems to be too difficult for casual players and even fans of the original. The ring mechanics been a issue for many players and will do tow versions in the next update. One will be a spoof with lots of subweapons and fun to play even for players who did not beat the first one  ;D
(https://i.imgur.com/P1tqDAt.png)

What people may want
I would like to make a Super Castlevania for everyone. With new graphics to enjoin. New levels and may be re skin and modify bosses to a extend that make it a new game.
There is already great work been done by Sinis (https://cdn.discordapp.com/attachments/197096946270208000/348925609449226241/SC4-New-Simon-Sprite-16b.jpg)

I am sure will get there some year

Boss Rush
Redguy made a BossRush hack that feels very finished to me but he feels like it needs more tweaking. Some ideas are here https://pastebin.com/sTCWnGnC
I have some ideas myselfe too.. but the motivation/skill is down on this right now.
Hack: https://cdn.discordapp.com/attachments/197096946270208000/287035206043435008/scv4_boss_rush_v0.xdelta


DrunkleVania II
My skills at hacking are still very poor and I started a project called Drunkelvania II. It should be a new level hack. It is inspired by Drunken Draconien and will future short and hard levels to figure out. https://www.twitch.tv/videos/178838229


My wish for this forum post
I hope to see some Castlevania IV fans showing up. Give some feedback or create a levels for your favorite childhood game. It doesn't need to be a whole game you can post levels/ideas too here.

(https://i.imgur.com/n7EGhyM.png) (https://i.imgur.com/3RXnChH.png)

Title: Re: Super Castlevania 4 Maker
Post by: Vanya on October 06, 2017, 06:48:34 am
I think the reason you don't see a lot of community response is that people are still waiting for the editor to be done or for a more comprehensive document about the inner workings of the game.
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on October 08, 2017, 02:42:43 am
May be it would be good if Redguy could say himself how finished his project are. I can only tell it from my point of view. And the editor is a nice tool to create a hack if you understand how it works. It is helpful/necessary  to have other tools for costume graphics.

One reason why you will not see a complete decompressed ROM of SC4 any time soon or ever. It is a real time decompression and pointers need to be reorganized. The tile data was painful to decompress and organize.  Many levels had a partial compressed space which Redguy tried to expand to the full size.  But not all levels have the same full size.  And several levels had multiple compressed spaces that went to different locations in VRAM and shared compressed tiles with other levels.  It was difficult to write a simple function that tried to fully expand all levels without breaking something so Redguy tried to be conservative. For example you can't edit the animation of the leaves in the first level.

That means that there are partial uncompressed data that you can't edit with in the editor. But you will find your way around it if you put your own graphics in. If you are interested in the inner working you could read through the source of SCV4RandomizerView.cpp file on git. Redguy did a lot of hacking to get his Randomizer to work how it does and you can translate this addresses to rom addresses with lunar address conversion tool.
You can also look things up yourself if you know how.

I may write a better document on how to use the editor but I am not very good at writing anyway.
Title: Re: Super Castlevania 4 Maker
Post by: Vanya on October 08, 2017, 04:48:24 am
That would definitely be helpful.
There are at least some simple things I'd like to change in the game, that the editor makes easy.
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on October 08, 2017, 10:08:31 am
I am currently testing futures and I may document them here so people may see what is possible. I think a  easy way to do this is a Video log after I planed out a level and before I go to finish it so the spoiler would not be to big if you want to play it later. And here you can request things if you run into trouble.

The Videos are bad in my opinion. You are better of reading the tutorial I made. But I tried how it works for me making videos. May be it is inspiring for someone  ;)

Making of Other Castle: https://youtu.be/l_NnQddDMkg

How to make fake rings: https://youtu.be/LrR0YSbebwM

Planning out a level and setting up camera looks or bosses in other levels: https://youtu.be/7gPXLoGNBCs

Entrances and exit events: https://youtu.be/RqaIlkQuUKI
 
Title: Re: Super Castlevania 4 Maker
Post by: Vanya on October 11, 2017, 10:11:55 am
One thing is for sure; the more documentation we have for the editor, the more likely people will use it to make their hacks.
You may also want to include of list of things that can't be done. That way potential users won't waste their time trying do things that are known to fail.
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on October 12, 2017, 04:34:11 pm
Yeha Documentation.. I am the worst when it comes to writing things :P

My beginners tutorial could use some work too.. starting a advanced one that covers issus and explains things in deep would be a good thing to start.
I may start a project pace since it is something easy to do and people may like to follow the progress.
Title: Re: Super Castlevania 4 Maker
Post by: sr. azul on October 16, 2017, 01:59:02 pm
I've started with a project, but it's the first time I´m hacking something.
I have made some changes to the sprites, Simon and some enemies, and my plan is to make changes in the sprites and the background trying to get closer to Simon's Quest.
As I have not used much the editor I have a question:
-Is it possible to put enemies on other levels than their own?, I have tried copying the attributes but only get sprites distorted.

(https://i.imgur.com/1SqBrn7.png)
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on October 18, 2017, 07:50:25 pm
It is possible but not within the editor. You will need to modify the pointer-table with a hex editor or ask someone to make a patch for you. After that the events will show properly in SC4ed.

Here a list of the pointers. https://pastebin.com/sQE5ePK1

(https://i.imgur.com/q7nTqQy.png)
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on March 18, 2018, 06:34:56 pm
I like to share how door event can be used global in SC4ed. Would be perfect to hide a secrets. Or even more when you don't mind the time to set everything up. The event has set the animation to there x y position and can't be edited within the editor.. and I don't know how to look it up (sry no address here) but the event works also without the animation and still has the sound.

https://clips.twitch.tv/SilkyAffluentPepperPeteZarollTie

A little showcase of some testing of events in other levels.. there would be a lot to talk about here. May be will start a document that explains them better and how to edit them. Also still have not started with the palette editor document. Sure will make one since it will help me work too.

https://clips.twitch.tv/BombasticMagnificentCakeAsianGlow


so did start with the document and will redo the sprite document to be friendlier to use. There is so much stuff been done it is a lot of work to cover and build up on. To put this in a document will take me a while.. as I said before I might probably not be the best man for that kind of job.. so patience.. or ask for a job if you are bored ;P

(https://i.imgur.com/Wjcjo3z.png) IPS Patch will expand your rom put this alpha skin in.
Here a unfinished Skin. I am a little burned out to work on it. Feel free to improve an share. https://www.dropbox.com/s/d81q8p37eatau2i/SC4%20USA%20ORGINAL%20ROM%20Bloodletting%20skin.ips?dl=0
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on June 02, 2018, 07:17:30 pm
I still work on a better documentation for the editor. I started a Rom map with a lot of editing information also about the SC4ed. This is a work in progress

https://castlevaniaspeedruns.com/Cv4/hacking

https://castlevaniaspeedruns.com/Cv3/hacking

I am still on the Speedrun Discord too ^^

https://discord.gg/GcaeFHV

Wish everybody happy hacking and a good time cya
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on June 29, 2018, 01:15:09 am
I planing to try creating Video tutorials again. Teaching my workflow on hacking and SC4 editing. Also wanna test my tutorial material with it. The main goal will still be to get attention and give some people the idea to try this.

Bloody Beginner tutorial let's start with how do you get a rom. Short overview what is possible to do within the editor.
everything is explained very poorly. This is for people who say "I wish I would know how to make romhacks"

https://www.youtube.com/watch?v=YyD-rgBNQVs

Working on normal tutorial that shows how to actually do things..
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on January 09, 2019, 12:00:43 am
!!Does someone know a hex editor you can load the tbl and actually type text??! :banghead:
Winhex32 works after enabling text edit mod :D

I know this place is a bit of a mess but at last you can find things here to work and get started. I did make a thingy file (.tbl) for SC4 so you can edit the intro text in a easy way. You see the offset on the picture and will find the file in the ROM map folder. Also thanks to DarkSamus without him I probably would never figured it out.

(https://i.imgur.com/mCQPA5V.png)
Title: Re: Super Castlevania 4 Maker
Post by: Cyneprepou4uk on January 09, 2019, 02:51:48 am
!!Does someone know a hex editor you can load the tbl and actually type text??! :banghead:

You can use FCEUX's hex editor if you won't find anything better.
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on January 09, 2019, 07:07:59 pm
You can use FCEUX's hex editor if you won't find anything better.

I would had no idea how to get FCEUX to load a snes rom. It works great for .tbl as far I did see. I ended up using winhex. What I missed was you had to enable text editing. I found it as I was reading the manuel. Thanks for the input
Title: Re: Super Castlevania 4 Maker
Post by: Cyneprepou4uk on January 10, 2019, 06:50:11 am
Sure you can't load a snes rom in fceux directly. But what you can do is open a nes rom and paste your snes rom bytes (which you want to translate) to this nes rom, then load your tbl, translate bytes, and finally copy them back to your snes rom. Profit :)
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on March 09, 2019, 03:45:52 pm
Here you will find a TBL file you can load with winhex. It has some bookmarks on it that will make text-editing easy for SC4.

https://www.dropbox.com/s/ha49v75j9qitgnd/TEXTonSC4.tbl?dl=0
(https://i.imgur.com/saqDPKo.png)



You will also find more notes here as I create them while hacking.
Sound pointer. Enemy table Boss notes..
https://www.dropbox.com/sh/a5k5b8xsug56ak4/AAAhpfsXDCPqSCu84Zy3Ufuga?dl=0
Title: Re: Super Castlevania 4 Maker
Post by: Aaendi on March 10, 2019, 11:14:14 pm
If you know where the code is for bone breaking skeletons, you can post the code and we can speed it up.
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on May 25, 2019, 05:36:19 pm
I did point to where the code is located in my document "Enemy Notes HealthDamagTable" (First entry after the health table)
I have a new link for the documents since I try to organize them better now. They are still a bloody mess but this one document is useful

Here: https://drive.google.com/drive/folders/1EgQgrQK0g_LfoBFRGK16h0y2r99J52Wv?usp=sharing
(There is also a lessbone patch that will reduce bone-spanning when killing a skeleton to reduce lag. Same link in the subfolder zPatches)


The enemy patches get frequently updated so you can use the patch to get different enemies in a level
Here: https://drive.google.com/drive/folders/1u3wj_d0AmT8lPjotmGrfy_znsLZtdjLC?usp=sharing

General Fix patches that fix mistakes like. Overwriting code while posting graphics, Double property fix or entrance trouble with the old editor.
Here: https://drive.google.com/drive/folders/1r0-OIxp7YfYLDGQ1D6bQ0wIeh7hxwXAh?usp=sharing

If you write some documents by yourself I am glad when you post them here. Also sorry for the late replay. Did miss it somehow   :)
 
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on August 08, 2019, 12:36:10 pm
A forum thread is not a good way to organize hacking resources. I have a discord and work on a wiki.

Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on February 27, 2021, 08:47:04 am
I get questions in PMs that just fit this forum post. Sometimes I just link to resources but sometimes it is unique like this.

Hello! I wanted to reach out and ask you a question about Castlevania IV since I know you've done several hacks and probably have a pretty strong grasp on many technical aspects of the game.

I started toying with the idea of doing a very small CV4 hack this morning as I was playing the game. I always lament the fact that you generally always get your fist whip upgrade after hitting the very first candle in each stage. Essentially the leather whip gets zero play time. And even the upgrade to the full length morningstar happens a little early for my liking. I read somewhere in the past that the game has either a candle counter or a heart counter of some kind that keeps a tally and then I imagine the code does comparison to a requisite number for each upgrade and voila, it gives you the upgrade. I can't really find much online about those mechanics now.

I was playing around with debugging tools a bit (I'm not the best debugger and my work is almost exclusively with NES games) and so far I haven't been able to crack the code on this.

I thought I'd message you on the off chance that you've already documented exactly how this works and what I'd need to change in order to delay the whip upgrades. No big deal whatsoever if you're not aware. I can always avoid candles. Haha.

I think you should ask question like this in the forum so others might benefit or get a idea what it is about. The heart count is in RAM $0013f2 when you put a breakpoint on it there is a routine that does read it to update the HUD. When you hit a candle you get a different hit.
(https://i.imgur.com/mzPUSS1.png)

If you are not familiar with the ROM mapping just use lunar address to translate it into a PC file offset.
(https://i.imgur.com/KSH3JzA.png)


I forgot to mention that this could be archived with cheat codes like.
game genie codes F934-4D0D and F934-446D to have them drop with 15 and 30 hearts.

This will not cut it as a small hack and it would probably be smart to replace the mechanic with some other code based on RNG or enemies killed.
I also have a discord for questions like this.
Title: Re: Super Castlevania 4 Maker
Post by: pianohombre on March 13, 2021, 07:42:24 pm
Hi,
I helped work on MMXed that Redguy and another person worked on that eventually released the source code. I still haven't figured out how to display the enemy sprites in Megaman & Bass for that game, but it looks like he used a lot of the old code for MMXed for this game so I might be able to work with this editor. I'll try taking a look at the source code or some of the files. Looks like Redguy abandoned the project. It's too bad there's no official editor for this game available for download here.
Title: Re: Super Castlevania 4 Maker
Post by: bogaabogaa on April 09, 2021, 12:59:57 am
It's too bad there's no official editor for this game available for download here.

Official editor source code.
https://www.dropbox.com/s/x328b005vt1fhli/SC4Ed-master.zip?dl=0

Official editor binary.
https://www.dropbox.com/s/0h1v2h37huaoept/SCV4edBIN.zip?dl=0

Sorry for the late respond.
I posted the binary in the first post here. There is a newer version of the editor with a view more things added by Curien. May be he will post on git when he makes more progress. I paste current binary build here.

I posted the source code on Redguy official RHDN blog post linked also in the first post here. The source is how Redguy did leave the project.

Also your PM is full @pianohombre so I post the letter here:
I did not log into RHDN for a while and missed your post. Just let you know that you can talk about MMXed on that forum thread too. I posted links to the source code of SC4ed. The editor does also have basic support for Contra 3 and Gradius 3 but I think the MMX stuff got removed since I can't open that ROM with SC4ed  :-\

The MMXed does use the same code base but there been a lot of quality changes. Like picking blocks in the scene editor instead of rotating them with arrow keys. Just basic event support would be great. Sure SC4ed does read the sprite from the ROM but you can't edit them within the editor and not sure if this should be a goal.

I hope you will find useful things in the source and GL with your projects.
Title: Re: Super Castlevania 4 Maker
Post by: pianohombre on April 12, 2021, 09:25:19 pm
Hi, bogaabogaa, thanks for all your help on the project. I had already saved the source code, but now I'll have the binary too! I haven't had a chance to compile the source code or look through it yet so I'll get back with you on any important notes after I take a look at it. C++ is much easier than hex and assembly so that's good. I'll also try freeing up some of my inbox. Apologies.