Author Topic: [Tutorial]Creating a faction.  (Read 22566 times)

0 Members and 1 Guest are viewing this topic.

Roemerboy

  • Sergeant
  • *
  • HIHO
    • View Profile
  • Faction: Khergit
  • MP nick: Roemerboy
Re: [Tutorial]Creating a faction.
« Reply #225 on: June 29, 2012, 05:13:20 PM »
Where is your king?  :mrgreen:

Tajulek

  • Sergeant
  • *
  • Dogs? Mmm, I love dogs!
    • View Profile
  • Faction: Rhodok
  • MP nick: Khalidov Da Freelancah
  • M&B
Re: [Tutorial]Creating a faction.
« Reply #226 on: June 29, 2012, 05:32:19 PM »
(call_script, "script_give_center_to_lord", "p_town_12", "trp_knight_7_lord", 0),  omg, fail

Anyawy, It stiil doesn't work.
« Last Edit: June 29, 2012, 08:19:38 PM by Tajulek »
(click to show/hide)

Khalidov? Epic crazy guy

Roemerboy

  • Sergeant
  • *
  • HIHO
    • View Profile
  • Faction: Khergit
  • MP nick: Roemerboy
Re: [Tutorial]Creating a faction.
« Reply #227 on: June 29, 2012, 09:10:38 PM »
There is your mistake!
It's not
Code: [Select]
(call_script, "script_give_center_to_lord", "p_town_12", "trp_knight_7_lord", 0),
It must be
Code: [Select]
(call_script, "script_give_center_to_lord", "p_town_12", "trp_kingdom_7_lord", 0),
And town_12 is normaly a part of another faction. Have you deleted the Entry for the old owner?

Tajulek

  • Sergeant
  • *
  • Dogs? Mmm, I love dogs!
    • View Profile
  • Faction: Rhodok
  • MP nick: Khalidov Da Freelancah
  • M&B
Re: [Tutorial]Creating a faction.
« Reply #228 on: June 29, 2012, 11:02:28 PM »
Look at the post above yours. Still doesn't work. I just edited the script about owning Wercheg and changed it into the correct one. Wait a second, hold on I'm not sure I built the module again... My mistakes are ******. I must get my shit together...
(click to show/hide)

Khalidov? Epic crazy guy

Roemerboy

  • Sergeant
  • *
  • HIHO
    • View Profile
  • Faction: Khergit
  • MP nick: Roemerboy
Re: [Tutorial]Creating a faction.
« Reply #229 on: June 30, 2012, 10:38:01 AM »
p_castle_10 is normaly (if I remeber me right) a part of the sarranids. Have you delete the entry for the sarranids with this castle?

Tajulek

  • Sergeant
  • *
  • Dogs? Mmm, I love dogs!
    • View Profile
  • Faction: Rhodok
  • MP nick: Khalidov Da Freelancah
  • M&B
Re: [Tutorial]Creating a faction.
« Reply #230 on: June 30, 2012, 03:10:05 PM »
When I try to build a module, there are errors:
Code: [Select]
SyntaxError: invalid syntax Help me!  :(
(click to show/hide)

Khalidov? Epic crazy guy

Roemerboy

  • Sergeant
  • *
  • HIHO
    • View Profile
  • Faction: Khergit
  • MP nick: Roemerboy
Re: [Tutorial]Creating a faction.
« Reply #231 on: June 30, 2012, 05:08:48 PM »
Please only post this ERROR in the Q&A Thread. This thread is only for the tutorial.

Tajulek

  • Sergeant
  • *
  • Dogs? Mmm, I love dogs!
    • View Profile
  • Faction: Rhodok
  • MP nick: Khalidov Da Freelancah
  • M&B
Re: [Tutorial]Creating a faction.
« Reply #232 on: June 30, 2012, 07:43:32 PM »
I used python v. 2.6.8 and... it still doesn't work! Screenshots:

(click to show/hide)

I'm depressed...
(click to show/hide)

Khalidov? Epic crazy guy

Roemerboy

  • Sergeant
  • *
  • HIHO
    • View Profile
  • Faction: Khergit
  • MP nick: Roemerboy
Re: [Tutorial]Creating a faction.
« Reply #233 on: June 30, 2012, 09:09:07 PM »
....  -.-

open module_info.py . AND NOW CHANGE THE DAMN PATH OF THE OUTPUT FOLDER!!!!

Showie45

  • Recruit
  • *
    • View Profile
  • Faction: Vaegir
Re: [Tutorial]Creating a faction.
« Reply #234 on: July 06, 2012, 05:28:46 PM »
So....followed this and it works great, had to make a few modifications, otherwise its good to go.
Thought i would try to make myself king from day 1, here is what i did and what happened.
I replaced all references to"
Fac_kingdom_7 ------> Fac_player_faction
trp_kingdom_lord_7 ------> trp_player
removed kingdom_7 from module_faction and added player_faction

Loaded a new game, and went thru merchant cutscene, declined quest and went to world map.
Got immediate notification that i had gained my own Town, and was asked to pledge vassalage or name my kingdom with the chance of being attack with no right to rule.
Named my Kingdom, went to my towns and villages(i made 3, my town claimed 6). I have access to all the ammenities. And i've previously checked all my shops/npcs are present and working. I see villagers running from town to village on world map.
Only issues i can discover ATM is....loss of my unique soldiers. The culture i created dissapeared when it became my city and fell back to normal swadian. My town and possible recruits were all swadian. I have before loaded it as just a new faction and i can recruit my new troop line from the 3 villages i made, trying to figure out what i messed up that is also removing the culture/troops from those cities.

Ok checking back here, i did a little searching on the forum and google, found a way to make the city you hold once your king to producce the troops you desire, it has to do with setting up the reinforment to villages script, if anyone wants me to link it then i will, im at work atm, but now all my villages give me my personal troop tree recruits.
« Last Edit: July 06, 2012, 11:17:16 PM by Showie45 »

Dawiduh

  • Sergeant at Arms
  • *
  • The sleep of reason creates monsters.
    • View Profile
    • David Stancu
  • Faction: Neutral
  • WB
Re: [Tutorial]Creating a faction.
« Reply #235 on: July 19, 2012, 05:07:39 AM »
Good tutorial, it helped me a lot.

I have a question though: how to reference a banner in the modules and thus bring it ingame?

I mean I made a bunch of banners, exported them as DDS file, copy-pasted the banner_something.brf and duplicated every type of banner and UVW-ed my textures on them. All nice and clear.

Technically, by having the same name, the model should be referenced in the game ( I have added it in the mesh py), but ingame I get a weird random banner for my faction and on the shields there's just a blank white color.

Any more detailed tutorials on how to add a banner are welcome. :)

sonyer

  • Knight at Arms
  • *
    • View Profile
  • Faction: Neutral
Re: [Tutorial]Creating a faction.
« Reply #236 on: July 19, 2012, 08:04:02 AM »
Can anyone help me please I can't make the reinforcements line work and I dont know why
Here is the eror
(click to show/hide)

Roemerboy

  • Sergeant
  • *
  • HIHO
    • View Profile
  • Faction: Khergit
  • MP nick: Roemerboy
Re: [Tutorial]Creating a faction.
« Reply #237 on: July 19, 2012, 09:57:18 AM »
Can anyone help me please I can't make the reinforcements line work and I dont know why
Here is the eror
(click to show/hide)

Look into your module_troops.py . Search after your troop  byzantin_recruit  . Look after spelling mistakes if you find him. Anywhere must be a spelling mistake.

Good tutorial, it helped me a lot.

I have a question though: how to reference a banner in the modules and thus bring it ingame?

I mean I made a bunch of banners, exported them as DDS file, copy-pasted the banner_something.brf and duplicated every type of banner and UVW-ed my textures on them. All nice and clear.

Technically, by having the same name, the model should be referenced in the game ( I have added it in the mesh py), but ingame I get a weird random banner for my faction and on the shields there's just a blank white color.

Any more detailed tutorials on how to add a banner are welcome. :)

You don't have to change anything into the brf-files. Only if you want to add more banners as Native has, or you want to keep the old banners, you have to add a new brf-file, or adding them into an old brf-file.
You must only copy the new banners (.dds-files are meen) over the old banners. Than you will be able to see them inside the game.

But I think your problem with the white banner is, that you forgot to add a shadder for the new banners. Or you have 2 banners in this file with the same name.

I hope that this helps.

Dawiduh

  • Sergeant at Arms
  • *
  • The sleep of reason creates monsters.
    • View Profile
    • David Stancu
  • Faction: Neutral
  • WB
Re: [Tutorial]Creating a faction.
« Reply #238 on: July 19, 2012, 10:09:47 AM »
I just copied the banners brf file and changed its name and DDS source file for the one containing my new textures.
So it's a new file loaded from the module folder. My question is how do i reference my new flags. They have custom names so it's easier for me to remember them: "banner_fremen" instead of "banner_ac17".
I thought I referenced them in modules_meshes.py, but maybe it's not enough. :)

PS. the shader has to be ok because I didn't modify it from its original stance.

Roemerboy

  • Sergeant
  • *
  • HIHO
    • View Profile
  • Faction: Khergit
  • MP nick: Roemerboy
Re: [Tutorial]Creating a faction.
« Reply #239 on: July 19, 2012, 10:37:52 AM »
I only know one other position at the moment. You must look into  module_scripts.py . I think under the multiplayer troops are the faction banners. And under this are the banners for the lords. You must change the names of the banners.