Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

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

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

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

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

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

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

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

    2. Forum Support

    3. Site Suggestions

deanthedog

[Help] GTA Vice City pickups broken

Recommended Posts

deanthedog

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!

Share this post


Link to post
Share on other sites
ZAZ

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

Share this post


Link to post
Share on other sites
deanthedog
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.)

Share this post


Link to post
Share on other sites
OrionSR

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

Share this post


Link to post
Share on other sites
deanthedog

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

Share this post


Link to post
Share on other sites
OrionSR

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

Share this post


Link to post
Share on other sites
ZAZ
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?

Share this post


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

Share this post


Link to post
Share on other sites
ZAZ

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


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