GTA2 Replay Runner?

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
User avatar
B-$hep
Immortal
Posts: 569
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 Replay Runner?

Post by B-$hep »

I once installed AVG but it corrupted my Windows completely.
After reboot windows was damaged and half of the system files were gone.
I never install it again.

See if you can report false positive to AVG company. Look at their website or AVG itself.
There should be option to send the report that this file is clean.

If you don't believe me i will post the source here, then you just download the Delphi and compile it by yourself.

All i did, is just i switched from Delphi 3 to Delphi 4 and i rewrote everything, that's all.


Actually i planned to release source when this tool is finished as i said earlier.
User avatar
Sektor
Boss
Boss
Posts: 1424
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 Replay Runner?

Post by Sektor »

Finally!

Part A:
Part B: C:\games\gta2
Part A: C:\games\gta2
PROC ProcessAll: Current GTA2 path: C:\games\gta2
PROC ProcessAll: Trying to run GTA2 from: C:\games\gta2

It runs GTA2 now and the associates with .rep extension fine. It creates test folder if it doesn't exist. It doesn't appear to create any backups but that's fine.

Now just need v11.3 support since it's the version I always use.
User avatar
B-$hep
Immortal
Posts: 569
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 Replay Runner?

Post by B-$hep »

Sektor.
Really works or you just gave up trying it?

Btw, in the meantime i have uploaded new version that fixes (hopefully) the problem with test folder in GTA2.
Specially in the case when GTA2 is in C:\games\gta2 or such place.

If test folder doesn't exists and you run some rep file it will create everything automatically.


Try it many different ways, maybe if you find something again that's buggy or doesn't work.

EDIT OK, now the backups, you don't see any files with such filenames like this: 22.02.2010__8_29_24.rep ???

Does it creates Replays folder for you?
User avatar
Sektor
Boss
Boss
Posts: 1424
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 Replay Runner?

Post by Sektor »

There was a problem? Last version created test folder fine but this one works too and yes really. Oh yeah there is a c:\games\gta2\replays folder, I forgot that's where it put backups.
User avatar
B-$hep
Immortal
Posts: 569
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 Replay Runner?

Post by B-$hep »

If you run replay.rep from test folder it should make a backup copy of it immediately:
With filename like (current date + time): 21.02.2010__18_54_48.rep to the same folder (test).
And also one copy to Replays folder.

Anyway, the method how it creates backups could be improved i guess.


I had to use _ in time string, because it's not allowed to use colons (:) in filenames.
User avatar
Sektor
Boss
Boss
Posts: 1424
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 Replay Runner?

Post by Sektor »

It creates gta2\replays folder but it's empty. I also tested d:\gta2\ as my GTA2 folder and it ran that fine.
User avatar
B-$hep
Immortal
Posts: 569
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 Replay Runner?

Post by B-$hep »

What about test folder. Any backups in there?
If you run GTA2 and after that quit then it should make backups to Replays folder.
It's the idea suggested by Razor.


If you are saving replays then you don't loose the old replays.
Try to run GTA2 with some reps and quit. It should copy replay.rep to Replays folder.


Then look into Replays folder.
User avatar
Sektor
Boss
Boss
Posts: 1424
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 Replay Runner?

Post by Sektor »

Replays folder is still empty.
User avatar
B-$hep
Immortal
Posts: 569
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 Replay Runner?

Post by B-$hep »

GTA2PATHS.TXT will now have log about creating and finding folders (Replays).
It should say exactly where it succeeded or where it failed.

Post this log here.
Just run some rep, play a bit. Close GTA2 and after tool window is gone open the textfile.
Also try to delete the Replays and test folder.
And look into log again.
User avatar
Sektor
Boss
Boss
Posts: 1424
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 Replay Runner?

Post by Sektor »

Part A: C:\games\gta2

PROC ProcessAll: Current GTA2 path: C:\games\gta2
PROC ProcessAll: Trying to run GTA2 from: C:\games\gta2


TIMER PROC: Replay folder ALREADY EXISTS, USING IT
TIMER PROC: C:\games\gta2\test\replay.rep
TIMER PROC: Copying replay.rep to: C:\games\gta2\Replays\ failed
C:\games\gta2\Replays\ should have backups now
User avatar
B-$hep
Immortal
Posts: 569
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 Replay Runner?

Post by B-$hep »

It fails to copy replay.rep from GTA2\test folder to GTA2\Replays folder.

I guess it's the Vista.
I will try to change the backup file name format.


EDIT: what about GTA2\test folder. No backups in there?
Just replay.rep ???
User avatar
B-$hep
Immortal
Posts: 569
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 Replay Runner?

Post by B-$hep »

I wonder where v11 holds the GTA2 path?
If it even stores it anywhere?

What if (user) you have c:\program files\rockstar games\gta2 v9.6
But actually v11 must be used which has completely different path.

How the software should know which version to actually use?
Delete all GTA2 paths from registry and just ask new path?

Doesn't seem so good way.

I wanted to add support for v11 and boom. I'm stuck.
I got the v11 to work here, after many errors.
User avatar
Sektor
Boss
Boss
Posts: 1424
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 Replay Runner?

Post by Sektor »

Just having a blank window isn't very user friendly, you could add the option to chose the path or version number.

You can read the version number from the gta2.exe and if it's more than 11.0 then it uses HKCU. You could drop support for older than v11.3 since those files are obsolete (although some replays made with older versions need to be modified to work on newer and might not even be compatible).
User avatar
Sektor
Boss
Boss
Posts: 1424
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 Replay Runner?

Post by Sektor »

I just remembered that GTA2 has command line options for replays:

-r play test\replay.rep
-q record replay

Some Vista problems are related to VirtualStore registry and folder but B-$hep already knows that.
Razor
Lunatic
Lunatic
Posts: 456
Joined: 19 Jul 2008, 14:14
GH nick: Razor, R
Location: Poland / Szczecin
Contact:

Re: GTA2 Replay Runner?

Post by Razor »

did you do something since last reply? :D
User avatar
B-$hep
Immortal
Posts: 569
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 Replay Runner?

Post by B-$hep »

Sektor did you took this project over?
As i told my net is gone but i still come online.

If this is ever needed i could update it.
User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: GTA2 Replay Runner?

Post by elypter »

support for multiplayer would be useful. I think this could be done by using a descriptor file which contains the list of rep files the map and maybe some other settings.

And is there a way to fix the false positive warning? i got reports from several people who are using online pakx because it contains this tool. this pack is made for newbies and they could easily get frightened when they get a virus warning when installing it. i could wrap it into another archive but this would not be an optimal solution and it would solve the problem completely either.
yur sa'nok ngeyä
User avatar
B-$hep
Immortal
Posts: 569
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 Replay Runner?

Post by B-$hep »

What Antivirus you use?
I dunno why the hell the AV's report that it's bad.

I never created any viruses or such things. Maybe it contains some code that AV thinks is bad.
Maybe messing with windows registry causes this.

But how the hell get the GTA2 path then?

Guess i have to ask user and save it to file, not in the registry.

This should shut up the AV.
User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: GTA2 Replay Runner?

Post by elypter »

i don't think it is the registry. gh does look for gta in reg too. i guess it is because you are looking for a running instance of gta2. maybe there are other ways to look for a running gta.
yur sa'nok ngeyä
User avatar
B-$hep
Immortal
Posts: 569
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 Replay Runner?

Post by B-$hep »

Still i want to know what antivirus you have?
Does it reports it to you also that exe is "bad"?
Post Reply