-
May 24, 2014, 03:32 PM
#1
Foederatus
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 !
-
May 24, 2014, 05:02 PM
#2
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).
-
May 24, 2014, 06:18 PM
#3
Tiro
Re: How can I bring back forced march
why would you want to? the ai does much better without it.
-
May 24, 2014, 07:38 PM
#4
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.
-
May 24, 2014, 10:07 PM
#5
Foederatus
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 !
-
May 24, 2014, 10:28 PM
#6
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?
-
May 25, 2014, 08:07 AM
#7
Foederatus
Re: How can I bring back forced march
I created a mod, and packed scripts from DeI:

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
-
May 25, 2014, 08:56 AM
#8
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.
-
May 25, 2014, 03:34 PM
#9
Foederatus
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.
-
May 25, 2014, 03:51 PM
#10
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
-
Forum Rules