签到天数: 2070 天 [LV.Master]伴坛终老
|

楼主 |
发表于 2009-3-10 19:55:07
|
显示全部楼层
console lessons level 2
' t' E& p" A* H; }" M+ K3 _
, a$ o) M4 B0 }! C4 F+ U! A作者:Tux 文章来源:http://rainemu.swishparty.co.uk/msgboard/yabbse/index.php
8 C' V. c _, A9 _4 D) k8 E4 O, f( O% F" T) s/ ?
how to find the location of the weapon for metal slug in ram ?/ L7 T3 w0 i: `; ]. K. V3 R6 `
Welcome to the relative searches we started to talk about in the other topic...7 Z5 ~* ?% x6 l4 q$ Q$ l, {
8 \ I6 l& E( N2 q- pSo just start the game as usual, and open the console just before picking the machine gun, and close it immediately. In doing so it takes a snapshot of the ram, and you'll be able to look for differences later. Now take the machine gun and type:6 {. j: `- `; Q
search !=( e' f2 i0 z/ b& f
which will search all the bytes which are different.
1 O0 \; h; T9 b5 V, X2 QWell there a few hundreds of differences, so it will take time." ~9 H7 D! j! z3 g, }0 O
The idea is to wait a little in game, then return to the console and type3 Z, p/ ]' [+ b2 ~
search ==: s6 H, y5 T, _4 L
to look for the areas which didn't change. Half of the results are gone, but you still have a lot of them. Play a little until the flame thrower and just before picking it up, type :
5 h4 F8 V1 z, s# R+ ssearch ==
2 j0 c5 X# ^. C, A- v6 _and after picking it up :2 g& ]+ U. h8 K* N9 t' ]' q
search !=
2 \: Y1 J9 ^" r! u% E7 J, Tnormally when you pick the machine gun again and you type search !=, you'll get only 2 results which are both valid :5 ~, \7 v$ _3 l! v
* j3 ^# r1 R& M
1 W6 Z. r5 g! d ^4 h( h. a: `7 o3 D0 A6 y# [
After a few tests, the 2nd address is the one you want, puting 4 in it gives the machine gun and 2 is the flame thrower (I didn't test all the weapons !).
" Y; k/ }. l" B" U3 H. k& S% ?1 }
- X0 m: Q5 w+ g+ o( }: K$ PThis is a lot harder than the simple life counter... !!!
! E# ^5 V% m% E$ W X6 E; CBut it works well. Todo : mouse support in the console (too tiresome to type all these addresses), history for the console to access the previous commands, and the scripts I talked about in the other topic to be able to save what we find.
. m0 J/ A; \( @- ~2 Z# Q
9 F; A, { n) `4 j9 F% KNow with the old cheat system, you would have to add 1 cheat/weapon, which is not very convinient. Here you can add a single cheat using the alert function. First here are the weapons you can get :" W, x! m& J) q, P: ?3 Z2 U
- 00 : Normal Gun
" e4 W" C7 k' Z: o9 \, { - 01 : Shotgun
+ z* l# u1 n, _$ E& Z8 ^' i5 ? - 02 : Flamer8 H5 c1 R, {! W5 b3 i6 y
- 03 : Rocket Launcher+ v& f: G7 c) _
- 04 : Machine Gun3 U. x* g7 b6 R, r. h# l+ F
the alert function works like this :
, f1 e3 e B/ q& G3 Falert("message|button1|button2...")( F5 ^5 k! t3 b* H" W ]5 k
and returns the number of the button you selected starting at 1, or 0 if you pressed ESC or used the 2nd button of your mouse.: \- A, g6 `6 Q6 K8 {
So you can type :% R/ y. D2 I5 h/ z% i
8 o. a }. y& l; O% OCode:
- E# l/ j, P0 U( O poke $1004d1 alert("select weapon (ESC for normal gun)|Shotgun|Flamer|Rocket l: g' X9 @! g. @5 F/ R% O9 q' X
auncher|Machine gun")* | z% u" `' b0 `
dpoke $1004e2 999* Z: P% P0 S4 J9 b4 H
, v. w/ Q6 |$ Q9 W1 Q! `
3 O- q* i$ v4 i' @# Z8 d8 SThe 2nd line gives 999 munitions at the same time, it's more convinient. Once you have tested, you can add it to your scripts using the script command, and it will appear in the cheats dialog (which you can now call directly using a key from the game). |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|