Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

The Hero

[REL|SA] PS2 to PC map converter

Recommended Posts

The Hero

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

Share this post


Link to post
Share on other sites
Snoops27

Very nice! Will be interesting to see what people convert :D

Share this post


Link to post
Share on other sites
the_maciej

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

Share this post


Link to post
Share on other sites
Claude_Lib

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

4wo2bobl.jpg

but anyway great job!

Share this post


Link to post
Share on other sites
George Costanza

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

4wo2bobl.jpg

but anyway great job!

San Andreas rat stories

Share this post


Link to post
Share on other sites
The Hero

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

Share this post


Link to post
Share on other sites
Claude_Lib

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

Share this post


Link to post
Share on other sites
The Hero

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

Share this post


Link to post
Share on other sites
the_maciej

 

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.

Share this post


Link to post
Share on other sites
El Dorado

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:

Share this post


Link to post
Share on other sites
The Hero

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?

Share this post


Link to post
Share on other sites
the_maciej

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

Share this post


Link to post
Share on other sites
The_GTA

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:

Share this post


Link to post
Share on other sites
El Dorado

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

Share this post


Link to post
Share on other sites
what's my name

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

Share this post


Link to post
Share on other sites
the_maciej

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

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

Share this post


Link to post
Share on other sites
uncaged

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 :)

Share this post


Link to post
Share on other sites
Inadequate

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.

Share this post


Link to post
Share on other sites
uncaged

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

Share this post


Link to post
Share on other sites
TekUltra

You started the game with a saved game or started a new one ?

Share this post


Link to post
Share on other sites
uncaged

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...

Share this post


Link to post
Share on other sites
The Hero

Have you replaced all files? the three .img archives and the map files in the data directory?

Share this post


Link to post
Share on other sites
uncaged

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

Share this post


Link to post
Share on other sites
The Hero

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

Share this post


Link to post
Share on other sites
uncaged

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

Share this post


Link to post
Share on other sites
uncaged

^ It is 1.79 GB when unpacked. So looks like full :)

Share this post


Link to post
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

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

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