Results 1 to 10 of 10

Thread: How can I bring back forced march

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How can I bring back forced march

    Hi everyone.

    While I love DeI so much, I wish to retain the forced march. I find it a bit easier for me to play as raider: attack settlement, raid and withdraw without being surrounded in the next turn by another army.

    Could you please give me insight on how to mod this ?

    Thanks ahead !

  2. #2

    Default Re: How can I bring back forced march

    Download the Pack File Manager if you haven't. Back-up your DeI pack file just in case.

    I believe you just need to add lines 567 through 572 in the effect_bundles_to_effects_junctions table to the DeI effect_bundles_to_effects_junctions/Stances_effect_bundles_to_effects_junctions. The ones that specify forced march to get in back in the game. There are a few other tables that may be necessary, but it may be best to just try that first (I'm not 100% because DeI has a little different table structure than vanilla).

  3. #3

    Default Re: How can I bring back forced march

    why would you want to? the ai does much better without it.

  4. #4

    Default Re: How can I bring back forced march

    You know, if the goal is just to get more movement points, I'd suggest considering just changing them. I've done it to my own games. It's simpler (in DeI, at least), and it has a lot of positive effects on the AI. Compared to the forced march stance, which causes the AI to sail their troops into the ocean aimlessly.

  5. #5

    Default Re: How can I bring back forced march

    Come on nay sayers. I don't ask for opinions. I ask for modding hint.

    I have my play style, which may or may not be agreed by others. But a hint on how to mod is mostly helpful if someone not only want to play but TO LEARN MODDING !

  6. #6

    Default Re: How can I bring back forced march

    Well, I thought I provided that in the first post regardless. If you are curious about learning how to mod, something that can be helpful is downloading the mods that people have already made. Some of the simple ones will help you learn the table structures and what does what. There are several that remove forced march from vanilla.

    So, did you try what I said in the first post or just blow it off?

  7. #7

    Default Re: How can I bring back forced march

    I created a mod, and packed scripts from DeI:

    Click image for larger version. 

Name:	Capture.PNG 
Views:	11 
Size:	92.9 KB 
ID:	307907

    There seems to be 2 things I need to changes: one is using appropriate keys to bring up effect on forced march. I can add attrition, ambushed, etc. The other is to bring up the key on the GUI ingame. Because the key is disable. I tried doing that by changing scripting.lua

    I added in the following lines:

    --------------------------------------------------------------------------------------------------------------forced march


    -- Make the script a module one
    module(..., package.seeall);


    -- Load libraries
    local scripting = require "lua_scripts.EpisodicScripting";


    local function OnCharacterSelected(context)
    local army_stance_group = scripting.m_root:Find("land_stance_button_stack");
    local navy_stance_group = scripting.m_root:Find("naval_stance_button_stack");
    if army_stance_group then
    local forced_army_stance = UIComponent(army_stance_group):Find("button_forced_march");
    UIComponent(forced_army_stance):SetDisabled(false);
    UIComponent(forced_army_stance):SetVisible(true);
    end

    if navy_stance_group then
    local double_time_stance = UIComponent(navy_stance_group):Find("button_double_time");
    UIComponent(double_time_stance):SetDisabled(false);
    UIComponent(double_time_stance):SetVisible(true);
    end
    end


    scripting.AddEventCallBack("CharacterSelected", OnCharacterSelected);


    -------------------------------------------------------------------------------------------------------------------------

    Where did I find the line? I downloaded another forced march mod and try to see what they have done. Their mod cannot incorporate into DeI. Thus I wish to know how to change the mod accordingly so that it works with DeI

  8. #8

    Default Re: How can I bring back forced march

    The UI can be fixed by adding forced march back into effect_bundles_table/Stances_effect_bundles. The other table - campaign_stance_effects_junctions/DeI_campaign_stance_effects_junctions.

    Dresden could answer this a lot easier, but I don't believe you need to use scripts.
    Last edited by ABH2; May 25, 2014 at 09:08 AM.

  9. #9

    Default Re: How can I bring back forced march

    I use effect_bundles_tables. DeI also use his. So how can the game know which and which to prioritize and use my code instead ?

    I really wish to be able to make sub-mod instead of changing his mod directly. I wish to customize tons of other things to my own taste.

  10. #10

    Default Re: How can I bring back forced march

    When I edit things with DeI, I edit the DeI pack. DeI is set up so it loads first. You ca try the mod manager (I use the unofficial one) to try and load yours first, but I'm not sure if its going to work. There are far more experienced users around here than me (with modding). The surest and easiest method is just to edit the DeI pack file.

Posting Permissions

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