Hello everyone. Please forgive my ignorance but I'm new to this game and I've just recently started playing with the module system. I copied Native to "Mine" so that I'd have a new module to work on. My problem is that I think I've missed something and while I've done alot of searching on the forums, I missed or didn't see how to do what I wanted to. I am trying to start out as King of a faction just for fun. I picked Swadia and I'm mostly there. I have encountered some strange errors with the game asking me if I want to renew my mercenary contract for another month or not, and the factions information screen lists the ruler of Swadia as blank. However, on my screen it shows me as the ruler of Swadia. When I talk to the original leader, he seems to think I'm a claimant.
I don't have my version of the files with me but here are some of the changes I've made. In module_scripts.py, I've modified the startup script somewhat.
I've also uncommented the code near the bottom to give the player some lands and set the faction. I moved this to near the beginning of the startup script:
I'm not really sure about this line. It seems like one time there was an extra faction called "Player Faction" that was always aligned with Swadia.
I also edited module_troops.py to make the player not be fac_player_faction:
I edited module_parties.py to make the player party be the same faction as well:
I've made some more changes to the startup script but really if anyone here knows what changes need to be made for this to work that would be faster. I was doing alot of trial and error to get to the point I'm at now so I could just have some ambiguous settings that are confusing the game.
Thanks in advance
I don't have my version of the files with me but here are some of the changes I've made. In module_scripts.py, I've modified the startup script somewhat.
Code:
(faction_set_slot, "fac_kingdom_1", slot_faction_leader, "trp_player"),
I've also uncommented the code near the bottom to give the player some lands and set the faction. I moved this to near the beginning of the startup script:
Code:
(assign, "$players_kingdom", "fac_kingdom_1"),
(call_script, "script_give_center_to_lord", "p_town_7", "trp_player", 0),
(call_script, "script_give_center_to_lord", "p_town_16", "trp_player", 0),
(call_script, "script_give_center_to_lord", "p_castle_10", "trp_player", 0),
(assign, "$g_castle_requested_by_player", "p_castle_10"),
I'm not really sure about this line. It seems like one time there was an extra faction called "Player Faction" that was always aligned with Swadia.
Code:
# Comment out?
#(faction_set_slot, "fac_player_supporters_faction", slot_faction_state, sfs_inactive),
I also edited module_troops.py to make the player not be fac_player_faction:
Code:
["player","Player","Player",tf_hero|tf_unmoveable_in_party_window,no_scene,reserved,fac_kingdom_1,
[],
str_4|agi_4|int_4|cha_4,wp(15),0,0x000000018000000136db6db6db6db6db00000000001db6db0000000000000000]
I edited module_parties.py to make the player party be the same faction as well:
Code:
("main_party","Main Party",icon_player|pf_limit_members, no_menu, pt_none,fac_kingdom_1,0,ai_bhvr_hold,0,(17, 52.5),[(trp_player,1,0)]),
I've made some more changes to the startup script but really if anyone here knows what changes need to be made for this to work that would be faster. I was doing alot of trial and error to get to the point I'm at now so I could just have some ambiguous settings that are confusing the game.
Thanks in advance