| Ask anything about SMW Hacking [Version: 3.14] |
|
Forum Index - SMW Hacking - General SMW Hacking Help - Ask anything about SMW Hacking [Version: 3.14] |
|
|
|
|
| Posted on 2012-07-31 08:16:10 AM |
Link | Quote |
|
|
It's most likely a table located at the start of the graphics routine that's named "properties" or something to that effect, using the YXPPCCCT format.
|
|
| Posted on 2012-07-31 02:20:27 PM |
Link | Quote |
|
CodeSubGfx: JSR GetDrawInfo
LDA $15F6,X ; \ Store palette information
STA $02 ; /
Actually, this is what I found. How would I change this to palette F? And where do you get the numbers for the other palettes?
- BlackMageMario
|
|
| Posted on 2012-07-31 02:27:05 PM |
Link | Quote |
|
|
Just seeing that code it looks like the sprite does read its palette from its .cfg file, but I can't tell conclusively. Could you post the part of the graphics routine that involves a store to the properties table at $0303?
|
|
| Posted on 2012-07-31 02:48:29 PM |
Link | Quote |
|
CodeGfxLoopStart: PHX
TXA
CLC
ADC $03
TAX
PHX
LDA $00
CLC
ADC SpriteTileDispX,X
STA $0300,Y
LDA $01
CLC
ADC SpriteTileDispY,X
STA $0301,Y
LDA SpriteTiles,X
STA $0302,Y
TXA
AND #$01
TAX
LDA SpriteGfxFlip,X
ORA $02
ORA $64
STA $0303,Y
This?
- BlackMageMario
|
|
| Posted on 2012-07-31 02:57:20 PM |
Link | Quote |
|
|
...yeah, that sprite really should be using the palette from the .cfg file. You didn't forget to save it after editing it or something?
|
|
| Posted on 2012-07-31 03:07:57 PM |
Link | Quote |
|
Originally posted by yoshicookiezeus...yeah, that sprite really should be using the palette from the .cfg file. You didn't forget to save it after editing it or something?
Nope, I did save it. I even checked it after insertion. I wonder what is causing the problem?
- BlackMageMario
|
|
| Posted on 2012-08-01 12:47:20 PM |
Link | Quote |
|
|
Yeah, it should be working. Try toggling something with the .cfg editor (e.g. the "can be jumped on" flag) and see if it works. If that also doesn't work and palette editing also doesn't, then you must be doing something wrong when setting up the config or inserting it into the ROM.
|
|
| Posted on 2012-08-01 03:04:12 PM |
Link | Quote |
|
A herp. I am so stupid, I just wasted everyone's time. >_<
I edited the wrong file. Sorry for this guys.
- BlackMageMario
|
|
| Posted on 2012-08-01 03:17:50 PM |
Link | Quote |
|
It's fine, we all make stupid mistakes
|
|
| Posted on 2012-08-04 12:57:10 AM |
Link | Quote |
|
I seem to be having trouble with Iceguy's "P-Switch Shatter/Solid Blocks" For whatever reason after I press the P-switch, instead of ONLY Iceguys custom block shattering, regular blocks also shatter as if it was his block like so.
Any ideas why? Maybe because I have a shitload of his blocks close together? Coz when I went backwards away from the blocks nothing shattered, but when I'm closer to it it does.
Edit: I don't think it's because there's a shitload of blocks, coz I have section where there's only 2 of those blocks and even so some regular tiles still broke. : /
|
| Last edited on 2012-08-04 01:05:07 AM by reghrhre. |
|
| Posted on 2012-08-04 08:48:48 AM |
Link | Quote |
|
Originally posted by ROM mapOne of five translevels that will use a dark-background castle intro if the level is set to tileset 1 and a no-Yoshi intro is enabled. This one is 31 (Front Door) by default.
Can someone explain me what does numbr 31 mean? I would like to change that level, but i have no idea how.
|
|
| Posted on 2012-08-05 08:04:10 PM |
Link | Quote |
|
Originally posted by DinomarOriginally posted by ROM mapOne of five translevels that will use a dark-background castle intro if the level is set to tileset 1 and a no-Yoshi intro is enabled. This one is 31 (Front Door) by default.
Can someone explain me what does numbr 31 mean? I would like to change that level, but i have no idea how.
Some methods of counting assign the numbers 0-24 and 101-13B for the overworld levels, but other methods assign the numbers 0-5F for these levels.
In this second method of counting, 25 would actually be 101, 26 would actually be 102, etc. In your case, 31 is equal to 10D, which is indeed equal to the Front Door's level number.
|
|
| Posted on 2012-08-07 11:53:25 AM |
Link | Quote |
|
A simple method to convert would be:
[Your level number as it appears in LM] - $DC. The level can't be a sub-level.
|
|
| Posted on 2012-08-08 11:06:40 AM |
Link | Quote |
|
Aaaaaaah now the concept is much more clear, thanks!
Of course the level can't be a sub-level: it's an intro.
|
|
| Posted on 2012-08-09 08:43:26 PM |
Link | Quote |
|
|
I just completly deleted my statusbar (no graphics, no routines) but my layer 3 BGs still cut off at the point where the statusbar was once. Is there a way of fixing that?
|
|
| Posted on 2012-08-09 09:21:46 PM |
Link | Quote |
|
|
Not sure. I know the game still considers that area Mode1 in two of the three Mode7 level modes, but that probably doesn't help...
|
|
| Posted on 2012-08-09 09:24:13 PM |
Link | Quote |
|
|
The IRQ is still there. Use ersan's IRQ patch to get rid of it.
|
| Last edited on 2012-08-11 08:30:46 AM by wiiqwertyuiop. |
|
| Posted on 2012-08-10 06:03:18 AM |
Link | Quote |
|
It works :3 Thanks for the help ^^
Edit: I get some strange tiles at the to of my layer 3 BG now though. Probably something left from the score and coin counter. Any way of fixing that?
|
| Last edited on 2012-08-10 09:34:57 AM by Undy. |
|
| Posted on 2012-08-11 08:33:38 AM |
Link | Quote |
|
|
I suppose you missed a GFX routine or something. Open the VRAM document in the documents section and see what the VRAM address is for layer 3, then ctrl+f it in alllog and get rid of it.
|
|
| Posted on 2012-08-11 03:16:59 PM |
Link | Quote |
|
Originally posted by reghrhreI seem to be having trouble with Iceguy's "P-Switch Shatter/Solid Blocks" For whatever reason after I press the P-switch, instead of ONLY Iceguys custom block shattering, regular blocks also shatter as if it was his block like so.
Any ideas why? Maybe because I have a shitload of his blocks close together? Coz when I went backwards away from the blocks nothing shattered, but when I'm closer to it it does.
Edit: I don't think it's because there's a shitload of blocks, coz I have section where there's only 2 of those blocks and even so some regular tiles still broke. : /
Soo... no idea?
|
|
|
|
|
|
|
Forum Index - SMW Hacking - General SMW Hacking Help - Ask anything about SMW Hacking [Version: 3.14] |