TF2 Metal Calculator

A Modding Tool for Team Fortress 2

Updates

Version 1.1.1
  • Addition Support cli arguments
  • Adjustment Error messages format
deluxghost avatar
deluxghost Joined 1y ago
Offline
439 points Ranked 10712th
deluxghost
1mo

TF2 Metal Calculator in Command Line

1. TF2 Metal Calculator

OK, this is an offline command-line calculator, you can use this to calculate TF2 metals: Refined, Reclaimed and Scrap.

1.1. Usage

  • Use ref, rec, scrap and wep as metal unit.
  • Write metals together when calculating sum: 1.22ref2rec7wep
  • Write math expression: (2.33ref1rec * 3 + 3scrap) / 2
  • The answer is rounded to two decimals.
  • You can pass expressions to this tool as command-line arguments.

1.2. Why use this?

1.2.1. It support more complex expression

1.2.2. It can do batch operation

1.2.3. Its answers are accurate

Let's test 7.88ref * 3:


TF2 Metal Calc: Accurate


Windows 10 Calc: Inaccurate

Yes, a normal calculator can't calc TF2 metals accurately... If you try 7.88ref * 100, the answers will be totally different.

1.3. Source Code

This is also a Python library! It provide a class called Metal, use such code to import:
from tf2ref import Metal
Read the code for more information, and feel free to use it in your program under GPLv3 License.
Link

Files

Posts

  • How do I Download it? I just dragged it in my custom folder :T

    Bananite
  • SpillProff avatar
    SpillProff Joined 1y ago
    Offline
    157 points Ranked 22988th
    5 medals 1 rare
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • Returned 100 times Medal icon
    • 1 year a member Medal icon
    1mo
    The computer calculator can be accurate, just round it up to what it normally be for Team Fortress 2. That's what I did to calculator a dollar of refined at one point, which is now useless due to the economy rapidly changing.

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Authors
deluxghost

Submitter

deluxghost avatar
deluxghost Joined 1y ago
Offline
439 points Ranked 10712th

deluxghost
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
  • Paypal Donate

Game

Sign up to access this!

Category

License

GPLv3

Details

Attributes

IDE Used
Visual Studio Code
Development State
Beta
Compiled Language
Python
Operating System
Windows
Genre
Coding/Scripting

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 24 Downloads
  • 522 Views
  • 8 Posts
  • 1mo Submitted
  • 1mo Modified
  • 1mo Updated

Scores

  • Not yet rated
Sign up to access this!

More from Submitter

bcp.crwdcntrl.net tracking pixel