Menu

#5 the name of the ability does not appear on the organizational screen

None
closed
None
2
2014-07-05
2014-06-26
No

the name of the ability does not appear, only the value (see screenshot)

at the moment I still have no solution for it.

The only thing I noticed is a missing percent sign in the following line to display the percent sign in the output

sprintf((char*)line, "%s %d%%",NODE_NAME(node),(uword)((ability * 100) / 255));
1 Attachments

Discussion

  • Oliver Gantert

    Oliver Gantert - 2014-06-27
    • status: open --> accepted
    • assigned_to: Oliver Gantert
    • Group: -->
     
  • Oliver Gantert

    Oliver Gantert - 2014-06-27

    Added the percent sign in version 0.2a (2014-06-27)

     
  • Oliver Gantert

    Oliver Gantert - 2014-06-27

    Found and fixed the bug!

    Again, it's caused by a struct misalignment in tcdata.h

    struct _Ability
    {
    TCenum(AbilityE) Name;
    unsigned long Use;
    };

    changed to:

    struct _Ability
    {
    unsigned long Use;
    TCenum(AbilityE) Name;
    };

    This change will break savegames!

    Also fixed the missing percent sign behind "mein Anteil:" and added a whitespace in the escape route length (Länge).

     

    Last edit: Oliver Gantert 2014-06-27
  • Oliver Gantert

    Oliver Gantert - 2014-07-05
    • status: accepted --> closed
     

Log in to post a comment.