签到天数: 1803 天 [LV.Master]伴坛终老
|
楼主 |
发表于 2009-3-10 19:55:07
|
显示全部楼层
console lessons level 2
" N+ M, t0 b" w% E8 f/ `4 u4 f8 o; ^
" q' M5 Q \% w3 a作者:Tux 文章来源:http://rainemu.swishparty.co.uk/msgboard/yabbse/index.php. w$ H/ s3 u G; a
! `, J5 t* A. O9 q$ ~
how to find the location of the weapon for metal slug in ram ?9 }9 K3 y/ j+ U K, W! m4 E, n$ u
Welcome to the relative searches we started to talk about in the other topic...
, Z" N3 ?" W$ c
_+ u5 s3 }& ^/ P8 c5 E( P4 DSo 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:
, B1 @+ q; A, l0 osearch !=
& }- V5 @2 r0 n9 [9 q: E Wwhich will search all the bytes which are different.
" m1 Y" W9 @, h) Q+ [. ]8 P& t8 aWell there a few hundreds of differences, so it will take time.
) G" k" D4 z% Z! T& l' P: U9 f* vThe idea is to wait a little in game, then return to the console and type1 n2 I9 K$ Q' F. L, H- N( j
search ==0 Q; s4 z+ [& C5 M- A
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 :
! G3 G7 \3 t, s8 d# l9 Y/ i* gsearch ==
/ l! R0 d, u9 M1 y) L' F- Eand after picking it up :
# t6 [7 s* x4 B' a1 ?; Rsearch !=
& m% m7 X2 A4 K! v6 {" ?normally when you pick the machine gun again and you type search !=, you'll get only 2 results which are both valid :/ k+ @6 c, L$ h' n
) v. P C7 E* L) W2 ~+ M: u
L) W' G6 t$ E v1 E+ E+ D+ Z* I H1 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 !).
; S7 \- J. x6 c' ?* @8 z& w5 E) ?/ g! Y0 W! w; T: k
This is a lot harder than the simple life counter... !!!7 M+ Y6 N. o n
But 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.
, }# t% k- c7 O- q P9 D
$ G# S; } l" H) L# b" p6 T! ]# dNow 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 :
# h$ i5 ]- r4 q! N* t6 Z& G - 00 : Normal Gun4 k$ ^0 R5 B; I" H
- 01 : Shotgun
# j1 ?3 K4 _, n9 }- J4 f$ y - 02 : Flamer) G7 F0 p" K+ f5 {2 B& z# x9 F
- 03 : Rocket Launcher& V6 h' G" k- q1 ^' E7 T
- 04 : Machine Gun2 s8 ^, t3 U4 H
the alert function works like this :
2 L: W) M1 G9 ^alert("message|button1|button2...")
. N4 h: c2 z, |* B" }2 Q0 [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.
6 O0 J& k/ r* x3 ESo you can type :' F9 g! g8 G8 P0 d$ ?
! v7 {9 Z- Y- KCode:8 d; T( k7 x9 ^. `8 V- k; W
poke $1004d1 alert("select weapon (ESC for normal gun)|Shotgun|Flamer|Rocket l2 w3 X1 F- Q2 O; W' {' V
auncher|Machine gun")9 b) _# @1 T+ v& J
dpoke $1004e2 9998 M2 l# Y$ h a7 \; k* H
2 e6 Q- }* ?# N/ A! L2 |, x
/ I5 R0 ^+ l! mThe 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
|