News: 11 March 2016 - Forum Rules

Author Topic: Battle City Remastered (MESEN HD patch)  (Read 9762 times)

imkrut

  • Jr. Member
  • **
  • Posts: 49
    • View Profile
Battle City Remastered (MESEN HD patch)
« on: May 11, 2020, 05:06:32 pm »
INTRO

Hey friends!

Here's my latest! project (5th one!), this time it's a graphic makeover for Battle City for NES.
It's a game that I'm very fond of (and I feel it's very underappreciated) it has a 2 player co-op mode, and even a built-in maker/editor mode!.

With this I've retouched the sprites, added animations, backgrounds, etc, but there's still stuff that I'd like to add (like per-stage backgrounds, and once SourMesen releases the next version of Mesen which includes foreground support, hopefully I can add a few ideas)

I've ran into some issues with the per-stage backgrounds so maybe I can iron em' out with the help of you guys (I'd like to do something like this for all stages https://imgur.com/0hj7F7L )..


There's also a great patch that adds 4player support/+the addendum wich is the "definitive" edition that I'd very much like to support, (and hopefully bundle with the graphic patch, but not sure if that's allowed https://www.romhacking.net/hacks/4658/ made by Ti/Cyneprepou4uk).


Anyway, here is some media, and the download right at the end!

IMAGES







MEDIA

https://imgur.com/0hj7F7L





DOWNLOAD PATCH HERE

EDIT: Updated version for people having troubles with the SAH-1, and with the bg.png referencers in the hires file.
This includes per-stage background support (but only for the first 3 stages)

Like I said, I might revisit this one after the next version of Mesen comes out (and update the other patches too...maybe)
« Last Edit: May 13, 2020, 01:47:57 pm by imkrut »

vhr2121

  • Jr. Member
  • **
  • Posts: 29
  • Vincent Hernandez! Cool Story, Bro!
    • View Profile
    • Vincent's Hidden Gaming Place
Re: Battle City Remastered
« Reply #1 on: May 11, 2020, 05:55:44 pm »
Hey there! Good Stuff! This game is a really underestimated gem. Played it to death when I had my NES. Thank you for giving it a nice makeover!

Googie

  • Hero Member
  • *****
  • Posts: 1073
  • Keepin' ROM Hacking gangsta since 2003, baby!
    • View Profile
    • My work in progress ROM Hacking site
Re: Battle City Remastered
« Reply #2 on: May 11, 2020, 06:38:33 pm »
I love this game, and playing the game like this'll be a real treat.

I'll play it tonight. :)

Vanya

  • Hero Member
  • *****
  • Posts: 1914
    • View Profile
Re: Battle City Remastered
« Reply #3 on: May 12, 2020, 02:22:41 am »
I freakin' ove the new tank graphics! Their adorable! :3

pleasejust

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Re: Battle City Remastered
« Reply #4 on: May 12, 2020, 02:53:39 am »
Thanks for this but it's a bunch of images and a text file. How do I patch this to a rom?

ifightdragons

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: Battle City Remastered
« Reply #5 on: May 12, 2020, 11:15:44 am »
It can't be patched to a ROM. It's only intended for use on the MESEN emulator.

Imkrut: You should specify in the topics of all your posts that these hacks are only for MESEN. Most people play on real hardware or more common emulators.

mkwong98

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: Battle City Remastered
« Reply #6 on: May 12, 2020, 12:45:36 pm »
I think you can use the stage number tiles below the flag as tileAtPosition conditions for the background.

imkrut

  • Jr. Member
  • **
  • Posts: 49
    • View Profile
Re: Battle City Remastered
« Reply #7 on: May 12, 2020, 02:41:34 pm »
I think you can use the stage number tiles below the flag as tileAtPosition conditions for the background.

Yeah I did try that, but had problems with the game picking it up for some reason.

lyonhrt

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Re: Battle City Remastered (MESEN HD patch)
« Reply #8 on: May 12, 2020, 06:41:40 pm »
how about using ram map, so in this case looking at it http://datacrystal.romhacking.net/wiki/Battle_City:RAM_map i would guess memoryCheckConstant,85,==,01 would be stage 01 85,==,02 would be 2 etc

pleasejust

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Re: Battle City Remastered
« Reply #9 on: May 12, 2020, 08:00:19 pm »
It can't be patched to a ROM. It's only intended for use on the MESEN emulator.

Imkrut: You should specify in the topics of all your posts that these hacks are only for MESEN. Most people play on real hardware or more common emulators.

Fair enough but I don't understand why this wasn't made into rom patch.

KickMeElmo

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Battle City Remastered
« Reply #10 on: May 12, 2020, 11:35:10 pm »
Fair enough but I don't understand why this wasn't made into rom patch.

Mesen HD packs replace textures with resolutions the NES can't produce. Some actually do include patches (though you don't have to apply them yourself) to allow replacing sounds and music from the game with high quality ogg files. Essentially, this wasn't made into a patch because it can't be made into a patch.

Ray572

  • Jr. Member
  • **
  • Posts: 34
    • View Profile
Re: Battle City Remastered (MESEN HD patch)
« Reply #11 on: May 13, 2020, 01:36:43 am »
I have 16 hd pack for mesen and this BattleCity pack is the only one that doesn't work for me.
I tried everything, the pack works for me just by having the exact name between the rom and the pack, it did not work. Also loading it from the emulator mesen in utilities "Install pack HD", it says that it was installed correctly and must restart but even so it does not load the pack.
Any suggestion? :huh:

ifightdragons

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Re: Battle City Remastered
« Reply #12 on: May 13, 2020, 01:46:20 am »
Fair enough but I don't understand why this wasn't made into rom patch.

Because these are HD assets, going above the NES' native resolution of 240p. It's only compatible with the MESEN emulator.

To simplify: It's not the ROM that's being hacked, but rather the emulator being instructed to swap original assets with HD assets.

And that's why I think Imkrut should properly label his posts, to avoid confusion. Most people don't use the MESEN emulator.

mkwong98

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: Battle City Remastered (MESEN HD patch)
« Reply #13 on: May 13, 2020, 01:50:42 am »
I have 16 hd pack for mesen and this BattleCity pack is the only one that doesn't work for me.
I tried everything, the pack works for me just by having the exact name between the rom and the pack, it did not work. Also loading it from the emulator mesen in utilities "Install pack HD", it says that it was installed correctly and must restart but even so it does not load the pack.
Any suggestion? :huh:

You can try removing this line from the hires.txt:
<supportedRom>E1061C9241B06A965FB7845CB951D921ACA010EF

Ray572

  • Jr. Member
  • **
  • Posts: 34
    • View Profile
Re: Battle City Remastered (MESEN HD patch)
« Reply #14 on: May 13, 2020, 02:05:44 am »
You can try removing this line from the hires.txt:
<supportedRom>E1061C9241B06A965FB7845CB951D921ACA010EF

Try what you say and I also had no results.
In any case, the rom I have corresponds to the one requesting the pack.
SHA-1: e1061c9241b06a965fb7845cb951d921aca010ef
It is very rare that it does not load me.

mkwong98

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: Battle City Remastered (MESEN HD patch)
« Reply #15 on: May 13, 2020, 10:43:00 am »
Try what you say and I also had no results.
In any case, the rom I have corresponds to the one requesting the pack.
SHA-1: e1061c9241b06a965fb7845cb951d921aca010ef
It is very rare that it does not load me.

I got it. You need to remove these two lines:
<img>bgdemo.png
<img>bg02.png


May 13, 2020, 12:20:58 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Yeah I did try that, but had problems with the game picking it up for some reason.

I get it to work with something like this:
<condition>stage1X,tileAtPosition,232,200,16f,0F170600
<condition>stageX1,tileAtPosition,240,200,16f,0F170600
[stage1X&stageX1]<background>bg11.png,1.0,1,0,Y,0,0
« Last Edit: May 13, 2020, 12:20:58 pm by mkwong98 »

imkrut

  • Jr. Member
  • **
  • Posts: 49
    • View Profile
Re: Battle City Remastered (MESEN HD patch)
« Reply #16 on: May 13, 2020, 12:48:59 pm »
I got it. You need to remove these two lines:
<img>bgdemo.png
<img>bg02.png


May 13, 2020, 12:20:58 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
I get it to work with something like this:
<condition>stage1X,tileAtPosition,232,200,16f,0F170600
<condition>stageX1,tileAtPosition,240,200,16f,0F170600
[stage1X&stageX1]<background>bg11.png,1.0,1,0,Y,0,0

Mkwong98! thanks!, could you explain why is it that 232,200 & 240,200 work as coordinates? I was under the impression that it used a 8,8 grid for it, so in this case the "11 stage" should be 29,25  and 30,25 (at least that's the info the PPU viewer gives me)

Any easy way to calculate that point?

Thank you, I'll update with a newer version.

EDIT: Updated! I removed the SHA-1 tag that people have been having problems with, added 4 backgrounds (demo + 3 first stages thanks to Mkwong98! for the help)

Also learned that references to tiles with that condition are absolute coordinates, and that you don't need to reference the <img> backgrounds, you can just "call" them directly in the condition.
« Last Edit: May 13, 2020, 01:46:35 pm by imkrut »

Ray572

  • Jr. Member
  • **
  • Posts: 34
    • View Profile
Re: Battle City Remastered (MESEN HD patch)
« Reply #17 on: May 13, 2020, 02:25:08 pm »
I got it. You need to remove these two lines:
<img>bgdemo.png
<img>bg02.png

Thanks mkwong98 for the help, with that if it works. I wanted to play this game with its improved version after so many years.

Imkrut thanks for the patch, hopefully it won't be the last. :beer:

imkrut

  • Jr. Member
  • **
  • Posts: 49
    • View Profile
Re: Battle City Remastered (MESEN HD patch)
« Reply #18 on: May 13, 2020, 05:24:55 pm »
Thanks mkwong98 for the help, with that if it works. I wanted to play this game with its improved version after so many years.

Imkrut thanks for the patch, hopefully it won't be the last. :beer:

I just updated the patch with some new features and corrected that bg bug, thanks to Mkwong98

mkwong98

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: Battle City Remastered (MESEN HD patch)
« Reply #19 on: May 14, 2020, 12:17:27 pm »
Hi, I had a look at the new patch. The background conditions can be simplified like this:

<condition>stage_X,tileAtPosition,232,200,111,0F170600
<condition>stage1X,tileAtPosition,232,200,16F,0F170600
<condition>stage2X,tileAtPosition,232,200,170,0F170600
<condition>stage3X,tileAtPosition,232,200,171,0F170600

<condition>stageX0,tileAtPosition,240,200,16E,0F170600
<condition>stageX1,tileAtPosition,240,200,16F,0F170600
<condition>stageX2,tileAtPosition,240,200,170,0F170600
<condition>stageX3,tileAtPosition,240,200,171,0F170600
<condition>stageX4,tileAtPosition,240,200,172,0F170600
<condition>stageX5,tileAtPosition,240,200,173,0F170600
<condition>stageX6,tileAtPosition,240,200,174,0F170600
<condition>stageX7,tileAtPosition,240,200,175,0F170600
<condition>stageX8,tileAtPosition,240,200,176,0F170600
<condition>stageX9,tileAtPosition,240,200,177,0F170600

[stage_X&stageX1]<background>bg01.png,1.0,1,0,Y,0,0
[stage_X&stageX2]<background>bg02.png,1.0,1,0,Y,0,0
[stage_X&stageX3]<background>bg03.png,1.0,1,0,Y,0,0
[stage_X&stageX4]<background>bg04.png,1.0,1,0,Y,0,0
[stage_X&stageX5]<background>bg05.png,1.0,1,0,Y,0,0
[stage_X&stageX6]<background>bg06.png,1.0,1,0,Y,0,0
[stage_X&stageX7]<background>bg07.png,1.0,1,0,Y,0,0
[stage_X&stageX8]<background>bg08.png,1.0,1,0,Y,0,0
[stage_X&stageX9]<background>bg09.png,1.0,1,0,Y,0,0
[stage1X&stageX0]<background>bg10.png,1.0,1,0,Y,0,0
[stage1X&stageX1]<background>bg11.png,1.0,1,0,Y,0,0
[stage1X&stageX2]<background>bg12.png,1.0,1,0,Y,0,0
[stage1X&stageX3]<background>bg13.png,1.0,1,0,Y,0,0
etc