OSP Kit Campaign Sea Battles Mk. II & Misc Scenes

Users who are viewing this thread

Duh said:
Put damage on full to self, so that you die when you fall of a ship? Or code a check to kill you when you get a certain height.

Do you have a code for that?
Or code a check to kill you when you get a certain height.

If I change the Increase fall_damage_multiplier in module.ini then every time I jump from etc a hill I will die  :neutral:
 
The damage you receive is set in your ingame options (although i dont know whether it does affect fall damage), no code needed.

Or code a check to kill you when you get a certain height.
I meant use the module system to create it (in module_mission_templates). Its unlikely people will do it for you.
 
Ok  :cry: Then I will have to change the Increase fall_damage_multiplier in module.ini

Because I am not that god at modding/scripting  :cry:

Edit: I fixed the Increase fall_damage_multiplier in module.ini I set it at "100.0" do anybody know if it better if it lower? I receive 125 damage and die when I jump from a ship. But I have a feeling that 125 fall damage is the max fall damage you can get?

And how can I make so that I can't buy a ship at "Shariz"?
 
Every time I start a battle at sea, the game says "battle won press tabe to leave"?

How do I fix that?

Please help!
 
Scared ? said:
Every time I start a battle at sea, the game says "battle won press tabe to leave"?

How do I fix that?

Please help!
Sorry, that was from me sucking.

Here's a code to kill you when you fall underwater:
Code:
          # Credits to Vincezo - who made this code better than me
(   # Drowning script
  1, 0, 0, [(this_or_next|multiplayer_is_server),(neg|game_in_multiplayer_mode),],
  [
    (set_fixed_point_multiplier, 100),
    (try_for_agents, ":agent"),
      (agent_is_active,":agent"),
      (agent_is_alive,":agent"),
      (agent_get_position,pos16,":agent"),
      (position_get_z,":cur_z",pos16), #Getting the elevation of all living agents
      
      (try_begin),
        (assign, ":agent_horse", -1),
        (agent_get_horse, ":agent_horse", ":agent"),
        (gt, ":agent_horse", 0),
        (val_add,":cur_z",80), #If the agent is on a horse, add 80(cm) 
      (try_end),
      
      (agent_get_slot, ":underwater_time", ":agent", slot_agent_underwater_time),
      (try_begin),
        (lt,":cur_z",-200), 
        (val_sub,":underwater_time",1),
        (try_begin),
          (eq, ":underwater_time", 0),
          (store_agent_hit_points, ":current_hp_perc", ":agent", 0),
          (val_sub, ":current_hp_perc", 5),
          (agent_set_hit_points,":agent", ":current_hp_perc", 0),
          (agent_deliver_damage_to_agent, ":agent", ":agent", 1),
        (else_try),
          (agent_set_slot, ":agent", slot_agent_underwater_time, ":underwater_time"),
        (try_end),
      (else_try),
        (lt, ":underwater_time", 8),
        (val_add, ":underwater_time", 1),
        (agent_set_slot, ":agent", slot_agent_underwater_time, ":underwater_time"),
      (try_end),
    (try_end),
  ]),
 
Scared ? said:
Every time I start a battle at sea, the game says "battle won press tabe to leave"?

How do I fix that?

Please help!

To fix that just do following things in module_missions_templates:
Change 
(0, 0, ti_once, [], [(assign,"$battle_won",0),
to     
(0, 0, ti_once, [], [(assign,"$g_battle_won",0),
then delete: 
(assign,"$g_presentation_battle_active", 0),
and finally everything works!

Hope that helps - it helped me.  :grin:
 
The script only gives me error when I try to build the module  :sad:

First it gave me error that "slot_agent_underwater_time" doesn't exist?" So I added "slot_agent_underwater_time" to module_constants.py, but then the console just gave me this errors
Code:
Initializing...
Compiling all global variables...
Error in mission template:
(1, 0, 0, [1073742241, 2147484067L], [(2124, 100), (12, ':agent'), (1712, ':agen
t'), (1702, ':agent'), (1710, 16, ':agent'), (728, ':cur_z', 16), 4, (2133, ':ag
ent_horse', -1), (1714, ':agent_horse', ':agent'), (32, ':agent_horse', 0), (210
5, ':cur_z', 80), 3, (525, ':underwater_time', ':agent', 176), 4, (2147483678L,
':cur_z', -200), (2106, ':underwater_time', 1), 4, (31, ':underwater_time', 0),
(1720, ':current_hp_perc', ':agent', 0), (2106, ':current_hp_perc', 5), (1721, '
:agent', ':current_hp_perc', 0), (1722, ':agent', ':agent', 1), 5, (505, ':agent
', 176, ':underwater_time'), 3, 5, (2147483678L, ':underwater_time', 8), (2105,
':underwater_time', 1), (505, ':agent', 176, ':underwater_time'), 3, 3])
Error in script:
(1, 0, 0, [1073742241, 2147484067L], [(2124, 100), (12, ':agent'), (1712, ':agen
t'), (1702, ':agent'), (1710, 16, ':agent'), (728, ':cur_z', 16), 4, (2133, ':ag
ent_horse', -1), (1714, ':agent_horse', ':agent'), (32, ':agent_horse', 0), (210
5, ':cur_z', 80), 3, (525, ':underwater_time', ':agent', 176), 4, (2147483678L,
':cur_z', -200), (2106, ':underwater_time', 1), 4, (31, ':underwater_time', 0),
(1720, ':current_hp_perc', ':agent', 0), (2106, ':current_hp_perc', 5), (1721, '
:agent', ':current_hp_perc', 0), (1722, ':agent', ':agent', 1), 5, (505, ':agent
', 176, ':underwater_time'), 3, 5, (2147483678L, ':underwater_time', 8), (2105,
':underwater_time', 1), (505, ':agent', 176, ':underwater_time'), 3, 3])
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...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Traceback (most recent call last):
  File "process_scripts.py", line 35, in <module>
    save_python_header()
  File "process_scripts.py", line 29, in save_python_header
    file.write("script_%s = %d\n"%(convert_to_identifier(scripts[i_script][0]),i
_script))
  File "D:\Dokument\M&B Warband!\System\Module_system 1.143\process_common.py",
line 5, in convert_to_identifier
    s1 = string.replace(s0," ","_")
  File "C:\Users\Public\Delade program\Python27\lib\string.py", line 519, in rep
lace
    return s.replace(old, new, maxreplace)
AttributeError: 'int' object has no attribute 'replace'
Exporting mission_template data...
Traceback (most recent call last):
  File "process_mission_tmps.py", line 64, in <module>
    save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
  File "process_mission_tmps.py", line 42, in save_mission_templates
    file.write("mst_%s %s %d "%(convert_to_identifier(mission_template[mission_t
emplate_name_pos]),convert_to_identifier(mission_template[mission_template_name_
pos]),mission_template[mission_template_flags_pos]))
  File "D:\Dokument\M&B Warband!\System\Module_system 1.143\process_common.py",
line 5, in convert_to_identifier
    s1 = string.replace(s0," ","_")
  File "C:\Users\Public\Delade program\Python27\lib\string.py", line 519, in rep
lace
    return s.replace(old, new, maxreplace)
AttributeError: 'int' object has no attribute 'replace'
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: npc_with_personality_match
WARNING: Global variable never used: g_leave_town
WARNING: Global variable never used: g_battle_simulation_cancel_for_party
WARNING: Global variable never used: g_include_diplo_explanation
WARNING: Global variable never used: debug_message_in_queue
WARNING: Global variable never used: g_attacker_drawn_weapon
WARNING: Global variable never used: g_train_peasants_against_bandits_training_s
ucceeded
WARNING: Global variable never used: trainer_help_message
WARNING: Global variable never used: tutorial_1_finished
WARNING: Global variable never used: tutorial_2_finished
WARNING: Global variable never used: tutorial_3_finished
WARNING: Global variable never used: tutorial_4_finished
WARNING: Global variable never used: tutorial_5_finished
WARNING: Global variable never used: g_base_flag_team_1
WARNING: Global variable never used: g_base_flag_team_2
WARNING: Global variable never used: g_last_number_of_agents_around_belfry
WARNING: Global variable never used: g_multiplayer_round_max_seconds_div_2
WARNING: Global variable never used: g_multiplayer_next_team_1_faction
WARNING: Global variable never used: g_multiplayer_next_team_2_faction
WARNING: Global variable never used: g_confirmation_result
WARNING: Global variable never used: romantic_attraction_seed
WARNING: Global variable never used: g_multiplayer_factions_voteable
WARNING: Global variable never used: g_multiplayer_maps_voteable
WARNING: Global variable never used: g_multiplayer_kick_voteable
WARNING: Global variable never used: g_multiplayer_ban_voteable
WARNING: Global variable never used: g_multiplayer_battle_earnings_multiplier
WARNING: Global variable never used: g_election_date
WARNING: Global variable never used: g_battle_waiting_seconds
WARNING: Global variable never used: g_death_mode_part_1_start_time
WARNING: Global variable never used: g_multiplayer_poll_end_time
WARNING: Global variable never used: g_training_ground_ranged_distance
WARNING: Global variable never used: pout_party
WARNING: Global variable never used: g_player_party_morale_modifier_leadership
WARNING: Global variable never used: g_player_party_morale_modifier_food
WARNING: Global variable never used: g_player_party_morale_modifier_debt
WARNING: Global variable never used: g_player_current_own_troop_kills
WARNING: Global variable never used: num_routed_allies
WARNING: Global variable never used: belfry_rotating_objects_begin
WARNING: Global variable never used: last_belfry_object_pos
WARNING: Global variable never used: g_minister_notification_quest
WARNING: Global variable never used: any_allies_at_the_last_battle
WARNING: Global variable never used: number_of_npc_slots
WARNING: Global variable never used: npc_grievance_string
WARNING: Global variable never used: npc_praise_not_complaint
WARNING: Global variable never used: g_custom_battle_team1_death_count
WARNING: Global variable never used: total_political_events
WARNING: Global variable never used: g_tutorial_training_ground_current_score_2
WARNING: Global variable never used: g_tutorial_training_ground_conversation_sta
te
WARNING: Global variable never used: g_wedding_groom_troop
WARNING: Global variable never used: g_wedding_bride_troop
WARNING: Global variable never used: g_belligerent_drunk
WARNING: Global variable never used: g_hired_assassin
WARNING: Global variable never used: g_tutorial_training_ground_state
WARNING: Global variable never used: g_tutorial_training_ground_melee_trainer_at
tack_dir
WARNING: Global variable never used: newglob_total_prosperity_from_villageloot
WARNING: Global variable never used: newglob_total_prosperity_from_bandits
WARNING: Global variable never used: newglob_total_prosperity_losses
WARNING: Global variable never used: newglob_total_prosperity_gains
WARNING: Global variable never used: total_vassal_days_on_campaign
WARNING: Global variable never used: total_feast_changes
WARNING: Global variable never used: g_use_current_ai_object_as_s8
WARNING: Global variable never used: relative_of_merchant_is_found
WARNING: Global variable never used: merchant_sign_count
WARNING: Global variable never used: g_city_merchant_troop_id
WARNING: Global variable never used: g_city_merchant_agent_id
WARNING: Global variable never used: g_is_quick_battle
WARNING: Global variable never used: player_marshal_ai_state
WARNING: Global variable never used: player_marshal_ai_object
WARNING: Global variable never used: server_mission_timer_while_player_joined
WARNING: Global variable never used: number_of_controversial_policy_decisions
WARNING: Global variable never used: g_advantegous_faction
WARNING: Global variable never used: g_duel_result
WARNING: Global variable never used: next_recruit_time
WARNING: Global variable never used: next_recruitp_time
Exporting postfx_params...

______________________________

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

I have tried to put the code in both scripts.py and mission_templates.py put every time I try to build the module I get the same errors?!

Please help!
 
I tried to change the
(  # Drowning script
  1, 0, 0, [(this_or_next|multiplayer_is_server),(neg|game_in_multiplayer_mode),],

to

# Drowning script

  1, 0, 0, [(this_or_next|multiplayer_is_server),(neg|game_in_multiplayer_mode),],

But I still get the same error  :cry:

Please help!
 
Because its not coded. This only adds the ability to sail and fight for the player and spawns a few "pirate" ships.
 
I have some silly error
Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
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:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
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:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 4, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 5, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\process_operations.py", line 22, in <module>
    from module_game_menus import *
  File "C:\Users\NguyenHung\Desktop\Mount&Blade Warband\Modules\12 Su Quan\Modul
e_system 1.143\module_game_menus.py", line 15402

    ^
SyntaxError: invalid syntax
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
And 1 question. Is this code work on Warband?
 
The code is made for Warband yes, but it will require some tweaking to get it into multiplayer.

Your error is probably a pretty basic one; just go to line 15402 in your game_menus file and look to see if there's a missing comma or bracket or somesuch.
 
Ruthven said:
The code is made for Warband yes, but it will require some tweaking to get it into multiplayer.

Your error is probably a pretty basic one; just go to line 15402 in your game_menus file and look to see if there's a missing comma or bracket or somesuch.
It's Ok for now. Thanks
 
Very good module!
But wouldn't prevent to make disappearance of not used ships. Approximately days through 7.
Whether also you will do possibility to swim to lords and caravans?
 
There are just 2 ship of Sea Raider in my mod. It's so bore, how can i make more party of sea raider,please help?
 
Back
Top Bottom