Author Topic: Mount & Blade Mod Makers Q&A Thread  (Read 739999 times)

cwr and 2 Guests are viewing this topic.

CTCCoco

  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • WBNW
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10260 on: March 27, 2012, 12:35:22 AM »
Hey, somebody can help me?

Why this code doesn't work? It doesn't give +1 ammo to the player, but I receive all debug messages (*WOLAASS*)-

SOLVED.
« Last Edit: March 28, 2012, 10:06:17 AM by CTCCoco »
The Middle Ages, a Warband modification.
Pawn, LUA, PHP, MySQL, HTML/CSS3, Python(M&B) programmer ( SA-MP, MTA, IV-MP ).

Caba`drin

  • Administrator
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • M&BWBWF&SNW
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10261 on: March 27, 2012, 02:07:11 AM »
More useful debug messages would probably print the player's ammo counts before and after your +1 and set ammo operations.
with agent_set_ammo, note that if the player hasn't used any ammo, it won't increase the ammo above the "max ammo" of the bag of arrows. Might that be what you are seeing?



CTCCoco

  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • WBNW
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10262 on: March 27, 2012, 10:27:46 AM »
More useful debug messages would probably print the player's ammo counts before and after your +1 and set ammo operations.
with agent_set_ammo, note that if the player hasn't used any ammo, it won't increase the ammo above the "max ammo" of the bag of arrows. Might that be what you are seeing?
EDIT: SOLVED.
« Last Edit: March 28, 2012, 10:06:01 AM by CTCCoco »
The Middle Ages, a Warband modification.
Pawn, LUA, PHP, MySQL, HTML/CSS3, Python(M&B) programmer ( SA-MP, MTA, IV-MP ).

xPearse

  • Knight at Arms
  • *
  • H.O.T.D. Check It Out
    • View Profile
  • Faction: Neutral
  • MP nick: xPearse
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10263 on: March 27, 2012, 02:55:30 PM »
Hey guys what shader do I use for clothing using bump maps. I really dont know the shaders properly because I used bump_static for a clothing and the lighting on it turned out all weird.

Use a standart_shader
probably standart_shader_noskin_bump_high for weapons and standart_shader_skin_bump_high for rigged stuff

Those are with regular mount & blade so what should I use, isnt it certain shaders that make the bump maps load or can it be any regular shader like agent_shader.


Z.Master

  • Squire
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: Zmaster
  • WBNW
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10264 on: March 27, 2012, 10:04:59 PM »
Sometimes in game when i try to recruit i get message -1 volunteers want to go with you and then i dont have in menu continue to exit from menu and i must press alt f4 to quit game.
Now i add

Code: [Select]
(eq, ":volunteer_amount", -1),
       (str_store_string, s18, "@No one here seems to be willing to join your party."),

after
Code: [Select]
(eq, ":volunteer_amount", 0),
       (str_store_string, s18, "@No one here seems to be willing to join your party."),

and then in game i dont get messange -1 volunteers want to go with you i get No one here seems to be willing to join your party
but still i dont have continue in menu, then i add after

Code: [Select]
(eq, ":volunteer_amount", -1),
       (str_store_string, s18, "@No one here seems to be willing to join your party."),

this
Code: [Select]
("continue_not_enough_gold",
      [
       
      ],
      "Continue...",
      [
        (leave_encounter),(change_screen_return),
      ]),

but after i try to compile module system i get message
(click to show/hide)

Stríð faðir

  • Guest
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10265 on: March 27, 2012, 10:20:25 PM »
When I click on build_module.bat, I get these error messages and cant figure out why. It's probably something simple knowing me. 
(click to show/hide)

It's basically saying I have an indent error some where but I cant figure it out. Can anyone enlighten me?

Z.Master

  • Squire
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: Zmaster
  • WBNW
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10266 on: March 27, 2012, 10:30:03 PM »
When I click on build_module.bat, I get these error messages and cant figure out why. It's probably something simple knowing me. 
(click to show/hide)

It's basically saying I have an indent error some where but I cant figure it out. Can anyone enlighten me?

it this your whole code

Code: [Select]
["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters"
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0
,0,fac_kingdom_5,

i think u need to have skills, troops face...

Stríð faðir

  • Guest
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10267 on: March 27, 2012, 10:32:04 PM »
Nope, this is my whole code. 
Code: [Select]
["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0,0,fac_kingdom_5,
   [itm_sword_medieval_a,itm_falchion,itm_club_with_spike_head,itm_tab_shield_pavise_a,itm_crossbow,itm_bolts,
    itm_arena_tunic_green,itm_felt_hat_b,itm_common_hood,itm_nomad_boots,itm_wrapping_boots],
   def_attrib|level(10),wp(85),knows_common|knows_ironflesh_2|knows_shield_1|knows_power_strike_1|knows_athletics_2,rhodok_face_young_1, rhodok_face_older_2],
« Last Edit: March 27, 2012, 10:34:18 PM by Stríð faðir »

Caba`drin

  • Administrator
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • M&BWBWF&SNW
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10268 on: March 27, 2012, 11:43:00 PM »
Nope, this is my whole code. 
Code: [Select]
["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0,0,fac_kingdom_5,
   [itm_sword_medieval_a,itm_falchion,itm_club_with_spike_head,itm_tab_shield_pavise_a,itm_crossbow,itm_bolts,
    itm_arena_tunic_green,itm_felt_hat_b,itm_common_hood,itm_nomad_boots,itm_wrapping_boots],
   def_attrib|level(10),wp(85),knows_common|knows_ironflesh_2|knows_shield_1|knows_power_strike_1|knows_athletics_2,rhodok_face_young_1, rhodok_face_older_2],
Where is it in the file? (What are the lines around it)

Sometimes in game when i try to recruit i get message -1 volunteers want to go with you and then i dont have in menu continue to exit from menu and i must press alt f4 to quit game.
Now i add
...snip...
Will need more of the complete menu code to be able to piece together what is going on.

On the other hand, can you tell me if it's possible to set a determinate configuration (I.E. disable polls, limit player slots) with the Module System scripting?
WSE adds some addition operations that get some of these settings. Search Native and WSE's header_operations for operations that include "option" or "server"



Stríð faðir

  • Guest
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10269 on: March 28, 2012, 12:21:58 AM »
Line 618? If that's what you are asking for.

Caba`drin

  • Administrator
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • M&BWBWF&SNW
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10270 on: March 28, 2012, 12:28:24 AM »
Line 618? If that's what you are asking for.
No, what are the lines/other items defined around it...like is it still in the troops= [] list and correctly not nested in another troop, etc.

(edited for troops/items mixup)
« Last Edit: March 28, 2012, 02:23:58 AM by Caba`drin »



Stríð faðir

  • Guest
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10271 on: March 28, 2012, 02:19:21 AM »
These are the two sets of code around it.
Code: [Select]
   ["rhodok_sergeant","Fergherian Master-Bear","Fergherian Master-Bears",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_shield|tf_guarantee_gloves,0,0,fac_kingdom_5,
   [itm_glaive,itm_military_hammer,itm_military_cleaver_c,itm_tab_shield_pavise_d,
    itm_full_helm, itm_bascinet_3,itm_bascinet_2,itm_surcoat_over_mail,itm_surcoat_over_mail,itm_heraldic_mail_with_surcoat,itm_mail_chausses,itm_leather_gloves,itm_mail_mittens],
   def_attrib|level(25),wp_one_handed (130) | wp_two_handed (115) | wp_polearm (155) | wp_archery (115) | wp_crossbow (115) | wp_throwing (115),knows_common|knows_ironflesh_6|knows_shield_5|knows_power_strike_5|knows_athletics_5,rhodok_face_middle_1, rhodok_face_older_2],tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_shield|tf_guarantee_gloves,0,0,fac_kingdom_5,
   [itm_glaive,itm_military_hammer,itm_military_cleaver_c,itm_tab_shield_pavise_d,
    itm_full_helm, itm_bascinet_3,itm_bascinet_2,itm_surcoat_over_mail,itm_surcoat_over_mail,itm_heraldic_mail_with_surcoat,itm_mail_chausses,itm_leather_gloves,itm_mail_mittens],
   def_attrib|level(40),wp_one_handed (250) | wp_two_handed (200) | wp_polearm (220) | wp_archery (115) | wp_crossbow (115) | wp_throwing (150),knows_common|knows_ironflesh_9|knows_shield_8|knows_power_strike_10|knows_athletics_10,rhodok_face_middle_1, rhodok_face_older_2],
  ["rhodok_crossbowman","Fergherian Stake-Shooter","Fergherian Stake-Shooters",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0,0,fac_kingdom_5,
   [itm_sword_medieval_a,itm_falchion,itm_club_with_spike_head,itm_tab_shield_pavise_a,itm_crossbow,itm_bolts,
    itm_arena_tunic_green,itm_felt_hat_b,itm_common_hood,itm_nomad_boots,itm_wrapping_boots],
   def_attrib|level(10),wp(85),knows_common|knows_ironflesh_2|knows_shield_1|knows_power_strike_1|knows_athletics_2,rhodok_face_young_1, rhodok_face_older_2],
  ["rhodok_trained_crossbowman","Fergherian Iron-Shooter","Fergherian Iron-Shooters",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged|tf_guarantee_shield,0,0,fac_kingdom_5,
   [itm_sword_medieval_a,itm_sword_medieval_b_small,itm_club_with_spike_head,itm_tab_shield_pavise_a,itm_crossbow,itm_bolts,
    itm_common_hood,itm_leather_armor,itm_arena_tunic_green,itm_nomad_boots],
   def_attrib|level(15),wp_one_handed (90) | wp_two_handed (90) | wp_polearm (90) | wp_archery (90) | wp_crossbow (105) | wp_throwing (90),knows_common|knows_ironflesh_1|knows_shield_2|knows_power_strike_2|knows_athletics_3,rhodok_face_young_1, rhodok_face_older_2],


It's in Module_troops.py

Somebody

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Bandit
  • WBWF&S
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10272 on: March 28, 2012, 02:28:16 AM »
Your problem's on the 4th line. Looks like you copy-pasted something over but not entirely, so rhodok_face_older_2],tf_guarantee_boots| is hanging over and affecting subsequent entries.

Caba`drin

  • Administrator
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • M&BWBWF&SNW
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10273 on: March 28, 2012, 02:28:40 AM »
Your problem is on the rhodok_sergeant line. There's a whole bunch of extra stuff there before the rhodok_crossbowman definition begins and after it should have ended--remove all this:

Code: [Select]
,tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_shield|tf_guarantee_gloves,0,0,fac_kingdom_5,
   [itm_glaive,itm_military_hammer,itm_military_cleaver_c,itm_tab_shield_pavise_d,
    itm_full_helm, itm_bascinet_3,itm_bascinet_2,itm_surcoat_over_mail,itm_surcoat_over_mail,itm_heraldic_mail_with_surcoat,itm_mail_chausses,itm_leather_gloves,itm_mail_mittens],
   def_attrib|level(40),wp_one_handed (250) | wp_two_handed (200) | wp_polearm (220) | wp_archery (115) | wp_crossbow (115) | wp_throwing (150),knows_common|knows_ironflesh_9|knows_shield_8|knows_power_strike_10|knows_athletics_10,rhodok_face_middle_1, rhodok_face_older_2],
 

EDIT - ninja'd by Somebody.



Stríð faðir

  • Guest
Re: Mount & Blade Mod Makers Q&A Thread
« Reply #10274 on: March 28, 2012, 03:03:30 AM »
Ah! Thank you very much! After this I also found several other missteps I had made but, i've fixed them. Thanks again.