Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

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

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

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

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

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

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

    2. Forum Support

    3. Suggestions

[Help] GTA Vice City pickups broken


deanthedog
 Share

Recommended Posts

Hello, I'm in need of some serious help. Idk why it started happening but I noticed my pickups in GTA Vice City have started to bug out and duplicate massively over themselves, leading to things like peds no longer dropping money / guns, being unable to pick up weapons from people and worst of all missions crashing.

 

TL;DR; pickups have duplicated themselves a bunch of times and now there are too many on the map for the game to work correctly, how do I delete them?

 

Screenshot attached for reference: https://i.imgur.com/SAJY3wa.png

 

SAJY3wa.png

 

Thanks!

Link to comment
Share on other sites

Seems caused by bad cleo script

Do have Cleo installed with cleo scripts?

If yes, did you play storyline and made savegames with active cleo script?

 

If yes, then you need to load savegame before cleo was installed and play only with a few good cleo scripts

 

The other savegames are corrupted, ask OrionSR if it's possible to repair

 

Edited by ZAZ
Link to comment
Share on other sites

3 hours ago, ZAZ said:

Seems caused by bad cleo script

Do have Cleo installed with cleo scripts?

If yes, did you play storyline and made savegames with active cleo script?

 

If yes, then you need to load savegame before cleo was installed and play only with a few good cleo scripts

 

The other savegames are corrupted, ask OrionSR if it's possible to repair

 

Thanks for the quick answer. And yes I do have CLEO scripts, specifically one of the tear gas. It seems it might've somehow caused the tear gas to duplicate over and over. I tried using the vice city SG editor but there's no way to delete pickups; only change them.

@OrionSR is it possible to repair this savegame and/or delete the extra added pickups? I've tried using the III/VC/SA limits adjuster but it seems the max amount of pickups are maxed out in this game meaning I actually cannot start missions or anything anymore because there are no more free pickup spaces in the map.

 

Thanks. (Btw sorry about the @. I can't message people on here yet.)

Link to comment
Share on other sites

Deleting pickups from saves corrupted by bad cleo scripts usually results in a corrupt save with deleted pickups.

 

I'm more familiar with San Andreas saves than Vice City... It looks like VC has objects associated with the pickups, so deleting the pickups with save edits seems risky and complex. Using a custom cleo script to delete extra pickups is probably the best option. Unfortunately, I don't even have VC setup for a simple test.

 

Please test this script to see if it will delete all bribes. I don't think it will work but the process of calculating the correct pickup handle is a lot easier if it does.

{$CLEO .cs}
//DeleteAllBribesVC.txt
//Test if index without UI will delete pickups
0001: wait 0 ms 
0215: destroy_pickup 0 
0215: destroy_pickup 1 
0215: destroy_pickup 2 
0215: destroy_pickup 3 
0215: destroy_pickup 4 
0215: destroy_pickup 5 
0215: destroy_pickup 6 
0215: destroy_pickup 7 
0215: destroy_pickup 8 
0215: destroy_pickup 9 
0215: destroy_pickup 10 
0215: destroy_pickup 11 
0215: destroy_pickup 12 
//004E: end_thread  // SCM version
05DC: end_custom_thread // CLEO version

GTAVC.multi.bt - Binary template for the 010 Editor that can parse most VC saves.
010 Editor by SweetScape - has a decent trial period.
Open the template and save file with the 010 Editor and run the template on the save.

 

Open the pickups structure within the pickup block. Use the VC Savegame Editor to help identify the coordinates of the offending pickups as this is basically the only identifying information in the pickup record. Record the index and unique identifier for each pickup to be deleted. The index is contained within brackets; for pickup[123] the index is 123. The uniqueIdentifier (UI) is a field of the pickup.

 

If the test code above deletes all bribes then modify the test script to include just the index of each pickup.
0215: destroy_pickup 123

 

Otherwise, you'll need to add the unique identifier: 
Handle = UI * 65536‬ + index

Edited by OrionSR
Link to comment
Share on other sites

Errr, sorry... care to explain things for me? I'm a little slow... I'm not exactly sure what to do, do I just place the GTAVC.multi.bt in the VC CLEO folder and run it...?

 

Edit: Alright, I think I understand a little. I ran the template on the save file, and ended up with a couple hundred pickups...

qL8nvnQ.png

 

Edit: Running your game with your DeleteAllBribesVC.cs as a CLEO script resulted in some weird invalid opcode error that stalled the game from running...
 

Spoiler

GTA VC CLEO v2.0.0.5 Log File
GTA VC v1.0
Loaded plugin VC.ClipboardControl.cleo
Loaded plugin VC.FileSystemOperations.cleo
Loaded plugin VC.IniFiles.cleo
Loaded plugin VC.IntOperations.cleo
Loaded plugin VC.MemoryModule.cleo
--Game Re-Init--
Released all scripts allocated memory
Allocated memory for script: "cleo\$RPV3L3S.cs", 2288
Loaded script "$RPV3L3" from "cleo\$RPV3L3S.cs"
Allocated memory for script: "cleo\DeleteAllBribesVC.cs", 449
Loaded script "DeleteA" from "cleo\DeleteAllBribesVC.cs"
Allocated memory for script: "cleo\manual_aiming.cs", 363
Loaded script "manual_" from "cleo\manual_aiming.cs"
Allocated memory for script: "cleo\multisave.cs", 347
Loaded script "multisa" from "cleo\multisave.cs"
Registered custom text: "FEH_SGA", "Game"
Error (incorrect opcode): DeleteA, 247B
Error (incorrect opcode): DeleteA, 4C43
Error (incorrect opcode): DeleteA, 4F45
Error (incorrect opcode): DeleteA, 2E20
Error (incorrect opcode): DeleteA, 7363
Error (incorrect opcode): DeleteA, 0D7D
Error (incorrect opcode): DeleteA, 2F0A
Error (incorrect opcode): DeleteA, 442F
Error (incorrect opcode): DeleteA, 6C65
Error (incorrect opcode): DeleteA, 7465
Error (incorrect opcode): DeleteA, 4165
Error (incorrect opcode): DeleteA, 6C6C
Error (incorrect opcode): DeleteA, 7242
Error (incorrect opcode): DeleteA, 6269
Error (incorrect opcode): DeleteA, 7365
Error (incorrect opcode): DeleteA, 4356
Error (incorrect opcode): DeleteA, 742E
Error (incorrect opcode): DeleteA, 7478
Error (incorrect opcode): DeleteA, 0A0D
Error (incorrect opcode): DeleteA, 2F2F
Error (incorrect opcode): DeleteA, 6554
Error (incorrect opcode): DeleteA, 7473
Error (incorrect opcode): DeleteA, 6920
Error (incorrect opcode): DeleteA, 2066
Error (incorrect opcode): DeleteA, 6E69
Error (incorrect opcode): DeleteA, 6564
Error (incorrect opcode): DeleteA, 2078
Error (incorrect opcode): DeleteA, 6977
Error (incorrect opcode): DeleteA, 6874
Error (incorrect opcode): DeleteA, 756F
Error (incorrect opcode): DeleteA, 2074
Error (incorrect opcode): DeleteA, 4955
Error (incorrect opcode): DeleteA, 7720
Error (incorrect opcode): DeleteA, 6C69
Error (incorrect opcode): DeleteA, 206C
Error (incorrect opcode): DeleteA, 6564
Error (incorrect opcode): DeleteA, 656C
Error (incorrect opcode): DeleteA, 6574
Error (incorrect opcode): DeleteA, 7020
Error (incorrect opcode): DeleteA, 6369
Error (incorrect opcode): DeleteA, 756B
Error (incorrect opcode): DeleteA, 7370
Error (incorrect opcode): DeleteA, 0A0D
Error (incorrect opcode): DeleteA, 3030
Error (incorrect opcode): DeleteA, 3130
Error (incorrect opcode): DeleteA, 203A
Error (incorrect opcode): DeleteA, 6177
Error (incorrect opcode): DeleteA, 7469
Error (incorrect opcode): DeleteA, 3020
Error (incorrect opcode): DeleteA, 6D20
Error (incorrect opcode): DeleteA, 2073
Error (incorrect opcode): DeleteA, 0A0D
Error (incorrect opcode): DeleteA, 3230
Error (incorrect opcode): DeleteA, 3531
Error (incorrect opcode): DeleteA, 203A
Error (incorrect opcode): DeleteA, 6564
Error (incorrect opcode): DeleteA, 7473
Error (incorrect opcode): DeleteA, 6F72
Error (incorrect opcode): DeleteA, 5F79
Error (incorrect opcode): DeleteA, 6970
Error (incorrect opcode): DeleteA, 6B63
Error (incorrect opcode): DeleteA, 7075
Error (incorrect opcode): DeleteA, 3020
Error (incorrect opcode): DeleteA, 0D20
Error (incorrect opcode): DeleteA, 300A
Error (incorrect opcode): DeleteA, 3132
Error (incorrect opcode): DeleteA, 3A35
Error (incorrect opcode): DeleteA, 6420
Error (incorrect opcode): DeleteA, 7365
Error (incorrect opcode): DeleteA, 7274
Error (incorrect opcode): DeleteA, 796F
Error (incorrect opcode): DeleteA, 705F
Error (incorrect opcode): DeleteA, 6369
Error (incorrect opcode): DeleteA, 756B
Error (incorrect opcode): DeleteA, 2070
Error (incorrect opcode): DeleteA, 2031
Error (incorrect opcode): DeleteA, 0A0D
Error (incorrect opcode): DeleteA, 3230
Error (incorrect opcode): DeleteA, 3531
Error (incorrect opcode): DeleteA, 203A
Error (incorrect opcode): DeleteA, 6564
Error (incorrect opcode): DeleteA, 7473
Error (incorrect opcode): DeleteA, 6F72
Error (incorrect opcode): DeleteA, 5F79
Error (incorrect opcode): DeleteA, 6970
Error (incorrect opcode): DeleteA, 6B63
Error (incorrect opcode): DeleteA, 7075
Error (incorrect opcode): DeleteA, 3220
Error (incorrect opcode): DeleteA, 0D20
Error (incorrect opcode): DeleteA, 300A
Error (incorrect opcode): DeleteA, 3132
Error (incorrect opcode): DeleteA, 3A35
Error (incorrect opcode): DeleteA, 6420
Error (incorrect opcode): DeleteA, 7365
Error (incorrect opcode): DeleteA, 7274
Error (incorrect opcode): DeleteA, 796F
Error (incorrect opcode): DeleteA, 705F
Error (incorrect opcode): DeleteA, 6369
Error (incorrect opcode): DeleteA, 756B
Error (incorrect opcode): DeleteA, 2070
Error (incorrect opcode): DeleteA, 2033
Error (incorrect opcode): DeleteA, 0A0D
Error (incorrect opcode): DeleteA, 3230
Error (incorrect opcode): DeleteA, 3531
Error (incorrect opcode): DeleteA, 203A
Error (incorrect opcode): DeleteA, 6564
Error (incorrect opcode): DeleteA, 7473
Error (incorrect opcode): DeleteA, 6F72
Error (incorrect opcode): DeleteA, 5F79
Error (incorrect opcode): DeleteA, 6970
Error (incorrect opcode): DeleteA, 6B63
Error (incorrect opcode): DeleteA, 7075
Error (incorrect opcode): DeleteA, 3420
Error (incorrect opcode): DeleteA, 0D20
Error (incorrect opcode): DeleteA, 300A
Error (incorrect opcode): DeleteA, 3132
Error (incorrect opcode): DeleteA, 3A35
Error (incorrect opcode): DeleteA, 6420
Error (incorrect opcode): DeleteA, 7365
Error (incorrect opcode): DeleteA, 7274
Error (incorrect opcode): DeleteA, 796F
Error (incorrect opcode): DeleteA, 705F
Error (incorrect opcode): DeleteA, 6369
Error (incorrect opcode): DeleteA, 756B
Error (incorrect opcode): DeleteA, 2070
Error (incorrect opcode): DeleteA, 2035
Error (incorrect opcode): DeleteA, 0A0D
Error (incorrect opcode): DeleteA, 3230
Error (incorrect opcode): DeleteA, 3531
Error (incorrect opcode): DeleteA, 203A
Error (incorrect opcode): DeleteA, 6564
Error (incorrect opcode): DeleteA, 7473
Error (incorrect opcode): DeleteA, 6F72
Error (incorrect opcode): DeleteA, 5F79
Error (incorrect opcode): DeleteA, 6970
Error (incorrect opcode): DeleteA, 6B63
Error (incorrect opcode): DeleteA, 7075
Error (incorrect opcode): DeleteA, 3620
Error (incorrect opcode): DeleteA, 0D20
Error (incorrect opcode): DeleteA, 300A
Error (incorrect opcode): DeleteA, 3132
Error (incorrect opcode): DeleteA, 3A35
Error (incorrect opcode): DeleteA, 6420
Error (incorrect opcode): DeleteA, 7365
Error (incorrect opcode): DeleteA, 7274
Error (incorrect opcode): DeleteA, 796F
Error (incorrect opcode): DeleteA, 705F
Error (incorrect opcode): DeleteA, 6369
Error (incorrect opcode): DeleteA, 756B
Error (incorrect opcode): DeleteA, 2070

 

Thanks

Edited by deanthedog
Edit: understanding a bit but still confused, still trying to figure this out. QUOTE REMOVED
Link to comment
Share on other sites

Well... that's unexpected. Oh! I think I found the problem. I'll update the script in my original post. Done!

(So please remove your giant quote; it'll look funny when I edit and doesn't help anyway.) Thanks!

 

Depending on your results, you may want to try these more limited test codes; they illustrate the process more clearly.

________________________________________________

 

Modify the test script by commenting out or removing all of the destroy commands. Try these replacements lines one at a time:

 

A. Standard delete using the global variable used to create the first bribe.
0215: destroy_pickup $110 // #BRIBE type 15 at 393.9 -60.2 11.5

 

B. Open the global_variable space in Script block 0, Subblock_A and hard code the full value of the handle stored in $110.

In my save the value is 131072, or 00020000 in hex. This corresponds to a UI of 2 (0002) and an index of 0 (0000). 

0215: destroy_pickup 131072 // (2 * 0x10000 + 0)

 

C. This should have the same results as using the global variable, but works the math for you. Open Pickup[0] and record the UI and Index in the codes below.

[email protected] = 2 // uniqueIdentifier

[email protected] *= 65536‬ 

[email protected] += 0 // index

0215: destroy_pickup [email protected]

 

D. Deleting without the UI again, but using a variable to store the handle. (Assumes the first bribe is always at pickup index 0.)

[email protected] = 0

0215: destroy_pickup [email protected]

 

E. Confirming the original experiment.

0215: destroy_pickup 0

____________________________________________________

 

Note that the hex window of a hex editor will display bytes in little-endian format.

A value of 0x1A2B3C4D is encoded with the least significant byte first: 4D 3C 2B 1A

 

Note: What I marked as the objectIndex is wrong. I'll revert that back to unknown soon. I have no idea how the pickup links to the object. But be aware that if you are using coordinates as a search parameter you'll hit on the object coordinates before the pickups.

 

Edited by OrionSR
Link to comment
Share on other sites

21 hours ago, deanthedog said:

 

 And yes I do have CLEO scripts, specifically one of the tear gas. It seems it might've somehow caused the tear gas to duplicate over and over.

 

Did you remove the suspected tear gas cleo script?

 

If yes, did you tried to load the last savegame and play around and tried to play mission

Is it still buggy?

where did you got the tear gas script? can you give link?

what else cleo scripts do you have?

Link to comment
Share on other sites

11 hours ago, OrionSR said:

<snip>

Sorry... I don't understand what you said at all.... I just want to delete the tear gas and camera pickups from my game as there are about a hundred of them and they are preventing any more icons (mission markers etc) from being rendered in the game...

2 hours ago, ZAZ said:

 

Did you remove the suspected tear gas cleo script?

 

If yes, did you tried to load the last savegame and play around and tried to play mission

Is it still buggy?

where did you got the tear gas script? can you give link?

what else cleo scripts do you have?

Yes, I've since removed the teargas cleo script from my game 3 or 4 saves ago, but by then it was a bit too late. As for where I got it... idk. All I know is that it placed tear gas next to the ocean beach hotel when you walk out of the front doors and to your right...

the only other cleo scripts I have are manual aiming, multisave (not sure what this is) and VCS-style swimming mod.

Link to comment
Share on other sites

VCS-style swimming mod  looks okay, it spawns an object, but only if player is in water

 

manual aiming manipulate a lot of memory adresses, i recomand to remove it when playing storyline, unless it works fine and you love it

 

where did you got the tear gas script? can you give link?

Or decompile the script with Sannybuilder and post it here?

 

But at the end i think you have to use an older savegame and play storyline again

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
 Share

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