Jump to content

Photo

Help Modding: Station Automatic Pricing (Rework)


1 reply to this topic

#1
dcarde007

dcarde007

    Stranger

  • Members
  • Pip
  • 7 posts

The vanilla station auto pricing works wonderfully on NPC stations with fixed and known storage capacities. However, it absolutely sucks on player made stations with variable storage capacities. Therefore, I have created a formula that adjusts price based on Supply and Demand. However, I cannot figure out how to implement it. I coded MD back during T3, so I understand the basics, but not the intricacies of T4.

Please help me by providing me with an example or direct me to a mod that does something similar. I'm seeking the following information:

1. A method for the player to set the minimum quantity of each ware that they want retained on the station.

2. Setting variables with how many of each ware that the station made in the last hour (Logistics chart data).

3. Setting variables with how many of each ware that the station sold in the last hour (Logistics chart data).

4. A method to adjust the price of each ware.

 

Thank you!



#2
dcarde007

dcarde007

    Stranger

  • Members
  • Pip
  • 7 posts

oh! i upgraded to 2.60 from 2.50 and now that we can manually allocate storage, my concerns are gone! tho... i still would like a demand based valuation for players instead of a stock valuation





Reply to this topic



  


Page loaded in: 0.949 seconds