Yes, ok, I see the plugin is not found. That means that Rahly's pluginmanager does not detect your plugin as a valid one. I think you should take this up with Rahly.
The Parse error is a bug. There is no error. I will fix that in a new release
KorNet wrote:Perfectly... But here the source code of a ready plug-in does not need to be looked
Correct, but I don't have that source code. Rahly does. Until he wakes up at his end of the world (the US), we'll probably be asleep (Moscow time ). Let's just wait for him.
1) plugin manager calls mpGetInterfaceVersion, and the interface version it returns MUST be 1.0
2) plugin manager calls mpGetPluginInfo, and this has to return valid information, this should be set up for you already
if the above is good, then its a valid plugin, please note that MrMouse ONLY displays formats, not actual plugin information, in this case, there can be zero or more formats, so it could be a valid plugin and seen
ok to be seen by MrMouse, you need to
3) plugin manager calls mpGetFormatCount to get the number of formats that the plugin supports
4) plugin manager calls mpGetFormatInfo to get the information of the plugin, this is zero based, for example, if mpGetFormatCount = 2 then mpGetFormatInfo will be called for formats 0 and 1
after this, MrMouse will show you the list of formats in the Rahlys Plugin Manager view.
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)
I have disassembled not few game formats and it would be desirable to try to write plug-ins... As programs for extraction are written... I even created a theme such.. And and so the list
3D Mark 2003 - DAT
3D Mark 2004 - DAT
3D Mark 2005 - DAT
Colin McRally 2004 - BIG
Colin McRally 2005 - BIG
Cossacks - GSC
Crimsonland - PAQ
Dungeon Siege - BAM
Dungeon Siege - GAF
Dungeon Siege - DS
Dungeon Siege - TVC
Dungeon Siege - DSSAVE
Dungeon Siege - DSQSAVE
Dungeon Siege - DSPARTY
Dungeon Siege - DSMAPS
Dungeon Siege - DSRES
Dungeon Siege 2 - DSRES
Earth 2140 - WD
Earth 2150 - WD
FlatOut - BFS
Grand Theft Auto 3 - IMG
Grand Theft Auto 3 - SFX
Grand Theft Auto Vice City - ADF
Grand Theft Auto Vice City - IMG
Grand Theft Auto San Andreas - IMG
Grand Theft Auto San Andreas - MUSIC
Hitman Contracts - TEX
Jame Bond 007 - 007
Liero - SND
Majesty - CAM
DarkStone - MTF
Die By The Sword - ATD
Raindow Six - RSB
Rally Challange - RFF
Sacred - TEXTURES
Sacred - SOUNDS
Sacred - MODELS
Scorher - BIN
Silent Hill 2 - ASF
The Sims 2 - PACKAGE
Space Rangers - PKG
Space Rangers - GAI
Space Rangers - GUI
Space Rangers 2 Dominators - PKG
Space Rangers 2 Dominators - GAI
Space Rangers 2 Dominators - GUI
Syberia 2 - SYB
Vanguard Ace - DIR
Worms Armageddon - DIR
Worms World Party - DIR
Operation Flashpoint Cold War - PBO
Operation Flashpoint Resistance - PBO
Wacky Wheels - DAT
ZoneRaides - MAS
Macromedia Flash - EXE -> SWF
function mpGetInterfaceVersion(var Major, Minor: Integer): LongBool;
begin
Major := InterfaceVersionMajor;
Minor := InterfaceVersionMinor;
Result := True;
end;
const
MyFormats: Array[0..0] of TFormatInfo =
(
(FileMask: '*.rta'; GameName: 'Rahly''s Test Archive'; Flags: SUPPORTFLAG_CREATE or SUPPORTFLAG_IMPORT or SUPPORTFLAG_EXPORT or SUPPORTFLAG_DELETE or SUPPORTFLAG_BYINDEX or SUPPORTFLAG_BYNAME or SUPPORTFLAG_HANDLEFILE or SUPPORTFLAG_TESTARCHIVE)
);
function mpGetFormatInfo(FormatIndex: Integer; var FormatInfo: TFormatInfo): LongBool; stdcall;
begin
Result := False;
if (FormatIndex >= 0) and (FormatIndex < Length(MyFormats)) then
begin
if (FormatInfo.Size >= SizeOf(TFormatInfo)) then
begin
FormatInfo.FileMask := MyFormats[FormatIndex].FileMask;
FormatInfo.GameName := MyFormats[FormatIndex].GameName;
FormatInfo.Flags := MyFormats[FormatIndex].Flags;
Result := True;
end
else
LastError := pERROR_INVALID_PARM_1;
end
else
LastError := pERROR_INVALID_FORMAT;
end;
the size check is for changes in format
I'll post the Test Plugin as soon as i talk to MrMouse
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)