Originally Posted by
NCDS
Set them to a Global constant that each user edits once to fill in their monitor size.
OR, i made a function for globals.scar, as i have been working on the include.
To fill this out, all the scripter has to do is.
activateclient;
wait(500);
setupcsrl;
In globals.scar, i made it start at 0,339, and increase x until it gets the actual screen.
then for all static points, i made a program that you get your point, and it converts it to
msx1 + (the amount needed to get your point), so its compatable with all pc's!
Edit: Heres the procedure.
SCAR Code:
{*******************************************************************************
procedure detectglobals;
by: ZaSz
Description: Detects the games consts
*******************************************************************************}
procedure detectglobals;
var
TempI : Integer;
begin
//MMX1,MSX1,MMCX
For TempI := 0 to 2000 do
begin
if(getcolor(TempI,339)>0)then
begin
MSX1 := TempI;
MSX2 := MSX1 + 510;
MMX1 := MSX1 + 353;
MMX2 := MMX1 + 155;
break;
end;
if(TempI=2000)then
begin
writeln('Couldn''t detect game screen, ending script');
terminatescript;
end;
end;
end;
The y's remain consts, so i didnt add them down there, but I might if people would think it looks nicer.