Memory Address Blocks

Hi, i'm trying to make some cards but i don`t wanna mess with other developers address blocks so i wanna "claim" the block 2,105,000 - 2,200,000, just after harrypitfall.
The problem is, when i change "build.pl" and i compile it, it still points to
address 20024BA (5 more than the previous address).
thank you in advance
The problem is, when i change "build.pl" and i compile it, it still points to
address 20024BA (5 more than the previous address).
- Code: Select all
use strict;
use warnings;
use File::Copy;
# Open ManalinkEh.asm and add in the new card / function
my $new_function = $ARGV[0];
if( $new_function ){
my $skip = 0;
$new_function = "_card_$new_function";
my $extern = 0;
my $jmp = 0;
my $hex;
open my $fh, '<', 'ManalinkEh.asm';
my @lines;
while( my $line = <$fh>){
if( $line =~ $new_function and not $skip ){
print "You already added that card.\n";
$skip = 1;
}
if( $line =~ /extern/ ){ $extern = 1; }
if( $extern and $line !~ /extern/ and not $skip){
push @lines, "extern $new_function\n";
$extern = 0;
}
if( $line =~ /jmp near/ ){
$jmp = 1;
($hex) = $line =~ /;\s+([A-Z0-9]+)/i;
}
if( $jmp and $line !~ /jmp near/ and not $skip){
my $a = eval( "0x020024BF" ); -----------------> here's my change
my $new_hex = sprintf "%x", $a;
push @lines, " jmp near $new_function ; $new_hex\n";
$jmp = 0;
print "Adding $new_function at $new_hex\n";
}
push @lines, $line;
}
close $fh;
# Re-write the file
open $fh, '>', 'ManalinkEh.asm';
print { $fh } @lines;
close $fh;
}
# Run make
`make`;
# Copy the new dll to the magic directory
copy('ManalinkEh.dll','c:\magic\ManalinkEh.dll') or die "Copy failed: $!";
#clean up
#`make clean`;
thank you in advance