Modding Q&A [For Quick Questions and Answers]

Users who are viewing this thread

Status
Not open for further replies.
Kortlcha said:
Hi:
Code:
#mod eklemeleri baslangic
      (try_for_parties, ":parti"),
      (party_set_slot, "p_town_1", slot_region_cattle, 5407),
      (party_set_slot, "p_town_1", slot_region_sheep, 10289),
      (party_set_slot, "p_town_1", slot_region_wolf, 3417),
      (party_set_slot, "p_town_1", slot_region_bear, 4728),
      (party_set_slot, "p_town_1", slot_region_pig, 5824),
      (party_set_slot, "p_town_1", slot_region_horse, 6436),
      (party_set_slot, "p_town_1", slot_region_bird, 6995),
      (party_set_slot, "p_town_1", slot_region_fox, 2509),
      (party_set_slot, "p_town_1", slot_region_donkey, 4058),
      (party_set_slot, "p_town_1", slot_region_dog, 7483),
      (party_set_slot, "p_town_1", slot_region_cat, 6874),
      (party_set_slot, "p_town_1", slot_region_insect, 20935),
      (party_set_slot, "p_town_1", slot_region_goat, 4557),
      (party_set_slot, "p_town_1", slot_region_rabbit, 8904),
      (party_set_slot, "p_town_2", slot_region_cattle, 3776),
      (party_set_slot, "p_town_2", slot_region_sheep, 4472),
      (party_set_slot, "p_town_2", slot_region_wolf, 2144),
      (party_set_slot, "p_town_2", slot_region_bear, 2262),
      (party_set_slot, "p_town_2", slot_region_pig, 1589),
      (party_set_slot, "p_town_2", slot_region_horse, 8255),
      (party_set_slot, "p_town_2", slot_region_bird, 12009),
      (party_set_slot, "p_town_2", slot_region_fox, 2251),
      (party_set_slot, "p_town_2", slot_region_donkey, 6674),
      (party_set_slot, "p_town_2", slot_region_dog, 3425),
      (party_set_slot, "p_town_2", slot_region_cat, 1790),
      (party_set_slot, "p_town_2", slot_region_insect, 34764),
      (party_set_slot, "p_town_2", slot_region_goat, 4982),
      (party_set_slot, "p_town_2", slot_region_rabbit, 8254),
      (party_set_slot, "p_town_3", slot_region_cattle, 8092),
      (party_set_slot, "p_town_3", slot_region_sheep, 12494),
      (party_set_slot, "p_town_3", slot_region_wolf, 758),
      (party_set_slot, "p_town_3", slot_region_bear, 104),
      (party_set_slot, "p_town_3", slot_region_pig, 5934),
      (party_set_slot, "p_town_3", slot_region_horse, 12452),
      (party_set_slot, "p_town_3", slot_region_bird, 24409),
      (party_set_slot, "p_town_3", slot_region_fox, 1454),
      (party_set_slot, "p_town_3", slot_region_donkey, 14205),
      (party_set_slot, "p_town_3", slot_region_dog, 9337),
      (party_set_slot, "p_town_3", slot_region_cat, 6783),
      (party_set_slot, "p_town_3", slot_region_insect, 39486),
      (party_set_slot, "p_town_3", slot_region_goat, 7509),
      (party_set_slot, "p_town_3", slot_region_rabbit, 12965),
      (party_set_slot, "p_town_4", slot_region_cattle, 7236),
      (party_set_slot, "p_town_4", slot_region_sheep, 8935),
      (party_set_slot, "p_town_4", slot_region_wolf, 4526),
      (party_set_slot, "p_town_4", slot_region_bear, 3248),
      (party_set_slot, "p_town_4", slot_region_rabbit, 8935),
      (party_set_slot, "p_town_4", slot_region_pig, 7084),
      (party_set_slot, "p_town_4", slot_region_fox, 3494),
      (party_set_slot, "p_town_4", slot_region_dog, 4728),
      (party_set_slot, "p_town_4", slot_region_goat, 7648),
      (party_set_slot, "p_town_4", slot_region_insect, 21289),
      (party_set_slot, "p_town_4", slot_region_bird, 12204),
      (party_set_slot, "p_town_4", slot_region_cat, 4598),
      (party_set_slot, "p_town_4", slot_region_donkey, 6434),
      (party_get_current_terrain, ":trn", ":parti"),
      (is_between, ":parti" "p_town_5", "p_castle_1"),
      (try_begin),
      (eq, ":trn", rt_desert),
      (party_set_slot, ":parti", slot_region_cow, 9438),
      (party_set_slot, ":parti", slot_region_cattle, 5442),
      (party_set_slot, ":parti", slot_region_sheep, 9568),
      (party_set_slot, ":parti", slot_region_horse, 2452),
      (party_set_slot, ":parti", slot_region_bird, 6945),
      (party_set_slot, ":parti", slot_region_donkey, 2246),
      (party_set_slot, ":parti", slot_region_elephant, 3675),
      (party_set_slot, ":parti", slot_region_camel, 9836),
      (party_set_slot, ":parti", slot_region_dog, 5773),
      (party_set_slot, ":parti", slot_region_cat, 4627),
      (party_set_slot, ":parti", slot_region_insect, 21567),
      (party_set_slot, ":parti", slot_region_goat, 6421),
      (party_set_slot, ":parti", slot_region_lion, 2763),
      (party_set_slot, ":parti", slot_region_jaguar, 2147),
      (party_set_slot, ":parti", slot_region_giraffe, 8625),
      (party_set_slot, ":parti", slot_region_rhino, 7258),
      (party_set_slot, ":parti", slot_region_laughing_hyena, 3587),
      (party_set_slot, ":parti", slot_region_zebra, 8542),
      (party_set_slot, ":parti", slot_region_cheetah, 3761),
      (party_set_slot, ":parti", slot_region_eagle, 6780),
      (party_set_slot, ":parti", slot_region_antelope, 9854),
      (party_set_slot, ":parti", slot_region_gazelle, 4779),
      (party_set_slot, ":parti", slot_region_rabbit, 8955),
      (try_end),
      (try_end),

#slot_center_pop
    (try_for_parties, ":center_numarasi"),
    (try_begin),

#    (is_between, ":center_numarasi", towns_begin, towns_end), # sehirler
    (party_get_slot, ":pop", ":center_numarasi", slot_center_pop),
    (assign, reg9, 10000),
    (try_begin),
    (eq, ":center_numarasi", "p_town_1"),
    (val_add, reg9, 259),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_2"),
    (val_sub, reg9, 3527),
    (party_set_slot, ":center_numarasi", slot_center_pop,reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_3"),
    (val_add, reg9, 2304),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_4"),
    (val_add, reg9, 38008),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_5"),
    (val_add, reg9, 32395),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_6"),
    (val_add, reg9, 28094),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9), 
    (else_try),
    (eq, ":center_numarasi", "p_town_7"),
    (val_add, reg9, 9002),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_8"),
    (val_add, reg9, 6780),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_9"),
    (val_add, reg9, 5456),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_10"),
    (val_add, reg9, 21855),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_11"),
    (val_add, reg9, 6901),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_12"),
    (val_add, reg9, 2392),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_13"),
    (val_add, reg9, 22809),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_14"),
    (val_add, reg9, 247),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_15"),
    (val_add, reg9, 2297),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_16"),
    (val_add, reg9, 1316),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_17"),
    (val_add, reg9, 5590),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_18"),
    (val_add, reg9, 2305),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_19"),
    (val_add, reg9, 24408),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_20"),
    (val_add, reg9, 12),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_21"),
    (val_add, reg9, 114),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),
    (else_try),
    (eq, ":center_numarasi", "p_town_22"),
    (val_add, reg9, 4),
    (party_set_slot, ":center_numarasi", slot_center_pop, reg9),#koyler icin asagida
    (try_end),
#    (assign, "$base_population_of_center", ":town_base_population"),
    (try_end),
    (try_end),

     (party_set_slot, "p_main_party", slot_met, 0),
     (party_set_slot, "p_main_party", slot_main_party_being_followed_by_asker_a, 0),

      (party_set_slot, "p_town_1", slot_town_ulasim_1, "p_town_2"),
      (party_set_slot, "p_town_1", slot_town_ulasim_2, "p_castle_5"),
      (party_set_slot, "p_town_1", slot_town_ulasim_3, "p_castle_11"),
      (party_set_slot, "p_town_1", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_2", slot_town_ulasim_1, "p_castle_5"),
      (party_set_slot, "p_town_2", slot_town_ulasim_2, "p_castle_34"),
      (party_set_slot, "p_town_2", slot_town_ulasim_3, "p_castle_36"),
      (party_set_slot, "p_town_2", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_3", slot_town_ulasim_1, "p_castle_28"),
      (party_set_slot, "p_town_3", slot_town_ulasim_2, "p_castle_15"),
      (party_set_slot, "p_town_3", slot_town_ulasim_3, "p_castle_33"),
      (party_set_slot, "p_town_3", slot_town_ulasim_4, "p_town_5"),

      (party_set_slot, "p_town_4", slot_town_ulasim_1, "p_town_6"),
      (party_set_slot, "p_town_4", slot_town_ulasim_2, "p_castle_35"),
      (party_set_slot, "p_town_4", slot_town_ulasim_3, "p_castle_25"),
      (party_set_slot, "p_town_4", slot_town_ulasim_4, "p_town_7"),

      (party_set_slot, "p_town_5", slot_town_ulasim_1, "p_town_3"),
      (party_set_slot, "p_town_5", slot_town_ulasim_2, "p_castle_21"),
      (party_set_slot, "p_town_5", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_5", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_6", slot_town_ulasim_1, "p_town_4"),
      (party_set_slot, "p_town_6", slot_town_ulasim_2, "p_castle_35"),
      (party_set_slot, "p_town_6", slot_town_ulasim_3, "p_castle_25"),
      (party_set_slot, "p_town_6", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_7", slot_town_ulasim_1, "p_town_4"),
      (party_set_slot, "p_town_7", slot_town_ulasim_2, "p_castle_31"),
      (party_set_slot, "p_town_7", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_7", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_8", slot_town_ulasim_1, "p_castle_4"),
      (party_set_slot, "p_town_8", slot_town_ulasim_2, "p_castle_19"),
      (party_set_slot, "p_town_8", slot_town_ulasim_3, "p_town_11"),
      (party_set_slot, "p_town_8", slot_town_ulasim_4, "p_castle_37"),

      (party_set_slot, "p_town_9", slot_town_ulasim_1, "p_castle_19"),
      (party_set_slot, "p_town_9", slot_town_ulasim_2, 0),
      (party_set_slot, "p_town_9", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_9", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_10", slot_town_ulasim_1, "p_castle_17"),
      (party_set_slot, "p_town_10", slot_town_ulasim_2, 0),
      (party_set_slot, "p_town_10", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_10", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_11", slot_town_ulasim_1, "p_castle_39"),
      (party_set_slot, "p_town_11", slot_town_ulasim_2, "p_castle_4"),
      (party_set_slot, "p_town_11", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_11", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_12", slot_town_ulasim_1, "p_castle_10"),
      (party_set_slot, "p_town_12", slot_town_ulasim_2, 0),
      (party_set_slot, "p_town_12", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_12", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_13", slot_town_ulasim_1, "p_castle_3"),
      (party_set_slot, "p_town_13", slot_town_ulasim_2, 0),
      (party_set_slot, "p_town_13", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_13", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_14", slot_town_ulasim_1, "p_castle_22"),
      (party_set_slot, "p_town_14", slot_town_ulasim_2, "p_castle_40"),
      (party_set_slot, "p_town_14", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_14", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_15", slot_town_ulasim_1, "p_castle_14"),
      (party_set_slot, "p_town_15", slot_town_ulasim_2, 0),
      (party_set_slot, "p_town_15", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_15", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_16", slot_town_ulasim_1, "p_castle_20"),
      (party_set_slot, "p_town_16", slot_town_ulasim_2, "p_castle_26"),
      (party_set_slot, "p_town_16", slot_town_ulasim_3, "p_castle_6"),
      (party_set_slot, "p_town_16", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_17", slot_town_ulasim_1, "p_town_10"),
      (party_set_slot, "p_town_17", slot_town_ulasim_2, "p_castle_7"),
      (party_set_slot, "p_town_17", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_17", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_18", slot_town_ulasim_1, "p_town_14"),
      (party_set_slot, "p_town_18", slot_town_ulasim_2, "p_castle_2"),
      (party_set_slot, "p_town_18", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_18", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_19", slot_town_ulasim_1, "p_castle_45"),
      (party_set_slot, "p_town_19", slot_town_ulasim_2, "p_castle_46"),
      (party_set_slot, "p_town_19", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_19", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_20", slot_town_ulasim_1, "p_castle_42"),
      (party_set_slot, "p_town_20", slot_town_ulasim_2, 0),
      (party_set_slot, "p_town_20", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_20", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_21", slot_town_ulasim_1, "p_castle_48"),
      (party_set_slot, "p_town_21", slot_town_ulasim_2, "p_castle_44"),
      (party_set_slot, "p_town_21", slot_town_ulasim_3, "p_castle_48"),
      (party_set_slot, "p_town_21", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_22", slot_town_ulasim_1, "p_castle_48"),
      (party_set_slot, "p_town_22", slot_town_ulasim_2, 0),
      (party_set_slot, "p_town_22", slot_town_ulasim_3, 0),
      (party_set_slot, "p_town_22", slot_town_ulasim_4, 0),

      (party_set_slot, "p_town_1", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_2", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_3", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_4", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_5", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_6", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_7", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_8", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_9", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_10", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_11", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_12", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_13", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_14", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_15", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_16", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_17", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_18", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_19", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_20", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_21", slot_town_barrack_recruit_pri, 0),
      (party_set_slot, "p_town_22", slot_town_barrack_recruit_pri, 0),

      (party_set_slot, "p_town_1", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_2", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_3", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_4", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_5", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_6", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_7", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_8", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_9", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_10", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_11", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_12", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_13", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_14", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_15", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_16", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_17", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_18", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_19", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_20", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_21", slot_town_barrack_recruit_sec, 0),
      (party_set_slot, "p_town_22", slot_town_barrack_recruit_sec, 0),

      (party_set_slot, "p_town_1", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_2", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_3", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_4", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_5", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_6", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_7", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_8", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_9", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_10", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_11", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_12", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_13", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_14", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_15", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_16", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_17", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_18", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_19", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_20", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_21", slot_town_barrack_recruit_third, 0),
      (party_set_slot, "p_town_22", slot_town_barrack_recruit_third, 0),
      

      (party_set_slot, "p_town_1", slot_town_barrack_capacity, 12),
      (party_set_slot, "p_town_2", slot_town_barrack_capacity, 8),
      (party_set_slot, "p_town_3", slot_town_barrack_capacity, 2),
      (party_set_slot, "p_town_4", slot_town_barrack_capacity, 3),
      (party_set_slot, "p_town_5", slot_town_barrack_capacity, 4),
      (party_set_slot, "p_town_6", slot_town_barrack_capacity, 6),
      (party_set_slot, "p_town_7", slot_town_barrack_capacity, 4),
      (party_set_slot, "p_town_8", slot_town_barrack_capacity, 8),
      (party_set_slot, "p_town_9", slot_town_barrack_capacity, 3),
      (party_set_slot, "p_town_10", slot_town_barrack_capacity, 12),
      (party_set_slot, "p_town_11", slot_town_barrack_capacity, 4),
      (party_set_slot, "p_town_12", slot_town_barrack_capacity, 9),
      (party_set_slot, "p_town_13", slot_town_barrack_capacity, 2),
      (party_set_slot, "p_town_14", slot_town_barrack_capacity, 8),
      (party_set_slot, "p_town_15", slot_town_barrack_capacity, 4),
      (party_set_slot, "p_town_16", slot_town_barrack_capacity, 7),
      (party_set_slot, "p_town_17", slot_town_barrack_capacity, 6),
      (party_set_slot, "p_town_18", slot_town_barrack_capacity, 10),
      (party_set_slot, "p_town_19", slot_town_barrack_capacity, 5),
      (party_set_slot, "p_town_20", slot_town_barrack_capacity, 4),
      (party_set_slot, "p_town_21", slot_town_barrack_capacity, 3),
      (party_set_slot, "p_town_22", slot_town_barrack_capacity, 4),

      (try_begin),
      (party_set_slot, "p_town_1", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_2", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_3", slot_town_infantry_barrack_level, 0),
      (party_set_slot, "p_town_4", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_5", slot_town_infantry_barrack_level, 2),
      (party_set_slot, "p_town_6", slot_town_infantry_barrack_level, 2),
      (party_set_slot, "p_town_7", slot_town_infantry_barrack_level, 0),
      (party_set_slot, "p_town_8", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_9", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_10", slot_town_infantry_barrack_level, 2),
      (party_set_slot, "p_town_11", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_12", slot_town_infantry_barrack_level, 2),
      (party_set_slot, "p_town_13", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_14", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_15", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_16", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_17", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_18", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_19", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_20", slot_town_infantry_barrack_level, 0),
      (party_set_slot, "p_town_21", slot_town_infantry_barrack_level, 1),
      (party_set_slot, "p_town_22", slot_town_infantry_barrack_level, 2),

      (party_set_slot, "p_town_1", slot_town_archer_barrack_level, 0),
      (party_set_slot, "p_town_2", slot_town_archer_barrack_level, 2),
      (party_set_slot, "p_town_3", slot_town_archer_barrack_level, 3),
      (party_set_slot, "p_town_4", slot_town_archer_barrack_level, 1),
      (party_set_slot, "p_town_5", slot_town_archer_barrack_level, 0),
      (party_set_slot, "p_town_6", slot_town_archer_barrack_level, 1),
      (party_set_slot, "p_town_7", slot_town_archer_barrack_level, 1),
      (party_set_slot, "p_town_8", slot_town_archer_barrack_level, 2),
      (party_set_slot, "p_town_9", slot_town_archer_barrack_level, 3),
      (party_set_slot, "p_town_10", slot_town_archer_barrack_level, 3),
      (party_set_slot, "p_town_11", slot_town_archer_barrack_level, 2),
      (party_set_slot, "p_town_12", slot_town_archer_barrack_level, 2),
      (party_set_slot, "p_town_13", slot_town_archer_barrack_level, 1),
      (party_set_slot, "p_town_14", slot_town_archer_barrack_level, 3),
      (party_set_slot, "p_town_15", slot_town_archer_barrack_level, 1),
      (party_set_slot, "p_town_16", slot_town_archer_barrack_level, 1),
      (party_set_slot, "p_town_17", slot_town_archer_barrack_level, 3),
      (party_set_slot, "p_town_18", slot_town_archer_barrack_level, 3),
      (party_set_slot, "p_town_19", slot_town_archer_barrack_level, 2),
      (party_set_slot, "p_town_20", slot_town_archer_barrack_level, 1),
      (party_set_slot, "p_town_21", slot_town_archer_barrack_level, 1),
      (party_set_slot, "p_town_22", slot_town_archer_barrack_level, 0),

      (party_set_slot, "p_town_1", slot_town_cavalry_barrack_level, 0),
      (party_set_slot, "p_town_2", slot_town_cavalry_barrack_level, 0),
      (party_set_slot, "p_town_3", slot_town_cavalry_barrack_level, 0),
      (party_set_slot, "p_town_4", slot_town_cavalry_barrack_level, 3),
      (party_set_slot, "p_town_5", slot_town_cavalry_barrack_level, 0),
      (party_set_slot, "p_town_6", slot_town_cavalry_barrack_level, 3),
      (party_set_slot, "p_town_7", slot_town_cavalry_barrack_level, 2),
      (party_set_slot, "p_town_8", slot_town_cavalry_barrack_level, 2),
      (party_set_slot, "p_town_9", slot_town_cavalry_barrack_level, 0),
      (party_set_slot, "p_town_10", slot_town_cavalry_barrack_level, 3),
      (party_set_slot, "p_town_11", slot_town_cavalry_barrack_level, 0),
      (party_set_slot, "p_town_12", slot_town_cavalry_barrack_level, 0),
      (party_set_slot, "p_town_13", slot_town_cavalry_barrack_level, 1),
      (party_set_slot, "p_town_14", slot_town_cavalry_barrack_level, 3),
      (party_set_slot, "p_town_15", slot_town_cavalry_barrack_level, 1),
      (party_set_slot, "p_town_16", slot_town_cavalry_barrack_level, 2),
      (party_set_slot, "p_town_17", slot_town_cavalry_barrack_level, 3),
      (party_set_slot, "p_town_18", slot_town_cavalry_barrack_level, 3),
      (party_set_slot, "p_town_19", slot_town_cavalry_barrack_level, 3),
      (party_set_slot, "p_town_20", slot_town_cavalry_barrack_level, 3),
      (party_set_slot, "p_town_21", slot_town_cavalry_barrack_level, 2),
      (party_set_slot, "p_town_22", slot_town_cavalry_barrack_level, 1),
 
      (try_for_parties, ":party_towns"),
      (is_between, ":party_towns", "p_town_1","p_castle_1"),
      (party_get_slot, ":slot_id", slot_town_barrack_capacity, ":party_towns"),
      (val_mul, ":slot_id", 100),
      (party_set_slot, ":party_towns", slot_town_barrack_recruit_limit, ":slot"),
      (try_end),
      (try_end),
    #mod eklemeleri bitis
When launching sp, a problem appears:

What is the problem?

What does your rgl_log say? It might flag the point at which processing failed.
 
NPC99 said:
I've moved every village on multiple campaign maps. Check Thorgrim's resources.txt has:
load_resource = map_icon_meshes
load_resource = map_icons_b
load_resource = map_icons_c

Edit your parties.txt with notepad & replace all instances of 2114577 & 2114575 & 2114584 warband village icons with 2114574 an old M&B village icon. Then you can move all your villages.

PS make sure you are using the old M&B map_icons.txt with the map you're editing.
Hmm, will have to try that.
Thanks!
 
Hello, can anybody explain to me what is this error?
ERROR: Usage of unassigned local variable: :agent_no

And what can I do to fix it? Thanks
 
Dangerdude said:
Hello, can anybody explain to me what is this error?
ERROR: Usage of unassigned local variable: :agent_no

And what can I do to fix it? Thanks

It means you never assigned value to said variable before using it. Its empty and warband dont like it. To fix that you must assign proper value to variable before using it.
 
Dangerdude said:
Hello, can anybody explain to me what is this error?
ERROR: Usage of unassigned local variable: :agent_no

And what can I do to fix it? Thanks

Local variables are created on the fly & marked with a colon. They only exist within the current code block, which is marked by square brackets. So they must be assigned a value in the current code block before they can be used or you get the unassigned error. The fact that you may have used the same name in a different code block is irrelevant, that value does not carry over from one code block to another.
 
Dangerdude said:
By value you mean like a number, right? Also, I have no idea in which line the error could be located. Is there a way to find out?

Most probably its in section you recently edited. Also compiler usually shows line. Is it full error message? Kinda doubt.
 
EmielRegis said:
Dangerdude said:
By value you mean like a number, right? Also, I have no idea in which line the error could be located. Is there a way to find out?

Most probably its in section you recently edited. Also compiler usually shows line. Is it full error message? Kinda doubt.
I don't know what you mean by full error. I haven't edited any codes lately so I have no idea where the error came from
 
Dangerdude said:
EmielRegis said:
Dangerdude said:
By value you mean like a number, right? Also, I have no idea in which line the error could be located. Is there a way to find out?

Most probably its in section you recently edited. Also compiler usually shows line. Is it full error message? Kinda doubt.
I don't know what you mean by full error. I haven't edited any codes lately so I have no idea where the error came from

uhh..Maybe tell when exactly that error is shown. And where. Use pastebin to post your rgl_log.txt too.
 
EmielRegis said:
Dangerdude said:
EmielRegis said:
Dangerdude said:
By value you mean like a number, right? Also, I have no idea in which line the error could be located. Is there a way to find out?

Most probably its in section you recently edited. Also compiler usually shows line. Is it full error message? Kinda doubt.
I don't know what you mean by full error. I haven't edited any codes lately so I have no idea where the error came from

uhh..Maybe tell when exactly that error is shown. And where. Use pastebin to post your rgl_log.txt too.
It's shown right after "Exporting mission_template data"
Code:
Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Exporting mission_template data...
ERROR: Usage of unassigned local variable: :agent_no
WARNING: Local variable never used: player_class, at: 0
WARNING: Local variable never used: agent_troop_id, at: 0
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

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

rgl_log: https://pastebin.com/QvHFtAri
 
Dangerdude said:
It's shown right after "Exporting mission_template data"
Code:
Initializing...
Compiling all global variables...
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Exporting mission_template data...
ERROR: Usage of unassigned local variable: :agent_no
WARNING: Local variable never used: player_class, at: 0
WARNING: Local variable never used: agent_troop_id, at: 0
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
Then search module_mission_templates for all cases of these variables (or re-check the triggers you edited) and find triggers where agent_no is not declared (vie assign, store_trigger_param, store_add(_mul/div/etc.), _get_slot and other operations like this) and the other 2 are not used.
E.g. this is a correct start of a trigger:
Code:
	  (ti_on_agent_spawn, 0, 0, [],
       [
         (store_trigger_param_1,":agent_no"), (agent_get_troop_id, ":troop_no", ":agent_no"), (eq,":troop_no", "trp_player"),
         ]),
Now imagine I forgot (store_trigger_param_1,":agent_no"), operation or copy-pasted it from somewhere where it looked like (store_trigger_param_1,":agent_id"), and forgot to rename the local variable.
Whoops! I'm requesting agent_get_troop_id from ":agent_no" local variable but the game has no data about it since it was not declared (assigned anything - and preferably not anything, but some agent id). Naturally, it's like "WTF?!".
 
Does anyone know if and how much the mission templates are hard coded?

In the file itself there is a comment that states that everything above is "hardwired", but it can't be completely so, because otherwise things like the Tavern Animations Pack wouldn't work.

However, when I try to edit the tavern mission template (specifically to change the music code) it just seems to ignore my changes.
 
Vershner said:
Does anyone know if and how much the mission templates are hard coded?

In the file itself there is a comment that states that everything above is "hardwired", but it can't be completely so, because otherwise things like the Tavern Animations Pack wouldn't work.

However, when I try to edit the tavern mission template (specifically to change the music code) it just seems to ignore my changes.

There can be manyyyyyyyyy reasons why you didnt suceeded. Post exactly what you changed, how and where.
 
EmielRegis said:
Vershner said:
Does anyone know if and how much the mission templates are hard coded?

In the file itself there is a comment that states that everything above is "hardwired", but it can't be completely so, because otherwise things like the Tavern Animations Pack wouldn't work.

However, when I try to edit the tavern mission template (specifically to change the music code) it just seems to ignore my changes.

There can be manyyyyyyyyy reasons why you didnt suceeded. Post exactly what you changed, how and where.
In the town_default template, I changed the code that selects the music to this:
Code:
      (1, 0, ti_once, [], 
      [
        (store_current_scene, ":cur_scene"),
        (scene_set_slot, ":cur_scene", slot_scene_visited, 1),
        (try_begin),
          (eq, "$sneaked_into_town", 1),
          (call_script, "script_music_set_situation_with_culture", mtf_sit_town_infiltrate),
        (else_try),
          (eq, "$talk_context", tc_tavern_talk),
		  (try_begin),
		    (eq, "$bardintavern", 1),
			(music_set_situation, 0),
			(display_message, "@Bard in tavern"),
		  (else_try),
            (call_script, "script_music_set_situation_with_culture", mtf_sit_tavern),
		  (try_end),
        (else_try),
          (call_script, "script_music_set_situation_with_culture", mtf_sit_town),
        (try_end),
      ]),

The message is never displayed and the music does not stop.  $bardintavern is set in the dedal_tavern_animations section.  Attempts to display $bardintavern don't seem to work either.
 
Can someone recommend a good shader (or some workaround) for brown metal things?
Because standard specular_shader_blahblahblah makes them look like leather:
3LXZvFD.jpg

3LXZFJy.jpg
 
Vershner said:
EmielRegis said:
Vershner said:
Does anyone know if and how much the mission templates are hard coded?

In the file itself there is a comment that states that everything above is "hardwired", but it can't be completely so, because otherwise things like the Tavern Animations Pack wouldn't work.

However, when I try to edit the tavern mission template (specifically to change the music code) it just seems to ignore my changes.

There can be manyyyyyyyyy reasons why you didnt suceeded. Post exactly what you changed, how and where.
In the town_default template, I changed the code that selects the music to this:
Code:
      (1, 0, ti_once, [], 
      [
        (store_current_scene, ":cur_scene"),
        (scene_set_slot, ":cur_scene", slot_scene_visited, 1),
        (try_begin),
          (eq, "$sneaked_into_town", 1),
          (call_script, "script_music_set_situation_with_culture", mtf_sit_town_infiltrate),
        (else_try),
          (eq, "$talk_context", tc_tavern_talk),
		  (try_begin),
		    (eq, "$bardintavern", 1),
			(music_set_situation, 0),
			(display_message, "@Bard in tavern"),
		  (else_try),
            (call_script, "script_music_set_situation_with_culture", mtf_sit_tavern),
		  (try_end),
        (else_try),
          (call_script, "script_music_set_situation_with_culture", mtf_sit_town),
        (try_end),
      ]),

The message is never displayed and the music does not stop.  $bardintavern is set in the dedal_tavern_animations section.  Attempts to display $bardintavern don't seem to work either.
Nevermind, I sorted it out.  $bardintavern wasn't getting set properly.
 
Hi! Thank you for reading this.

I'm usually not one to ask for help so thank you so much for reading this, I've run into a good bit of trouble with the module me and my friends are making. A week or so ago i had the help of a really good friend called Ramaraunt, he said that if we help him with his mod then he can help me and my friends with ours. However, as of 3 days ago i have no clue where he went, so thus i lost my 'teacher'. Prior to him leaving, Ramaraunt told me to use 'Swyter's Cartographer' for our campaign mod. I've done as Ramaraunt told me and have dug around, edited the Environmental Variables, Installed Python, however, when trying to load up the Cartographer i receive this message:

"'luajit' is not recognized as an internal or external command, operable program, or batch file."

After that, the Command Prompt just closes down.
Naturally, i dig around the folder more-so and find an executable file called 'luajit.exe', i click it and receive this message:

"The procedure entry point luaJIT_version_2_0_0_beta10 could not be located in the dynamic link library lua51.dll"
Being quite the inexperienced fellow, i have no idea what this means.

Any help is very appreciated! :grin:
 
Hi everyone,

Does it matter where in module_items new items go? If you just added new items at the bottom of the file, does that mess anything up (Like Garauntee weapons for troops, or shops, or what have you)?

Thanks!
 
TheCaitularity said:
Hi everyone,

Does it matter where in module_items new items go? If you just added new items at the bottom of the file, does that mess anything up (Like Garauntee weapons for troops, or shops, or what have you)?

Thanks!

If you put them before  last "]"  it should be fine.
 
Status
Not open for further replies.
Back
Top Bottom