Storage Multiplier

Results 1 to 18 of 18
  1. #1
    Account Upgraded | Title Enabled! Donnchadh is offline
    MemberRank
    Aug 2011 Join Date
    205Posts

    Storage Multiplier

    All,

    taking a break from battle code, but I will return, I promise.

    Just speculating on the interest for the ability to control the storage sizes via config?

    Thinking:
    Code:
    define("STORAGE_MULTIPLIER",5);
    define("STORAGE_BASE",800*STORAGE_MULTIPLIER);
    And then strip out hard coded 800's (default maxstore and maxcrop) and modify the display and update engine to multiply the building attri variable by STORAGE_MULTIPLIER.

    Only reason I've done it is because I'm running 100x server for battle code testing and it's handy to have the extra storage.

    It would have to be carefully released as I can't set the config.php entry in GitHub, so people would need to be able to read.

    Thoughts?

    Regards,
    Donnchadh.


  2. #2
    Enthusiast masyaf is offline
    MemberRank
    Oct 2011 Join Date
    27Posts

    Re: Storage Multiplier

    It would be good, because i have to change 40 values if i want to increase size of warehouse

  3. #3
    Account Upgraded | Title Enabled! rectifier is offline
    MemberRank
    Sep 2011 Join Date
    I don't knowLocation
    475Posts

    Support Re: Storage Multiplier

    Yes it can be a good idea

  4. #4
    Trolololol Dzoki is offline
    MemberRank
    Mar 2011 Join Date
    htdocsLocation
    1,614Posts

    Re: Storage Multiplier

    Love the idea!

  5. #5
    Enthusiast arafarn12 is offline
    MemberRank
    Sep 2011 Join Date
    32Posts

    Re: Storage Multiplier

    you are DPStokes ? *[]*

  6. #6
    Working in iZariam v0.1.0 ZZJHONS is offline
    MemberRank
    Feb 2011 Join Date
    LocalhostLocation
    1,117Posts

    Re: Storage Multiplier

    Quote Originally Posted by arafarn12 View Post
    you are DPStokes ? *[]*
    DPStokes is Donnchadh

    Quote Originally Posted by Donnchadh View Post
    Code:
    define("STORAGE_MULTIPLIER",5);
    define("STORAGE_BASE",800*STORAGE_MULTIPLIER);
    It would have to be carefully released as I can't set the config.php entry in GitHub, so people would need to be able to read.
    Put it in install/data/constant_format.tpl

  7. #7
    Account Upgraded | Title Enabled! Donnchadh is offline
    MemberRank
    Aug 2011 Join Date
    205Posts

    Re: Storage Multiplier

    Quote Originally Posted by ZZJHONS View Post
    DPStokes is Donnchadh



    Put it in install/data/constant_format.tpl
    Yes, but that wouldn't help for people who are doing upgrades that miss the config.php change and get their storage completely broken when everything gets multiplied by 0

    Donnchadh aka DPStokes.

    Git'd.

    If someone would like to update the installer to cater, that would be useful.

    Regards,
    Donnchadh.

  8. #8
    Account Upgraded | Title Enabled! rectifier is offline
    MemberRank
    Sep 2011 Join Date
    I don't knowLocation
    475Posts

    Support Re: Storage Multiplier

    STORAGE MULTIPLIER has wrong colculation

    Look at this then you'll understand :






    Don't forget that my STORAGE MULTIPLIER is x2
     

  9. #9
    Apprentice skysea is offline
    MemberRank
    Aug 2011 Join Date
    13Posts

    Re: Storage Multiplier

    Quote Originally Posted by rectifier View Post
    STORAGE MULTIPLIER has wrong colculation

    Look at this then you'll understand :






    Don't forget that my STORAGE MULTIPLIER is x2
     



    I also present the same problem

  10. #10
    Account Upgraded | Title Enabled! Donnchadh is offline
    MemberRank
    Aug 2011 Join Date
    205Posts

    Re: Storage Multiplier

    What are we looking at? There's a blank between "understand" and "Don't"

    Donn.

  11. #11
    Account Upgraded | Title Enabled! rectifier is offline
    MemberRank
    Sep 2011 Join Date
    I don't knowLocation
    475Posts

    Support Re: Storage Multiplier

    Quote Originally Posted by Donnchadh View Post
    What are we looking at? There's a blank between "understand" and "Don't"

    Donn.

    It seems your browser have problem or some your browser setting changed

    We can see pic here

    Try check your problem dude
     

  12. #12
    Account Upgraded | Title Enabled! Donnchadh is offline
    MemberRank
    Aug 2011 Join Date
    205Posts

    Re: Storage Multiplier

    OK, I can see the images when I browse this site from my home PC.

    So, question.... did you start these villages from scratch after the storage multiplier was configured? ALL the storage multiplier does is (a) multiply the current and next storage values displayed in the granary/warehouse and (b) multiplies the difference between storage levels when you upgrade and adds that to maxstore and maxcrop.

    If you had existing villages with maxstore/maxcrop set for standard non-multiplied levels, it will not amend the existing values, merely increment them at upgrade time with the multiplied differentials.

    None of this code is being written to retrofit existing installations. Feel free to write a recountStorage function.

    Regards,
    Donnchadh.

  13. #13
    Account Upgraded | Title Enabled! rectifier is offline
    MemberRank
    Sep 2011 Join Date
    I don't knowLocation
    475Posts

    Support Re: Storage Multiplier

    Quote Originally Posted by Donnchadh View Post
    OK, I can see the images when I browse this site from my home PC.

    So, question.... did you start these villages from scratch after the storage multiplier was configured? ALL the storage multiplier does is (a) multiply the current and next storage values displayed in the granary/warehouse and (b) multiplies the difference between storage levels when you upgrade and adds that to maxstore and maxcrop.

    If you had existing villages with maxstore/maxcrop set for standard non-multiplied levels, it will not amend the existing values, merely increment them at upgrade time with the multiplied differentials.

    None of this code is being written to retrofit existing installations. Feel free to write a recountStorage function.

    Regards,
    Donnchadh.

    I made a new village and upgrade it again then i saw there is no problem

    But i found where is the previous problem

    When we upgrade for example warehouse then if we instantly finish it with gold then problem will be appear (If finish it instantly, Storage will act like normal)

    You can test

    Even one special problem in latest release of github (Downloaded in this post date)

    If you look at map you'll understand the problem of new release
    Last edited by rectifier; 27-10-11 at 11:59 PM.

  14. #14
    Account Upgraded | Title Enabled! Donnchadh is offline
    MemberRank
    Aug 2011 Join Date
    205Posts

    Re: Storage Multiplier

    DOH! forgot to update the finishAll function in Building.php.

    Giting shortly.

    Donn.

  15. #15
    Account Upgraded | Title Enabled! rectifier is offline
    MemberRank
    Sep 2011 Join Date
    I don't knowLocation
    475Posts

    Support Re: Storage Multiplier

    Quote Originally Posted by Donnchadh View Post
    DOH! forgot to update the finishAll function in Building.php.

    Giting shortly.

    Donn.

    OK, Good luck

  16. #16
    Member Tookie is offline
    MemberRank
    May 2011 Join Date
    NorwayLocation
    91Posts

    Re: Storage Multiplier

    Where to add this? :P
    If its works right? Or its just Beta fixed?

  17. #17
    Trolololol Dzoki is offline
    MemberRank
    Mar 2011 Join Date
    htdocsLocation
    1,614Posts

    Re: Storage Multiplier

    Quote Originally Posted by Tookie View Post
    Where to add this? :P
    If its works right? Or its just Beta fixed?
    It's on github-.-

  18. #18
    Member Tookie is offline
    MemberRank
    May 2011 Join Date
    NorwayLocation
    91Posts

    Re: Storage Multiplier

    Quote Originally Posted by Dzoki View Post
    It's on github-.-
    Sorry then..



Advertisement