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

    3. Suggestions

Happy Holidays from the GTANet team!

[SA]Write values ​​into weapon.dat


KillerChainsaw
 Share

Recommended Posts

KillerChainsaw
I am wanting to write weapon.dat per CLEO, like fastman92 wrote in timecyc.dat, but I do not know how, can someone help me? :rol::rol:

I want to write the values ?? "damage" of colt45, writing in "range" of TEC9 and etc ...


The difficult is to write the right value :(

0A9E: writefile $hFILE size 128 from [email protected]

Link to comment
Share on other sites

TheGodfather.

fastman92 gave the source code of his timecycle editor u can see it & get some idea from it.What is more imp. is that you need to understand memory coding & functional coding.

Link to comment
Share on other sites

KillerChainsaw

Yes, but the values ​​are different, and I wanted a sample script, I'm doing a project and I want to modify the values ​​of weapons :/:/

 

Please, if any programmer to see this topic, help me please :(:(

Link to comment
Share on other sites

You should always try and find some documentation first if you do not understand something:

 

CLEO opcodes are documented here

 

Firstly, you would need to open the .dat file you're wanting to edit.

 

W8cMIgG.png

 

Then write to it:

 

EB5kLco.png

 

Then close it:

 

NQc2XF7.png

 

They are the basic steps to writing to a file using Sanny Builder.

Edited by ChopTheDog.
Link to comment
Share on other sites

You need to be able to analyze and understand function 0x5BE670 - _readWeaponDat.

Then you have to write CLEO SCM code.

Link to comment
Share on other sites

KillerChainsaw
HI, Fastman :lol:

I'm not very good with assembly, and was wondering how to get some values​​, and not all values of weapon.dat

example:

$ TEC9 INSTANT_HIT 25.0 30.0 372 -1 4 colt45 50 20 0.45 -0.05 0.11 0 0 0.75 1.0 11 15 12 6 11 7 99 3013

want to get only the "targetRange" that number is 30.0, but woe which addresses I use in 0A9E: writefile $ hFile size from 128 @ 0,can make a sample script?, please fastman :inlove:

Link to comment
Share on other sites

Sorry, i have no time currently, that's why it's best to be able to do something on your own.

Wait estimated ~week, unless someone else writes it.

 

Btw, why do you need to write a function to create weapon.dat if you can't create In-game Weapon Editor?

Link to comment
Share on other sites

KillerChainsaw
Thanks Fastman, if nobody answer the topic, or if you're not busy, can make a sample script?, Even if it takes a week.


I'm making a menu like Resident Evil 4, and may increase the powers of firearms, etc ...
Edited by KillerChainsaw
Link to comment
Share on other sites

I could make a script, but not In-game Weapon Editor - i won't write ~5000 lines of code just for you.

Only :writeNewWeaponDat

Link to comment
Share on other sites

KillerChainsaw

just one example of write values ​​into weapon.dat, i will do everything else :pp

Make a few examples that you can write targetRange, weaponRange, accuracy and etc ..not catch values but yes write values into weapon.dat

Edited by KillerChainsaw
Link to comment
Share on other sites

It's not difficult, i have no time for this nonetheless.

 

" else I do"

 

This sounds odd in English, you should better write "i will do everything else".

Edited by fastman92
Link to comment
Share on other sites

KillerChainsaw

Ok, i wait until you have time to spare, or if someone comment on the topic

 

This sounds odd in English, you should better write "i will do everything else".

I'm from Indonesia, it's difficult english

Edited by KillerChainsaw
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.