Jump to content

gta3/vc/sa limits


Un3462

Recommended Posts

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
  • Like 2
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

GTA3 - 32

GTAVC - 32

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

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.

Link to comment
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.
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
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.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 months later...

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
Link to comment
Share on other sites

  • 2 months later...
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.
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
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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