Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
Will this work?

Code:
(try_begin),
  (question_box,"@Do you want to use custom or normal banners?", "@Custom", "@Normal"),
  (start_presentation, "prsnt_custom_banner"),
(else_try),
  (start_presentation, "prsnt_banner_selection"),
(try_end),

if not, how should I make it?
 
I modified an arena scene to use a new terrain border I created but when I visit it through my savefile I see no borders but only sky.
How do I fix that?
 
Multiple Tableau Banners:

Is it possible (and if so, how is it done) to make a dual-banner system in which each lord and player has two banners, one which determines their actual banner, and one which determines their skin color?

Armor which displays both at the same time is not necessary, but being able to make armor with exposed skin that matches the color of the face would be marvy.

I'm imagining a system with an extra option inserted in startup. Choose face, choose fur (or skin) color, choose banner, etc...

In my case, I would obviously like to use this for fur coloration in the Vermin Resurgence mod, but I know that rgcotl would want this as well. Any help would be greatly appreciated.
 
Mandible said:
Multiple Tableau Banners:
The existing tableau system uses offsets by storing scene prop references stored inside troop slots. If you look in module_tableau_meshes, you can also see that it references a slot value to determine color in trp_banner_background_color_array. You can instead store this color value in a troop slot and apply it directly.
 
Guess what? My little conversation about music files with Temuzu some days ago gave me an idea,
wrote a quick procedural reverser for them, now I've been working on it a little more.

It's fun. Expect results, soon.  :wink:

JAQiG.jpg



Here you have a quick snip as showcase.
Code:
from header_music import *
####################################################################################################################
#  Each track record contains the following fields:
#  1) Track id: used for referencing tracks.
#  2) Track file: filename of the track
#  3) Track flags. See header_music.py for a list of available flags
#  4) Continue Track flags: Shows in which situations or cultures the track can continue playing. See header_music.py for a list of available flags
####################################################################################################################

# WARNING: You MUST add mtf_module_track flag to the flags of the tracks located under module directory

tracks = [

("cant_find_this", "cant_find_this.ogg", 0, 0),
("ambushed_by_neutral", "ambushed_by_neutral.ogg", mtf_sit_ambushed|mtf_sit_siege, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("ambushed_by_khergit", "ambushed_by_khergit.ogg", mtf_culture_3|mtf_sit_ambushed|mtf_sit_siege, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("ambushed_by_nord", "ambushed_by_nord.ogg", mtf_culture_4|mtf_sit_ambushed|mtf_sit_siege, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("ambushed_by_rhodok", "ambushed_by_rhodok.ogg", mtf_culture_5|mtf_sit_ambushed|mtf_sit_siege, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("ambushed_by_swadian", "ambushed_by_swadian.ogg", mtf_culture_1|mtf_sit_ambushed|mtf_sit_siege, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("ambushed_by_vaegir", "ambushed_by_vaegir.ogg", mtf_culture_2|mtf_sit_ambushed|mtf_sit_siege, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("middle_eastern_action", "middle_eastern_action.ogg", mtf_culture_6|mtf_sit_ambushed|mtf_sit_siege, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("arena_1", "arena_1.ogg", mtf_sit_arena, mtf_sit_arena),
("armorer", "armorer.ogg", mtf_sit_travel, mtf_sit_travel),
("bandit_fight", "bandit_fight.ogg", mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("calm_night_2", "calm_night_2.ogg", mtf_sit_night, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("capture", "capture.ogg", mtf_persist_until_finished, mtf_persist_until_finished),
("defeated_by_neutral", "defeated_by_neutral.ogg", mtf_persist_until_finished|mtf_sit_killed, mtf_persist_until_finished|mtf_sit_killed),
("defeated_by_neutral_2", "defeated_by_neutral_2.ogg", mtf_persist_until_finished|mtf_sit_killed, mtf_persist_until_finished|mtf_sit_killed),
("defeated_by_neutral_3", "defeated_by_neutral_3.ogg", mtf_persist_until_finished|mtf_sit_killed, mtf_persist_until_finished|mtf_sit_killed),
("empty_village", "empty_village.ogg", mtf_persist_until_finished, mtf_persist_until_finished),
("encounter_hostile_nords", "encounter_hostile_nords.ogg", mtf_persist_until_finished|mtf_sit_encounter_hostile, mtf_persist_until_finished|mtf_sit_encounter_hostile),
("escape", "escape.ogg", mtf_persist_until_finished, mtf_persist_until_finished),
("fight_1", "fight_1.ogg", mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("fight_2", "fight_2.ogg", mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("fight_3", "fight_3.ogg", mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("fight_as_khergit", "fight_as_khergit.ogg", mtf_culture_3|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("percussion_battery", "percussion_battery.ogg", mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("fight_as_nord", "fight_as_nord.ogg", mtf_culture_4|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("fight_as_rhodok", "fight_as_rhodok.ogg", mtf_culture_5|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("fight_as_vaegir", "fight_as_vaegir.ogg", mtf_culture_2|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("fight_while_mounted_1", "fight_while_mounted_1.ogg", mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("fight_while_mounted_2", "fight_while_mounted_2.ogg", mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("warband_action", "warband_action.ogg", mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("infiltration_khergit", "infiltration_khergit.ogg", mtf_culture_3|mtf_sit_town_infiltrate, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_town_infiltrate),
("killed_by_khergit", "killed_by_khergit.ogg", mtf_culture_3|mtf_persist_until_finished|mtf_sit_killed, mtf_culture_3|mtf_persist_until_finished|mtf_sit_killed),
("killed_by_swadian", "killed_by_swadian.ogg", mtf_culture_1|mtf_persist_until_finished|mtf_sit_killed, mtf_culture_1|mtf_persist_until_finished|mtf_sit_killed),
("lords_hall_khergit", "lords_hall_khergit.ogg", mtf_culture_3|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("lords_hall_nord", "lords_hall_nord.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("lords_hall_swadian", "lords_hall_swadian.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("lords_hall_rhodok", "lords_hall_rhodok.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("lords_hall_vaegir", "lords_hall_vaegir.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("mounted_snow_terrain_calm", "mounted_snow_terrain_calm.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("neutral_infiltration", "neutral_infiltration.ogg", mtf_sit_town_infiltrate, mtf_sit_town_infiltrate),
("outdoor_beautiful_land", "outdoor_beautiful_land.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("retreat", "retreat.ogg", mtf_persist_until_finished|mtf_sit_killed, mtf_persist_until_finished|mtf_sit_killed),
("seige_neutral", "seige_neutral.ogg", mtf_sit_siege, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("enter_the_juggernaut", "enter_the_juggernaut.ogg", mtf_sit_siege, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("siege_attempt", "siege_attempt.ogg", mtf_sit_siege, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("crazy_battle_music", "crazy_battle_music.ogg", mtf_sit_siege, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("tavern_1", "tavern_1.ogg", mtf_sit_tavern|mtf_sit_feast, mtf_sit_tavern|mtf_sit_feast),
("tavern_2", "tavern_2.ogg", mtf_sit_tavern|mtf_sit_feast, mtf_sit_tavern|mtf_sit_feast),
("town_neutral", "town_neutral.ogg", mtf_sit_town|mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("town_khergit", "town_khergit.ogg", mtf_culture_3|mtf_sit_town|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("town_nord", "town_nord.ogg", mtf_culture_4|mtf_sit_town|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("town_rhodok", "town_rhodok.ogg", mtf_culture_5|mtf_sit_town|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("town_swadian", "town_swadian.ogg", mtf_culture_1|mtf_sit_town|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("town_vaegir", "town_vaegir.ogg", mtf_culture_2|mtf_sit_town|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("travel_khergit", "travel_khergit.ogg", mtf_culture_3|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("travel_neutral", "travel_neutral.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("travel_nord", "travel_nord.ogg", mtf_culture_4|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("travel_rhodok", "travel_rhodok.ogg", mtf_culture_5|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("travel_swadian", "travel_swadian.ogg", mtf_culture_1|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("travel_vaegir", "travel_vaegir.ogg", mtf_culture_2|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("middle_eastern_travel", "middle_eastern_travel.ogg", mtf_culture_6|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("uncertain_homestead", "uncertain_homestead.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("hearth_and_brotherhood", "hearth_and_brotherhood.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("tragic_village", "tragic_village.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("victorious_evil", "victorious_evil.ogg", mtf_persist_until_finished, mtf_persist_until_finished),
("victorious_neutral_1", "victorious_neutral_1.ogg", mtf_persist_until_finished|mtf_sit_victorious, mtf_persist_until_finished|mtf_sit_victorious),
("victorious_neutral_2", "victorious_neutral_2.ogg", mtf_persist_until_finished|mtf_sit_victorious, mtf_persist_until_finished|mtf_sit_victorious),
("victorious_neutral_3", "victorious_neutral_3.ogg", mtf_persist_until_finished|mtf_sit_victorious, mtf_persist_until_finished|mtf_sit_victorious),
("victorious_swadian", "victorious_swadian.ogg", mtf_culture_2|mtf_persist_until_finished|mtf_sit_victorious, mtf_culture_2|mtf_persist_until_finished|mtf_sit_victorious),
("victorious_vaegir", "victorious_vaegir.ogg", mtf_culture_2|mtf_persist_until_finished|mtf_sit_victorious, mtf_culture_2|mtf_persist_until_finished|mtf_sit_victorious),
("victorious_vaegir_2", "victorious_vaegir_2.ogg", mtf_culture_2|mtf_persist_until_finished|mtf_sit_victorious, mtf_culture_2|mtf_persist_until_finished|mtf_sit_victorious),
("wedding", "wedding.ogg", mtf_persist_until_finished, mtf_persist_until_finished),
("coronation", "coronation.ogg", mtf_persist_until_finished, mtf_persist_until_finished),
("oim_ambushed_by_neutral", "oim_ambushed_by_neutral.ogg", mtf_sit_ambushed|mtf_sit_siege, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("oim_calm_night_2", "oim_calm_night_2.ogg", mtf_sit_night, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("oim_capture", "oim_capture.ogg", mtf_persist_until_finished, mtf_persist_until_finished),
("oim_crazy_battle_music", "oim_crazy_battle_music.ogg", mtf_sit_siege, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("oim_defeated_by_neutral", "oim_defeated_by_neutral.ogg", mtf_persist_until_finished|mtf_sit_killed, mtf_persist_until_finished|mtf_sit_killed),
("oim_defeated_by_neutral_3", "oim_defeated_by_neutral_3.ogg", mtf_persist_until_finished|mtf_sit_killed, mtf_persist_until_finished|mtf_sit_killed),
("oim_encounter_hostile_nords", "oim_encounter_hostile_nords.ogg", mtf_persist_until_finished|mtf_sit_encounter_hostile, mtf_persist_until_finished|mtf_sit_encounter_hostile),
("oim_escape", "oim_escape.ogg", mtf_persist_until_finished, mtf_persist_until_finished),
("oim_enter_the_juggernaut", "oim_enter_the_juggernaut.ogg", mtf_sit_siege, mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed|mtf_sit_siege),
("oim_fight_as_khergit", "oim_fight_as_khergit.ogg", mtf_culture_3|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("oim_fight_as_nord", "oim_fight_as_nord.ogg", mtf_culture_4|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_fight|mtf_sit_multiplayer_fight|mtf_sit_ambushed),
("oim_killed_by_khergit", "oim_killed_by_khergit.ogg", mtf_culture_3|mtf_persist_until_finished|mtf_sit_killed, mtf_culture_3|mtf_persist_until_finished|mtf_sit_killed),
("oim_killed_by_swadian", "oim_killed_by_swadian.ogg", mtf_culture_1|mtf_persist_until_finished|mtf_sit_killed, mtf_culture_1|mtf_persist_until_finished|mtf_sit_killed),
("oim_lords_hall_khergit", "oim_lords_hall_khergit.ogg", mtf_culture_3|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("oim_lords_hall_nord", "oim_lords_hall_nord.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("oim_mount_and_blade_title_screen", "oim_mount_and_blade_title_screen.ogg", mtf_start_immediately|mtf_sit_main_title, mtf_start_immediately|mtf_sit_main_title),
("oim_neutral_infiltration", "oim_neutral_infiltration.ogg", mtf_sit_town_infiltrate, mtf_sit_town_infiltrate),
("oim_retreat", "oim_retreat.ogg", mtf_persist_until_finished|mtf_sit_killed, mtf_persist_until_finished|mtf_sit_killed),
("oim_town_neutral", "oim_town_neutral.ogg", mtf_sit_town|mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("oim_town_nord", "oim_town_nord.ogg", mtf_culture_4|mtf_sit_town|mtf_sit_travel, mtf_culture_1|mtf_culture_2|mtf_culture_3|mtf_culture_4|mtf_culture_5|mtf_culture_6|mtf_culture_all|mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("oim_tragic_village", "oim_tragic_village.ogg", mtf_sit_travel, mtf_sit_tavern|mtf_sit_town|mtf_sit_travel|mtf_sit_night),
("oim_victorious_evil", "oim_victorious_evil.ogg", mtf_persist_until_finished, mtf_persist_until_finished),
("oim_victorious_swadian", "oim_victorious_swadian.ogg", mtf_culture_2|mtf_persist_until_finished|mtf_sit_victorious, mtf_culture_2|mtf_persist_until_finished|mtf_sit_victorious),

  
]
 
Hi everyone, bit of an issue here. I added a hell of a lot of new items today, and the items themselves seem without issue, but I received an error stating the following:

File "process_items.py", line 72, in <module>
    write_items(variables,variable_uses,tag_uses,quick_strings)
  File "process_items.py", line 29, in write_items
    ofile.write(" %s %d "%(item_variation[0],item_variation[1]))
TypeError: %d format: a number is required, not str

Any suggestions? I've gone through the files to check for missing brackets and quotation marks, but I didn't find any
 
Somebody said:
Mandible said:
Multiple Tableau Banners:
The existing tableau system uses offsets by storing scene prop references stored inside troop slots. If you look in module_tableau_meshes, you can also see that it references a slot value to determine color in trp_banner_background_color_array. You can instead store this color value in a troop slot and apply it directly.

That sounds great. I wish I had the experience to actually do what you suggest, but its a bit tough. Things looked good when Theoris signed on, but since he disappeared, I've been stuck without a coder. I don't suppose you (or anyone else) would like to help me set this up, would you? Sure I could delve into learning how to code, and perhaps I will, but just doing the modelling is time consuming enough.
 
Somebody said:
You probably messed up a list of meshes variations. It's a list of item tuples, and goes like [("mesh_1", flag),("mesh_2", flag)].
Thanks a lot, I forgot to add a ',0' after the mesh name
Cheers
 
Code:
   (troop_set_slot, "trp_whatever", slot_troop_custom_banner_bg_color_1, 0xffrrggbb),
   ...
  #script_shield_item_set_banner
  # INPUT: agent_no
  # OUTPUT: none
  ("shield_item_set_banner",
    [
       (store_script_param, ":tableau_no",1),
       (store_script_param, ":agent_no", 2),
       (store_script_param, ":troop_no", 3),
       (call_script, "script_agent_troop_get_banner_mesh", ":agent_no", ":troop_no"),
       (troop_get_slot, ":color", ":troop_no", slot_troop_custom_banner_bg_color_1),
       (cur_item_set_tableau_material, ":tableau_no", reg0, ":color"),
     ]),
Code:
  ("heraldic_armor_d", 0, "sample_heraldic_armor_d", 512, 512, 0, 0, 0, 0,
   [
       (store_script_param, ":banner_mesh", 1),
       (store_script_param, ":color", 2),

       (set_fixed_point_multiplier, 100),
       (cur_tableau_set_background_color, ":color"),

       (init_position, pos1),
       (cur_tableau_add_mesh_with_vertex_color, "mesh_heraldic_armor_bg", pos1, 200, 100, ":color"),
       ...
 
I am grateful, but I think I'll just have to save this for later when I actually understand a bit more of this stuff. Its not just a simple copy/paste job and I'm not quite sure what else I have to do.
 
Status
Not open for further replies.
Back
Top Bottom