Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
If i add a new face texture to module_skins to the same race will it alter all the current face codes i have generated ingame for that race? Meaning any custom made face codes will need to be redone?
 
It's a hexadecimal generated something-or-other, meaning it's hard to edit without knowing the original values, because the digits of each variable overlap. Whats more, the length of the code can change depending on how many faces and face morph values you've added, but the "old" codes still work. I tried looking into it but it's a while since i did any maths.
 
'ti_on_order_issued' fires when the player issues an order. If you want different things for different orders the first trigger parameter is the specific order (a list can be found in header_mission_templates).
 
hi i have a problem i wrote this code

Code:
(game_in_multiplayer_mode),
            (get_max_players, ":num_players"),
            (try_for_range, ":cur_player", 0, ":num_players"),
             (player_is_active,":cur_player")
             (multiplayer_send_string_to_player, ":cur_player", multiplayer_event_show_server_message, "str_delivered_damage"),
             (try_end),

but i get this error
Code:
(multiplayer_send_string_to_player,":cur_player",multiplayer_event_show_server_message,"str_delivered_damage"), TypeError:'tuple' object is not callable
 
Noel said:
hi i have a problem i wrote this code

Code:
(game_in_multiplayer_mode),
            (get_max_players, ":num_players"),
            (try_for_range, ":cur_player", 0, ":num_players"),
             (player_is_active,":cur_player")
             (multiplayer_send_string_to_player, ":cur_player", multiplayer_event_show_server_message, "str_delivered_damage"),
             (try_end),

You need to put a ',' after (player_is_active,":cur_player")
 
Docm30 said:
'ti_on_order_issued' fires when the player issues an order. If you want different things for different orders the first trigger parameter is the specific order (a list can be found in header_mission_templates).

tried this:

Code:
voice_order_sounds = (
   ti_on_order_issued,
      mordr_charge, ":player", 
      [
         (agent_play_sound, ":player", "order_charge.mp3")
      ])

and I'm getting
"namerror: name "ti_on_order_issued" is not defined"

pretty sure I'm on the newest module system.
 
Well, you've made quite a few mistakes.

A trigger looks like this:

Code:
(ti_on_order_issued, 0, 0, [],
  [
    (store_trigger_param_1,":order"),
    (store_trigger_param_2,":agent_id"),
	
	(try_begin),
		(eq,":order", mordr_hold),
		(agent_play_sound, ":agent_id", "snd_sound"),
	(else_try),
		(eq,":order", mordr_follow),
		(agent_play_sound, ":agent_id", "snd_othersound"),
	(try_end),
 ]),

The second trigger parameter is the player that issues the order. This goes inside a mission template.

You also can't reference a sound file. You have to point to a sound defined in module_sounds.
 
Michadr said:
How do I add a custom old age face for a set person? Right now many of my faces use the native old-face slider but when I try to add a custom older face and use the slider to make him/her look older it just become a white texture with black lines. I have the texture, and tried copying the method used with the other faces in Openbrf but It doesn't work.
I hate to ask this again, but I got no reply last time and I really can't figure it out. Do i save the texture in some special way or... how?
 
Bom dia pessoal (Good morning guys)
I finished a little mod today, executed build_module.bat without errors. Open the game, load the module, every thing is going good until the main menu appeared. My problem is: Any option that always was there(tutoriais,start new game,load game and etc) don't showed up, left only a blank list without options to click. I don't know what sh** I made to this happen. Someone could help me?
 
Hi all

ive been following Nord Champions guide to creating a faction and it was going great untill i tried to build the .bat file

its coming up with syntax errors

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
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\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
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\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_party_tmps.py", line 2, in <module>
    from module_party_templates import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_party_templates.py", line 158

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\Users\Kranky\Desktop\Mod Stuff\mb_warband_module_system_1158\Module_s
ystem 1.158\module_troops.py", line 2155
    upgrade(troops,"townsman","watchman")
          ^
SyntaxError: invalid syntax
Exporting postfx_params...

______________________________

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

and i've tried finding the file mantioned and it seems fine, i commented it out just to see what would would hapen and it creates a syntax error in the next line . im very new to modding so please help

cheers
 
Status
Not open for further replies.
Back
Top Bottom