KillerChainsaw Posted December 1, 2013 Share Posted December 1, 2013 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? 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 More sharing options...
TheGodfather. Posted December 2, 2013 Share Posted December 2, 2013 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 More sharing options...
KillerChainsaw Posted December 2, 2013 Author Share Posted December 2, 2013 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 More sharing options...
Node Posted December 2, 2013 Share Posted December 2, 2013 (edited) 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. Then write to it: Then close it: They are the basic steps to writing to a file using Sanny Builder. Edited December 2, 2013 by ChopTheDog. Link to comment Share on other sites More sharing options...
fastman92 Posted December 2, 2013 Share Posted December 2, 2013 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 More sharing options...
KillerChainsaw Posted December 2, 2013 Author Share Posted December 2, 2013 HI, Fastman 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 Link to comment Share on other sites More sharing options...
fastman92 Posted December 2, 2013 Share Posted December 2, 2013 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 More sharing options...
KillerChainsaw Posted December 2, 2013 Author Share Posted December 2, 2013 (edited) 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 December 2, 2013 by KillerChainsaw Link to comment Share on other sites More sharing options...
fastman92 Posted December 2, 2013 Share Posted December 2, 2013 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 More sharing options...
KillerChainsaw Posted December 2, 2013 Author Share Posted December 2, 2013 (edited) just one example of write values into weapon.dat, i will do everything else Make a few examples that you can write targetRange, weaponRange, accuracy and etc ..not catch values but yes write values into weapon.dat Edited December 3, 2013 by KillerChainsaw Link to comment Share on other sites More sharing options...
fastman92 Posted December 2, 2013 Share Posted December 2, 2013 (edited) 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 December 2, 2013 by fastman92 Link to comment Share on other sites More sharing options...
KillerChainsaw Posted December 3, 2013 Author Share Posted December 3, 2013 (edited) 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 December 3, 2013 by KillerChainsaw Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now