Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
Ah, thank you Lav(and frozenpainter). You're a lifesaver, I couldn't find it anywhere, I just thought I had a spelling error in the "oracle" part. It works as intended.  :smile:
 
Usually when compiler complains about some stuff, it helps to copy the text directly from compiler output and run text search with copied text.
 
how can i give an item to multiplayer sections vaegir spearmen ? I've done giving necessary item to this troop,and also done these changes to module_scripts:

Code:
(call_script, "script_multiplayer_set_item_available_for_troop", "itm_ramcannon", "trp_vaegir_spearman_multiplayer"),

Code:
#artillery_ram
	  (item_set_slot, "itm_ramcannon", slot_item_multiplayer_item_class, multi_item_class_type_artillery_equipment),

but,when i tried in game,i couldnt select my new item.What is wrong here ?
 
Question, where do I change the loading text? For example; "Loading Textures". Tried several times to search it through the search function but ended up at a lot of other stuff that had little to do with it.

Saw it changed in Full Invasion II so I know it's possible. Now just wondering where I have to look to bring adjustments to it.

Thanks in advance,
 
ui.csv in your language files, it should be the following lines:
ui_loading_module_info_file|Loading Module Info File...
ui_processing_ini_file|Processing INI File...
ui_loading_music|Loading Music...
ui_loading_data|Loading Data...
ui_loading_setting_data|Loading Setting Data...
ui_loading_textures|Loading Textures...
ui_finished|Finished.
 
Hi, how do i replace a native texture ive got all the maps to replace the snow texture their all in open brf working fine but how do i replace the old native one and is it possible to 1. have a AO map 2. have varients of the textures


thanks
 
Q: How can I make unique faces for NPCs?
A: With edit mode enabled, go to your Character screen and click the Edit Face button. Play around with all the sliders and settings until you've got the face you're after. Now click Ctrl+E, and you'll notice a box/button pop up at the top right with a string of characters in it. Click this and it will copy the face code to the clipboard. In module_troops.py, simply paste in it in as the face code.

Where is this "face code"?
 
In module_troops.py.

There's an entire section at the beginning of the file detailing the structure of troop records. It's easy to see as it's Python comments (lines starting with '#').
 
This is all that comes up for me.. this is the first person..

Code:
troopsfile version 2
930 
trp_player Player Player 0 268435472 0 0 13 0 0
  -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 
  4 4 4 4 0
 15 15 15 15 15 15 0
0 0 0 0 0 0 
  6442450945 3952873730080618203 1947355 0 0 0 0 0

Just an example.. there isn't any comments..
 
You don't get comments in .txt files. Also trp_player and the other troops at the beginning of the list quite often have 0 as their facecode, making it hard to spot.

Try using morgh's editor; it's way easier to keep track of stuff, and human error doesn't usually cause catastrophic CTDs.
 
Hello. I am basically new to this forums, but through the guidance of multiple tutorials, I ended up here in order to try and figure out how to do modding for Mount & Blade Warband. In order to not waste anyone's time, I will get straight to the point:

I was following this guide --> http://forums.taleworlds.com/index.php/topic,240255.0.html quite literally step for step. Did nothing that the guide didn't tell me to do. However, when I went in and activated the batch file to start the module, the following showed up in the command prompt:

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_scripts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_global_variables.py", line 6, in <module>
    from module_dialogs import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_dialogs.py", line 10745, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_scripts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_scripts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_scripts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_scripts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_scripts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 4, in <module>
    from module_presentations import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_presentations.py", line 8614, in <module>
    (party_set_marshall, ":eek:ld_marshall", 0),
NameError: name 'party_set_marshall' is not defined
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_game_menus.py", line 13565, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_scripts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_scripts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_game_menus.py", line 13565, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_scripts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_dialogs.py", line 6, in <module>
    from module_dialogs import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_dialogs.py", line 10745, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Users\CGrimes\Desktop\M&B\mb_warband_module_system_1165\Module_system
1.165\module_scripts.py", line 19840, in <module>
    (party_set_marshall, ":eek:ld_marshall_party", 0),
NameError: name 'party_set_marshall' is not defined
Exporting postfx_params...

______________________________

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

I tried doing various searches for the part set marshall problem (since that seems to be the main issue in all the errors) but I couldn't find anything. I have no idea what I have done wrong so I was hoping that someone could provide me with some sort of insight as to how to fix this problem. Thank you very much for your time.
 
You've done everything right, it's not your fault. Someone who was working on Viking Conquest decided now was a good time to rename a single vital file called header_operations.py, and change the word marshall to marshal for no good reason. This is extremely frustrating because it broke a lot of stuff even outside of viking conquest, and due to weird compiling errors I didn't realise what was going on until I'd reinstalled the module system twice.  :neutral:

If you're using notepad ++, search through all the files simultaneously and replace every instance of "party_set_marshall" with "party_set_marshal". It shouldn't take long as there aren't many of them.

But damn, what a pain in the butt.
 
Thanks.

In morgh's editor there is "face code 1" and "face code 2".. I replace them both?
 
If the troop is a "hero" (a lord, merchant or any other troop that's only supposed to turn up once), then  you only change the top one (there are some exceptions, mostly ladies). For everyone else, the game chooses a random face between the two face codes. Bear in mind that the game's idea of "randomisation" is incredibly screwy and without setting a dummy "race" in module_skins.py, it'll mostly ignore your choices.
 
Status
Not open for further replies.
Back
Top Bottom