签到天数: 1769 天 [LV.Master]伴坛终老
|
楼主 |
发表于 2009-3-10 19:55:07
|
显示全部楼层
console lessons level 2 . ^# I% A3 K1 x% f
; z* T) l7 V6 n% S! b; V作者:Tux 文章来源:http://rainemu.swishparty.co.uk/msgboard/yabbse/index.php
6 I( s9 e8 {3 D( L c! M+ D
" u ^8 F8 [' z7 Zhow to find the location of the weapon for metal slug in ram ?
4 a' x! n' v7 H+ o* @Welcome to the relative searches we started to talk about in the other topic..." I- [/ Z" }) v0 n+ [9 x( z) I
8 g& Z; \7 A: O8 ^
So 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:
5 k$ @5 k0 Y' i1 ksearch !=7 A9 s- S3 r8 C9 G! k
which will search all the bytes which are different.- a0 ? H! m1 p1 W
Well there a few hundreds of differences, so it will take time.
8 c, w# h) o7 lThe idea is to wait a little in game, then return to the console and type4 d9 c" U! J2 s7 ~$ u8 S0 W2 W
search ==
% U* a3 ^% n8 vto 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 :
, H4 c, g8 M9 w) Fsearch ==
" [) a/ u5 l7 q2 ~and after picking it up :
7 e7 q7 {: Z; Rsearch !=+ V" U& L& p. ?
normally when you pick the machine gun again and you type search !=, you'll get only 2 results which are both valid :+ j! O2 Y7 L3 a1 R- w
5 Z: D3 k$ q1 h$ I- L
* C% q$ [! Z' J2 E
3 f" C. { _6 J7 c* i9 [6 bAfter 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 !).
5 _8 `5 ?8 }; B+ Y9 e
G | @& Y9 V/ |. y$ [! r3 X9 m- XThis is a lot harder than the simple life counter... !!!
, u- s. _; i2 n6 g3 F pBut 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.
% ^6 ^# v5 W& x6 U
1 J9 l' W& R0 C" f6 k, H% bNow 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 :( b% B3 [/ ` S* F1 ?4 d# B" s7 |
- 00 : Normal Gun
. C; q" M4 t; B' w- l - 01 : Shotgun
: I- i7 ~9 V% L1 l3 O. { - 02 : Flamer
$ N5 J1 Y: d- Q# l - 03 : Rocket Launcher( `4 {( j4 P2 w+ E1 [4 |9 v* F0 ]
- 04 : Machine Gun3 x5 F( [$ n2 @5 T. o
the alert function works like this :
, q4 D1 F( _0 Q' N0 falert("message|button1|button2...")0 |# M6 A( N% }+ p, O; r6 S+ {
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.
! z: T! k& T- j" iSo you can type :
, L. ~( J- H' X: I
7 r9 ^! Q: f. ^1 ?% @3 ], ]Code:
3 S4 K7 N& K8 k4 D: t2 V% o; L2 B poke $1004d1 alert("select weapon (ESC for normal gun)|Shotgun|Flamer|Rocket l& d/ @# N; _! q* g
auncher|Machine gun")
% m4 o2 m- Y2 X2 u" C dpoke $1004e2 999
" ^& g6 H1 @7 Q% a& r5 I
- D) `6 z$ z, O H6 q0 D/ l* F7 F( ^; P$ m& z# \- U: w
The 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
|