Modding Q&A [For Quick Questions and Answers]

正在查看此主题的用户

状态
不接受进一步回复。
Nethoras 说:
there are no commands for not using something on foot (its been the bane of the BaB team for ages) but there is an "itcf_cant_be_used_from_horseback" just check out the glaive.
or rather itp_cant_use_on_horseback/crossbow
Yeah, looks promising.
Unfortunately, all it does is prevent crossbow reload animation. Won't work for any other weapon.
 
Problem

I cant seem to find the error, ive tried every thing!
So any can any one point out the error ? I know the error but not how to fix it:grin:


module_dialog
  [trp_viking_king, "start", [(eq,"",1)], "you again...what do you want","viking_king",[]], 
  [trp_viking_king, "start", [], "Hello.","viking_king2",[]],
  [trp_viking_king|plyr,"viking_king",[], "oh nothing","close_window",[]],
  [trp_viking_king|plyr,"viking_king2",[], "I´m seeking the allmight Viking King.","viking_king3",[]],        ####################### this is the line
  [trp_viking_king|plyr,"viking_king2",[], "I'm looking for the ugliest person alive, I just completed my task","dis_viking_king",[]],
  [trp_viking_king,"viking_king3",[], "You found what you seek","viking_king4",[]],
  [trp_viking_king,"dis_viking_king",[], "Guards throw this **** out, I´m going to give him a chance to die with hounor at the battlefield.","close_window",[assign,"$town_15_center",1]],
  [trp_viking_king|plyr,"viking_king4",[], "I´m a great warrior from this land, and I have come to join you","viking_king5",[]],
  [trp_viking_king,"viking_king5",[], "You will prove your power at the battlefield, you may join us. ","close_window",[[party_set_faction,"fac_viking"]]],



build_module

Exporting game menus data...
exporting simple triggers...
Traceback (most recent call last):
  File "process_dialogs.py", line 6, in <module>
    from module_dialogs import *
  File "F:\Gamer\Mount&Blade\Modules\smax2\Module_system\module_dialogs.py", lin
e 97
SyntaxError: Non-ASCII character '\xb4' in file F:\Gamer\Mount&Blade\Modules\sma
x2\Module_system\module_dialogs.py on line 97, but no encoding declared; see htt
p://www.python.org/peps/pep-0263.html for details

______________________________

Script processing has ended.
Press any key to exit. . .
 
Hmmmm... I've replaced the native ground textures with new ones (Scion's). But it seems as if the ground a little bit away still uses native textures. I have replaced any material that looks like it (including the map materials), but it still looks this way.
newscreen1zg4.jpg
 
That is weird. Check you saved the MIP-Maps correctly when you saved the .dds file. To me it looks like maybe it stored the old file's mip-maps instead of making new ones from your texture.
 
That's normal. Generated maps use some alpha blending, so your textures will be always mixed with other (forest_ground maybe).
If you really don't want this effect create a custom mesh, or replace both textures.
 
Thanks Yoshi,
I've saved the files in DXT1, which didn't overwrite the MIPMap. DXT3 worked fine. Didn't actually know about those maps, thanks for pointing out.
 
Any one have any idea what this error is ?



Exporting strings...
Exporting sounds...
Exporting particle data...
Exporting skins...
Exporting map icons...
Exporting faction data...
Exporting item data...
Exporting scene props...
Exporting scene data...
Exporting troops data
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting scripts...
WARNING: Variable name used for both local and global contexts:rank
WARNING: Variable name used for both local and global contexts:rank
Exporting mission_template data...
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...

______________________________

Script processing has ended.
 
So I should only use one of them ? is one of them spesial ?


edit:

One last problem I hope:grin:

exporting dialogs...
Traceback (most recent call last):
  File "process_dialogs.py", line 159, in <module>
    compile_sentence_tokens(dialogs)
  File "process_dialogs.py", line 66, in compile_sentence_tokens
    output_token = sentence[opt_token_pos]
IndexError: list index out of range

______________________________

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

Any one ?


k

Thnx for help going to look into it.
 
smax 说:
So I should only use one of them ? is one of them spesial ?


edit:

One last problem I hope:grin:

exporting dialogs...
Traceback (most recent call last):
  File "process_dialogs.py", line 159, in <module>
    compile_sentence_tokens(dialogs)
  File "process_dialogs.py", line 66, in compile_sentence_tokens
    output_token = sentence[opt_token_pos]
IndexError: list index out of range

______________________________

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

Any one ?

Probably missing a comma, oherwise, similar syntax error.
 
exporting dialogs...
Traceback (most recent call last):
  File "process_dialogs.py", line 159, in <module>
    compile_sentence_tokens(dialogs)
  File "process_dialogs.py", line 66, in compile_sentence_tokens
    output_token = sentence[opt_token_pos]
IndexError: list index out of range

______________________________

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



I know the error is here, but I cant seem to find it . Any one here that got good searching eyes :grin:

  [trp_viking, "start", [(eq,"",0)], "Who goes there?","viking",[]],
  [trp_viking|plyr,"viking",[], "I'm so sorry! I'll be leaving now","close_window",[]],
  [trp_viking|plyr,"viking",[], "I'm {playername} and I'm looking for a viking King.","viking2",[]],
  [trp_viking,"viking2",[], "You are certianly a bold one, but can you serve without question in our goal \
  to conquer all the lands?","viking3",[]],
  [trp_viking|plyr,"viking3",[], "hmm, I'll have to think on this for a while.","disfavor",[]],
  [trp_viking|plyr,"viking3",[], "yes, I will do whatever it takes!","favor",[]],
  [trp_viking,"disfavor",[],"Then get lost!!!!","close_window",[]],
  [trp_viking,"favor",[],"Now you must prove that you are worthy. You may enter.","close_window",[assign,"$town_14_castle",1]],



  [trp_viking_king, "start", [(eq,"",1)], "you again...what do you want","viking_king",[]], 
  [trp_viking_king, "start", [], "Hello.","viking_king2",[]],
  [trp_viking_king|plyr,"viking_king",[], "oh nothing","close_window",[]],
  [trp_viking_king|plyr,"viking_king2",[], "I'm seeking the allmight Viking King.","viking_king3",[]],
  [trp_viking_king|plyr,"viking_king2",[], "I'm looking for the ugliest person alive, I just completed my task","dis_viking_king",[]],
  [trp_viking_king,"viking_king3",[], "You found what you seek","viking_king4",[]],
  [trp_viking_king,"dis_viking_king",[], "Guards throw this prisoner out, I'm going to give him a chance to die with hounor at the battlefield.","close_window",[assign,"$town_14_center",1]],
  [trp_viking_king|plyr,"viking_king4",[], "I'm a great warrior from this land, and I have come to join you","viking_king5",[]],
  [trp_viking_king,"viking_king5",[], "You will prove your power at the battlefield, you may join us. ","close_window",[[party_set_faction,"fac_viking"]]],
            [set_relation,"fac_commoners","fac_player_faction",-10],
            [set_relation,"fac_innocents","fac_player_faction",-10],
            [set_relation,"fac_vaegirs","fac_player_faction",-10],
            [set_relation,"fac_vaegir_caravans","fac_player_faction",-10],
            [set_relation,"fac_swadians","fac_player_faction",-10],
            [set_relation,"fac_swadian_caravans","fac_player_faction",-10],
            [set_relation,"fac_dark_knights","fac_player_faction",-10], 
            [set_relation,"fac_khergits","fac_player_faction",-10], 
            [set_relation,"fac_black_khergits","fac_player_faction",-10],     
            [assign,"$player_relation_to_swadians",rel_enemy],
            [assign,"$player_relation_to_vaegirs",rel_enemy],
            [cancel_quest,"qst_destroy_forest_bandits"],
            [cancel_quest,"qst_destroy_mountain_bandits"],
            [cancel_quest,"qst_destroy_sea_raiders"],
            [cancel_quest,"qst_supply_equipment"],
            [cancel_quest,"qst_supply_armor"],
            [cancel_quest,"qst_supply_horses"],
            [cancel_quest,"qst_deliver_message"],
            [cancel_quest,"qst_capture_prisoners"],
            [cancel_quest,"qst_raise_troops"],
            [assign,"$joined_viking",1],



Ive created a new faction and Ive made a town to the faction , the faction is friendly but when I try to enter the town I get this message.

How do I make a menu to the town, or how do I get the automenu thing from all the other 14 towns to apply to my 15th town



 
check module trigers it contains the set party tipe pt town

插入代码块:
      (party_set_slot,"p_town_14", slot_party_type,         spt_town),
      (party_set_slot,"p_town_14", slot_town_center,        "scn_town_14_center"),
      (party_set_slot,"p_town_14", slot_town_castle,        "scn_town_14_castle"),
      (party_set_slot,"p_town_14", slot_town_tavern,        "scn_town_14_tavern"),
      (party_set_slot,"p_town_14", slot_town_store,         "scn_town_14_store"),
      (party_set_slot,"p_town_14", slot_town_gate,          "scn_town_1_gate"),
      (party_set_slot,"p_town_14", slot_town_arena,         "scn_town_14_arena"),
      (party_set_slot,"p_town_14", slot_town_tavernkeeper,  "trp_town_14_tavernkeeper"),
      (party_set_slot,"p_town_14", slot_town_weaponsmith,   "trp_town_14_weaponsmith"),
      (party_set_slot,"p_town_14", slot_town_armorer,       "trp_town_14_armorer"),
      (party_set_slot,"p_town_14", slot_town_merchant,      "trp_town_14_merchant"),
      (party_set_slot,"p_town_14", slot_town_mercs,         "p_town_14_mercs"),
      (party_set_slot,"p_town_14", slot_town_export_good,   "itm_pottery"),
      (party_set_slot,"p_town_14", slot_town_export_rate,   67),
      (party_set_slot,"p_town_14", slot_town_import_good,   "itm_linen"),
      (party_set_slot,"p_town_14", slot_town_import_rate,   130),
      (party_set_slot,"p_town_14", slot_town_arena_melee_1_num_teams,   2),
      (party_set_slot,"p_town_14", slot_town_arena_melee_1_team_size,   4),
      (party_set_slot,"p_town_14", slot_town_arena_melee_2_num_teams,   2),
      (party_set_slot,"p_town_14", slot_town_arena_melee_2_team_size,   5),
      (party_set_slot,"p_town_14", slot_town_arena_melee_3_num_teams,   2),
      (party_set_slot,"p_town_14", slot_town_arena_melee_3_team_size,   6),
      (party_set_slot,"p_town_14", slot_town_arena_template, "mt_arena_melee_fight"),

just copy and paste it changing the town 14 to watever identifier your town has
 
Funny thing is I did that . But I did it in the wrong module folder :grin: tomany open at the same time.

Still has not found the other error but I know where it is.

exporting dialogs...
Traceback (most recent call last):
  File "process_dialogs.py", line 159, in <module>
    compile_sentence_tokens(dialogs)
  File "process_dialogs.py", line 66, in compile_sentence_tokens
    output_token = sentence[opt_token_pos]
IndexError: list index out of range

______________________________

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


  [trp_viking, "start", [(eq,"",0)], "Who goes there?","viking",[]],
  [trp_viking|plyr,"viking",[], "I'm so sorry! I'll be leaving now","close_window",[]],
  [trp_viking|plyr,"viking",[], "I'm {playername} and I'm looking for a viking King.","viking2",[]],
  [trp_viking,"viking2",[], "You are certianly a bold one, but can you serve without question in our goal \
  to conquer all the lands?","viking3",[]],
  [trp_viking|plyr,"viking3",[], "hmm, I'll have to think on this for a while.","disfavor",[]],
  [trp_viking|plyr,"viking3",[], "yes, I will do whatever it takes!","favor",[]],
  [trp_viking,"disfavor",[],"Then get lost!!!!","close_window",[]],
  [trp_viking,"favor",[],"Now you must prove that you are worthy. You may enter.","close_window",[assign,"$town_14_castle",1]],



  [trp_viking_king, "start", [(eq,"",1)], "you again...what do you want","viking_king",[]], 
  [trp_viking_king, "start", [], "Hello.","viking_king2",[]],
  [trp_viking_king|plyr,"viking_king",[], "oh nothing","close_window",[]],
  [trp_viking_king|plyr,"viking_king2",[], "I'm seeking the allmight Viking King.","viking_king3",[]],
  [trp_viking_king|plyr,"viking_king2",[], "I'm looking for the ugliest person alive, I just completed my task","dis_viking_king",[]],
  [trp_viking_king,"viking_king3",[], "You found what you seek","viking_king4",[]],
  [trp_viking_king,"dis_viking_king",[], "Guards throw this prisoner out, I'm going to give him a chance to die with hounor at the battlefield.","close_window",[assign,"$town_14_center",1]],
  [trp_viking_king|plyr,"viking_king4",[], "I'm a great warrior from this land, and I have come to join you","viking_king5",[]],
  [trp_viking_king,"viking_king5",[], "You will prove your power at the battlefield, you may join us. ","close_window",[[party_set_faction,"fac_viking"]]],
            [set_relation,"fac_commoners","fac_player_faction",-10],
            [set_relation,"fac_innocents","fac_player_faction",-10],
            [set_relation,"fac_vaegirs","fac_player_faction",-10],
            [set_relation,"fac_vaegir_caravans","fac_player_faction",-10],
            [set_relation,"fac_swadians","fac_player_faction",-10],
            [set_relation,"fac_swadian_caravans","fac_player_faction",-10],
            [set_relation,"fac_dark_knights","fac_player_faction",-10], 
            [set_relation,"fac_khergits","fac_player_faction",-10],   
            [set_relation,"fac_black_khergits","fac_player_faction",-10],     
            [assign,"$player_relation_to_swadians",rel_enemy],
            [assign,"$player_relation_to_vaegirs",rel_enemy],
            [cancel_quest,"qst_destroy_forest_bandits"],
            [cancel_quest,"qst_destroy_mountain_bandits"],
            [cancel_quest,"qst_destroy_sea_raiders"],
            [cancel_quest,"qst_supply_equipment"],
            [cancel_quest,"qst_supply_armor"],
            [cancel_quest,"qst_supply_horses"],
            [cancel_quest,"qst_deliver_message"],
            [cancel_quest,"qst_capture_prisoners"],
            [cancel_quest,"qst_raise_troops"],
            [assign,"$joined_viking",1],


Edit: If I remove all that, the error goes away.
 
smax 说:
  [trp_viking, "start", [(eq,"",0)], "Who goes there?","viking",[]],

                  .......

  [trp_viking,"favor",[],"Now you must prove that you are worthy. You may enter.","close_window",[assign,"$town_14_castle",1]],

                  .......

  [trp_viking_king, "start", [(eq,"",1)], "you again...what do you want","viking_king",[]], 

                  .......

  [trp_viking_king,"dis_viking_king",[], "Guards throw this prisoner out, I'm going to give him a chance to die with hounor at the battlefield.","close_window",[assign,"$town_14_center",1]],

                  .......

            [assign,"$joined_viking",1],


The red marked code is totally screwed up. You must make it [eq,"$joined_viking",1] for example if you want the dialog to trigger if the tuple is equal to $joined_viking",1.
 
[trp_viking_king,"viking_king5",[], "You will prove your power at the battlefield, you may join us. ","close_window",[[party_set_faction,"fac_viking"]]],
            [set_relation,"fac_commoners","fac_player_faction",-10],
            [set_relation,"fac_innocents","fac_player_faction",-10],
            [set_relation,"fac_vaegirs","fac_player_faction",-10],
            [set_relation,"fac_vaegir_caravans","fac_player_faction",-10],
            [set_relation,"fac_swadians","fac_player_faction",-10],
            [set_relation,"fac_swadian_caravans","fac_player_faction",-10],
            [set_relation,"fac_dark_knights","fac_player_faction",-10],
            [set_relation,"fac_khergits","fac_player_faction",-10], 
            [set_relation,"fac_black_khergits","fac_player_faction",-10],   
            [assign,"$player_relation_to_swadians",rel_enemy],
            [assign,"$player_relation_to_vaegirs",rel_enemy],
            [cancel_quest,"qst_destroy_forest_bandits"],
            [cancel_quest,"qst_destroy_mountain_bandits"],
            [cancel_quest,"qst_destroy_sea_raiders"],
            [cancel_quest,"qst_supply_equipment"],
            [cancel_quest,"qst_supply_armor"],
            [cancel_quest,"qst_supply_horses"],
            [cancel_quest,"qst_deliver_message"],
            [cancel_quest,"qst_capture_prisoners"],
            [cancel_quest,"qst_raise_troops"],
            [assign,"$joined_viking",1],

Furthermore, you have ended the consequences block before you have all your consequences written out. Those double brackets shouldn't be until after the "[assign,"$joined_viking",1]" part.
 
Hi guys, I have a problem as well and I hope you can point me in the right direction. I tried adding a sword I created to the game, using the M&B Module System and following the guid from Yoshiboy, but when I try to load the game, I get the error: 'get_object failed for texture: hair_white'. Originally I had that error with my own texture, but once I got that fixed, I got this error. The thing is I haven't touched any white hairs so I'm a bit lost on what to do know. I used search, but all I came up with was that it's a problem with mods that don't work with version 0.808. Any ideas?

Manwë

Edit: nevermind, got it to work, I did some things wrong in module.ini  :oops:.
 
Ive created this after a dialog, but when I jump to the next scene I jump to a battlemap all alone.. I want to jump to scn_town_15_castle.

[trp_olag,"favor",[],"Now you must prove that you are worthy. You may enter.","close_window",[(jump_to_scene,"$town_15_castle",1)]],

Question what do I do wrong ?
 
You have to tell it what mission template you want to be used.
Mission template is a thing that decides what troops go in the scene and what happens there.
the operation is 'set_jump_mission'
 
状态
不接受进一步回复。
后退
顶部 底部