Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Phase Four Play Test Server Is Live for Phase Four - Armata Gaming

Discussion in 'Discussion' started by RJ, May 22, 2018.

  1. Schulze35

    Schulze35 At 23, I bought it all just to make sure. Clockwork Customer

    Joined:
    Mar 9, 2017
    Messages:
    174
    Likes Received:
    47
    Damn I might check it out. Good job
     
    • Like Like x 1
  2. RJ

    RJ no pay Developer Legend Clockwork Customer

    Joined:
    Mar 31, 2012
    Messages:
    1,324
    Likes Received:
    161
    I made a temporary fix to the server that I decided not to push to CW's official GitHub. Mainly because it'll make the player use CW's default language instead of their selected language, however it does fix every call to FormatCash(...) in Phase Four where a table would be returned instead of a string and thus fail to concatenate. This is because of the text being displayed as a regular string instead of using CW's language library.

    Line 199 to line 203 in sh_kernel.lua...

    From this:
    Code:
            if (singular) then
                output = {"CashAmountSingular", amount};
            else
                output = {"CashAmount", amount, lowerName and string.lower(cashName) or cashName};
            end;
    To this:
    Code:
            if (singular) then
                output = L(nil, "CashAmountSingular", amount);
            else
                output = L(nil, "CashAmount", amount, lowerName and string.lower(cashName) or cashName);
            end;
    So yeah, feel free to make this change on your own server in the interim until I get around to integrating some more localization so that this bug doesn't persist.
     
    • Good Coder Good Coder x 1
  3. RJ

    RJ no pay Developer Legend Clockwork Customer

    Joined:
    Mar 31, 2012
    Messages:
    1,324
    Likes Received:
    161
    Last edited by a moderator: Nov 1, 2020
  4. redcatjack

    redcatjack Moderator and Map Developer Staff Member Moderator

    Joined:
    Feb 5, 2013
    Messages:
    221
    Likes Received:
    30
    • Like Like x 1

Previous Readers (Total: 0)