Quantcast

Jump to content

» «
Photo

[SA]Write values ​​into weapon.dat

11 replies to this topic
KillerChainsaw
  • KillerChainsaw

    Player Hater

  • Members
  • Joined: 04 Nov 2013

#1

Posted 01 December 2013 - 06:39 PM

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

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#2

Posted 02 December 2013 - 02:37 AM

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. 


KillerChainsaw
  • KillerChainsaw

    Player Hater

  • Members
  • Joined: 04 Nov 2013

#3

Posted 02 December 2013 - 03:11 AM

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 :(  :(


Node
  • Node

    War. War never changes.

  • Members
  • Joined: 31 May 2010
  • United-Kingdom

#4

Posted 02 December 2013 - 09:33 AM Edited by ChopTheDog., 02 December 2013 - 09:34 AM.

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.


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#5

Posted 02 December 2013 - 04:54 PM

You need to be able to analyze and understand function 0x5BE670 - _readWeaponDat.
Then you have to write CLEO SCM code.

KillerChainsaw
  • KillerChainsaw

    Player Hater

  • Members
  • Joined: 04 Nov 2013

#6

Posted 02 December 2013 - 05:17 PM

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:

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#7

Posted 02 December 2013 - 06:08 PM

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?

KillerChainsaw
  • KillerChainsaw

    Player Hater

  • Members
  • Joined: 04 Nov 2013

#8

Posted 02 December 2013 - 06:37 PM Edited by KillerChainsaw, 02 December 2013 - 06:38 PM.

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

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#9

Posted 02 December 2013 - 06:49 PM

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

KillerChainsaw
  • KillerChainsaw

    Player Hater

  • Members
  • Joined: 04 Nov 2013

#10

Posted 02 December 2013 - 07:08 PM Edited by KillerChainsaw, 03 December 2013 - 06:46 PM.

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


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#11

Posted 02 December 2013 - 07:16 PM Edited by fastman92, 02 December 2013 - 07:16 PM.

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

KillerChainsaw
  • KillerChainsaw

    Player Hater

  • Members
  • Joined: 04 Nov 2013

#12

Posted 03 December 2013 - 06:23 PM Edited by KillerChainsaw, 03 December 2013 - 06:45 PM.

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users