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

    Joined:
    Aug 8, 2016
    Messages:
    189
    Likes Received:
    82
    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

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

    Istrebitel Well-Known Member Official Developer Administrator

    Joined:
    Aug 8, 2016
    Messages:
    189
    Likes Received:
    82
    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

    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

    Joined:
    Apr 5, 2015
    Messages:
    62
    Likes Received:
    16
    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

    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

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

    Yataka Shimaoka Well-Known Member Tester Translator/Writer

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

    makus Designer, forum admin Administrator Designer/Artist

    Joined:
    Sep 24, 2014
    Messages:
    226
    Likes Received:
    40
    Best Answers:
    2
    double click)
    can give you moderator group
     
  10. Skin36

    Skin36 Well-Known Member Official Developer Administrator

    Joined:
    Apr 5, 2015
    Messages:
    62
    Likes Received:
    16
    Best Answers:
    0
    I found a way to include in the game a mode of diplomacy

    [​IMG]
     
    Last edited by a moderator: Jan 13, 2018
    FilmBoy84 and makus like this.
  11. makus

    makus Designer, forum admin Administrator Designer/Artist

    Joined:
    Sep 24, 2014
    Messages:
    226
    Likes Received:
    40
    Best Answers:
    2
    Filmboy
     
    FilmBoy84 likes this.
  12. FilmBoy84

    FilmBoy84 Well-Known Member Tester Researcher

    Joined:
    Oct 9, 2017
    Messages:
    70
    Likes Received:
    91
    Best Answers:
    9
    Just a follow up to my post regarding the diplomacy screen skin found:

    So we still do not know where the Debug/Alpha diplomacy screen went sadly.
    Still a great find by Skin though and I hope to have a play with it this this week :)
     
  13. Creator

    Creator Member Programmer Researcher

    Joined:
    Jan 4, 2018
    Messages:
    6
    Likes Received:
    8
    Best Answers:
    0
    It is better to write relationships in Ufopedia and update them in the game. It will be more comprehensible and convenient.
     

Share This Page