Quantcast

Jump to content

» «
Photo

[WIP]IV map cleaning

48 replies to this topic
Gforce
  • Gforce

    "Segregate and Rearrange" "The Hills"

  • Members
  • Joined: 17 Sep 2003
  • United-Kingdom

#1

Posted 21 December 2008 - 10:23 PM Edited by Gforce, 10 January 2011 - 10:21 PM.

Information for map cleaning GTA-IV v1 (1.0.1.0)

today i started working on cleaning out the GTA IV map.

i am running a genuine install of the game that was updated etc online as it was installed and requires the genuine disc in the drive.

i am uing Alexander Blade's "ASI" method of modding the game, using his filecheck bypass ASI. Topic with Download and instructions here

i have also tested using listener's xlive method Topic with download and instructions

i found that if i edited out certain IMG entries in the images.txt i started to get a map cleaned IV install, i also found that i could delete the targetted img,ide,wpl and xpl files from the PC\data\maps folders.

here is what my current images.txt looks like, remember that while originally testing that i wasn't using a modified water.dat file so Niko will fall through the game map and REspawn and fall again etc, what is needed is a mission script similar to steve-m's old SA map cleaner script spawning the player in the air in a heli.

CODE
# NOTE: The names and paths in this file are CASESENSITIVE on PS3 so don't f*ck 'em up.

#this has been ordered to reflect the order on the disk

commonimg:/data/cdimages/navgen_script
commonimg:/data/cdimages/script_network 1
platformimg:/anim/cutsprops  1
platformimg:/anim/cuts   1
platformimg:/data/maps/interiors/Int_Props/props_ss 1
platformimg:/data/maps/interiors/Int_Props/props_ab 1
platformimg:/data/maps/interiors/Int_Props/props_km 1
platformimg:/data/maps/interiors/Int_Props/props_mp 1
platformimg:/data/maps/interiors/Int_Props/props_ld 1
platformimg:/data/maps/interiors/Int_Props/props_ah 1
platformimg:/data/maps/interiors/Mission/level_2 1
platformimg:/data/maps/interiors/Mission/level_5 1
platformimg:/data/maps/interiors/Mission/level_4 1
platformimg:/data/maps/interiors/Mission/level_6 1
platformimg:/data/maps/interiors/Mission/level_1 1
platformimg:/data/maps/interiors/Mission/level_3 1
platformimg:/data/maps/props/commercial/7_11  1
platformimg:/data/maps/props/commercial/clothes  1
platformimg:/data/maps/props/commercial/office  1
platformimg:/data/maps/props/commercial/bar  1
platformimg:/data/maps/props/commercial/beauty  1
platformimg:/data/maps/props/commercial/fastfood 1
platformimg:/data/maps/props/lev_des/minigame  1
platformimg:/data/maps/props/lev_des/mission_int 1
platformimg:/data/maps/props/lev_des/icons  1
platformimg:/data/maps/props/residential/details 1
platformimg:/data/maps/props/residential/kitchen 1
platformimg:/data/maps/props/residential/lights  1
platformimg:/data/maps/props/residential/electrical 1
platformimg:/data/maps/props/residential/bedroom 1
platformimg:/data/maps/props/residential/bathroom 1
platformimg:/data/maps/props/residential/soft  1
platformimg:/data/maps/props/residential/dining  1
platformimg:/data/maps/props/doors/int_door  1
platformimg:/data/maps/props/vegetation/int_veg  1

#the following
#platformimg:/data/maps/jersey/nj_05 0
#platformimg:/data/maps/jersey/nj_liberty 0
#platformimg:/data/maps/jersey/nj_04w 0
#platformimg:/data/maps/jersey/nj_04e 0
#to here  

platformimg:/data/maps/jersey/nj_xref 1

#the following
#platformimg:/data/maps/jersey/nj_03 0
#platformimg:/data/maps/jersey/nj_docks 0
#platformimg:/data/maps/jersey/nj_02 0
#platformimg:/data/maps/jersey/nj_01 0
#to here  

platformimg:/models/cdimages/radar 0
platformimg:/anim/anim   0
platformimg:/models/cdimages/pedprops 1
platformimg:/models/cdimages/weapons 0
platformimg:/models/cdimages/vehicles 0
platformimg:/data/cdimages/scripttxds 1
commonimg:/data/cdimages/script  1
commonimg:/data/cdimages/carrec  1
platformimg:/data/maps/generic/procobj 1
platformimg:/data/maps/interiors/Generic/blocks  1
platformimg:/data/maps/interiors/Generic/public_2 1
platformimg:/data/maps/interiors/Generic/homes_2 1
platformimg:/data/maps/interiors/Generic/homes_3 1
platformimg:/data/maps/interiors/Generic/brownstones 1
platformimg:/data/maps/interiors/Generic/indust_1 1
platformimg:/data/maps/interiors/Generic/bars_2  1
platformimg:/data/maps/interiors/Generic/retail_2 1
platformimg:/data/maps/interiors/Generic/bars_1  1
platformimg:/data/maps/interiors/Generic/public_3 1
platformimg:/data/maps/interiors/Generic/public_1 1
platformimg:/data/maps/interiors/Generic/retail_3 1
platformimg:/data/maps/interiors/Generic/retail_1 1
platformimg:/data/maps/interiors/Generic/retail_4 1
platformimg:/data/maps/interiors/Generic/bars_3  1
platformimg:/data/maps/interiors/Generic/blocks_3 1
platformimg:/data/maps/interiors/Generic/blocks_2 1
platformimg:/data/maps/interiors/Generic/homes_1 1
platformimg:/data/maps/props/doors/ext_door  1
platformimg:/data/maps/props/roadside/rubbish  1
platformimg:/data/maps/props/roadside/fences 1
platformimg:/data/maps/props/roadside/works 1
platformimg:/data/maps/props/roadside/traffic  1
platformimg:/data/maps/props/roadside/st_vend 1
platformimg:/data/maps/props/roadside/lamppost  1
platformimg:/data/maps/props/roadside/sign  1
platformimg:/data/maps/props/roadside/bllbrd  1
platformimg:/data/maps/props/roadside/bins 1
platformimg:/data/maps/props/roadside/crates 1
platformimg:/data/maps/props/street/amenitie 1
platformimg:/data/maps/props/street/rooftop 1
platformimg:/data/maps/props/street/misc 1
platformimg:/data/maps/props/street/elecbox 1
platformimg:/data/maps/props/vegetation/ext_veg  1
platformimg:/data/maps/props/windows/gen_win 1
platformimg:/data/maps/props/industrial/industrial 1
platformimg:/data/maps/props/industrial/skips  1
platformimg:/data/maps/props/industrial/drums  1
platformimg:/data/cdimages/navmeshes 0
platformimg:/data/cdimages/gtxd  0
platformimg:/data/cdimages/paths 0

#the following
#platformimg:/data/maps/manhat/manhat12 0
#platformimg:/data/maps/manhat/manhat05 0
#platformimg:/data/maps/manhat/manhatxr 0
#platformimg:/data/maps/manhat/manhat08 0
#platformimg:/data/maps/manhat/manhat06 0
#to here

platformimg:/data/maps/manhat/subwayxr 0
platformimg:/data/maps/manhat/manhatsw 0
platformimg:/data/maps/props/industrial/railway  1

#the following
#platformimg:/data/maps/manhat/manhat04 0
#platformimg:/data/maps/manhat/manhat07 0
#platformimg:/data/maps/manhat/manhat09 0
#platformimg:/data/maps/manhat/manhat03 0
#platformimg:/data/maps/manhat/manhat11 0
#platformimg:/data/maps/manhat/manhat02 0
#platformimg:/data/maps/manhat/manhat01 0
#platformimg:/data/maps/manhat/manhat10 0
#to here

platformimg:/models/cdimages/componentpeds 1

#the following
#platformimg:/data/maps/east/brook_s2 0
#platformimg:/data/maps/east/brook_s 0
#platformimg:/data/maps/east/brook_s3 0
#platformimg:/data/maps/east/brook_n 0
#platformimg:/data/maps/east/brook_n2 0
#platformimg:/data/maps/east/east_xr 0
#platformimg:/data/maps/east/queens_m 0
#platformimg:/data/maps/east/queens_w2 0
#platformimg:/data/maps/east/queens_w 0
#platformimg:/data/maps/east/queens_e 0
#platformimg:/data/maps/east/bronx_e 0
#platformimg:/data/maps/east/bronx_e2 0
#platformimg:/data/maps/east/bronx_w 0
#platformimg:/data/maps/east/bronx_w2 0
#to here

#map xref

#map instance



i have seperated and #'d out all map entries that can be removed safely.

some crappy screens ...............

user posted image
user posted image


this is actually a little bit more than just commenting out lines, masses of files can be deleted completely wink.gif

here is a quick explanation of how this all works, i think moto_whistle.gif

as you know, the images.txt is the first file to be called from the gta.dat, this is a list of assorted img files used by the game for various img sections of the map or img's that store dynamic/generic objects.

for each (map\img) entry within the images.txt there are 4 target files at each location, each entry also has a flag at the end of each line: 1 or 0.

0 = img contains exterior map (model) files
1 = img contains interior or dynamic/generic/mission/cutscene/breakable (model) files

here's an example:

CODE
platformimg:/data/maps/jersey/nj_01 0  


translates to :-

CODE
Grand Theft Auto IV\PC\data\maps\jersey\nj_01

                                          nj_01.ide
                                          nj_01.wpl
                                          nj_01.xpl (Xbox 360 file, unused by PC version afaik)
                                          nj_01.img


the "nj_01.img" contains several further mapping files:

CODE
nj_01.wad
nj_01.wbn through to nj_01_29.wbn (collision files)
nj_01_strbig0.wpl through to nj_01_strbig2.wpl
nj_01_stream0.wpl through to nj_01_stream26.wpl (streaming binary wpl's)


when you delete an entry from the images.txt file, you can also delete the 4 target files also,

example:

# out or delete :-
CODE
platformimg:/data/maps/jersey/nj_01 0


means you can also delete the following target files

CODE
Grand Theft Auto IV\PC\data\maps\jersey\nj_01

                                         nj_01.ide
                                         nj_01.wpl
                                         nj_01.xpl
                                         nj_01.img


and yes, miraculously the game runs without crashes.

here's a working water.dat Download

user posted image

Updated Information for map cleaning the Update 5 (1.0.0.4) release

Rockstar sort of changed things a little with the 1.0.0.4 update slightly.

i tried my usual method of cleaning with the V5 update, i #'d out the map ipl lines in the gta.dat, i #'d out the img lines in the images.txt, but neither method would work, i even deleted the gta.dat and the images.txt and the map still stayed ingame.

however, after deleting the filelist.pak and putting the gta.dat and images.txt back, i found that i could do a simple # out of the 'img' folder lines in the images.txt and the map would disappear, if you only # out the ipl lines in the gta.dat, the game WILL crash.

here is the list of instructions on how to map clean the GTA-IV v5 (1.0.0.4) and GTA-IV v6 (1.0.6.0) Updates.

1. make a backup copy of your GTA-IV (with the v5 (1.0.0.4) update applied) folder.
2. download and install Xliveless - 0.99b1 from this topic to your backup folder of GTA-IV
3. delete the 'filelist.pak' from the 'Grand Theft Auto IV\pc\data' folder.
4. edit your images.txt file as in the method above, alternatively use the mapcleaned files in the link below and put them into your '\Grand Theft Auto IV\common\data' folder, also includes a full map water.dat.
5. run game
6. This Instruction is Optional - delete the "East, Jersey and Manhat" folders from the 'Grand Theft Auto IV\pc\data\maps' folder and save yourself 4.33GB of hdd space

this method should also work for update verson 1.0.4.0.

IV Mapcleaner files
Empty Path Nodes IMG

thanks to all for your kind support cool.gif

coin-god
  • coin-god

    High Roller

  • $outh $ide Hoodz
  • Joined: 18 Mar 2007

#2

Posted 21 December 2008 - 10:26 PM

Interesting stuff. When we get a way to open and decompile the game script this will be very useful.

Johnline
  • Johnline

    junglist

  • Members
  • Joined: 27 May 2005

#3

Posted 21 December 2008 - 10:31 PM

i say good work, some poor persons gotta do it. i don't know what else. i mainly talk here to pick up chicks

The GTA Guy
  • The GTA Guy

    The Frisker

  • Members
  • Joined: 26 Mar 2008

#4

Posted 21 December 2008 - 10:35 PM

Good work, keep it up. But you already planned the replacing it? I mean, which city or country will you replace it? What will be the new map?

Gforce
  • Gforce

    "Segregate and Rearrange" "The Hills"

  • Members
  • Joined: 17 Sep 2003
  • United-Kingdom

#5

Posted 22 December 2008 - 12:20 AM Edited by Gforce, 29 December 2008 - 01:27 AM.

Edited into first post

locO G
  • locO G

    LocO by name... But keeping an even keel.

  • Members
  • Joined: 28 Oct 2005

#6

Posted 22 December 2008 - 12:23 AM

Top hole!

The canvas is primed.

coin-god
  • coin-god

    High Roller

  • $outh $ide Hoodz
  • Joined: 18 Mar 2007

#7

Posted 22 December 2008 - 02:40 AM

Good work, maybe now someone will create an automatic program for this, like Steve-m's map cleaner.

So it also removes the unused files.

ceedj
  • ceedj

    PEDS Creator

  • Members
  • Joined: 21 May 2005

#8

Posted 22 December 2008 - 03:56 AM

Simply an encouragement post. Good going, keep it up! smile.gif

Picolini
  • Picolini

    ZOMG ROFL XD!!!!11

  • BUSTED!
  • Joined: 07 Dec 2002

#9

Posted 22 December 2008 - 06:45 AM

QUOTE (ceedj @ Dec 21 2008, 21:56)
Simply an encouragement post. Good going, keep it up! smile.gif

Throwing mine in as well GForce! Glad to see you're still around, and active in the beginning of IV modding!
With out people like you, we won't make it anywhere icon14.gif icon14.gif
Keep it up!

JostVice
  • JostVice

    realtime, not prerendered

  • Members
  • Joined: 30 Oct 2005

#10

Posted 22 December 2008 - 07:32 AM

Nice work, GForce. icon14.gif

Images.txt is the file in wich the various IMGs are listed, no? then, if game doesn't find models, they don't spawn? No crash?

Cursed
  • Cursed

    Big Homie

  • Zaibatsu
  • Joined: 09 Jun 2007

#11

Posted 22 December 2008 - 09:53 AM

Good to see that someone is already working on cleaning the map, hopefully there will be some new stuff to fill it soon.

ParoXum
  • ParoXum

    Proud PC Gamer

  • Members
  • Joined: 28 Jul 2005
  • None

#12

Posted 22 December 2008 - 10:06 AM

Ofcourse that's the easy first step to comment lines. One step more important will be to script the removing of useless files.

Intosia
  • Intosia

    I'm random! ^^

  • Members
  • Joined: 11 Dec 2008

#13

Posted 22 December 2008 - 10:06 AM

Nice! Good job man smile.gif

Gforce
  • Gforce

    "Segregate and Rearrange" "The Hills"

  • Members
  • Joined: 17 Sep 2003
  • United-Kingdom

#14

Posted 22 December 2008 - 02:26 PM Edited by Gforce, 29 December 2008 - 01:28 AM.



thanks to all for your kind support cool.gif

-TRASE-
  • -TRASE-

    Punk-ass Bitch

  • Members
  • Joined: 07 Feb 2008

#15

Posted 22 December 2008 - 04:43 PM

OH NOES! what have you done!!!!????? cry.gif


ps. Nice work smile.gif i see some custom maps soon

FunGt
  • FunGt

    GTA-Modding.com

  • Members
  • Joined: 10 Jun 2005
  • Italy

#16

Posted 22 December 2008 - 05:06 PM

I tried it and it works good. Unfortunately in my sh*tty pc the game runs always at 12fps lol. biggrin.gif

uNi
  • uNi

    Cyclop 9

  • Moderator
  • Joined: 14 May 2004
  • None

#17

Posted 22 December 2008 - 05:21 PM

Great progress Gforce. icon14.gif

kbps
  • kbps

    Rat

  • Members
  • Joined: 20 Dec 2008

#18

Posted 22 December 2008 - 09:28 PM

Great work!

Gforce
  • Gforce

    "Segregate and Rearrange" "The Hills"

  • Members
  • Joined: 17 Sep 2003
  • United-Kingdom

#19

Posted 29 December 2008 - 01:29 AM

edited my follow up posts into the first post as a complete method

BlOoDStReAm101
  • BlOoDStReAm101

    I am the night

  • Members
  • Joined: 18 May 2005

#20

Posted 29 December 2008 - 05:58 AM

Great work so far. Keep it up! icon14.gif

supermortalhuman
  • supermortalhuman

    522A4EA9

  • BUSTED!
  • Joined: 09 Jun 2009

#21

Posted 26 October 2009 - 09:33 AM

Interested in hearing what you found about 1.0.4.0 - how is it looking?

Gforce
  • Gforce

    "Segregate and Rearrange" "The Hills"

  • Members
  • Joined: 17 Sep 2003
  • United-Kingdom

#22

Posted 07 November 2009 - 02:57 PM

i'm getting there slowly wink.gif

crappy screen

user posted image

Gforce
  • Gforce

    "Segregate and Rearrange" "The Hills"

  • Members
  • Joined: 17 Sep 2003
  • United-Kingdom

#23

Posted 11 November 2009 - 08:22 PM

instructions for map cleaning V1.0.4.0 and the V5 (1.0.0.4) update have been added to the first post wink.gif

supermortalhuman
  • supermortalhuman

    522A4EA9

  • BUSTED!
  • Joined: 09 Jun 2009

#24

Posted 11 November 2009 - 11:25 PM

QUOTE (Gforce @ Nov 11 2009, 16:22)
the V5 (1.0.0.4) update

Nice, I was coming to ask if the update screwed anything tounge.gif

quechus13
  • quechus13

    Boss

  • Members
  • Joined: 19 Dec 2008

#25

Posted 12 November 2009 - 04:44 AM

I guess this will give a FPS Boost right?

Gforce
  • Gforce

    "Segregate and Rearrange" "The Hills"

  • Members
  • Joined: 17 Sep 2003
  • United-Kingdom

#26

Posted 12 November 2009 - 07:35 AM

QUOTE (quechus13 @ Nov 12 2009, 04:44)
I guess this will give a FPS Boost right?

it gives a massive fps boost.

but you do realise the point of this is to fully remove the LC map, ready for replacing it with your own ?

rwils79
  • rwils79

    GTAIV to GTASA Total Conversion Leader

  • Members
  • Joined: 23 Mar 2009

#27

Posted 18 November 2009 - 10:05 PM

Gforce, why on eart would somebody want to remove (and of course replace) the map of IV's Liberty City?!?! Rockstar just did an AMAZING job on it, I mean, all you have to do is load up Grand Theft Auto IV PC, walk outside your current safe-house, look up at the sky, the road, buildings, cars, EVERYTHING, etc. and you can just see how AMAZINGLY realistic Grand Theft Auto IV PC is! In my HONEST opinion, you CAN'T get a more REALISTIC looking game than Grand Theft Auto IV PC. GTAIV PC IS IT. I have to say to the Rockstar Toronto user here on GTAForums.com: (Moderators, please make sure the Rockstar Toronto user gets this)
You guys have done a FANTASTIC, UNBELIEVABLE, AMAZING, AWESOME job at making GTAIV PC!!! biggrin.gif

-Ryan Wilson

Shadow-Link
  • Shadow-Link

    Li'l G Loc

  • Members
  • Joined: 01 Dec 2004

#28

Posted 18 November 2009 - 10:34 PM

Because the current map is boring as hell..? We want to replace it with our own better map.

Johnline
  • Johnline

    junglist

  • Members
  • Joined: 27 May 2005

#29

Posted 19 November 2009 - 12:52 AM

think beyond liberty.
think a future city, tropical islands, a city made of alien pipes or mind boggling geometry. these tools are worth making, keep it up.
and r* toronto did NOT do a good job as far as the pc version is concerned.

supermortalhuman
  • supermortalhuman

    522A4EA9

  • BUSTED!
  • Joined: 09 Jun 2009

#30

Posted 19 November 2009 - 01:53 AM Edited by supermortalhuman, 19 November 2009 - 01:56 AM.

Yes, think above and beyond, like this, imagine putting your own map over this:



Dude, we want to map in this game - this goes beyond the bullsh*t tools offered by Epic or Valve and into something much more meaningful. After playing IV, SA is totally like, I don't want to mod that anymore. I do, but I don't, it's a very touchy subject, ask the author of this post wink.gif On one hand, SA gives me what no other game gives me when modding, and on the other, how can I be inspired on that when IV is there?

meaningful examples:







Furthermore, f*ck liberty city, that's why I can have 2 folders with my game in each smile.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users