Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (85,858 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

Un3462

gta3/vc/sa limits

Recommended Posts

Un3462

demarest suggested i post a topic with the mission coding related limits i know of, and i thought that would be a good idea. so here you go:

 

 

 

GTA III Vice City San Andreas
main size 131072 225512 200000
mission size 32768 35000 69000
num missions 120 120 200
model names (2nd segment) 200 220 395
running threads 128 128 96
local variables 16 + 2 timers 16 + 2 timers 32 + 2 timers

1024 total in missions

gosub levels 4 6 8
external threads n/a n/a 82
external thread attachments n/a n/a 70
car generators 160 185 500
radar blips 32 75 175
pickups 336 336 620
last opcode 0481 05a8 0a4e
spheres 16 16 16
car saving garagetypes 16..18 16..18,24..32 16..18,24..32,39..45

 

btw, dem; you asked about end_thread_named a while back. looking up these limits again, i found that the code for it is present in gta3. so that should work.

Edited by CyQ

Share this post


Link to post
Share on other sites
Demarest

You had me at GTA3 inlove.gif AWESOME work.

 

How come no limit of pickups for 3/VC listed? I know they both have one. I've ran into them both before (by accident for VC). If it's not readily evident, I could put some work into trying to redetermine them.

 

The 4 gosub levels for GTA3 and 96 threads for SA are scary figures. Still wish I had a tool that could access the thread pointer and gosub pointers wink.gif

 

[EDIT]

How about garage limits? I know that VC was one above what it came with. I think GTA3 was 3 total. Or is it one per island?

Edited by Demarest

Share this post


Link to post
Share on other sites
Un3462

i still had to look the pickups and blips up. also added final opcode number for all versions. some of the limits are different still for the ps2 versions, but nobody mods that anyway.

 

and i never got involved much with garages. maybe i can look those up later, but i'm pretty sure other people have figured out the limits for them already.

Share this post


Link to post
Share on other sites
superglitch
Actually i think GTA 3 has garage limit of 4, i just was messin with the garages in vice and gta3 to see how much i could fit, with the get out of car go to garage get back in car with door open and drive in, In vice city i could only get 4 to fit into a garage, on gta3 i got five to fit but one disappeared, then next time i opened the garage it crashed the game. With San Andreas we should really test the limits, the IPL method. Also on the Xbox version you have to limit the mission size even one over the limit on any thing, it freaks out and turns off the xbox, while on PC i can run the same thing fine

Share this post


Link to post
Share on other sites
Demarest

@CyQ: I REALLY wish I had last opcode last week. I forget what I was looking up, but it was right around GTA3's ceiling confused.gif Maybe I'll bump into it again. I was asking the garage limit because I know the VC one was very tangible. I would think GTA3's would be VERY tangible simply because its open-ended nature.

 

@glitch: I wasn't talking garage capacity, which is known to be 4 for VC/SA. I was talking quantity of garages. The reason I suspect GTA3 to be either 3 total or 1 per island is because of the way I've seen garage mods works. Joey's garage, Salvatore's garage, and R* Heights all killed the Portland garage to enable theirs.

Share this post


Link to post
Share on other sites
spaceeinstein
What's the limit for the amount of created spheres?

Share this post


Link to post
Share on other sites
Andy80586

by car generators do you mean like the number of parked cars that can be in the game? you list vc's limit as 185... and i like lists of limits... makes things easier to hack

Share this post


Link to post
Share on other sites
Demarest
Parked cars and made by parked car generators. They are one in the same except that the generator is what the code defines and the car is what the engine produces with it under the right circumstances.

Share this post


Link to post
Share on other sites
Un3462

spaceeinstein; updated first post.

Share this post


Link to post
Share on other sites
Hammer83

For garages (including pns, 8ball, mission garages, car crusher etc):

GTA3 - 32

GTAVC - 32

GTASA - 50 (although in ipls there are 52 notify.gif )

Share this post


Link to post
Share on other sites
Demarest
I was referring to the limit of car saving garages. I know VC was one above what it came with.

Share this post


Link to post
Share on other sites
Un3462

dem; added garage ranges as far as i could figure them out from old docs and the sa ipls. there's room for 20 garages with 4 cars each in the sa savegame though, but i think that last garage entry is used for other garages which can contain more than 4 cars(?). some experimenting would likely be more conclusive.

Share this post


Link to post
Share on other sites
Demarest
Anything I can do to help ascertain that? I'm still interested in GTA3's limit. It set no limit on capacity, but I would think there has to be some boundaries.

Share this post


Link to post
Share on other sites
Un3462

i'm pretty sure about the ranges for gta3/vc. and i think each garage can save 4 cars max in both. in sa each garage can have 4 cars too, but only 19 car saving garages are defined in the ipls, and there are 20*4 car slots, so i'm not sure whether 46 also saves cars, or that it's used to give some other garage >4 capacity.

Share this post


Link to post
Share on other sites
Demarest
I think I follow about the SA garages. GTA3 garages did NOT have a limit thought. I myself have had 9 cars in Staunton before. I always assumed they capped them in VC because it was bigger and they needed to make sure they had enough room in saves to accomodate them all. So knowing saved car limit for GTA3 would be interesting and knowing quantity of car saving garages too. Any modder I've seen always plucks Portland to create one in Portland that I've seen.

Share this post


Link to post
Share on other sites
Un3462

it looks like gta3 has 18 car slots, and vc 31. what's left then is puzzling out how those are divided up between the garagetypes. which i'm not going to do, but you can probably figure it out if you need it (i don't have working copies of gta3/vc installed anymore).

Share this post


Link to post
Share on other sites
Demarest
31? That's very surprising. Just off the top of my head, I can think of 10 save car garages in the game. Is quantity of save car garages (limitwise) difficult to ascertain? I've read VC can only have one more so many times, I just accepted it. But already, a limit of 31 cars makes it seem as if they'd be independent limits. Likewise, I wonder if that is to say that GTA3 had unlimited garages so long as cars didn't go above 18.

Share this post


Link to post
Share on other sites
Un3462

ok, whoops. i found the 31 number in the vc savegame doc, but it's hex apparently, so the actual number is 49. so 4 cars per garage, and one garage with 5 would make sense.

 

also, i already put the garagetypes that save cars in my first post. you can't have unlimited garages, because if you use one type more than once, all garages of that type will have the same cars. so the number of car saving garages is limited to simply 3 for gta3, 12 for vc, and 19 (or maybe 20) for sa.

Share this post


Link to post
Share on other sites
Demarest
Ooooh. Limited by garage type. Makes sense. Thanks yet again, CyQ. colgate.gif

Share this post


Link to post
Share on other sites
Y_Less
So in theory, you could have every garage in the game with the same cars, for a bit of a teleporter.

Share this post


Link to post
Share on other sites
Un3462

should work, yes.

Share this post


Link to post
Share on other sites
spaceeinstein
I don't think it work. I accidentally tried that once. I parked a car into the garage. Then I head to a different garage (but same type) and stored another car and there's nothing in it. When I went to retrieve my car from either garages, the cars disappeared.

Share this post


Link to post
Share on other sites
Demarest
Somebody asked me a question that is answered by this fine thread, so BUMP.

Share this post


Link to post
Share on other sites
Demarest
I request a pin for this or a merging with an existing pinned thread depending on which CyQ and staff deem more appropriate. I can't speak for others, but I'm reaching for this info at LEAST once a week.

Share this post


Link to post
Share on other sites
jlf6

I don't understand what is the limit for locals. How munch can i use in external scripts ?

Share this post


Link to post
Share on other sites
Un3462

normal and external threads get 34 locals, 32 of which are variables (numbered 0-31), and two are timers (32, 33). missions get 1024 locals, again with 32 and 33 as timers.

Share this post


Link to post
Share on other sites
tod0001

Is there anyway to mod the code in GTAVC to allow more than 185 car-generators?

Or maybe check to see what area you are in then jump to a thread with these 185 generators, or to another thread with another 185 generators if in another area?

 

I have been modding my code for months now and adding a few parked cars every time I had MB open, but my new cars stopped appearing some time ago but, my code still works.

I have been wanting to ask about code limitations and found this, thanks for the info...

Edited by tod0001

Share this post


Link to post
Share on other sites
Demarest
It's a limitation of the game, not a thread. Don't forget you can always make simulated generators.

Share this post


Link to post
Share on other sites
J-Fox.GEMM

Any ideas:

 

How many Players

How many Cars

How many Actors

Share this post


Link to post
Share on other sites
Demarest
Bump! This thread should've been pinned. As I was searching for a different thread, I happened upon it and decided to bump it for the sake of information.

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

×

Important Information

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