Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,494,464
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-28-24 12:04 AM
Guest: Register | Login

Main - Posts by Kawa

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189

Kawa
Posted on 06-05-09 10:40 PM, in IRC quotes thread Link | Quote | ID: 108159


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1906/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
<blackhole89> kill the family, keep the loli
<Kawa> How Marzish.
<blackhole89> You are gonna get quoted.
<Marzen> Hi mom!
* MarzensMom has joined #acmlm
<MarzensMom> You are a frightening kid, you know that?
* Marzen hugs
<MarzensMom> You're moving in with your aunt and uncle in Bel-Air!
* MarzensMom has left #acmlm
<Marzen> :(
<Marzen> Better go whistle for a cab
<Marzen> bbl going to star in a hit TV show


____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-06-09 10:16 AM, in I can't wait to bomb some dodongos! Link | Quote | ID: 108174


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1907/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
I just got two after reading a PM.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-06-09 10:17 AM, in Data Crystal Link | Quote | ID: 108176


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1908/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
I suppose I could write something on the 3rd gen map format... I'll do it after breakfast.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-06-09 10:47 AM, in Data Crystal Link | Quote | ID: 108178


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1909/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
Great.

* Kawa eats his breakfast

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-06-09 07:01 PM, in Ailure birthday thread thing Link | Quote | ID: 108188


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1910/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
Permanent birthdays? WOOO!

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-07-09 12:10 AM, in IRC quotes thread Link | Quote | ID: 108205


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1911/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
<Marzen> Objection!
<Kawa> Nono
<Kawa> OBJECTION!
<Kawa> Like that.
<Marzen>
<Marzen> OBJECTION!
<Kawa> THAT'S IT!
<Marzen> HOLD IT!
<Kawa> WHAT?
<CyclopsCaveman> COFFEE!
<Marzen> TAKE THAT!
* Kawa tosses Cyc some moccachino
<CyclopsCaveman> CHOCOLATE CAKE!
<Kawa> DO WANT!
* CyclopsCaveman throws a chocolate cake in KAwa's face.
<Kawa> nom nom nom nom

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-07-09 11:02 AM, in The NEW General Project Screenshot / Video Thread EX Omega Supreme++ Link | Quote | ID: 108227


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1912/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
That looks very nice, SePH.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-07-09 09:21 PM, in E3'09 Link | Quote | ID: 108239


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1913/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
I for one just nerdgasm'd from reading about Monkey SE. Insult Swordfighting, without the rhyming bullshit, with full voiceover? GLEE!

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-07-09 09:28 PM, in E3'09 Link | Quote | ID: 108241


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1914/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
Yes, you are. Don't feel bad about it.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-08-09 06:03 PM, in Ailure birthday thread thing Link | Quote | ID: 108281


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1915/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
Posted by Xeruss
This seems like an opportune time to ask for the story behind the purple cat...
This is not the topic you are looking for. Move along.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-08-09 06:21 PM, in Any fans here who love Vocaloid? Link | Quote | ID: 108282


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1916/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
Same here. Miku sounds kinda cute though.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-08-09 06:22 PM, in Cute image thread #546257 Link | Quote | ID: 108283


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1917/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
Green or blue, doesn't seem to matter in Japan...

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-08-09 08:33 PM, in The NEW General Project Screenshot / Video Thread EX Omega Supreme++ Link | Quote | ID: 108286


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1918/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
No it's not. It looks more like a stargate to me. The Guardian of Forever was much less round.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-09-09 06:24 PM, in Unused stats + Minor Creativity = Battle System? Link | Quote | ID: 108351


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1919/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
Sad truth is that there -is- little to no hope for having battle systems in the main forks.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-12-09 07:26 PM, in The NEW General Project Screenshot / Video Thread EX Omega Supreme++ Link | Quote | ID: 108532


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1938/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
"Albatross", Obsolete?

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-12-09 08:30 PM, in Kawa's Map Editor Creation Tutorial Link | Quote | ID: 108537


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1939/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days

Part 3 - File IO

For demonstration purposes, we'll go with seperate files instead of diving directly into ROMs. Just bear with me, okay?

To load and save maps, add a menu bar or toolbar or what have you, with two options at the very least: Open and Save. Also add, from the Dialogs category, open and save dialog controls. In the click event for Open, put this:
			if (openFileDialog.ShowDialog() == DialogResult.OK)
{
BinaryReader mapFile = new BinaryReader(File.Open(openFileDialog.FileName, FileMode.Open));

//Using ints for all this stuff makes all the values 32 bits.
MapWidth = mapFile.ReadInt32();
MapHeight = mapFile.ReadInt32();
Map = new int[MapWidth, MapHeight];

//We use a 2D array of something that's not bytes, so we have to take the long way home.
for (int x = 0; x < MapWidth; x++)
for (int y = 0; y < MapHeight; y++)
Map[x, y] = mapFile.ReadInt32();

MakeBackbuffers();
}

This would mean that a map file in this demonstration is a series of only 32-bit values. As the comment implies, if we used a byte array for our map data we could just use File.ReadBytes(MapWidth * MapHeight) and call it a day.

Notice the new function "MakeBackbuffers"? This is it, basically:
		private void MakeBackbuffers()
{
MapBackbuffer = new Bitmap(MapWidth * TileWidth, MapHeight * TileHeight);
MapGraphics = Graphics.FromImage(MapBackbuffer);
mapPictureBox.Image = MapBackbuffer;
DrawFullMap();
}

Replace the part below "Map = new int[MapWidth, MapHeight];" in the form's constructor with a call to MakeBackbuffers as well.

Saving is pretty much the exact opposite deal as with loading, with the added bonus that you don't need to redraw the map, since it hasn't changed. I'm leaving that as an exercise for the reader.

How to speed up the first drawing of the map

You may have noticed that when first loading a map, it may take a notable amount of time to draw it all. I sure did while working on the OpenPoké editor, and my current project.

Believe it or not, replacing the DrawImage() call in the DrawFullMap function with a simple Get/SetPixel loop makes it much faster, and that's not even the limit!
			int srcX, srcY, dstX, dstY;
for (int y = 0; y < mapHeight; y++)
{
dstY = y * 16;
for (int x = 0; x < mapWidth; x++)
{
ushort rt = br.ReadUInt16();
ushort tile = (ushort)(rt & 0x3FF);
srcX = (tile % 8) * 16;
srcY = (tile / 8) * 16;
dstX = x * 16;
for (int px = 0; px < 16; px++)
for (int py = 0; py < 16; py++)
mapBackBuffer.SetPixel(dstX + px, dstY + py, TilesetBackbuffer.GetPixel(srcX + px, srcY + py));
}
}


Sample code



http://acmlm.no-ip.org/uploader/get.php?id=1569
Does NOT include the optimization described just now, nor does it contain the undo/redo thing. I wrote it way before I came up with either of those. Consider it a challenge.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-13-09 07:07 PM, in PPU Editing for SMB3 (can it be done?) Link | Quote | ID: 108629


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1942/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
Terminology, Nintendude. PPU = Picture Processing Unit, so "PPU editing" is misleading.

My guess is that the PPU memory can't be edited because it's constantly refreshed with data from other memory. So no, it can't.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-13-09 07:10 PM, in Cute image thread #546257 Link | Quote | ID: 108630


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1943/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days


Kitties!

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-13-09 07:21 PM, in PPU Editing for SMB3 (can it be done?) Link | Quote | ID: 108633


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1944/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
Ofcourse they're linked to the PPU. It's graphics data and a Picture Processing Unit.

My point is that you need to change the data elsewhere, before it is copied to PPU memory.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Kawa
Posted on 06-15-09 06:24 PM, in Kawa's Map Editor Creation Tutorial Link | Quote | ID: 108727


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 1958/5344
EXP: 30948687
Next: 714294

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2635 days
You forgot to initialize map[,]. Make sure that you do Map = new int[MapWidth, MapHeight]; too.

That was from the C# code, just in case. I'll leave the VB translation to you.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189


Main - Posts by Kawa

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.256 seconds. (348KB of memory used)
MySQL - queries: 36, rows: 68/68, time: 0.245 seconds.