Error adding Freelancer to my personal mod

Users who are viewing this thread

Blaine

Sergeant
Hey all, I'm having a bit of difficulty adding Freelancer to my personal mod with modmerger. I have a mod I'm using with diplomacy 4.3 and various other small additions (just things like dynamic troop trees/viewing items/code snippets that allow you to change nobility titles etc) and so far I'm running into nothing but errors trying to add Freelancer into the mix.

At first, I had the 2.3 version (I think) of modmerger and I got an error along the lines of "GameMenuOptionWrapper is not defined". Did a little bit of looking around and found that I needed the modmerger version with Caba's additions. I installed that (and unbranded and re-branded just to be absolutely sure) but now I'm running into the following error:

C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Initializing...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Exporting scene data...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Exporting troops data
Exporting particle data...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Exporting scene props...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Exporting tableau materials data...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Exporting presentations...
Exporting party_template data...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Exporting parties
Exporting quest data...
Exporting info_page data...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Exporting scripts...
Error: Unable to find object:script_troop_can_use_item
ERROR: Illegal Identifier:script_troop_can_use_item
Error: Unable to find object:script_troop_can_use_item
ERROR: Illegal Identifier:script_troop_can_use_item
Error: Unable to find object:script_troop_can_use_item
ERROR: Illegal Identifier:script_troop_can_use_item
Error: Unable to find object:script_troop_can_use_item
ERROR: Illegal Identifier:script_troop_can_use_item
Error: Unable to find object:script_troop_can_use_item
ERROR: Illegal Identifier:script_troop_can_use_item
Error: Unable to find object:script_troop_can_use_item
ERROR: Illegal Identifier:script_troop_can_use_item
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Exporting mission_template data...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Exporting game menus data...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
exporting simple triggers...
Error: Unable to find object:itm_trade_bread
ERROR: Illegal Identifier:itm_trade_bread
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
exporting triggers...
exporting dialogs...
C:\Steam\steamapps\common\mountblade warband\MOD SYSTEM\My Mod\util_scripts.py:8
4: UserWarning: Error injecting code into: party_give_xp_and_gold
  warnings.warn("Error injecting code into: %s" % (cur_directive[1]) )
Checking global variable usages...
Imported 21 global variables for saved-game compatability that are not used.
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .

Does anyone have any idea what the problem is, and if there is a solution?

Appreciate it in advance if anyone can offer anything to help.
 
##FLORIS ONLY - Trade with Merchant Caravans
#[SD_OP_BLOCK_INSERT, "party_give_xp_and_gold", D_SEARCH_FROM_TOP | D_SEARCH_SCRIPTLINE | D_INSERT_BEFORE, (party_slot_eq, ":enemy_party", slot_party_type, spt_kingdom_caravan),0,not_in_party],
##FLORIS ONLY END


it's in the freelancer scripts that your problem.
 
ZeroNoID said:
##FLORIS ONLY - Trade with Merchant Caravans
#[SD_OP_BLOCK_INSERT, "party_give_xp_and_gold", D_SEARCH_FROM_TOP | D_SEARCH_SCRIPTLINE | D_INSERT_BEFORE, (party_slot_eq, ":enemy_party", slot_party_type, spt_kingdom_caravan),0,not_in_party],
##FLORIS ONLY END


it's in the freelancer scripts that your problem.

That's correct.  The modmerger files for Freelancer 1.51 have Floris stuff in them.  It shouldn't take much to remove them and get the merge to work.
 
Back
Top Bottom