Everybody probably knows what I am talking about here (I hope). Those 'unassigned variables' you get every time when you compile your mod for Warband.
Like this;
I know this is standard in latest versions of Warband, but still, the point of not showing up would make it more easier for you track down faults in the compiler. I tested this and Warband keeps functioning normally in both SP and MP.
To apply to an existing Module System;
1.
Add this script at the end of your own module_scripts file.
Compile it, and copy the variables.txt from your module folder into your MS folder.
And then you should get this,
Credits for Sinisterius for posting this code here.
Hope this helps you.
Like this;
I know this is standard in latest versions of Warband, but still, the point of not showing up would make it more easier for you track down faults in the compiler. I tested this and Warband keeps functioning normally in both SP and MP.
To apply to an existing Module System;
1.
Add this script at the end of your own module_scripts file.
Code:
#OC begin
## Fix MS errors, credits to Sinisterius for making this code ##
("cf_rpw_fix_native_errors",
[
(eq, "$tutorial_1_finished", 0),
(eq, "$tutorial_2_finished", 0),
(eq, "$tutorial_3_finished", 0),
(eq, "$tutorial_4_finished", 0),
(eq, "$tutorial_5_finished", 0),
(eq, "$g_election_date", 0),
(eq, "$g_presentation_lines_to_display_begin", 0),
(eq, "$g_presentation_lines_to_display_end", 0),
(assign, "$g_presentation_marshall_selection_max_renown_3", 0),
(assign, "$g_presentation_marshall_selection_max_renown_3_troop", 0),
(eq, "$g_presentation_marshall_selection_max_renown_3", 1),
(eq, "$g_presentation_marshall_selection_max_renown_3_troop", 1),
]),
#OC end
Compile it, and copy the variables.txt from your module folder into your MS folder.
And then you should get this,
Credits for Sinisterius for posting this code here.
Hope this helps you.