Author Topic: [Kit] Recruiter Kit - Version 1.30 (UPDATED 20.05.2010)  (Read 25609 times)

0 Members and 1 Guest are viewing this topic.

Blankin

  • Squire
  • *
    • View Profile
  • Faction: Rhodok
  • WB
Re: Recruiter Kit - Hire somebody else to do the recruiting! (WIP)
« Reply #15 on: April 25, 2009, 05:49:14 PM »
Just add it in module constants, look for spt_, and create a new one with a number that is not used.

Darwin

  • Watchin' your language...
  • Language Moderator
  • *
  • Life's a play.
    • View Profile
  • Faction: Neutral
  • M&BWBWF&S
Re: Recruiter Kit - Hire somebody else to do the recruiting! (WIP)
« Reply #16 on: April 25, 2009, 06:49:41 PM »
Code: [Select]
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...
WARNING: Local variable never used: value
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting scripts...
Traceback (most recent call last):
  File "process_scripts.py", line 40, in <module>
    save_scripts(variables,variable_uses,scripts,tag_uses,quick_strings)
  File "process_scripts.py", line 19, in save_scripts
    save_statement_block(file,convert_to_identifier(func[0]), 0,func[1], variabl
e_list,variable_uses,tag_uses,quick_strings)
  File "C:\Users\Moritz\Mount&Blade\Modules\Age of Machinery\ModuleSystem\proces
s_operations.py", line 449, in save_statement_block
    save_statement(ofile,opcode,no_variables,statement,variable_list,variable_us
es,local_vars, local_var_uses,tag_uses,quick_strings)
  File "C:\Users\Moritz\Mount&Blade\Modules\Age of Machinery\ModuleSystem\proces
s_operations.py", line 398, in save_statement
    ofile.write("%d %d "%(opcode, lenstatement))
TypeError: %d format: a number is required, not str
Exporting mission_template data...
WARNING: Local variable never used: num_other_cannons
WARNING: Local variable never used: player_agent
WARNING: Local variable never used: num_other_cannons
WARNING: Local variable never used: player_agent
WARNING: Local variable never used: num_other_cannons
WARNING: Local variable never used: player_agent
Exporting game menus data...
Error: Unable to find object:script_send_recruiter
ERROR: Illegal Identifier:script_send_recruiter
Error: Unable to find object:script_send_recruiter
ERROR: Illegal Identifier:script_send_recruiter
Error: Unable to find object:script_send_recruiter
ERROR: Illegal Identifier:script_send_recruiter
Error: Unable to find object:script_send_recruiter
ERROR: Illegal Identifier:script_send_recruiter
Error: Unable to find object:script_send_recruiter
ERROR: Illegal Identifier:script_send_recruiter
Error: Unable to find object:script_send_recruiter
ERROR: Illegal Identifier:script_send_recruiter
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: qst_bring_back_runaway_serfs_num_parties_fl
eed
WARNING: Global variable never used: qst_follow_spy_run_away
WARNING: Global variable never used: qst_follow_spy_meeting_counter
WARNING: Global variable never used: qst_follow_spy_spy_back_in_town
WARNING: Global variable never used: qst_follow_spy_partner_back_in_town
WARNING: Global variable never used: npc_with_personality_match
WARNING: Global variable never used: g_player_banner_granted
WARNING: Global variable never used: merchant_quest_last_offerer
WARNING: Global variable never used: thanked_by_ally_leader
WARNING: Global variable never used: last_defeated_hero
WARNING: Global variable never used: last_freed_hero
WARNING: Global variable never used: capture_screen_shown
WARNING: Global variable never used: pin_number
WARNING: Global variable never used: loot_screen_shown
WARNING: Global variable never used: cant_talk_to_enemy
WARNING: Global variable never used: g_battle_simulation_auto_enter_town_after_b
attle
WARNING: Global variable never used: g_tournament_last_bet_tier
WARNING: Global variable never used: g_training_ground_training_count
WARNING: Global variable never used: temp_3
WARNING: Global variable never used: new_kills
WARNING: Global variable never used: pin_player_fallen
WARNING: Global variable never used: g_battle_us_ready
WARNING: Global variable never used: g_battle_us_wounded
WARNING: Global variable never used: g_battle_us_dead
WARNING: Global variable never used: g_battle_enemies_ready
WARNING: Global variable never used: g_battle_enemies_wounded
WARNING: Global variable never used: g_battle_enemies_dead
WARNING: Global variable never used: g_battle_allies_ready
WARNING: Global variable never used: g_battle_allies_wounded
WARNING: Global variable never used: g_battle_allies_dead
WARNING: Global variable never used: g_election_date
WARNING: Global variable never used: g_player_party_icon
WARNING: Global variable never used: g_training_ground_ranged_distance
WARNING: Global variable never used: g_player_party_morale_modifier_party_size
WARNING: Global variable never used: g_player_party_morale_modifier_leadership
WARNING: Global variable never used: g_player_party_morale_modifier_no_food
WARNING: Global variable never used: spy_quest_troop
WARNING: Global variable never used: g_ransom_offer_party
WARNING: Global variable never used: g_cur_week_half_daily_wage_payments

______________________________

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

doesn't work  :cry:

Edit: works now :D ,
i added the script at the wrong place :oops:
« Last Edit: April 25, 2009, 06:58:33 PM by Darwin »

Blankin

  • Squire
  • *
    • View Profile
  • Faction: Rhodok
  • WB
Re: Recruiter Kit - Hire somebody else to do the recruiting! (WIP)
« Reply #17 on: April 25, 2009, 08:27:19 PM »
lol, I did that twice, before I found the right place.

Dudro

  • Knight at Arms
  • *
  • -Fortis et Fidus
    • View Profile
  • Faction: Swadian
Re: Recruiter Kit - Hire somebody else to do the recruiting! (WIP)
« Reply #18 on: April 26, 2009, 12:12:19 AM »
Cool! :D
Second hand smoking kills.  Just ask Martha.  Oh, that's right, you can't, because she's DEAD! -Rowan
-"What" ain't no country I ever heard of! They speak English in "What"?!
 -What?!
 -English, mother****er! Do you speak it?!

Llew

  • Cheap ass bum
  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Vaegir
  • MP nick: nK_Llew
  • M&BWB
Re: Recruiter Kit - Hire somebody else to do the recruiting! (WIP)
« Reply #19 on: April 26, 2009, 12:35:20 AM »
Hmm, strikes me you might want some kind of limit on the number of parties and recruits per party.

For instance you can have no more than two parties per settlement (or have it scalable - 1 for villages, 2 for castles, 3 for towns, etc.). And also have a limit of say, 25 recruits per recruiter party, of course being able to set it to less than that.

Just some ideas.  :)

hessuu

  • Sergeant Knight
  • *
  • Hessuu is a vassal of King Harkinian.
    • View Profile
  • Faction: Rhodok
  • MP nick: Hessuu
  • M&BWB
Re: Recruiter Kit - Hire somebody else to do the recruiting! (WIP)
« Reply #20 on: April 26, 2009, 04:55:01 PM »
Hmm, strikes me you might want some kind of limit on the number of parties and recruits per party.

For instance you can have no more than two parties per settlement (or have it scalable - 1 for villages, 2 for castles, 3 for towns, etc.). And also have a limit of say, 25 recruits per recruiter party, of course being able to set it to less than that.

Just some ideas.  :)

Yes, that sounds reasonable. Limit of 2 per castle and 3 per town sounds good to me. Maximum amount to recruit per party is 50 at the moment, and currently I'm not intending to change it. I'll add these limits after some other features have been implented, as being able to hire dozens of them makes it easier to test how multiple recruiters work together.

Thank you for the ideas :)

UggaBugga

  • Sergeant
  • *
  • Paper Hearts
    • View Profile
  • Faction: Neutral
Re: Recruiter Kit - Hire somebody else to do your recruiting! (WIP)
« Reply #21 on: April 28, 2009, 04:52:27 AM »
where would you put these codes at?

does it matter where you put them?

because I put them at the end of each file.
« Last Edit: April 28, 2009, 12:48:01 PM by UggaBugga »

hessuu

  • Sergeant Knight
  • *
  • Hessuu is a vassal of King Harkinian.
    • View Profile
  • Faction: Rhodok
  • MP nick: Hessuu
  • M&BWB
Re: Recruiter Kit - Hire somebody else to do your recruiting! (WIP)
« Reply #22 on: April 28, 2009, 08:08:17 PM »
where would you put these codes at?

does it matter where you put them?

because I put them at the end of each file.

I have soon improved and stable version ready. I'll also add better instructions on how to incorporate this into mods.

EDIT: It... is done...
« Last Edit: April 28, 2009, 11:10:20 PM by hessuu »

jik

  • Knight
  • *
    • View Profile
  • Faction: Neutral
Nice OP.  Will look at this for some of the resource collecting I will have in my mod.  With credit of course.

UggaBugga

  • Sergeant
  • *
  • Paper Hearts
    • View Profile
  • Faction: Neutral
I don't think i'm doing this right..

I keep getting this error.

Code: [Select]
Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 7, in <module>
    from module_simple_triggers import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
imple_triggers.py", line 2625
    (0.5,
    ^
IndentationError: unexpected indent
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\process_
operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
cripts.py", line 20750, in <module>
    (party_set_slot, ":spawned_party", slot_party_type, spt_recruiter),
NameError: name 'spt_recruiter' is not defined
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 59, in <module>
    from process_operations import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\process_
operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
cripts.py", line 20750, in <module>
    (party_set_slot, ":spawned_party", slot_party_type, spt_recruiter),
NameError: name 'spt_recruiter' is not defined
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\process_
operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
cripts.py", line 20750, in <module>
    (party_set_slot, ":spawned_party", slot_party_type, spt_recruiter),
NameError: name 'spt_recruiter' is not defined
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\process_
operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
cripts.py", line 20750, in <module>
    (party_set_slot, ":spawned_party", slot_party_type, spt_recruiter),
NameError: name 'spt_recruiter' is not defined
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\process_
operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
cripts.py", line 20750, in <module>
    (party_set_slot, ":spawned_party", slot_party_type, spt_recruiter),
NameError: name 'spt_recruiter' is not defined
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\process_
operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
cripts.py", line 20750, in <module>
    (party_set_slot, ":spawned_party", slot_party_type, spt_recruiter),
NameError: name 'spt_recruiter' is not defined
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_g
ame_menus.py", line 9963
    ("recruiter_payment",0,
    ^
IndentationError: unexpected indent
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
cripts.py", line 20750, in <module>
    (party_set_slot, ":spawned_party", slot_party_type, spt_recruiter),
NameError: name 'spt_recruiter' is not defined
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\process_
operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
cripts.py", line 20750, in <module>
    (party_set_slot, ":spawned_party", slot_party_type, spt_recruiter),
NameError: name 'spt_recruiter' is not defined
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_g
ame_menus.py", line 9963
    ("recruiter_payment",0,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_simple_triggers.py", line 2, in <module>
    from module_simple_triggers import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
imple_triggers.py", line 2625
    (0.5,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\process_
operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
cripts.py", line 20750, in <module>
    (party_set_slot, ":spawned_party", slot_party_type, spt_recruiter),
NameError: name 'spt_recruiter' is not defined
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\process_
operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\HP_Administrator\Desktop\ModuleSystem\module_s
cripts.py", line 20750, in <module>
    (party_set_slot, ":spawned_party", slot_party_type, spt_recruiter),
NameError: name 'spt_recruiter' is not defined

______________________________

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

I put them where you tell me to put them but I still get it wrong.
« Last Edit: April 29, 2009, 12:41:39 PM by UggaBugga »

hessuu

  • Sergeant Knight
  • *
  • Hessuu is a vassal of King Harkinian.
    • View Profile
  • Faction: Rhodok
  • MP nick: Hessuu
  • M&BWB
I experimented a bit and managed to reproduce your problem. It looks like you have put the recruiter mod's simple triggers outside "simple triggers = [  ]"

Look at the beginning of module_simple_triggers.py. There's a line "simple triggers = [". This means that the triggers should be listed after this point. At the end of the file there is " ] ". You must put the trigger before that. I hope what you understand, English is not my native language. :|

It should be like this


simple triggers = [
(trigger 1),
(trigger 2),
(trigger 3),
(recruiter kit triggers),
]

You can fix the problem by moving the "]" under the recruiter kit triggers.

pentagathus

  • Master Knight
  • *
  • Lord of Team Alpha Beta Supercool Wolf Squadron
    • View Profile
  • Faction: Vaegir
  • M&BWB
I get a name error. spt_recruiter not defined.
Hit me at 40 and there's an 80% chance I'll die.
Hit me at 30 and there's an 80% chance I'll live.
Hit me at 80 and it's clear I shouldn't play on the motorway.

Darwin

  • Watchin' your language...
  • Language Moderator
  • *
  • Life's a play.
    • View Profile
  • Faction: Neutral
  • M&BWBWF&S
Re: Recruiter Kit - Hire somebody else to do the recruiting! (WIP)
« Reply #27 on: April 29, 2009, 06:31:25 PM »
Just add it in module constants, look for spt_, and create a new one with a number that is not used.

i had the same error

@ hessuu
add this to the instructions please :D

pentagathus

  • Master Knight
  • *
  • Lord of Team Alpha Beta Supercool Wolf Squadron
    • View Profile
  • Faction: Vaegir
  • M&BWB
Fixed. Thanks.
« Last Edit: April 29, 2009, 06:49:47 PM by pentagathus »
Hit me at 40 and there's an 80% chance I'll die.
Hit me at 30 and there's an 80% chance I'll live.
Hit me at 80 and it's clear I shouldn't play on the motorway.

Darwin

  • Watchin' your language...
  • Language Moderator
  • *
  • Life's a play.
    • View Profile
  • Faction: Neutral
  • M&BWBWF&S
try this:
Code: [Select]
##spt_war_party          = 6
##spt_patrol             = 7
##spt_messenger          = 8
##spt_raider             = 9
##spt_scout              = 10
spt_kingdom_caravan    = 11
##spt_prisoner_train     = 12
spt_kingdom_hero_party = 13
##spt_merchant_caravan   = 14
spt_village_farmer     = 15
spt_ship               = 16
spt_cattle_herd        = 17
#spt_deserter           = 20
##RECRUITER##
spt_recruiter          = 21
##RECRUITER##
kingdom_party_types_begin = spt_kingdom_caravan
kingdom_party_types_end = spt_kingdom_hero_party + 1

#slot_faction_state values
sfs_active                     = 0
sfs_defeated                   = 1
sfs_inactive                   = 2
sfs_inactive_rebellion         = 3
sfs_beginning_rebellion        = 4