Results 1 to 12 of 16

Thread: How does the system calculate the average of prices

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Master Sorcerer JimIzPro's Avatar
    Join Date
    Mar 2018
    Location
    Philippines
    Posts
    2,151

    Default How does the system calculate the average of prices

    How does the system calculate the average of prices?

    Player trades and vends or there's a fixed price

    and also, why are there some items that have no value checks

    Founder of GrowTube | Film Director of Growtopia | Growtopia Journalist
    RISK - A Love Story | The Ruined (Growtopia Film)

  2. #2
    Master Sorcerer GrowPixel's Avatar
    Join Date
    Feb 2018
    Location
    Gliese 581 d
    Posts
    1,308

    Default

    It would be better to keep it secret because of price manipulators.
    Legendary | 2013 | Epic Quest | Better Suggestion

    My Last Suggestion; Achievement Rewards Update!

  3. #3
    Banned
    Join Date
    Mar 2019
    Location
    Espoo, Finland
    Posts
    3,287

    Default Ephus speaking..

    How to manipulate for example, Kudo's carriage price:

    Take one or two alts, trade the carriage for 10-20wls cheaper several times, and boom!


    Do not do this.

    I don't know if this issue has already been handled.

  4. #4
    Master Sorcerer JimIzPro's Avatar
    Join Date
    Mar 2018
    Location
    Philippines
    Posts
    2,151

    Default

    Quote Originally Posted by HugeLock View Post
    How to manipulate for example, Kudo's carriage price:

    Take one or two alts, trade the carriage for 10-20wls cheaper several times, and boom!


    Do not do this.

    I don't know if this issue has already been handled.
    Same thought man. If the unpopular items have no value checks, about 500 people can just trade an unpopular item with no value check several times for a price that is too less or too high from the average to tell the system that this is the average that should be showing on the Digivends

    Founder of GrowTube | Film Director of Growtopia | Growtopia Journalist
    RISK - A Love Story | The Ruined (Growtopia Film)

  5. #5
    Master Sorcerer JimIzPro's Avatar
    Join Date
    Mar 2018
    Location
    Philippines
    Posts
    2,151

    Default

    answer answer answer

    Founder of GrowTube | Film Director of Growtopia | Growtopia Journalist
    RISK - A Love Story | The Ruined (Growtopia Film)

  6. #6
    Master Sorcerer R4Z's Avatar
    Join Date
    May 2015
    Location
    IDK..I'm lost...
    Posts
    3,251

    Default

    Quote Originally Posted by JimIzPro View Post
    answer answer answer
    it worked with trade too. when u trade, it say if u paying overprice or not. wow

    IGN: R4Z

    vv I Provide Services To Most Stuff In Game vv


  7. #7
    Administrator Starkos's Avatar
    Join Date
    Oct 2017
    Location
    Abu Dhabi, UAE
    Posts
    645

    Default

    We'd really rather not get into specifics on this one in order to reduce the possibility of manipulation. We've done a few things to hedge against it already, but you can never be too careful, y'know?

    Even without knowing how it works behind the scenes, I really hope you all enjoy the update. We've been working on this one for a while! I know it may seem like a small thing, these pricing checks, but believe me, getting all the tracking in place and funneling it correctly was a ton of work!

  8. #8
    Master Sorcerer Chem's Avatar
    Join Date
    Jun 2017
    Location
    Unstable
    Posts
    4,839

    Default

    Quote Originally Posted by JimIzPro View Post
    How does the system calculate the average of prices?

    Player trades and vends or there's a fixed price

    and also, why are there some items that have no value checks
    I wanted to ask the very same thing.
    ~Chemmie
    Discord: Chem #7714

  9. #9
    Lesser Wizard
    Join Date
    Jun 2018
    Location
    Nowhere
    Posts
    349

    Default

    Quote Originally Posted by JimIzPro View Post
    How does the system calculate the average of prices?

    Player trades and vends or there's a fixed price

    and also, why are there some items that have no value checks
    Code:
    std::map<short, float> prices;
    
    void OnTrade(int item, int count, int locks)
    {
      float price = (float)locks / (float)count;
      bool isPer = price < 1;
      if (isPer)
        prices[item] = (float)(-((float)count / (float)locks) + prices[item]) / 2;
      else 
        prices[item] = (float)(price + prices[item]) / 2;
    }
    somewhat how I think it works (average so one price does not overwrite another immediately

    - - - Updated - - -

    Quote Originally Posted by Starkos View Post
    We'd really rather not get into specifics on this one in order to reduce the possibility of manipulation. We've done a few things to hedge against it already, but you can never be too careful, y'know?

    Even without knowing how it works behind the scenes, I really hope you all enjoy the update. We've been working on this one for a while! I know it may seem like a small thing, these pricing checks, but believe me, getting all the tracking in place and funneling it correctly was a ton of work!
    "a while"
    literally changed the trade function to also calculate prices stored in a std::map *** is wrong with you how's that a while's worth of work

  10. #10
    Master Sorcerer JimIzPro's Avatar
    Join Date
    Mar 2018
    Location
    Philippines
    Posts
    2,151

    Default

    Quote Originally Posted by pannenkoek2012 View Post
    "a while"
    literally changed the trade function to also calculate prices stored in a std::map *** is wrong with you how's that a while's worth of work
    the hell is your problem

    Founder of GrowTube | Film Director of Growtopia | Growtopia Journalist
    RISK - A Love Story | The Ruined (Growtopia Film)

  11. #11
    Lesser Wizard GodEater's Avatar
    Join Date
    Oct 2016
    Location
    In Front of my laptop
    Posts
    486

    Default

    I wonder why these eggs are cheap.
    Name:  Screenshot_2020-01-02-21-20-28-192_com.rtsoft.growtopia.png
Views: 101
Size:  472.4 KB

    IGN: FULLOFREGRET
    Leader of Egg Guild
    Instagram: @fullofregret.gt
    Discord:f FullOfRegret#4466
    YouTube Channel: FullOfRegret Official

  12. #12
    Lesser Wizard Coldshots's Avatar
    Join Date
    Nov 2019
    Location
    Location
    Posts
    127

    Default

    Quote Originally Posted by GodEater View Post
    I wonder why these eggs are cheap.
    Name:  Screenshot_2020-01-02-21-20-28-192_com.rtsoft.growtopia.png
Views: 101
Size:  472.4 KB
    Imma sell my eggs for 25/1 then
    I have been playing this game since 2016!

    I'm the guy who often misspelled growtopia to "groetopia"

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •