搜索结果: *

  • 用户:potap
  • 按日期排序
  1. potap

    BL Coding Making use of XSLT to add an attribute

    Hi all! Using xslt, trying to change some attributes of settlements on the Europe Campaign Map - change the name and owner of the castle, and add a text with a description of the castle to the encyclopedia. The name and owner attributes are changed via xslt (i.e. there is no need to additionally create an xml file). But the text attribute does not want to appear, I tried all possible xslt entries (3 different working options). But if make changes via xml+xslt (i.e., completely prescribe the "castle" element with changed attributes in xml), everything works. What could be the matter? I wouldn't want to create a lot of files to replace multiple attributes.
  2. potap

    Attracting the lords to your side

    Currently, clan members are faceless extras without their own opinion, and their relationship with the main character does not affect anything, because when the clan is lured away, the clan leader decides for everyone. There is no point in establishing a relationship with each AI lord...
  3. potap

    BL Coding Making use of XSLT to add an attribute

    Damn! Everything worked out)) My mistake was that I forgot to specify the {=...} prefix in the value of my attributes in xslt, which is used for translation and was present in the xml file... in the end, I just deleted it everywhere and everything worked. Used the following code:
    XML:
    <xsl:template match="Culture[@id='empire']">
            <Culture>
                <xsl:for-each select="@*">
                    <xsl:attribute name="{name()}">
                        <xsl:value-of select="." />
                    </xsl:attribute>
                </xsl:for-each>
                <xsl:attribute name="name">Roman</xsl:attribute>
                <xsl:attribute name="text">new text</xsl:attribute>
                <xsl:attribute name="elite_basic_troop">NPCCharacter.imperial_trained_infantryman</xsl:attribute>
                <xsl:apply-templates select="node()"/>
            </Culture>
        </xsl:template>
  4. potap

    BL Coding Making use of XSLT to add an attribute

    Tried another option. In one mod, I removed all the edits and made them to spcultures.xml and its xslt of the second mod (Feudal Warfare mod). That is, the Culture attributes are changed in the native file: name, text, and elit_basic_troop. Same result - game crash. Tried to just change the attribute to name="Roman" without inclusion in xslt - crash too.
  5. potap

    BL Coding Making use of XSLT to add an attribute

    Hi everybody! I'm trying to make 2 mods work that replace different attributes in <Culture> (spcultures.xml ), using xslt - mod #1 replaces basic_troop, and #2 (mine) replaces only the name and description of cultures ("name" and "text"). But when loading both mods, the game crashes with the error "Object reference not set to an instance of an object" in mod #1. I can't figure out why. After all, these xslt replace different attributes.
    The code as in the post above also tried, the result is the same - everything works separately, but when loading two mods it crashes with the same error.
    xslt #1
    XML:
        <xsl:template match="Culture[@id='aserai']">
            <Culture>
                <xsl:for-each select="@*">
                    <xsl:attribute name="{name()}">
                        <xsl:value-of select="." />
                    </xsl:attribute>
                </xsl:for-each>
                <xsl:attribute name="elite_basic_troop">NPCCharacter.aserai_mameluke_regular</xsl:attribute>
                <xsl:apply-templates select="node()"/>
            </Culture>
        </xsl:template>

    xslt #2
    XML:
        <xsl:template match="Culture[@id='aserai']/@name">
            <xsl:attribute name="name">new name</xsl:attribute>
        </xsl:template>
        <xsl:template match="Culture[@id='aserai']/@text">
            <xsl:attribute name="text">new text</xsl:attribute>
        </xsl:template>
  6. potap

    Native OSP Scenes Bannerlord Creative Competition 2: Scene Design Contest Pack

    Mods that use hideout scenes from the Bannerlord Creative Competition 2: Scene Design Contest Pack:
  7. potap

    Bandit Spawns

    In file SandBox\ModuleData\settlements.xml find the required hideout and change its culture.
  8. potap

    Custom Culture and deleting existing cultures

    Those unique prefixes are used to tie default English Language strings to their translated equivalents in the language folders. So, their use depends on whether you intend your mod to be translated or not.
    How are these prefixes set so that they do not repeat existing ones?
  9. potap

    Bandit Spawns

    They are generated by hideouts. Each hideout has its own culture type, for example: culture="Culture.mountain_bandits". Accordingly, this hideout will generate parties of mountain bandits.
  10. potap

    Official Modding Tools

    Will we get a tool from the developers to create our own quests?
    For those who are not friends with programming...
  11. potap

    TaleWorlds Modding Q&A

    Is it possible to expand the possible values for the "upgrade_requires" attribute? It is required that the player's party be located in a settlement (city, castle).
  12. potap

    ВОПРОСЫ И ОТВЕТЫ

    AngelOfKaskad 说:
    люди помогите...не могу скачать моды!!!!
    ...
    ЗЫ:у меня скачиваеться через Download Master?может в нем проблема??? :shock:
    Может. Отключи его.
  13. potap

    ВОПРОСЫ И ОТВЕТЫ

    У меня из отряда в 50 с лишним рыл - 5 конников (вкл. меня) и 30 с лишним арбалетчиков. Давно наблюдаю - от болтов своих всадники не страдают, сам не ловил (зато Рольфа застрелил с 2х шагов  :mrgreen: и периодически сам "промахиваюсь" по своим). А в одной из последних битв с дезертирами (у них не было стрелков) завалили всех, арбалетчики на холме, я на склоне и у подножия последний негодяй. Сижу верхом, наблюдаю как его нашпиговывают болтами (к звукам дружного сброса тетивы за спиной и плотному свисту болтов над головой уже привык), как вдруг коняга завалилась подо мной на бок... Сволочи... Два болта аккурат в голову верному коню...
  14. potap

    ВОПРОСЫ И ОТВЕТЫ

    Подскажите, "френдли фаер" вроде с какой-то версии отключен? В смысле, стрелки по своим не попадают/не наносят урона?
  15. potap

    ВОПРОСЫ И ОТВЕТЫ

    Eric Lazzy the Highlander 说:
    камрады, а как влияет присутствие перса в бою?
    Собсно, сам же и ответил.
    В первом случае, похоже ты даже не удосужился доспех надеть и на коня сесть, а отсиделси в палатке в обществе маркитантки... :mrgreen:
  16. potap

    ВОПРОСЫ И ОТВЕТЫ

    Приветствую. Возможно ли из реестра выдрать данные о ключе, чтобы после переустановки ОС не активировать заново? Возникла необходимость переустановки системы, какую-то там запись в реестре о ключе выдрал - не помогло...  пришлось на выходные довольствоваться "шустрыми битвами", т.к. инета дома нету...
  17. potap

    ВОПРОСЫ И ОТВЕТЫ

    Напали в деревне. Диалоги быстро пролистал, т.к. на тот момент уже достало стукачество напарников др. на др. Сначала подумал, что деревню бандиты захватили, но после повторного захода там оказалось все тихо.
    В общем, значит и деревенские беспредельничают...
    Жечь деревни больше нельзя?
    Да, еще кто знает кому из напарников не нравятся грабежи, прошу отписаться. Война есть война, гуманистов в отряде не потерплю  :mrgreen:
  18. potap

    ВОПРОСЫ И ОТВЕТЫ

    Бегаю по карте пока "самсусам" (вер. 952). Забрел в деревеньку, шелуху всякую скинуть, да отовариться. Появился в деревне один, без отряда и коняки, на меня бегут 3-4 перса с палками/топорами. Учитывая, что только что вышел из боя, здоровья 10%, завалили быстро. Произошло все очень быстро, очнулся уже на глобальной карте с отрядом, но эта гопота отобрала у мну коня, лук со стрелами. Барахло в инвентаре не тронули, хотя и было что...  :shock: Вернулся в деревню - там все тихо/мирно. С досады хотел сжечь, да угнать в полон - обломался, т.к. опции не было, обобрал их и пошел дальше... Да еще придурок Firentis начал понтоваться, мол "мне не нравится все ето, шоб в последний раз"... Вотъ... Вопрос, собсно, кто сталкивался и как бороцца?  :mrgreen:
  19. potap

    ВОПРОСЫ И ОТВЕТЫ

    galava 说:
    Как вообще деньги заколачивать в новой версии???
    Лут весь дишовый и дрянной, города денег дают мало,
    деревни - и подавно, что делать-то?
    грабить корованы...  :mrgreen:
  20. potap

    ВОПРОСЫ И ОТВЕТЫ

    Все времени нет последнюю версию покрутить...
    Возможность отдавать приказы напарникам не вернули?
后退
顶部 底部