360haven works best with JavaScript enabled
Resident Evil 5 Checksum Calculation help
Loading
Register
Results 1 to 7 of 7
  1. #1
    Banned Noob
    Vincent Valentine is offline
    Join Date : Aug 2011
    Location : The Devils Seat
    Posts : 2,424
    Array
    Twitter: @

    Resident Evil 5 Checksum Calculation help

    Okay so i know where the checksum starts and ends the offsets are D008 - D00B. I need to know what type it is and if someone can calculate it or tell me how to code a calculation so i can update my new verison of the Resident Evil 5 editor that i am currently working on. The checksum for this current save is 92561417.

    Here is the save: RE5 Save.rar

    Again if someone finds out what type of checksum it is and how to code a button that will calculate the checksum then please post a code :)

    Thanks to whoever helps me :) <3 lol


  2. #2
    Banned Noob
    Vincent Valentine is offline
    Join Date : Aug 2011
    Location : The Devils Seat
    Posts : 2,424
    Array
    Twitter: @

    Re: Resident Evil 5 Checksum Calculation help

    Can someone take a look? Cause im almost done with the v2 of my editor and i don't want to rely on another editor for the checksum /:

  3. #3
    Administrator

    feudalnate is offline
    Join Date : Nov 2010
    Location : Canada
    Age : 27
    Posts : 321
    Array

    Re: Resident Evil 5 Checksum Calculation help

    It's some simple addition and subtraction. A count of all UInt32 from 0xC to EOF (since file size is static, all data is covered by the loop) subtracting 0x100000000 from the result until result value is under 0x100000000

    Code:
        '// Pass extracted data (not STFS)
        Function ComputeHash(ByVal File As String) As UInt32
            Dim Reader As New PackageIO.Reader(File, Endian.Big, &HC)
            Dim Hash As UInt64 = 0
            For i As Int32 = 0 To (19376 / 4) - 1
                Hash += Reader.ReadUInt32()
            Next
            Reader.Close(True, True)
            Do While Hash > &H100000000UL
                Hash -= &H100000000UL
            Loop
            Return Convert.ToUInt32(Hash)
        End Function
    
        Function ReadHash(ByVal File As String) As UInt32
            Dim Reader As New PackageIO.Reader(File, Endian.Big, 8)
            Dim Hash As UInt32 = Reader.ReadUInt32
            Reader.Close(True, True)
            Return Hash
        End Function
    
        Sub WriteHash(ByVal File As String)
            Dim Hash As UInt32 = ComputeHash(File)
            Dim Writer As New PackageIO.Writer(File, Endian.Big, 8)
            Writer.WriteUInt32(Hash)
            Writer.Close(True, True)
        End Sub
    Downloads : 47 || Uploads : 11 || Rep Power : 3298 || Posts : 321 || Thanks : 55 || Thanked 923 Times in 182 Posts


    "If you can get 30 seconds of fun, you can pretty much stretch that out to be an entire game. So you can have all the great graphics, all the different characters,
    and lots of different weapons with amazing effects but if you don't nail that 30 seconds, you're not going to have a great game." ~Jamie Griesemer (Halo 2 Design Lead)

  4. The Following User Says Thank You to feudalnate For This Useful Post:


  5. #4
    Banned Noob
    Vincent Valentine is offline
    Join Date : Aug 2011
    Location : The Devils Seat
    Posts : 2,424
    Array
    Twitter: @

    Re: Resident Evil 5 Checksum Calculation help

    Thanks but this question might sound stupid but where would i put the code in? Like do i use this code for a button or what? and thanks Feudal <3

    EDIT: Do you have team viewer? Cause when i copy and paste them in i get these errors

    "Too many arguments to 'Public Sub Close()" where the (True, True) are in the code

  6. #5
    Administrator

    feudalnate is offline
    Join Date : Nov 2010
    Location : Canada
    Age : 27
    Posts : 321
    Array

    Re: Resident Evil 5 Checksum Calculation help

    I couldn't say how you should go about using them since I don't know how you're handling the data, I'd assume you would have to make some adjustments to either the code I posted or your own or both. As for the error, it's because you're using an older version of PackageIO. Download the latest one and reference it instead of the version you have now or take out one (or two depending on the version you have) of the True arguments
    Downloads : 47 || Uploads : 11 || Rep Power : 3298 || Posts : 321 || Thanks : 55 || Thanked 923 Times in 182 Posts


    "If you can get 30 seconds of fun, you can pretty much stretch that out to be an entire game. So you can have all the great graphics, all the different characters,
    and lots of different weapons with amazing effects but if you don't nail that 30 seconds, you're not going to have a great game." ~Jamie Griesemer (Halo 2 Design Lead)

  7. The Following User Says Thank You to feudalnate For This Useful Post:


  8. #6
    Banned Noob
    Vincent Valentine is offline
    Join Date : Aug 2011
    Location : The Devils Seat
    Posts : 2,424
    Array
    Twitter: @

    Re: Resident Evil 5 Checksum Calculation help

    okay that fixed it but i have one more error now this is what it looks like and i put the code under a button and idk if thats where i was sappost to put it cause the button should calculate a text box or do i need a text box?

    picture of the error


    This is what my editor looks like right now

  9. #7
    Haven Martial Arts God


    cybersam is online now
    Join Date : Jan 2011
    Posts : 1,193
    Array

    Re: Resident Evil 5 Checksum Calculation help

    uh... you can't put a function inside a sub...
    place it outside sub and call it instead you need to put the value it is returned in to a variable or write it directly to the file
    Downloads : 17 || Uploads : 2 || Rep Power : 5161 || Posts : 1,193 || Thanks : 43 || Thanked 4,043 Times in 398 Posts


    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
    and the Universe trying to produce bigger and better idiots.
    So far, the Universe is winning.

    Rich Cook

 

 

Similar Threads

  1. Replies: 2
    Last Post: 01-19-2015, 08:38 PM
  2. [News] Resident Evil 1 Remake Trailer (PS4) - Resident Evil Remastered
    By THUMBS in forum PS4 News, Updates, and Rumors
    Replies: 8
    Last Post: 09-03-2014, 08:59 AM
  3. [YouTube] Resident Evil - A Complete History of Resident Evil Games
    By THUMBS in forum Youtube Famous
    Replies: 0
    Last Post: 08-07-2014, 05:43 PM
  4. Resident Evil 5 Checksum Calculation
    By Gh0stblade in forum Help & Support
    Replies: 0
    Last Post: 07-16-2012, 04:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.
     

About 360haven

    360haven is an Forum Devoted To Game modding Fans from all over the world.

    An Awesome Community of Xbox 360 Gamers, Modders and Developers who Create & Share Tutorials, Applications, Gfx, Trainers and Gamesaves.

    A haven for the l33t.
    A scarce paradise for modders.

Like this page

Google+