Player starting as faction ruler in Native

Users who are viewing this thread

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. 

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  :grin:
 
Just at a glance, and knowing about the setup script (the first script in module_scripts.py), I would say that you haven't removed the setup stuff there.  I think that it does some faction work and assigns cities and other stuff.  It's been a while since I've looked there, but I'm sure there is where you need to look as well. 

So I will be going through that same script and cutting it to threads...
 
You're going to find that there's a lot of stuff that's hardcoded with assumptions about what's going on faction and leader-wise.  Other than rooting through all the places that break, I have no advice as to how to resolve them.

If I were doing the same, I'd start by looking at:
- player_join/leave_faction to see what gets set
- anything involving slot_faction_leader
- anything referencing kings_begin and kings_end
- how kingdoms are set up at game_start time like jik says
 
I have been able to figure out how to effectively be the ruler, but unless you are also set to be the marshal you don't get any extra commands.  Also, once I had a dialogue pop up where I had a conversation with myself ( :shock: ) about who to give a property to, but I haven't seen that in awhile.  Even though I call the update scripts, sometimes my character's name does not show up properly in the faction information pages, but then again sometimes it does, with the SAME scripts.  However, I am always prompted at the beginning for peace proposals but it always seems like they are made with the Player faction, and not Swadia, the faction that I'm supposedly king of.

Has anyone else had luck with this?  I'm not sure if there were mods currently available with players as the king.
 
Back
Top Bottom