Jump to content

[REL|SA] PS2 to PC map converter


The Hero

Recommended Posts

Hi guys,

I'm releasing a program which does a 1:1 conversion of the whole PS2 map (IDEs, IPLs, DFFs, TXDs) to PC.
Here it is:
http://aap.papnet.eu/gta_/ps2map/ps2map.zip

EDIT: Just get the map files here and forget the instructions below: http://aap.papnet.eu/gta/ps2_map_sa.7z

What you'll need:
- You obviously need the PS2 files for this to work, I'm not distributing them, just a program that converts them to PC.
- The script is written in python so you need to install that (https://www.python.org/downloads/). You can use Python 2 or 3, the script should work in both versions.
- You also need SilentPatch or better SkyGfx for the dual pass

Before you run the script, edit g.py and make the variables point to your SA directories, ps2path is the directory of your PS2 SA, pcpath is the directory of your PC SA, and buildpath is a directory in which the converted files are built. The script only writes into the buildpath from which you have to copy the converted files into your PC directory manually.

To run, navigate to the script directory from within cmd (Win+R -> cmd) and run python like this (your python path may differ from mine):

C:\Users\aap\Desktop\ps2map>C:\Python27\python.exe main.py

The script first extracts the PC .img files into the builddir, then converts all needed DFF and TXD files from the PS2 .imgs, then converts IDEs, IPLs, binary IPLs and copies COLs and finally builds new .img files.
When it's done, copy the newly created data and models directories to your PC SA installation. That's it.

The IDE and IPL files are not simply copied but converted to use the PC IDs. This means that any save games or scripts should continue to work with the PS2 map.

Have fun with it. Maybe someone can post some comparison screenshots, I'm always too lazy for that.

I almost forgot: some credits go to The_GTA and Silent for helping me find the cause of crashes caused by faulty DFFs.

EDIT: made some screenshots after all, but feel free to post yours too:

1-pc.png1-ps2.png


2-pc.png2-ps2.png


3-pc.png3-ps2.png


4-pc.png4-ps2.png

 

Edited by The Hero
Link to comment
Share on other sites

Mein Gott.

 

I'm convinced I'll brick it at first, but it's sure worth a try.

 

Impressive work, man.

 

EDIT:

The procedures were not as tough to follow as I'd expected, still...

 

XXFXdgX.jpg

 

Should I rebuild the archive? I've also noticed that the converted imgs are bigger in size than the original ones - is that how it should be, or did I mess something up?

Edited by eagle6446
Link to comment
Share on other sites

Igor Bogdanoff

Doesn't seem to work with Mod Loader and has some bugs

4wo2bobl.jpg

but anyway great job!

San Andreas rat stories

Link to comment
Share on other sites

What exactly is the bug I should be seeing here?

 

eagle6446: I'll take a look if this happens to me as well.

EDIT: I don't get that bug. Have you used a vanilla PC and PS2 version? Also, the IMG sizes are correct, the PS2 textures are mostly palettized textures that I convert to 32bit textures.

Edited by The Hero
Link to comment
Share on other sites

It's the size of the red cylinder, it's too small

 

A12jKTCl.jpg

 

 

Though the yellow cone is OK

 

xyMyBhel.jpg

 

 

Save pickup is lower than normal

 

Ih3KSnNl.jpg

 

 

Strange rendering result, especially on the car's back.

 

Sl1tG7Cl.jpg

 

Maybe that's caused by Silent's 2pass rendering, I didn't try yours yet.

 

I guess those wires always were off

 

RdL354sl.jpg

 

 

The texture of the name look wrong

 

kmB0hTWl.jpg

 

 

So does the whole interior

 

leMWvy0l.jpg

 

Edited by Claude Liberty
Link to comment
Share on other sites

The red cylinder is wrong indeed, but my dff converter is quite crappy and probably just can't handle the scale, I'm working on a rewrite so a future version will do this correctly.

The save icon looks the same as in my vanilla PC and PS2 versions.

The rendering problem is indeed caused by Silent's dual pass.

The wires are off on the PS2 as well.

Can't see a difference in the texture of the name.

The interior is indeed weird, I'll look into it later, though.

Edited by The Hero
Link to comment
Share on other sites

 

eagle6446: I'll take a look if this happens to me as well.

EDIT: I don't get that bug. Have you used a vanilla PC and PS2 version? Also, the IMG sizes are correct, the PS2 textures are mostly palettized textures that I convert to 32bit textures.

Im pretty sure my img archives are untouched, unless modloader counts.

Link to comment
Share on other sites

Thinking about some documentation about changed/added ID's. Mainly for IPL files. Will test it when I get back home, but seems pretty well made tool at first.

Edited by format c:
Link to comment
Share on other sites

eagle6446: Did you also replace/merge the data directory? I never used modloader, so no idea how it works, but please try with a fresh installation and just replace the files.

 

format c: I could make the tool generate a list of reused and deleted IDs, it would just be a couple of print statements. But for what do you need that?

Link to comment
Share on other sites

Yep, merged data. Ill do it anew and see what happens. Modloader is in short a way to apply mods and fixes without modifying original files, so it shouldnt matter tbh.

 

EDIT:

Silly thing, but on a different savegame I don't have that aforementioned hole. Probably just the modified savegame caused that issue.

 

Thanks ;)

Edited by eagle6446
Link to comment
Share on other sites

I gotta say this is an impressive amount of work. There is valuable research available in his RenderWare libraries. Instead of doing your own investigation, I recommend to base your thoughts of his library (but remember, with a pinch of salt).

 

In fact, I have forked his library to work on my PS2 resource generation toolchain.

 

Working with him has been interesting (a sort of proud consumer relationship *wink*). Since he did not know much about the SA PC engine, I lent him a hand and resolved his crashes. In return, he agreed to mentioning me in this thread (which he almost forgot apparently).

 

Anyway, this tool is a great idea and I would love to see it finished :santa:

Link to comment
Share on other sites

Just for the documentation side of things :)

 

When I was trying to edit the PC binary IPL's to match PS2 map manually, it was the way I took. IE, LAe2 area on PC have several boxes placed around, their ID is 1230 or something like that, this ID doesn't exist in the PS2 LAe2 area, so...

 

Doesn't aply to all areas tought, LAn uses a completely different approach for item placement, ate least on PC. Maybe some beta testing thing, don't know.

 

And merry christmas to y'all

  • Like 3
Link to comment
Share on other sites

Please someone upload the converted files here im really appreciated :).

Unfortunately I doubt that anyone would be willing to share nearly 2GBs of data. :(

Link to comment
Share on other sites

Maybe someday we will see some "Converted PS2 Stuff" thread or smth like that :) I think large amounts of data divided into parts via WinRAR would make noobies like me happy :)

Link to comment
Share on other sites

Nobody going to upload 3GBs of data (I already converted with this tool) and split it in 500MB zips. You have to convert yourself with this tool.

Link to comment
Share on other sites

I am not too lazy to convert it by myself :) But I have not very good luck with mods. I dunno maybe I have hooky hands or too low IQ XD Things that take people 20 minutes usually take me the whole day in the best case. Will have to wait until HUGE amount of free time :)

 

Thanks

TekUltra, but unfortunately now my game crashes on half loading :( Edited by uncaged
Link to comment
Share on other sites

Oh, forgot to mention :) Crashes anyway. Even the NEW game. Cleaning save folder does not help :( Tried both with modloader and replacement - same result. Ahhhh, maybe that is some mod's fault...

Link to comment
Share on other sites

Link to comment
Share on other sites

Found the reason ! I removed:

-Aztecaz map fixes

-Map collision fixes

-EHI 2.5

-PS2 parked cars

Now it seems to work :) EHI seems to be inconpatible. So all map and collision fixes are now obsolete ?

Edited by uncaged
Link to comment
Share on other sites

Since all map and collision files are replaced, I have no idea why you had any of those mods in the first place (unless you didn't install the mod correctly). I don't know all the map and collision fixes, this is just the PS2 map.

Edited by The Hero
Link to comment
Share on other sites

That was because of ModLoader. Even when I replaced all needful SA map files ML was still containing that map fixes. ML is very usefull thing but sometimes it has conflicts like this. Now it's OK. Looks like if people will start to use converted PS2 maps massively a lot of mods will need to be remade for PS2 maps compatibility :)

Edited by uncaged
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.