Author Topic: [Tutorial] Make your own Companions  (Read 100321 times)

0 Members and 1 Guest are viewing this topic.

kalarhan

  • Python Saint
  • Count
  • *
  • Use Q&A thread, not a PM :)
    • View Profile
  • Faction: Neutral
  • WBNWVCWF&S
Re: [Tutorial] Make your own Companions
« Reply #120 on: May 26, 2018, 09:24:38 PM »
guys do the companions realy need a personality clash or can it be removed

That is your design decision. On the tech/code side you will need to handle it by disabling the feature of course.

Arios

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [Tutorial] Make your own Companions
« Reply #121 on: May 26, 2018, 11:15:53 PM »
guys do the companions realy need a personality clash or can it be removed

That is your design decision. On the tech/code side you will need to handle it by disabling the feature of course.
wish i knew how
i know that the FYSG mod has a option to stop all companions complains

Arios

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [Tutorial] Make your own Companions
« Reply #122 on: May 28, 2018, 04:04:51 PM »
i need a lil help with module troops.py
mine its empty
can i add the module troops.py from  native
« Last Edit: May 28, 2018, 04:27:09 PM by Arios »

Arios

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [Tutorial] Make your own Companions
« Reply #123 on: May 28, 2018, 08:27:00 PM »
didnt work
 after i hit build module i get this errors
File "process_init.py", line 5
    print "Initializing..."
                          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Initializing...")?
  File "process_global_variables.py", line 23
    add_variable(varb, variable_list, variable_uses)
                                                   ^
TabError: inconsistent use of tabs and spaces in indentation
  File "process_strings.py", line 24
    print "Exporting strings..."
                               ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting strings...")?
  File "process_skills.py", line 30
    print "Exporting skills..."
                              ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting skills...")?
  File "process_music.py", line 21
    print "Exporting tracks..."
                              ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting tracks...")?
  File "process_animations.py", line 58
    print "Exporting animations..."
                                  ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting animations...")?
  File "process_meshes.py", line 23
    print "Exporting meshes..."
                              ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting meshes...")?
  File "process_sounds.py", line 49
    print "Exporting sounds..."
                              ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting sounds...")?
  File "process_skins.py", line 104
    print "Exporting skins..."
                             ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting skins...")?
  File "process_map_icons.py", line 32
    print "Exporting map icons..."
                                 ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting map icons...")?
  File "process_factions.py", line 27
    print "ERROR faction not found: "+ rel_name
                                    ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("ERROR faction not found: "+ rel_name)?
  File "process_items.py", line 60
    print "Exporting item data..."
                                 ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting item data...")?
  File "process_scenes.py", line 12
    print "Exporting scene data..."
                                  ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting scene data...")?
  File "process_troops.py", line 104
    print "Exporting troops data"
                                ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting troops data")?
  File "process_particle_sys.py", line 60
    print "Exporting particle data..."
                                     ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting particle data...")?
  File "process_scene_props.py", line 26
    print "Exporting scene props..."
                                   ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting scene props...")?
  File "process_tableau_materials.py", line 25
    print "Exporting tableau materials data..."
                                              ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting tableau materials data...")?
  File "process_presentations.py", line 27
    print "Exporting presentations..."
                                     ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting presentations...")?
  File "process_party_tmps.py", line 28
    print "Error! NUMBER OF TEMPLATE MEMBERS EXCEEDS 6 " + party_template[0]
                                                       ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Error! NUMBER OF TEMPLATE MEMBERS EXCEEDS 6 " + party_template[0])?
  File "process_parties.py", line 28
    print "Error: Unable to find menu-id :" + menu_param
                                          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Error: Unable to find menu-id :" + menu_param)?
  File "process_quests.py", line 29
    print "Exporting quest data..."
                                  ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting quest data...")?
  File "process_info_pages.py", line 25
    print "Exporting info_page data..."
                                      ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting info_page data...")?
  File "process_scripts.py", line 34
    print "Exporting scripts..."
                               ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting scripts...")?
  File "process_mission_tmps.py", line 29
    print "ERROR: Too many item_overrides!"
                                          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("ERROR: Too many item_overrides!")?
  File "process_game_menus.py", line 41
    print "Exporting game menus data..."
                                       ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting game menus data...")?
  File "process_simple_triggers.py", line 19
    print "exporting simple triggers..."
                                       ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("exporting simple triggers...")?
  File "process_dialogs.py", line 95
    print sentence[ipt_token_pos]
                 ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(sentence[ipt_token_pos])?
  File "process_global_variables_unused.py", line 6
    print "Checking global variable usages..."
                                             ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Checking global variable usages...")?
  File "process_postfx.py", line 26
    print "Exporting postfx_params..."
                                     ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Exporting postfx_params...")?
Could Not Find C:\Program Files\TaleWorlds Entertainment\Mount and Blade Warband - Viking Conquest Reforged Edition\Modules\FYSG_2.76\Module_system 1.153\*.pyc

kalarhan

  • Python Saint
  • Count
  • *
  • Use Q&A thread, not a PM :)
    • View Profile
  • Faction: Neutral
  • WBNWVCWF&S
Re: [Tutorial] Make your own Companions
« Reply #124 on: May 28, 2018, 09:07:08 PM »
visit the Q&A thread for quick questions https://forums.taleworlds.com/index.php/topic,6575.0.html

problem above is related to using the wrong Python version

and no you cant copy things from another module (like Native to VC), you need the module source.
« Last Edit: May 28, 2018, 09:09:11 PM by kalarhan »

Arios

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [Tutorial] Make your own Companions
« Reply #125 on: May 29, 2018, 05:11:09 AM »
this is what i used
python version 3.6.5
sublime text 3
module system version 1.153
those Q & A didnt help much

NPC99

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWBWF&SVC
Re: [Tutorial] Make your own Companions
« Reply #126 on: May 29, 2018, 10:47:20 AM »
this is what i used
python version 3.6.5
sublime text 3
module system version 1.153
those Q & A didnt help much

Wrong version of python - read this guide:
https://forums.taleworlds.com/index.php/topic,240255.0.html

Old version of the module system - download the latest version from Taleworlds:
https://www.taleworlds.com/en/Games/Warband/Download

Arios

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [Tutorial] Make your own Companions
« Reply #127 on: May 29, 2018, 03:31:39 PM »
thanks npc99  for the info
the module system version 1.153
came with the mod  that i want to add the  companions  thats why i used it


kalarhan

  • Python Saint
  • Count
  • *
  • Use Q&A thread, not a PM :)
    • View Profile
  • Faction: Neutral
  • WBNWVCWF&S
Re: [Tutorial] Make your own Companions
« Reply #128 on: May 29, 2018, 05:14:37 PM »
those Q & A didnt help much

that is the place where you can add your questions, and many modders keep a eye out to answer them.

Arios

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [Tutorial] Make your own Companions
« Reply #129 on: May 30, 2018, 07:03:35 AM »
thanks guys for the help and info but no mater what i do it wont work
so il just add new troops  and new items useing  morgh to the mod i play

SirKeeper

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [Tutorial] Make your own Companions
« Reply #130 on: January 25, 2019, 03:59:23 PM »
Hello. I am having an issue that I see has been reported here before. In the home description and home recap, my new companion is using Klethi's lines, the NPC before him in the module system. There don't seem to be duplicate lines, and I have revised the steps.
Any help is appreciated

SirKeeper

EDIT:
There actually was a duplicate line, my bad:
'("npc13_home_description")' was present twice.

I'm not sure if it was my mistake or if it was like that since the beginning. I am using the latest diplomacy source code.
« Last Edit: January 25, 2019, 04:20:52 PM by SirKeeper »

Eleazar16

  • Recruit
  • *
    • View Profile
  • Faction: Bandit
Re: [Tutorial] Make your own Companions
« Reply #131 on: November 18, 2019, 10:40:04 PM »
I've used this tutorial to successfully create 24 companions so far, but I'm curious if anyone has figured out how to make custom companions available in Multiplayer Invasion mode.  I'm using version 1.171 as the base for my mod, but I have yet to find the source of a bug I'm encountering in doing this.  I'll post in the related code I have found so far, marking my changes in red.

module_troops.py just before the upgrade path declarations:
(click to show/hide)

module_scripts.py starting around line 51000 (give or take for my 24 new companions' code blocks):
(click to show/hide)
(Note: I highlighted a line that I changed for a different purpose in purple)

The bug I'm getting is that all the companions, not just my new one, are upgrading to the previous companion's next tier each time (except for borcha, marnid, and ymira, who end up down one tier from the others).

The second set of code should have been the problem and my change should have resolved it, but there seems to be a second set of code somewhere that overrides this change.  The original code was a 16 instead of a 17, just for reference.

EDIT:  I figured it out.  There is a second script managing the troop updates.  If anyone else is curious how it's done, the code is in the next post from me (with changes in red).
« Last Edit: November 19, 2019, 06:04:44 PM by Eleazar16 »

Eleazar16

  • Recruit
  • *
    • View Profile
  • Faction: Bandit
Re: [Tutorial] Make your own Companions
« Reply #132 on: November 19, 2019, 06:04:57 PM »
module_scripts.py around 30 lines into the "cf_multiplayer_upgrade_companion_equipment" script:
(click to show/hide)