Results 1 to 20 of 20

Thread: Modding BtS features into Warlords

  1. #1
    Colon™
    Emperor Colon™'s Avatar
    Join Date
    31 Dec 1969
    Location
    Antwerp, Colon's Chocolate Canard Country
    Posts
    6,914
    Country
    This is Colon™'s Country Flag
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Local Date
    May 19, 2013
    Local Time
    22:27

    Modding BtS features into Warlords

    BtS broadly isn't working out for me while Warlords is. However, there are certain aspects to BtS I want to keep using. Foremostly, I want to transplant the "no tech brokering" from the custom game menu. It's basically the only reason why I tried out BtS in the first place. I'd also like BtS' map scripts in Warlord (particularly "hemispheres") and transplant certain civilizations such as Babylonia (though I suppose that won't be too hard).

    Is it feasible?
    DISCLAIMER: the author of the above written texts does not warrant or assume any legal liability or responsibility for any offence and insult; disrespect, arrogance and related forms of demeaning behaviour; discrimination based on race, gender, age, income class, body mass, living area, political voting-record, football fan-ship and musical preference; insensitivity towards material, emotional or spiritual distress; and attempted emotional or financial black-mailing, skirt-chasing or death-threats perceived by the reader of the said written texts.

  2. #2
    wodan11
    King wodan11's Avatar
    Join Date
    24 Oct 2006
    Posts
    2,343
    Country
    This is wodan11's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    20:27
    Can't say whether it's feasible or not, but my general thoughts are good luck trying to put the chicken back into the egg.

    Wodan

  3. #3
    snoopy369
    Senior Staff snoopy369's Avatar
    Join Date
    16 Apr 2004
    Location
    Of the Peanuts Gallery
    Posts
    30,942
    Thanks
    71
    Thanked 49 Times in 43 Posts
    Local Date
    May 19, 2013
    Local Time
    15:27
    Map scripts should be easy to adapt to warlords, I can't imagine what you'd have to change - I don't know if they exposed new variables to python for them, but I suspect they might work as-is. Perhaps ask Sirian if you can find him, I think he's the map script guru.

    NTB is harder, you'd have to do it in c++ I think (it's possible python could manage it, but it would be kludgy).

    Civilizations would be simple to transplant, move their art and put all of the necessary XML into place; there's probably one or two things i'm overlooking but it's basically just as that. Follow the 'create a new civ' tutorial (there are several on this site and CFC) and just do all the things it tells you, but with the BtS civ
    <Reverend> IRC is just multiplayer notepad.
    I like your SNOOPY POSTER! - While you Wait quote.

  4. #4
    Solver
    Deity Solver's Avatar
    Join Date
    24 Sep 2000
    Location
    Latvia, Riga
    Posts
    18,354
    Country
    This is Solver's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    23:27
    Bsarsgard wrote Hemispheres, so he may be the right person to ask. I think the map script might work as-is in Warlords, or with minimum adaptation otherwise.

    Doing no tech brokering is very easy in the SDK, it's basically a few extra lines of code. Though you'd also need to move the AI logic, which is a bit more complex. You can't, though, mod the Custom Game option menu so you'd need to find another way.
    Solver, WePlayCiv Co-Administrator
    Contact: solver-at-weplayciv-dot-com
    I can kill you whenever I please... but not today. - The Cigarette Smoking Man

  5. #5
    Colon™
    Emperor Colon™'s Avatar
    Join Date
    31 Dec 1969
    Location
    Antwerp, Colon's Chocolate Canard Country
    Posts
    6,914
    Country
    This is Colon™'s Country Flag
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Local Date
    May 19, 2013
    Local Time
    22:27
    Would it be possible to make no tech brokering the default rule?
    DISCLAIMER: the author of the above written texts does not warrant or assume any legal liability or responsibility for any offence and insult; disrespect, arrogance and related forms of demeaning behaviour; discrimination based on race, gender, age, income class, body mass, living area, political voting-record, football fan-ship and musical preference; insensitivity towards material, emotional or spiritual distress; and attempted emotional or financial black-mailing, skirt-chasing or death-threats perceived by the reader of the said written texts.

  6. #6
    Locutus
    Deity Locutus's Avatar
    Join Date
    23 Nov 1999
    Location
    De Hel van Enschede
    Posts
    11,706
    Country
    This is Locutus's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    22:27
    All map scripts should normally work on all versions of the game, just drop them into your vanilla or Warlords PublicMaps folder and you can load them just fine. In fact, I'd recommend that for anyone who still plays vanilla or Warlords alongside BtS: it's trivial to do and gives yourself more options. If one of the scripts for some unlikely reason doesn't work you'll find out soon enough

    The main menu is all hard-coded, you can't mess with that even from the SDK. You can write NTB into the C++ if you want to apply it to ALL games, but you can't have it show as an option at start-up. I guess you could do a pop-up in turn 1 of the game and en/disable it from Python, but that's a bit kludgy. Not trivial unless you're an experienced coder (downright impossible if you can't code at all).

    Civs as snoopy says is just a matter of finding the right XML and Assets and converting those to Warlords -- it's more than just copy-pasting as there are some changes in the XML structure and some buildings/units/effects in BtS that aren't in Warlords, but on the whole it's not overly complex.
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

  7. #7
    Colon™
    Emperor Colon™'s Avatar
    Join Date
    31 Dec 1969
    Location
    Antwerp, Colon's Chocolate Canard Country
    Posts
    6,914
    Country
    This is Colon™'s Country Flag
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Local Date
    May 19, 2013
    Local Time
    22:27
    NTW(horing) doesn't need to show as an option in the custom game menu. I'd be happy if it could be the standard rule in Warlords.
    DISCLAIMER: the author of the above written texts does not warrant or assume any legal liability or responsibility for any offence and insult; disrespect, arrogance and related forms of demeaning behaviour; discrimination based on race, gender, age, income class, body mass, living area, political voting-record, football fan-ship and musical preference; insensitivity towards material, emotional or spiritual distress; and attempted emotional or financial black-mailing, skirt-chasing or death-threats perceived by the reader of the said written texts.

  8. #8
    Locutus
    Deity Locutus's Avatar
    Join Date
    23 Nov 1999
    Location
    De Hel van Enschede
    Posts
    11,706
    Country
    This is Locutus's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    22:27
    Then it's easy, assuming you are/have someone who can code it
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

  9. #9
    Colon™
    Emperor Colon™'s Avatar
    Join Date
    31 Dec 1969
    Location
    Antwerp, Colon's Chocolate Canard Country
    Posts
    6,914
    Country
    This is Colon™'s Country Flag
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Local Date
    May 19, 2013
    Local Time
    22:27
    I don't think I can code it. Can't you do it?
    Last edited by Colon™; February 15, 2008 at 13:16.
    DISCLAIMER: the author of the above written texts does not warrant or assume any legal liability or responsibility for any offence and insult; disrespect, arrogance and related forms of demeaning behaviour; discrimination based on race, gender, age, income class, body mass, living area, political voting-record, football fan-ship and musical preference; insensitivity towards material, emotional or spiritual distress; and attempted emotional or financial black-mailing, skirt-chasing or death-threats perceived by the reader of the said written texts.

  10. #10
    Locutus
    Deity Locutus's Avatar
    Join Date
    23 Nov 1999
    Location
    De Hel van Enschede
    Posts
    11,706
    Country
    This is Locutus's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    22:27
    If you upgrade our forums to vB3.7 for me I might consider it
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

  11. #11
    Colon™
    Emperor Colon™'s Avatar
    Join Date
    31 Dec 1969
    Location
    Antwerp, Colon's Chocolate Canard Country
    Posts
    6,914
    Country
    This is Colon™'s Country Flag
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Local Date
    May 19, 2013
    Local Time
    22:27
    What do I need to learn to code it?
    DISCLAIMER: the author of the above written texts does not warrant or assume any legal liability or responsibility for any offence and insult; disrespect, arrogance and related forms of demeaning behaviour; discrimination based on race, gender, age, income class, body mass, living area, political voting-record, football fan-ship and musical preference; insensitivity towards material, emotional or spiritual distress; and attempted emotional or financial black-mailing, skirt-chasing or death-threats perceived by the reader of the said written texts.

  12. #12
    Colon™
    Emperor Colon™'s Avatar
    Join Date
    31 Dec 1969
    Location
    Antwerp, Colon's Chocolate Canard Country
    Posts
    6,914
    Country
    This is Colon™'s Country Flag
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Local Date
    May 19, 2013
    Local Time
    22:27
    The person who's willing to code it gets to choose my avatar.
    DISCLAIMER: the author of the above written texts does not warrant or assume any legal liability or responsibility for any offence and insult; disrespect, arrogance and related forms of demeaning behaviour; discrimination based on race, gender, age, income class, body mass, living area, political voting-record, football fan-ship and musical preference; insensitivity towards material, emotional or spiritual distress; and attempted emotional or financial black-mailing, skirt-chasing or death-threats perceived by the reader of the said written texts.

  13. #13
    snoopy369
    Senior Staff snoopy369's Avatar
    Join Date
    16 Apr 2004
    Location
    Of the Peanuts Gallery
    Posts
    30,942
    Thanks
    71
    Thanked 49 Times in 43 Posts
    Local Date
    May 19, 2013
    Local Time
    15:27
    You need to learn C++, basically ... and you don't necessarily need to know it very well, you're mostly just making small changes, so mostly you just need to know how to read C++ code.
    <Reverend> IRC is just multiplayer notepad.
    I like your SNOOPY POSTER! - While you Wait quote.

  14. #14
    joncnunn
    Emperor joncnunn's Avatar
    Join Date
    20 Sep 2002
    Location
    Maryland Heights, MO
    Posts
    6,183
    Country
    This is joncnunn's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    15:27
    More specifically, you'll have to learn how to read the Firaxis conventions of C++ code. The ease of this depends in large part in how well the codebase was designed.

    Originally posted by snoopy369
    You need to learn C++, basically ... and you don't necessarily need to know it very well, you're mostly just making small changes, so mostly you just need to know how to read C++ code.
    1st C3DG Term 7 Science Advisor 1st C3DG Term 8 Domestic Minister
    Templar Science Minister
    AI: I sure wish Jon would hurry up and complete his turn, he's been at it for over 1,200,000 milliseconds now. :mad:

  15. #15
    snoopy369
    Senior Staff snoopy369's Avatar
    Join Date
    16 Apr 2004
    Location
    Of the Peanuts Gallery
    Posts
    30,942
    Thanks
    71
    Thanked 49 Times in 43 Posts
    Local Date
    May 19, 2013
    Local Time
    15:27
    It's not particularly difficult c-code to read, in that I only peripherally know C++ but can generally follow the code fine (though I do program in a non-c-style language for a living, fwiw).
    <Reverend> IRC is just multiplayer notepad.
    I like your SNOOPY POSTER! - While you Wait quote.

  16. #16
    Willem
    Emperor Willem's Avatar
    Join Date
    18 Dec 2001
    Location
    Canada
    Posts
    5,755
    Country
    This is Willem's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    13:27
    Originally posted by Solver
    Bsarsgard wrote Hemispheres, so he may be the right person to ask. I think the map script might work as-is in Warlords, or with minimum adaptation otherwise.
    The map scripts definitely work in Warlords, I've tried it. Aside from the new scripts, BtS is using the files from Warlords in order to create the maps. It doesn't even have it's own CvMapGeneratorUtil.py file, which is what mainly determines how a map is generated.

  17. #17
    Theben
    Deity Theben's Avatar
    Join Date
    31 Dec 1969
    Location
    Dance Dance for the Revolution!
    Posts
    15,254
    Country
    This is Theben's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    16:27
    Originally posted by Colon™
    The person who's willing to code it gets to choose my avatar.
    You should offer a month's supply of chocolates.
    I'm consitently stupid- Japher
    I think that opinion in the United States is decidedly different from the rest of the world because we have a free press -- by free, I mean a virgorously presented right wing point of view on the air and available to all.- Ned

  18. #18
    Lucan
    Settler
    Join Date
    06 Nov 2005
    Posts
    12
    Country
    This is Lucan's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    20:27
    I also would very much like to see some mixing of the two packs. I'm still on vanilla, but I'll be getting the expansions next week. I'm really digging the idea of vassalage in Warlords, and I'm rather excited about the new units in BTS. I'm going to have a hell of a time deciding which one to play first...

  19. #19
    Virulent
    Chieftain
    Join Date
    03 Oct 2007
    Posts
    96
    Country
    This is Virulent's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    15:27
    Originally posted by Lucan
    I also would very much like to see some mixing of the two packs. I'm still on vanilla, but I'll be getting the expansions next week. I'm really digging the idea of vassalage in Warlords, and I'm rather excited about the new units in BTS. I'm going to have a hell of a time deciding which one to play first...
    BtS includes all of the Warlords features such as Vassalage, great generals, unique buildings, etc. The only thing that isn't included is the Warlords scenarios.

    There is no reason to get Warlords if you are planning to get BtS.

  20. #20
    Lucan
    Settler
    Join Date
    06 Nov 2005
    Posts
    12
    Country
    This is Lucan's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 19, 2013
    Local Time
    20:27
    BtS includes all of the Warlords features such as Vassalage, great generals, unique buildings, etc. The only thing that isn't included is the Warlords scenarios.
    Oh, it does? Sweeeeeet! I was under the impression that it didn't. However, I will still be getting both for one reason and one reason only - it's cheaper to get the box set with the original game and both expansions than one expansion by itself. In fact, the box set is cheaper than the game was when I bought it on the day it came out.

    If I do find BTS cheaper, I'll just get that. But I think if I do, it'll only be very slightly cheaper than the box set.

    Thanks for the info!

Similar Threads

  1. List of bugs/annoying features/missing features
    By Adagio in forum Civilization V: General
    Replies: 20
    Last Post: October 22, 2010, 05:05
  2. DESIGN: Modding Features Requests Thread
    By BureauBert in forum CtP2 Source Code Project
    Replies: 14
    Last Post: July 23, 2009, 17:32
  3. Undocumented Warlords Features
    By Simplicity in forum Civilization IV General
    Replies: 176
    Last Post: November 19, 2006, 12:19
  4. Warlords Now Available! Warlords SCREENSHOT Thread
    By MarkG in forum Civilization IV General
    Replies: 27
    Last Post: August 26, 2006, 00:09
  5. Question on Warlords Modding
    By shazbotian in forum Civilization IV Creation
    Replies: 1
    Last Post: August 4, 2006, 17:50

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Bookmarks

Posting Permissions