Results 1 to 8 of 8

Thread: Editing Buildings?

  1. #1

    Default Editing Buildings?

    I'd like to modify the amount of food farms produce or the amount of food castles consume and the bonuses they impart etc. Can anyone point me in the right direction? TIA

  2. #2

    Default Re: Editing Buildings?

    I'm greatly interested in this as well. Someone pointed me to building_effects_junction in the db but, so far I haven't been able to really pin it down in/around the various farms levels, at least in that file.

  3. #3

    Default Re: Editing Buildings?

    Ok.... I've got some good news for you guys, and some bad. I have found exactly the data you are looking for in building_effects_junction, and have sorted it. Searching 66 00 6F 00 6F 00 64 in a hex editor on b_e_j table will jump through all food entries. I have tracked down the values, as well. It appears to be a double byte, but not based on integer value. Meaning:
    1 = 80 3f, 2 = 00 40, 3 = 40 40, 4 = 80 40, 5 = a0 40
    This comes into play in the following statement: (Translated, Hex)
    S.H.O._.F.a.r.m.i.n.g._.1._.R.i.c.e._.P.a.d.d.i.e.s...f.o.o.d._.p.r.o.v.i.s.i.o.n...€?..
    53 00 48 00 4F 00 5F 00 46 00 61 00 72 00 6D 00 69 00 6E 00 67 00 5F 00 31 00 5F 00 52 00 69 00 63 00 65 00 5F 00 50 00 61 00 64 00 64 00 69 00 65 00 73 00 0E 00 66 00 6F 00 6F 00 64 00 5F 00 70 00 72 00 6F 00 76 00 69 00 73 00 69 00 6F 00 6E 00 00 00 80 3F 1A 00
    1) So, the pink 0E (the ... between paddies and food) looks like the food provision attribute of the building. It is present in all places that GIVE food. 10 is the value for CONSUMING food. I have tried switching these on buildings, no go.
    2) The value, the 80 3F in red, states the amount. Amounts are listed above, and are constant across all buildings. They may refer to level, as opposed to an actual value.
    3) The 1A appears to be an upgrade identifier. It will be the same in all building attributes for the same level, except for the last listed attribute. This is important: the last attribute for a building must contain the upgrade value for the next level.

    A summary of what I have tried so far:
    1) Adding food production to ports. Failed.
    2) Removing food consumption from markets. Failed.
    3) Changing all consumption values for castles 1-5 to the initial value, 80 3F. Failed.
    4) Changing all production values for farms 1-4 to the max value, 80 40. Failed.
    5) Changing markets to produce food. Failed.
    I have been going strong on this for the last 5 hours to no avail. Perhaps you guys can do something with it. If needed, I have the hex values organized by building string in text files. Good luck to you.

  4. #4

    Default Re: Editing Buildings?

    Thanks a bunch. Looked into it and used shogun 2 converter to convert the file to tsv . Gave farm consolidation 8 food provision so i can i upgrade my citadel's and markets with reckless abandon. Then converted back to db.

  5. #5

    Default Re: Editing Buildings?

    yeah but did that work afterwards? if it did, this is amazing.

  6. #6

    Default Re: Editing Buildings?

    nice, but is there any way to add construction slots as well?

  7. #7

    Default Re: Editing Buildings?

    @Rubeus Yeah it worked, you can try the mod if you'd like

    @yomeviet No clue how to get this, i don't see any parameteres in building_effects_junction

  8. #8

    Default Re: Editing Buildings?

    awesome! you're the best

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •