Search found 1190 matches

Return to advanced search

Re: Sprite Graphics

Here is the code I have so far. How do I use all the thousands of colours the SNES can display? Do I use an array, create the different colours at run time? I'm not sure. int main() { // Link sprite. int Bitplane0_ROW[] = { 0b01100110 , 0b11111111, 0b01011010, 0b01111110, 0b00000000, 0b10000001, 0b1...
by Cyclone
December 9th, 2022, 9:34 am
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

In the second version we have a struct containing a red, a green and a blue component. After that we define an array containing four groups of colours. That code block can be scrolled, there is an example of how to access and assign them. The idea behind using tables is that you don't need to check...
by Cyclone
December 6th, 2022, 4:57 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

I figured out what I'm doing wrong. I just don't know how to access the separate values in the Struct that's why. Edit . I am getting a strange glitch in my code. I have unsigned char red[] = { 255, 53, 59, 154, 0, 255 }; unsigned char green[] = { 255, 189, 85, 194, 255, 0}; unsigned char blue[] = {...
by Cyclone
December 5th, 2022, 4:18 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

^ I checked here... https://htmlcolorcodes.com/

you are correct its green. but I still get blue in my program...
by Cyclone
December 5th, 2022, 3:12 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

Edit. Kingizor. There are a lot of errors in your post. you said. { 53, 189, 104 }, // Green
but that's actually blue...
by Cyclone
December 5th, 2022, 2:59 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

As for the index values, you currently have four tables each containing three values. That's one table for each colour containing an R, G and B value. A more typical way would be to have three tables containing the R, the G and the B values. So that would be three tables containing four values. The...
by Cyclone
December 5th, 2022, 2:48 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

Here... This works I think :) std::bitset<4> bs; bs.set(0, (Bitplane0_ROW[p] >> N) & 1); bs.set(1, (Bitplane1_ROW[p] >> N) & 1); bs.set(2, (Bitplane2_ROW[p] >> N) & 1); bs.set(3, (Bitplane3_ROW[p] >> N) & 1); unsigned long Index = bs.to_ulong();
by Cyclone
December 1st, 2022, 10:27 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

A 4-bit version is a very similar process. To construct the 4-bit index value you'd need to extract the four different bits and shift them into place as necessary. There isn't really anything new to cover at this stage, so maybe just try and think over how your 2-bit version works at each point and...
by Cyclone
December 1st, 2022, 9:27 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

You did manage it with shifts which is one of the ways to do it. The other way would have been something like this: b = (!!(Bitplane0_ROW[p] & (1 << N)) << 1) | !!(Bitplane1_ROW[p] & (1 << N)); This way uses logical NOT twice. That has the effect of forcing the extracted set bits to 1 so yo...
by Cyclone
December 1st, 2022, 5:10 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

EDIT Is this even close? b = (Bitplane0_ROW[p] << 1) | (Bitplane1_ROW[p] << 0); Yes, that's exactly what we want. The only issue is that shifting left by zero won't do anything, so you can safely remove that shift. That didn't work when I tried that. however this worked, I was able to get the index...
by Cyclone
November 30th, 2022, 10:39 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

This works int bit1 = 1; int bit2 = 1; int combined = bit1 | (bit2 << 1); std::cout << combined << "\n"; // prints 3 but... how do I combine these two → ((Bitplane0_ROW[p] & (1 << N)) && (Bitplane1_ROW[p] & (1 << N)) == 0)
by Cyclone
November 30th, 2022, 7:11 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

I came across this link. https://stackoverflow.com/questions/33128934/combining-three-bits-to-get-a-single-integer-value with this example. #include <stdio.h> #include <stdlib.h> int main(void){ int LeastSignificantBit=1; int MiddleBit=0; int MostSignificantBit=1; int Number=0; Number=(MostSignifica...
by Cyclone
November 30th, 2022, 1:26 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

Got some better code now. thanks for the tips. You seem to have an extra if hiding in there! :bashmaster: This version is a tiny bit farther from what we want compared to the previous version though. You know that (Bitplane0_ROW[p] & (1 << N)) and (Bitplane0_ROW[p] & (1 << N)) get us the tw...
by Cyclone
November 30th, 2022, 1:10 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: DKC Sprite Graphic Tutorial

Thanks for the thought. It’s ok if you look at the wording. As long as it is constructive.
by Cyclone
November 29th, 2022, 6:25 pm
 
Forum: Documentation
Topic: DKC Sprite Graphic Tutorial
Replies: 11
Views: 7759

Re: DKC Sprite Graphic Tutorial

You didn’t paste the entire doc. Also I’m not sure what you changed
I was looking for suggestions such as wording and if it’s easy to understand etc or if I am missing any thing
by Cyclone
November 29th, 2022, 4:49 pm
 
Forum: Documentation
Topic: DKC Sprite Graphic Tutorial
Replies: 11
Views: 7759

Re: DKC Sprite Graphic Tutorial

Sure that would be great
by Cyclone
November 29th, 2022, 4:25 pm
 
Forum: Documentation
Topic: DKC Sprite Graphic Tutorial
Replies: 11
Views: 7759

Re: DKC Sprite Graphic Tutorial

Does anyone have suggestions on how to improve it?
Thanks in advance.
by Cyclone
November 29th, 2022, 12:42 pm
 
Forum: Documentation
Topic: DKC Sprite Graphic Tutorial
Replies: 11
Views: 7759

Re: Sprite Graphics

Got some better code now. thanks for the tips. 2Bpp int main() { int Bitplane0_ROW[] = { 0b01100110 , 0b11111111, 0b01011010, 0b01111110, 0b00000000, 0b10000001, 0b11111111, 0b01111110 }; // Array to to store numbers Last Row is first. int Bitplane1_ROW[] = { 0b01111110, 0b11111111, 0b11111111, 0b11...
by Cyclone
November 29th, 2022, 12:40 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

Quick programming question. How do you check if a bit not set? I'm sure its something obvious. sorry. This checks if a bit is set → if (Bitplane0_ROW[p] & (1 << N)){ // do something.} but i'm not sure how to check is a bit not set like this → if (! Bitplane0_ROW[p] & (1 << N)){// do somethin...
by Cyclone
November 28th, 2022, 6:08 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

Another consideration for this is let's say you want to make 1 tweak. The way you have it, you would need to make that tweak in 8 places, rather than 1. Further, you would have to remember to make 8 changes. Trust me, when it's been a while, you'll likely forget you did it that way and get frustrat...
by Cyclone
November 28th, 2022, 1:37 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

@ Kingizor I followed you advice and came up with this code. Is there a better more efficient way? int main() { int ROW0 = 0b00011000;; //to store number int ROW1 = 0b00111100; int ROW2 = 0b01111110; int ROW3 = 0b11011011; int ROW4 = 0b11111111; int ROW5 = 0b00100100; int ROW6 = 0b01011010; int ROW7...
by Cyclone
November 27th, 2022, 3:52 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

Hi, just wondering how to convert each row(the index values) of a sprite's graphics into individual pixels that I can write to a bitmap image. I am using C++.


Also Simion notes say the color data is planar. I thought it was intertwined... Is he wrong?
by Cyclone
November 26th, 2022, 4:02 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: DKC Sprite Graphic Tutorial

Thanks rainbowsprinklez. That means a lot. I put a lot of thought into it.
by Cyclone
November 25th, 2022, 2:00 pm
 
Forum: Documentation
Topic: DKC Sprite Graphic Tutorial
Replies: 11
Views: 7759

DKC Sprite Graphic Tutorial

Hey, I put together a tutorial on how to edit Sprite Graphics in Donkey Kong Country. It needs some proof reading if anyone is interested. Note I can't stress enough that I did get a lot of info from other sources. I put this together so I could better understand how things work. They are my notes. ...
by Cyclone
November 24th, 2022, 6:52 pm
 
Forum: Documentation
Topic: DKC Sprite Graphic Tutorial
Replies: 11
Views: 7759

Re: Polls for Donkey Kong Country Four Fangame

I voted for Diddy. Either that or DK.
by Cyclone
November 21st, 2022, 10:11 am
 
Forum: DKC Projects/Fanworks
Topic: Polls for Donkey Kong Country Four Fangame
Replies: 6
Views: 10003

Re: Sprite Graphics

Cool thanks dude for your advice.
by Cyclone
November 20th, 2022, 7:26 am
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

Yes but it makes sense.

Any ideas on a single tile sprite with a proper palette?
I still need to play around with something simple until I get the hang of things.

Thanks!

Edit. What palette is used for the heart? I mean how do I know what colours are available for it?
by Cyclone
November 20th, 2022, 6:38 am
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

That's really odd. I wonder why RARE made an exception just for that sprite.
by Cyclone
November 19th, 2022, 2:08 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

what is the palette name for the Red heart then? I was using the default. And I didn't see it in the drop down list.
Thanks.
by Cyclone
November 19th, 2022, 1:48 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

I don't know if this is user error but I keep getting a green square when I select index 8. Again see screenshot.
by Cyclone
November 19th, 2022, 1:04 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

ok I got it working but there is one issue. See screenshot. There is a difference in the pallet index and what I actually get when I run the game.
by Cyclone
November 19th, 2022, 12:44 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

Sorry user error! I pressed apply thinking it would write to the rom and not the write button. :oops: Here is the simplest thing I could think of to try to understand. The heart that Candy kisses DK is a single 8x8 tile. I used the sprite editor to colour it in a solid dark red square. I am comparin...
by Cyclone
November 19th, 2022, 7:40 am
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

I was able to change the Pallet ok using your RainbowZ Editor but the sprite editor menu is grayed out...
by Cyclone
November 19th, 2022, 2:16 am
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

by the way I tested your sprite editor and it does not work. I tried changing the pallet and the sprite using the tile editor.
by Cyclone
November 19th, 2022, 1:59 am
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

I’m not sure if I understand. Can someone show me an example on changing the letter k to something else.
For example make each sprite that makes the letter k a different colour.
by Cyclone
November 18th, 2022, 11:42 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

Ok I think I know what those tile addresses do. They just shift pixels around. I found the address of the letter k sprite :k: I played around with hex editor. All I can seem to do is make the pixels in the tiles black or transparent… How can I for example make it a solid yellow square? Or something ...
by Cyclone
November 18th, 2022, 7:10 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Awesome ASM Tutorial. Check it out!

I learned a lot from this.
https://georgjz.github.io/snesaa01/
by Cyclone
November 18th, 2022, 3:50 pm
 
Forum: ROM Hacking
Topic: Awesome ASM Tutorial. Check it out!
Replies: 1
Views: 3524

Re: Converting to/from SNES addresses

If the upper nybble of the bank byte is between 8 and B, XOR $800000. If the upper nybble of the bank byte is between C and F, XOR $C00000. Thanks Mattrizzle. Can't you just minus 0x800000? That's what I was doing and it was working fine till now. I guess it was because the address was greater then...
by Cyclone
November 18th, 2022, 3:36 pm
 
Forum: ROM Hacking
Topic: Converting to/from SNES addresses
Replies: 9
Views: 7519

Re: Sprite Graphics

Individual tiles are always 8x8 pixels, so a single tile contains 64 pixels worth of data. Sprites are typically made up of many tiles! So we have: · palette data (contains the colours) · tilemap data (which palette block to use) · tileset data (bitplane data, which colours to use in the block) And...
by Cyclone
November 18th, 2022, 3:27 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Converting to/from SNES addresses

Hi, I got an snes address of CEF88E. How do I convert it to a PC address that my HEX editor will understand? I would like to convert it using windows calculator.
by Cyclone
November 18th, 2022, 12:13 pm
 
Forum: ROM Hacking
Topic: Converting to/from SNES addresses
Replies: 9
Views: 7519

Re: Sprite Graphics

Right now I’m just trying to understand how to read the gfx data and nothing else. I think I found where the first frame of the banana sprite is stored. Now I just need to understand how to read the data in the hex editor. I found this which may be useful that Simion posted. http://www.dkc-atlas.com...
by Cyclone
November 17th, 2022, 8:16 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sprite Graphics

Yes, I think i understand bitplanes. And yes I know what you are saying...

I just want to edit the sprite manually in a hex editor. So I need to know the location of the sprite graphics.
by Cyclone
November 16th, 2022, 1:58 am
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Sprite Graphics

Hey all, as far as I know the sprites are uncompressed right?

Well I want to extract them. I want to find the banana sprite location in the rom for starters as I think that is only one tile.
Where is it stored in the rom?

Thanks in advance.
by Cyclone
November 15th, 2022, 9:22 pm
 
Forum: ROM Hacking
Topic: Sprite Graphics
Replies: 160
Views: 114473

Re: Sch1ey-i-Land + Editor

Thanks for the encouraging words. I will keep at it.

Also you previously said that you would share the source. Are you still going to do that?
by Cyclone
November 11th, 2022, 3:05 pm
 
Forum: ROM Hacks
Topic: DKC1 Editor
Replies: 16
Views: 10838

Re: Documentation ( Updated November 9th )

Ok cool
by Cyclone
November 11th, 2022, 2:53 pm
 
Forum: Documentation
Topic: Documentation ( Updated November 9th )
Replies: 24
Views: 11732

Re: Sch1ey-i-Land + Editor

Looks amazing. Good job!
I feel like we are competing. This is exactly what I’m trying to do with my editor!
by Cyclone
November 11th, 2022, 2:51 pm
 
Forum: ROM Hacks
Topic: DKC1 Editor
Replies: 16
Views: 10838

Re: Documentation ( Updated November 9th )

I am a little offended. Sorry, I will stop asking you questions unless you want to.
by Cyclone
November 11th, 2022, 12:37 pm
 
Forum: Documentation
Topic: Documentation ( Updated November 9th )
Replies: 24
Views: 11732

Re: Documentation ( Updated November 9th )

I wasn’t asking for you to fact check it…
Sorry if I bothered you.
by Cyclone
November 10th, 2022, 1:32 pm
 
Forum: Documentation
Topic: Documentation ( Updated November 9th )
Replies: 24
Views: 11732

Re: Documentation (So far just entrance pointers)

So there's nothing wrong with the way you are starting. Just, I think you should strive for more. Do you have examples which would help me learn? Tutorials on SNES hacking etc. I DO know a bit of ASM but not a whole lot. I mainly just play around in the Hex editor. Also that Music Document i posted...
by Cyclone
November 10th, 2022, 11:13 am
 
Forum: Documentation
Topic: Documentation ( Updated November 9th )
Replies: 24
Views: 11732

Re: Documentation (So far just entrance pointers)

^ Sorry I don't know a lot of Assembly or my way around the ROM or anything just how to use a hex editor mostly.

I added my music notes. It's a bit messy. I also fixed a lot of typos...
by Cyclone
November 9th, 2022, 2:55 pm
 
Forum: Documentation
Topic: Documentation ( Updated November 9th )
Replies: 24
Views: 11732
PreviousNext

Return to advanced search

cron