Modding Discussion Tenant and sellers restock with different item.will they?

Discussion in 'Starbound Modding' started by amirmiked12, Mar 23, 2017.

  1. amirmiked12

    amirmiked12 Parsec Taste Tester

    didnt work can u test it?
     

    Attached Files:

  2. Cyel

    Cyel Scruffy Nerf-Herder

    Your file isn't even a valid zip archive ¯\_(ツ)_/¯

    This worked for me, at a rotate time of 60 seconds for tests (note that you have to unload/reload them in order for the stocks to rotate; for example by quitting the world then comming back):
     

    Attached Files:

  3. amirmiked12

    amirmiked12 Parsec Taste Tester

    haha..i just waited near them and waited for them a day to change their stocks...lol
     
  4. amirmiked12

    amirmiked12 Parsec Taste Tester

    sorry i could make zip but first i made .rar but forum didnt accept and then just changed its extension to .zip
    my bad.
     
  5. amirmiked12

    amirmiked12 Parsec Taste Tester

    and how many seconds in game not real life ,for day and night cycle ?
     
  6. Cyel

    Cyel Scruffy Nerf-Herder

    From this, "A planet's day length varies from 12 to 17 minutes in real time". The only way to know exactly would be to use world.dayLength(), world.day() or world.timeOfDay(), which implies Lua scripting, so your easiest bet would be to average at 14*60 or something like that
     
  7. amirmiked12

    amirmiked12 Parsec Taste Tester

    i submitted a mod and mentioned ur name in it ..tnx for helping bro.
    and tnx all of u guyz
     
  8. amirmiked12

    amirmiked12 Parsec Taste Tester

    my mod makes it 86400 ..it mean the game should pass 24 real hours for them to change??
    im a little bit confused about this
     
  9. Cyel

    Cyel Scruffy Nerf-Herder

    Yes. 60 seconds * 60 minutes * 24 hours = 86400 seconds in a day.

    This is regardless of if you spend 24 hours in game or not, it uses the system's time to generate the merchant's seed. An in-game day would be between 840 and 1020 seconds.
     
    Last edited: Mar 25, 2017
    amirmiked12 likes this.
  10. amirmiked12

    amirmiked12 Parsec Taste Tester

    tnx ima update my mod
     
  11. amirmiked12

    amirmiked12 Parsec Taste Tester

    i just dont know why nobody ever think about this idea.or didnt make?
     

Share This Page