搜索
亲,你还没有登录哦,马上登录。如果还没有帐号,请立即注册X
查看: 1278|回复: 5

教你新建一个火红行走图调色板~!【框架初步翻译】

[复制链接]
  • TA的每日心情

    2024-4-22 02:05
  • 签到天数: 360 天

    [LV.8]以国为家I

    发表于 2012-5-19 22:25:01 | 显示全部楼层 |阅读模式
    常常因为调色板不够用导致火红行走图颜色错乱,这下好了,可以新建火红行走图调色板了% A9 E+ b& [$ V5 |( v
      l& Z% _! d- A! ^# R
    / `# \0 G1 K) h( ]3 o' n$ q/ W& d
    部分已翻译$ T- e/ V( M! a% }. G3 z& }
    $ [4 T2 H5 ?: z% B
    " () "内内容为原注。& n! Z' ?# ~0 a: Q
    " 【】"内内容为译者注。) H1 f2 R0 K& I5 D# |6 y+ V
    " 『』"为站内超链接。  \' E0 d' \& O3 E2 {! {# E
    "[]"为材料或工具的英文原名。
    ( W  d3 f* Z/ ~3 F+ q! t; u; {
    ; P' b! V$ ?2 b
    This is my first tutorial, and I want to make it as simple as possible and easy to follow. Thanks to JPAN for his hacked engine and metapod23 for his overworld tutorial which helped me understand everything better.
    $ g$ C: a. Z, B* E9 T! c* H/ M6 P5 K
    本教程需要的材料及工具
    : O# U2 F0 d# A) HPokemon 火红 (未修改及已修改)的ROM % y8 H; Q: D( T5 ]6 |
    Pokemon 火红 改版引擎 补丁[Hacked Engine]4 t% O7 ^: F+ z: q/ O" w
    十六进制编辑器 – 我将使用Translhextion进行编辑 点击我跳转到Translhextion 下载 5 E& ]3 `) }, V: T/ T" O
    FSF [空档查找器]【HACKMEW大神做的那个】/ E7 I4 o$ K7 L% I0 N4 P9 A4 k' b+ y
    Overworld 编辑器 : 重生版 【HACKMEW修改】
    9 b& s9 F* @: ?无名人物编辑器 (I will be using classic)$ R& w( S, H+ `
    IPS补丁机器
    # L3 K5 ?8 R6 J  T( c& x% W: \(HackMew大神的工具我建议从这里PGE 下载) 点击我跳转到 HackMew 中文版 下载   
    - ?1 ^! C. e* e1 [. n- ^2 o' O& w; v& N3 w. D& o8 v9 y
    请注意备份你的ROM~
    ; C- |- ], |/ z( O1 T0 b
    ) v( n7 K/ E9 [- b4 M, e第一步-Applying the hacked engine.
    / ~! W$ \( _1 S: ?% \7 `1 l1 }, d( z' ^
    If you’re reading this, I hope you know how to do this. If not, click here http://www.pokecommunity.com/showthread.php?t=73966 and look at the alternate method of working with patches.& c$ X0 k1 O  [/ }" x5 s
    ' _4 _' Z& N2 ]0 A2 B8 j
    第二步 – Understanding the data.
    , `# f& i8 a8 n7 Y; U% \
    / K( j+ _# M: \As JPAN states in his guide, a palette pointer consists of PPPPPPPP nn110000, with P = palette pointer and n = palette number. For example, if I wanted to write a pointer to a palette located at 0x800000 with a palette number of 32, I would use this.9 Q& n6 Z2 |0 Q

    3 _& Q6 ]3 _: ?9 t. {4 K. k( D1 ?00008008 20110000
    & a/ q- r/ K/ P: R3 _/ d; r) D
    + v8 Z; }8 \! x0 O$ m1 H2 LWhen typing pointers, you need to break the original address into three blocks of two and rearrange them like so. 80 00 00 -> 00 00 80 80. You had the 80 because it is located within the rom.
    ! x/ ~- e8 w' r" O3 V& Y4 }3 W
    20 is actually 32 in hex, so make sure you convert. I would use the calculator that came with your computer.
    ) f6 c0 D5 [0 {3 G

    8 L4 r9 X7 o9 j1 O! @8 _5 D6 M0 j4 j" k* E
    & Q4 i* W( ]  ~/ R4 c
    第三步 – Finding the free space needed
    3 ~2 l% R  G% O- Z
    ( V! M% I6 T; P- _In the JPAN rom, the palette table is located at 0x1A2400, giving you room for 256 pointers, so that should be enough.
    $ i: p. Q) F, D; s+ W0 U- L0 Z& N/ O! C  w& o
    Each palette takes up 64 bytes. So multiply 64 by the number of palettes you will be inserting. - ?* {3 R  J" f9 p+ G, N8 e

    7 x' [+ Z! y3 E  H9 K5 cEX. 64 * 12 = 7680 n! n4 O: z) A  R

    : I# l  a, y8 EYou would need 768 bytes of free space to insert 12 new palettes. But for simplicity, I will be adding 1 so I need 64 bytes of free space.
    " p8 A; w! z- D5 _
    a495xf.png " m8 R- m. `+ o" D
    I will be using 0x800000.

    ) T- \8 q6 a7 u1 o. U
    # S4 G4 P' u  N; S" ^3 h( u

    4 ^7 X6 @& [0 v# \4 N5 d
    ; A: E  ^" ^+ X7 G6 u# ]第四步 – Editing Palette
    % B2 m1 n$ p8 v6 F  {$ M! t2 e1 H3 f7 Z6 o$ W, f( j( ]4 \
    Now my way is a sort of a hassle, so if anyone knows an easier way, please tell me.6 g4 C0 W: w7 ~8 R

    - t; n, r2 {0 d; w# E; COpen your unmodified rom in NSE. Then edit a palette to your liking.
    2 e) q" d  H+ n6 Z, j! k0 g
    24zkk7b.png
    & D( t( ^/ t! ZI just edit the palette of the hero, as it is the first sprite. Once you’re done we can finally move into Hex! Take note that the palette offset is at $H35B968 or x35B968.

    ! q: I& Y* {- K6 [  K+ ~' u
    $ c6 M; V' W1 w5 ?  P
    8 D7 C7 q! `6 }+ w5 w" G& F

      q* S" a% i; r& M& o第五步 – Hex editing# E! E, n  W' A; q5 y6 O# t
    ! D  K* m0 A8 }/ J
    Remember that offset we found for free space, well were going to use it! Open you modified rom into a hex editor and navigate to 0x1A2400.. F0 g$ C' ?# ]8 `; {& f
    33ymbyh.png 7 |, x, S$ |* Q) l
    ( `9 R( s# q$ j7 G4 U2 F2 v
    Go to the end of the table and insert your pointer before the 00000000 FF110000 as shown. I just rewrote the ending afterwards. Make sure your table ends with that or else in will NOT work at all.5 J. O) K1 M9 M2 y2 D
    1zr1jkg.png
    7 I2 B! i. x( K3 {% r6 |. t
    % _% N8 Q4 l, T- gSave.
    5 i7 L1 j, g, Y! A( N( [: l. L  H' \/ e0 }' a) ?" y- \& T5 ~
    Now open your unmodified rom in a hex editor. Navigate to the palette offset and copy 64 bytes. 2 N: v; @: I8 K* C+ A  L
    Go back to your hex editor with the modified rom and navigate to 0x800000 and paste the data.
    % S# A9 |8 X/ l4 x  z' \
    2py9ens.png
    2 O8 w3 C: K" s9 ~, h, xSave." j; h/ {: i+ q9 n0 O
    % q" U: f  J) X' Z
    Success!
    / H; Y5 a- ^$ w
    8 D( F( T) S8 v
    4 N; I" W& a/ c- I
    . K1 `- y  @. @; [  `
    第六步 – Editing the sprites., ?# _8 {9 D3 w+ E+ [; L. e

    , ^: Z  y( Q& j. ~Say you wanted to edit the male hero from Ruby’s sprite. See what he sprite offsett is in NSE and write it down. 0x3A3C64* O1 m" H2 ]5 l+ D

    / X& v1 \5 J6 j% X% t' p$ z# yGo to that address in the modified rom. The palette number is the third byte over. So change that to a 20.
    2 Y3 K3 P- t  {0 R  s
    wjiafq.png " S7 V6 o# J" c

    + s7 G# p8 O2 S: z5 m6 `5 ]Save!
    7 b: N0 b9 n8 \# E2 M2 y5 i# {( O( O* {( I6 M+ ^0 I5 Z, |" Q
    Now open your Overworld Editor Rebirth sprites.ini file. Go down to the English Fire red and change the SpritePaletteHeader pointer to 1A2400.
    2 l5 @6 C" G" w* L
      |" Y/ p. H7 f6 a* [# {2 q) c0 lSave.( \0 B+ [9 X. Z8 d' W" B
    ; n5 @9 |2 w: _9 p7 r+ F7 ]
    Open the rom in Overworld Editor Rebirth and go to Ruby hero sprite. As you can see, the palette number is now 32. Edit away. Im just inserting the male Fire Red hero since it will look nice.
    ; N4 M; J5 s; f4 d1 M
    fnafpg.png   T$ a; G! F8 J( J9 `! S9 D" B

    0 N/ r2 u6 r+ w* y& W3 ~

    ) @$ K4 J4 p+ L. e! V: v3 n8 ?6 o$ F+ ^3 T& A

    " |' |: r3 x2 b( c- I. t4 ]2 b* d第七步 – Fixing a glitch!! D1 b+ A  G. Z5 L, ^
    Spoiler: 0 l8 B, `6 S8 T/ K' k
    Follow these instructions to make it work.
      M- G- Q1 W4 p) G) B6 I2 u! t% e  v  v) E/ W
    Quote:
    - t4 K3 m, N  d5 q  w
    That is a problem I didn't encounter until mentioned, as I always tested with OW palette 0 and A (no reason why, though, just happened). As such, I didn't know about the "forced load" on start that only happens once per map. This should fix it.
    + t' f' L! X& q% MUsing a hex editor, replace the following values# y& \4 w3 P4 k; `; T+ ^
    starting at 0x0805E5E0, place 70 88 09 07 09 0f 00 29 01 d0 05 e0, : b9 f2 r- K5 L- Y2 _5 K, I
    then at 0x0805e5f8 place 03 e06 a0 n: T8 ]# P1 w

    8 g1 ?5 t; O$ k5 M7 rAlso, another "problem" arises from the mist weather. palette slot 0x1, 0x6 to 0x9 and 0xb are reserved for the mist weather effect. If you don't plan on using it on your hack, and need the extra palettes, you can use them after disabling the effect.. I7 W" S+ @3 e! u; K% ?: B* _0 a
    at 0x0805f680 place 22 e0 (for palette slots 0x6-0x9 + 0xb),
    $ H0 @7 C+ N! S  b: h' ^: h2 _, t9 Nat 0x0805f60c place 20 e0 (for palette slot 0x1, the player mist slot).
    * {3 M) E0 m: e8 y! X  qIf you wish to have the player enter misty areas, do not apply the last one.
    3 k0 T7 G0 O" t. S- }

    2 B9 C  ^# s7 }! Y8 y  Z# \5 W. IAnd now you are done! Here is the finished product." ]* b) r- B: t- D# z! a
    15vuwp.png
    : d* |* t0 N% N. ]9 n6 q
    # w+ s. [) j7 u
    5 T; h% z" D8 R) g8 P
    * M8 u: ?( h5 l* r; [
    5 \; r6 H: o% H5 w, q# H6 U% w7 ~5 n9 f

    ' A$ L( m; j/ H# N' pIf you have any questions, have suggestions about thread cleanliness, or this tutorial is unclear, be sure to say something! I hope I was able to help!, V5 t* `$ J; x. J6 K
  • TA的每日心情
    淡定
    2014-1-31 21:15
  • 签到天数: 435 天

    [LV.9]以国为家II

    发表于 2012-5-20 00:25:55 | 显示全部楼层
    本帖最后由 crazyXD 于 2012-5-20 04:13 编辑 & n$ A+ r' a1 U7 f

    7 y/ L. j+ ~. M+ s6 D6 m, l但是这教程是打过Hacked Engine补丁专用的.. (不是hacked routine applier)0 Y: \' i% Y  B# D0 O
    貌似Hacked routine applier煤油重指向指针功能的,,
    , p+ o5 D& x9 S( ]所以也估计无法用到中文版ROM(增益版火红)上...
    5 Q0 p  W2 Y; a, S( V0 k但是既然已知道了颜色表的指针的格式...估计也可以自己制作了..; n8 j+ w/ }" j3 X% m
    比如搜索指针的指针然后修改这个估计就可以修改了..
    ' i0 c9 D& h; T/ o! L$ f好吧..3 [! S) q, \5 p. U) g& n' |
    待一会儿翻译试试吧..求Pokewiz分工...' h; U* A$ @" r$ n' l& u/ H
    (其实在原版火红里面也有些空位..但是也只能添加一个色板...虽然还没试过...火红的色板指针的地址是0x3A5158)
  • TA的每日心情
    开心
    2021-1-29 11:50
  • 签到天数: 104 天

    [LV.6]王国居民II

    发表于 2012-5-20 10:42:43 | 显示全部楼层
    英文的
  • TA的每日心情

    2012-9-14 20:19
  • 签到天数: 18 天

    [LV.4]偶尔看看III

    发表于 2012-6-25 10:39:37 | 显示全部楼层
    看起来很牛逼啊  尽管看不懂
  • TA的每日心情

    2012-11-29 12:03
  • 签到天数: 51 天

    [LV.5]王国居民I

    发表于 2012-7-19 13:48:25 | 显示全部楼层
    等待翻译         
  • TA的每日心情

    2013-12-28 13:27
  • 签到天数: 140 天

    [LV.7]王国居民III

    发表于 2012-7-29 17:14:51 | 显示全部楼层
    绿宝石的可以这样用吗
    您需要登录后才可以回帖 登录 | 加入王国!

    本版积分规则

    关于我们|联系我们|口袋王国|Poke The Kingdom.

    GMT+8, 2024-5-8 09:52 , Processed in 0.073327 second(s), 24 queries .

    Powered by PokeTK V5

    © 2011-2021 Poke The Kingdom.

    返回顶部