Ability to change blueprint of shops

    Jake_Lancia

    Official Source of Blame
    Joined
    Oct 2, 2013
    Messages
    859
    Reaction score
    1,434
    • Legacy Citizen 10
    • Competition Winner - Small Fleets
    • Community Content - Silver 2
    As of now, the shop blueprint is hardcoded (as Megacrafter127 himself said in chat) but wouldn't it be interesting to be able to change this outdated (IMO) object for a newer, possibly even community made one?

    A small request I know, but it could be a new opportunity for a community competition perhaps?
     
    Joined
    Jul 21, 2013
    Messages
    2,932
    Reaction score
    460
    • Hardware Store
    In late 2014 I suggested schema a way to allow customized shops without spamming the server's database with unnecessary data[seeing as shops aren't editable in any way].
    Basically, in a new folder, dedicated for shop blueprints, the server owner can place the shop-blueprints. The game will keep track of them in a register file, linking an integer to each of the blueprints.
    Then, when a shop is generated, a random integer(within the range of the register) is generated, and stored in the .ent file of the shop. Whenever the shop is loaded, the integer will simply act as a reference to the immutable(uneditable[ingame]) shop-blueprint.
    If a shop-blueprint is added later on, it is given a new integer value, and thus no existing shop will end up being replaced by it(which might cause the shop to clip into a nearby station, that was built before the shop changed).
    If the blueprint associated with that integer cannot be found, the hardcoded shop is used. (It is the server owner's fault, if the removal of a shop-blueprint without a universe-reset causes any errors IMO)
    I don't know how that ended up, or will end in.
     
    Joined
    Jun 20, 2013
    Messages
    2,827
    Reaction score
    1,181
    • Video Genius
    • Legacy Citizen 4
    • Top Forum Contributor
    i personally would like the shops removed and just use the trade stations to buy stuff from. they are TRADE stations after all.