Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (93,105 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. 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

    2. Red Dead Redemption

    3. 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. Forum Support

    2. Site Suggestions

Sign in to follow this  
LINK/2012

Inst Objects Ordering for Original IPLs

Recommended Posts

LINK/2012

I'm doing something related to IPLs and I have to rebuild the IPL, but without knowing the original ordering of stuff (don't ask why!) and while doing so with original game files (I'm trying with data/maps/vegasS.IPL), it doesn't work!

 

Here's some files I ended up with (just inst section):

[works] Rebuilt without ordering changes: http://pastebin.com/Ryt6QBA1

[dontw] Rebuilt with major ordering changes: http://pastebin.com/bxrnaJax

 

 

I did an comparator in C++ to make sure the original file and the rebuilt file has absolutely the same content (well, almost for the floats), here's it if anyone interested to test out (yeah the code is crap, but you know, just testing): http://pastebin.com/GzeWPqpe

 

I really want to know why it doesn't work, anyone know? Does the inst objects order in the data folder must match with the streamed IPL order? Really, what?

 

* By doesn't work I mean the game crashes on loading

Edited by LINK/2012

Share this post


Link to post
Share on other sites
LINK/2012

Oh, wrong section, sorry guys, asking moderation to move it right now ;)

Share this post


Link to post
Share on other sites
ZAZ

The stream.ipl files contain a lot of object placements with link numbers to corresponding LOD objects of ipl files of map folder

About LOD:
LOD models are the low level of detail versions of the original models. This is what you see loaded far away. As you get closer to the LOD model, it should change to the original model if it has one.

The LOD don't need(have) a collisionsmodel because the LOD will be disabled if you come into the range of the stock model
But then the LODs must be linked correct by the their stock model, otherwise the game crashes
This must be done in IPL files
Objects which should link to a corresponding LOD object must have the line number of the corresponding LOD object

LOD objects must have -1 at the end

Only objects which should link to a corresponding LOD object must not have -1 at the end

example, 3 objects which links to their corresponding LOD object
mynice_home links to LODice_home at line 3, mynice_garage to LODice_garage at line 4 ad so on

inst5001, mynice_home, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, 35002, mynice_garage, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, 45003, mynice_shop, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, 55004, LODice_home, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -15005, LODice_garage, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -15006, LODice_shop, 0, 190.6, -1425.8, 19.4, 0, 0, 0, 1, -1end




LOD placement can't be done in stream.ipl's but must be done in the ipl files of map folder
so you'll find a lot of object placement lines in stream.ipl's which have a link number at lineend to link to a corresponding LOD object
and in the ipl files of map folder are mostly placement lines of LOD objects

Share this post


Link to post
Share on other sites
LINK/2012

Oh, thanks ZAZ :)

Share this post


Link to post
Share on other sites
fastman92

LOD objects must have -1 at the end

Are you sure about it? Some day i'd like to give it a try and put 3 object versions and see if game works:

HQ object, max distance under 300.0

Lower quality object, max distance 600.0

Lowest quality object, max distance 1000.0

 

Then i assume game will perhaps check if camera is close enough for HQ object, otherwise it will check if camera is close enough for lower quality object, otherwise it will try lowest quality object.

Edited by fastman92

Share this post


Link to post
Share on other sites
ZAZ

 

LOD objects must have -1 at the end

Are you sure about it? Some day i'd like to give it a try and put 3 object versions and see if game works:

HQ object, max distance under 300.0

Lower quality object, max distance 600.0

Lowest quality object, max distance 1000.0

 

Then i assume game will perhaps check if camera is close enough for HQ object, otherwise it will check if camera is close enough for lower quality object, otherwise it will try lowest quality object.

 

yes, i'm shure, the last param is only for linking

as described above, it's because of the col files, LODs don't have collision files and can't be placed in stream-ipl and must be linked from a stockmodel

there are also some LOD objects which have col files, just a col file with a zero model, they can be placed like the normal objects

 

About check by camera: i often moved with freecam far away from player and then there where only the LQ objects available, i assume the HQ are checked by player position

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
Sign in to follow this  

×

Important Information

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