签到天数: 1803 天 [LV.Master]伴坛终老
|
楼主 |
发表于 2009-3-10 19:55:07
|
显示全部楼层
console lessons level 2
& C/ S. g9 @6 \: Z5 R9 @% L. I& \+ {. f6 s- m- N* q
作者:Tux 文章来源:http://rainemu.swishparty.co.uk/msgboard/yabbse/index.php
. e. t2 _( g: L' j2 K
; ] M7 b" V; Q' x5 H: z/ b" o- Ehow to find the location of the weapon for metal slug in ram ?
* }( y7 V/ q/ e _Welcome to the relative searches we started to talk about in the other topic...
/ h) S/ f2 L$ Y+ m( g$ V) O
, \' m+ e2 R; m) G. @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:8 a& L y2 ]8 P" A* }; ]
search !=) H# a& l& c7 E0 E6 r5 p: g$ f
which will search all the bytes which are different.( X' B+ d; v* J! V( C r
Well there a few hundreds of differences, so it will take time.4 [' d) j4 b& l
The idea is to wait a little in game, then return to the console and type6 r8 P) K. L7 S/ v
search ==
: v/ h2 p& Q3 s$ uto 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 :4 C2 `% p; }& b5 k: c$ N9 P
search ==# z* Z/ W7 d. m2 X( w& {( j
and after picking it up : h) W5 M, \0 @$ G4 H2 ^, P
search !=1 L3 O4 O& _* k
normally when you pick the machine gun again and you type search !=, you'll get only 2 results which are both valid :* A, Z+ S% G& Z K+ R% A8 l; T+ o' I& a
- V6 ]; } y+ T$ K o G
3 ^; h; C3 \2 m$ n7 C; c& ^$ N
) p! c: c3 s3 W4 R2 R/ Z: e, J- }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 !).
3 \& E u# ]) f) U6 c2 B$ p9 B& x& M# B1 `, x, F0 |3 _
This is a lot harder than the simple life counter... !!!
$ N$ `" A8 d" b9 ^$ t+ ?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.6 S1 y R: |& i- [! l/ b
9 J0 e1 K9 z1 Q
Now 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 :
0 v8 g8 Q: h/ f" T3 E - 00 : Normal Gun
- U6 P; q* a; K# M% @4 D - 01 : Shotgun
f( O& T" U( D$ v: d - 02 : Flamer
# _7 ~2 ?' \, n - 03 : Rocket Launcher
% s+ r4 z5 K* o4 w7 N# m - 04 : Machine Gun
9 [3 O `: Z/ G2 F" wthe alert function works like this :: _ t+ v- G5 i4 m
alert("message|button1|button2...")+ l% F9 g6 E& P: J$ L6 C4 l
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.
- D% l- [7 L5 ?- `) z9 ZSo you can type :3 `' R7 S* |# ?) K
( B w% S1 i2 r" Q
Code:
. d W. m$ \' b" Y8 }7 C poke $1004d1 alert("select weapon (ESC for normal gun)|Shotgun|Flamer|Rocket l
: Q8 i2 G9 g: ~! _! h4 mauncher|Machine gun")
" U% B; j) E; y! H# o' T, f dpoke $1004e2 999
5 y( x# S2 _) ~4 N8 C- ]5 o& z5 b% h) M) T, @9 [3 b d, I) t
: y) k. F7 j' P4 ~0 n0 P" w3 N; P: `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
|