(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-15-24 06:24 AM
0 users currently in The Pit of Despair.
Acmlm's Board - I3 Archive - The Pit of Despair - RS Wild Pokemon New poll | | Thread closed
Add to favorites | Next newer thread | Next older thread
User Post
1168









Since: 03-27-06
From: Texas

Last post: 6624 days
Last view: 6624 days
Posted on 03-27-06 02:15 AM Link
I want to add support for ruby and sapphire in my wild pokemon editor (for r/b/g/s) but i dont know the address for the wild pokemon. i also dont know the format of the wild pokemon so i dont know what to search for. ty
Xeon
The master of the universe...


 





Since: 03-09-06
From: Omaha, NE

Last post: 6603 days
Last view: 6603 days
Posted on 03-27-06 05:50 AM Link
Go away, nobody likes you...
Kyoufu Kawa
Intends to keep Rom Hacking in one piece until the end








Since: 11-18-05
From: Catgirl Central Station

Last post: 6295 days
Last view: 6295 days
Posted on 03-27-06 01:13 PM Link
Originally posted by Xeon

Go away, nobody likes you...
Nobody likes you either. Stop projecting.
Darkdata

980








Since: 02-25-06
From: Newfoundland

Last post: 6295 days
Last view: 6295 days
Posted on 03-27-06 04:28 PM Link
Use a bit of source from elite map?
Or you could just ask around about it....
Edited~ Sorry Yoronosuku And Kawa


(edited by Darkdata on 03-27-06 06:41 PM)
Yoronosuku

Toss Tortoise


 





Since: 11-17-05
From: Massachusetts is my new home..

Last post: 6295 days
Last view: 6295 days
Skype
Posted on 03-27-06 06:02 PM Link
Okay, okay. Xeon, that was really pretty uncalled for, and I don't put up with that kind of thing in my forum. Are we clear? Darkdata, he was already talked to by another moderator, so you really did not need to add to the situation. I appreciate the enthusiasm but let us do our job, okay? ._.;;

In reference to the thread, the wild Pokemon offsets should be in the EliteMap INI file, because Bewildered uses them. I do not know the format of it, and I know it is very very different for Fire Red and Leaf Green, too. Sorry that's about all I can give, but maybe if you play with the offsets you can find out the format yourself.
Xeon
The master of the universe...


 





Since: 03-09-06
From: Omaha, NE

Last post: 6603 days
Last view: 6603 days
Posted on 03-27-06 08:37 PM Link
Originally posted by Darkdata
Use a bit of source from elite map?
Or you could just ask around about it....
And Xeon don't be such a pain because your "progect" failed.


Who ever said my project failed? I'm still programming it as we speak. Just because I ask a few questions on how to do something does not mean that I will fail to reach my final goal. As for hating me, I don't have any idea what the hell I did to anyone for people to hate me. I'm only bashing this guy because he would act like a jackass on Pokemon Community boards.

In addition to this, maybe if the code for EliteMap wasn't so crappy to begin with, it wouldn't be taking me so much time to figure out how it works. The amazing amount of "Go To" statements, strange variable names, and unhelpful comments in the code was very confusing. In the programming world, this kind of code is referred to as "spaghetti code".

To prove I'm not just boasting, I have provided a wonderful code snippit from EliteMap itself, dubbed "ApplyTileset". As you can probely see, even Kawa had something to say about that sub.

Private Sub ApplyTileset(ByVal bank As Byte, tileset As TilesetHeader)

'KAWA --- ... ... HOLY MOTHER OF FUCK!
' And I thought Bouché wrote dirty code
' It hurts my eyes just to read this sub!
' I still love you anyway.

' P.S.: At least properly indent

Dim DataIn(0 To 32767) As Byte
Dim DataIn2(0 To 32767) As Byte
Dim byteIn As Byte

Dim cachefile As String
cachefile = App.Path & "\tilecache\" & Replace(Left(Right(txtRom.Text, 12), 8), "\", "_") & txtOldskoolChooser.Text & bank & ".bmp"
If Dir(cachefile) <> "" Then
picTileset.Picture = LoadPicture(cachefile)
Exit Sub
End If

Get #256, GBA2PC(thistileseta.pGFX) + 1, DataIn
Get #256, GBA2PC(thistilesetb.pGFX) + 1, DataIn2

'Decompress GFX
If bank = 0 Then
If checkifcompa <> 1 Then
zahl = 204780
If NextGen = False Then zahl = 16384
CopyMemory gfxA(0), DataIn(0), zahl
GoTo no_comp1
End If
LZ77UnComp DataIn(), gfxA()
no_comp1:
If checkifcompb <> 1 Then
zahl = 12288
If NextGen = False Then zahl = 16384
CopyMemory gfxB(0), DataIn2(0), zahl
GoTo no_comp
End If
LZ77UnComp DataIn2(), gfxB()
End If
no_comp:
If bank <> 0 Then GoTo already_added
If NextGen = False Then CopyMemory gfxA(16384), gfxB(0), 16384
If NextGen = True Then CopyMemory gfxA(20480), gfxB(0), 12288
already_added:
'If tattr(0) <> "&H30" Then GoTo nodebug1 'KAWA --- Made it an easter egg.
Open App.Path & "\tileset.bin" For Binary As #512
For z = 0 To 32767
Put #512, z + 1, gfxA(z) 'KAWA --- Why was there a +336 in the offset?
Next z
Close #512
nodebug1:
If NextGen = False Then
adder = &HC0
rounds = 5
rounds2 = 6
End If
If NextGen = True Then
adder = &HE0
rounds = 6
rounds2 = 7
End If

On Error GoTo PalError
paloffsetx = GBA2PC(thistileseta.pPalettes) + adder * checkifpala
For aa = 0 To 1
For i = 0 To rounds
For j = 0 To &HF
Get #256, paloffsetx + 1 + (i * &H20) + (j * 2), byteIn
pal = byteIn
Get #256, paloffsetx + 2 + (i * &H20) + (j * 2), byteIn
pal = CInt(pal + (byteIn * 256))
c2 = (pal \ &H400) Mod &H20
c1 = (pal \ &H20) Mod &H20
C0 = pal Mod &H20
pal = ((c2 * 8) * CLng(&H10000)) + ((c1 * 8) * &H100) + (C0 * 8)
palettesA(i + rounds2 * aa, j) = pal
Next j
Next i
paloffsetx = GBA2PC(thistilesetb.pPalettes) + adder * checkifpalb
Next aa
'Read Palettes
On Error GoTo 0

If bank = 0 Then
Get #256, GBA2PC(tileset.pMap) + 1, Map16A
ElseIf bank = 1 Then
Get #256, GBA2PC(tileset.pMap) + 1, Map16B
End If
'Read Map16
If NextGen = False Then endvalue = &H1FF
If NextGen = True Then
If bank = 0 Then endvalue = &H27F
If bank = 1 Then endvalue = &H17F
End If
For i = 0 To endvalue
DoEvents
X = (i Mod &H10) * &H10
If NextGen = False Then Y = ((i \ &H10) + IIf(bank = 1, &H20, 0)) * &H10
If NextGen = True Then Y = ((i \ &H10) + IIf(bank = 1, &H28, 0)) * &H10
DrawMap16 picTileset.hdc, bank, i, X, Y
Next i

picTileset.Picture = picTileset.Image
On Error Resume Next
MkDir App.Path & "\tilecache"
SavePicture picTileset.Picture, cachefile
Exit Sub
PalError:
If BeenThereDoneThat = 0 Then
MsgBox LoadResString(155)
BeenThereDoneThat = 1
End If
Resume Next
End Sub



(edited by Xeon on 03-27-06 06:51 PM)
Yoronosuku

Toss Tortoise


 





Since: 11-17-05
From: Massachusetts is my new home..

Last post: 6295 days
Last view: 6295 days
Skype
Posted on 03-27-06 10:31 PM Link
Okay, well, I don't think Kawa really should have said the forum collectively hates you. I don't have anything against you, and I'm sure theres no ill feelings from many other people here. If someone is an asshole at another board, as long as they aren't doing anything here, you really shouldn't be mean to them. In fact, don't do it at all, it is our job to deal with assholes. He did not seem like one to me, so, maybe we should just forget about all of this.

You also did not need to provide that code, no need to prove yourself to these people trust me, my friend. As far as the code being messy goes, I tried to help with some of the original tileset programming. I did not do anything because the code was so bad. This is the fault of Bouche but maybe it could have been fixed up you know ._.;;
Xeon
The master of the universe...


 





Since: 03-09-06
From: Omaha, NE

Last post: 6603 days
Last view: 6603 days
Posted on 03-28-06 12:55 AM Link
Yeah, guess my anger is just for nothing. Haha, since everyone has questions, and nobody can organize anything.
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - The Pit of Despair - RS Wild Pokemon | Thread closed


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.026 seconds; used 389.56 kB (max 471.91 kB)