How does one mod PA?

Discussion in 'Mod Discussions' started by feyder, June 9, 2013.

  1. feyder

    feyder Member

    Messages:
    88
    Likes Received:
    13
    Howdy, I have been looking through the JSON files trying to change values so forth like for the Metal Extractor and Energy Plant I tried to double their output so the following code.
    but the changes have made no effect in game, I am trying to test just using some AI's.

    Am I doing something wrong?


    Code:
       
       "production": {
            "energy": 1400
        },
    
        "production": {
            "metal": 14
        },
    
  2. mushroomars

    mushroomars Well-Known Member

    Messages:
    1,655
    Likes Received:
    319
    Currently, you are only able to mod clientside files. This means Textures, (possibly) Effects, and (possibly) models. For everything else mod-related, you have to wait until Uber releases the server files and, in your case, allows people to use their machine as their own local server. This won't be for a while, it should be available by beta though.
  3. feyder

    feyder Member

    Messages:
    88
    Likes Received:
    13
    Oh man ofc it is I can't believe I was that stupid, completely forgot the client server architecture. Thanks for that saved me some headaches haha. I feel so stupid now.
  4. bgolus

    bgolus Uber Alumni

    Messages:
    1,481
    Likes Received:
    2,299
    People are already modding effects and textures. :) They're purely client side, so people can change them however they want.
  5. Vyvern

    Vyvern New Member

    Messages:
    6
    Likes Received:
    0
    But you can change what units each building can build. Why is this clientside? Dosent this allow for very easy cheats/hacks?
  6. bgolus

    bgolus Uber Alumni

    Messages:
    1,481
    Likes Received:
    2,299
    Because we forgot to make the server validate build orders... (it is a known issue, probably be fixed early next week).
  7. fellowplanet

    fellowplanet New Member

    Messages:
    110
    Likes Received:
    0
    So you should change it to serverside, like the most features in PA.
    The local settings should only be used for Single Player. :)

    Edit: Oh wait.. the Single Player mode also use a (localhost) server. So why should the settings be saved local? ;)
    Last edited: June 10, 2013
  8. Vyvern

    Vyvern New Member

    Messages:
    6
    Likes Received:
    0
    Ah Alpha is Alpha :lol:
  9. bgolus

    bgolus Uber Alumni

    Messages:
    1,481
    Likes Received:
    2,299
    Clients have to have a way to request to build something. Right now it does so by asking a factory to build a specific unit, and the server goes "ok!". It'll be fixed.
  10. mushroomars

    mushroomars Well-Known Member

    Messages:
    1,655
    Likes Received:
    319
    So you can have Air Factories building Advanced Metal Extractors? :lol:
  11. bgolus

    bgolus Uber Alumni

    Messages:
    1,481
    Likes Received:
    2,299
    You can try to, yes. It causes horrible, horrible things to happen to your economy though.
  12. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Let's try this.

    So I added " | Land & Structure" to the buildable_types of the air factory.

    And it broke the UI, because there were too many units.

    Changed to " | Factory & Tech1 & Air | Land & Structure & MetalProduction & Tech1" (metal extract and air factory)

    And neither were able to be built ;)
    Last edited: June 10, 2013
  13. Vyvern

    Vyvern New Member

    Messages:
    6
    Likes Received:
    0
    Here you go. You cant actually build them though.

    Attached Files:

  14. garat

    garat Cat Herder Uber Alumni

    Messages:
    3,344
    Likes Received:
    5,376
    This won't work for much longer at all, btw. We're not properly checking against the server for build restrictions. This is something that has to be controlled by the server for obvious reasons. Even once you all have your own servers. :)
  15. numptyscrub

    numptyscrub Member

    Messages:
    325
    Likes Received:
    2
    I'd assumed it was one of those things on the "to do" list when legiondarrath first mentioned he could change the available builds on a factory ;)

    It's highly tempting to mod one of the basic factories to take advantage of this while I still can, but effort :mrgreen:

Share This Page