1. Forum moved (you can use login and pass from old forum)
  2. Many discussions moved to the bugtracker

APOC reversing

Discussion in 'Coding' started by Skin36, Oct 1, 2015.

  1. Istrebitel

    Istrebitel Well-Known Member Official Developer Administrator
    64/112

    Joined:
    Aug 8, 2016
    Messages:
    189
    Likes Received:
    80
    Best Answers:
    1
    Aaaaaand, further testing, at least with my version of Apoc, confirms that the formula above is correct, as well as that Roger Wong guide is wrong (again).

    There is no "weighted" encumbrance, every item just adds it's weight. I checked with medikits, laser rifles, armor, stun grapples - everything just adds it's weight to the encumbrance (I've confirmed encumbrance values with Apoc'd as well as ingame speed display - for example, medikit + 3 grenades equals a megapol helm, 3+3x2 = 9)

    As to why they add 1/2, I have no idea. Must be an oversight in the original formula. Maybe they just wanted to ensure it's rounded, not truncated?
     
    makus likes this.
  2. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    59
    Likes Received:
    10
    Best Answers:
    0
    in this formula is not used mathematical processor, so integer division.
     
  3. Istrebitel

    Istrebitel Well-Known Member Official Developer Administrator
    39/56

    Joined:
    Aug 8, 2016
    Messages:
    189
    Likes Received:
    80
    Best Answers:
    1
    I that case I think they just wanted to make it so that it's rounding, not truncating, that's why they added 1/2 that way
     
  4. Pss

    Pss New Member Programmer
    3/28

    Joined:
    Oct 23, 2017
    Messages:
    3
    Likes Received:
    3
    Best Answers:
    0
    Is there shared disassembling project somewhere? Like IDA files? I saw you renamed some variables, subs, made pseudocode, etc.
     
    makus likes this.
  5. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    59
    Likes Received:
    10
    Best Answers:
    0
    No, these files are only on my local computer. I would not like to share the database, according to some estimates.
     
    Last edited by a moderator: Oct 24, 2017
    makus likes this.
  6. Pss

    Pss New Member Programmer
    3/28

    Joined:
    Oct 23, 2017
    Messages:
    3
    Likes Received:
    3
    Best Answers:
    0
    Okaaaaaay. But can you help set up IDA? I mean, what version did you use? What settings? What addons/plugins? Because mine result is half of file (ufo2p.exe) is black/not analyzed, a lot of errors (constant instead of commands, commands instead of constants, etc), unable to pseudocode to non-32-bit functions, mix of 32 bit and 16 bit because of dos4g...
     
    makus likes this.
  7. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    59
    Likes Received:
    10
    Best Answers:
    0
  8. Yataka Shimaoka

    Yataka Shimaoka Active Member Tester Translator/Writer
    18/28

    Joined:
    May 3, 2017
    Messages:
    44
    Likes Received:
    24
    Best Answers:
    0
    You seem like you dual posted, bugged?
     
    makus likes this.
  9. makus

    makus Designer, forum admin Administrator Designer/Artist
    64/112

    Joined:
    Sep 24, 2014
    Messages:
    206
    Likes Received:
    31
    Best Answers:
    2
    double click)
    can give you moderator group
     

Share This Page