Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2017-10-17 03:42:05

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 20/127
Website

[Pokéred] Slot Machine Wheel Location

While testing my ROM hack, I went ahead and traveled to the Celadon Game Corner to see if the slots were working okay. But when I checked on it, I got this result in which the slot machine wheels didn't know what to do and scrambled the wheel palette everywhere(I was still able to win coins though). It was at that moment I realized that I forgot to put in the picture data for the wheels. Does anyone know where the .asm file that asks for the .png file for the slot wheels is?

Last edited by RadonUsedMimic (2017-10-18 21:07:24)


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#2 2017-10-19 00:39:27

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,032/1,119

Re: [Pokéred] Slot Machine Wheel Location

I don't really understand your description of the bug you are having.

Anyway, the relevant files are:
engine/slot_machine.asm
data/slot_machine_wheels.asm
gfx/red/slotmachine1.png
gfx/red/slotmachine2.png
gfx/blue/slotmachine1.png
gfx/blue/slotmachine2.png
gfx/tilemaps/slotmachine.map

Based on your other thread which mentioned "purple" it might be the case that you added a new folder in the gfx/ folder named 'purple/' and forgot to change the includes for gfx/*/slotmachine1.png and gfx/*/slotmachine2.png

slotmachine1.png is included towards the bottom of engine/slot_machine.asm and slotmachine2.png is included (unfortunately) in the middle of engine/battle/animations.asm

Offline

#3 2017-10-19 11:10:05

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 21/127
Website

Re: [Pokéred] Slot Machine Wheel Location

I was looking for where slotmachine2 was mentioned in the .asm files. Thanks for notifying me!


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#4 2017-10-19 16:59:55

Ammako
Member
Registered: 2016-03-06
Post 110/158

Re: [Pokéred] Slot Machine Wheel Location

There are a lot of file searching options you can use to make your own life a lot easier for this.


If you're on linux you have it built-in by default. grep -r "slotmachine2.png" /path/to/pokered/ should return all instances of files that mention it which would make finding what you need very easy.


On Windows look for Indexing Options, on Start Menu or in Control Panel. Hit Modify if you need to change which files get indexed, then in Advanced --> File Types look for .asm in the list and change it to "Index Properties and File Contents."

After that you can just go in your pokered folder on Windows explorer and type "slotmachine2" in the search bar, and it'll find /engine/battle/animations.asm
It's a little bit limited, though. If you typed in a full filename with extension, Windows search starts returning only file matches, instead of searching through files for a text string match.

There are third-party programs that give grep functionality on Windows (I like Windows Grep myself because the UI is really nice) but Indexing Options is the way to go otherwise.


(Of course, you don't really need it anymore for this particular problem, but maybe you'll have more stuff you'll need to search for later and it's good to be able to do it on your own. ;p)

Last edited by Ammako (2017-10-19 17:10:50)

Offline

Board footer

Powered by FluxBB