Author Topic: [S] Custom camera patch for the Warband v1.105  (Read 124891 times)

0 Members and 1 Guest are viewing this topic.

rubik

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
[S] Custom camera patch for the Warband v1.105
« on: April 07, 2010, 04:09:05 PM »
Very simple, use the patch to overwrite the mission_templates.txt in your native folder. Please backup your mission_templates.txt first.

Download:
http://www.mbrepository.com/file.php?id=1773

Key up: raise the camera
Key down: lower the camera
Key left: zoom out
Key right: zoom in

When any arrow key is clicked, the manual mode will be enbled, no need to press any keys to toggle the mode. If the left Ctrl key is pressed, the movement of the camera will be five times more. Press R or `or left Shift to end the manual mode.
« Last Edit: April 21, 2010, 05:12:29 AM by rubik »

Geren

  • Grandmaster Knight
  • *
  • Are you...alive?
    • View Profile
  • Faction: Vaegir
Re: Custom camera patch for the Warband
« Reply #1 on: April 07, 2010, 05:06:28 PM »
So you "ported" it, eh? Sweet...Thanks for this.
Since when did TW transform into Baby's First Little Forum, where idiotic newbies are guided by hand to experience, but only in moderation, the evil side of the Internet?

Adorno

  • Bedroom Assassin
  • External Developer
  • *
  • I am not an animal!
    • YouTube - Adorno1
    • View Profile
  • Faction: Nord
  • MP nick: Adorno
  • WBNWM&BVC
Re: Custom camera patch for the Warband
« Reply #2 on: April 07, 2010, 05:06:51 PM »
Fancy. I never had a problem with the camera but I know some who'll love this  :)

You could perhaps take show some screenshots...
Heavy is the head that wears the frown

Zaakjes

  • Squire
  • *
    • View Profile
  • Faction: Sarranid
  • MP nick: Eolth
  • M&BWB
Re: Custom camera patch for the Warband
« Reply #3 on: April 07, 2010, 05:32:22 PM »
Cool. I do need this actually.

rubik

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
Re: Custom camera patch for the Warband
« Reply #4 on: April 08, 2010, 01:25:07 AM »
In fact, you can use this in the mode of multiply game. Then your eyesight can be wider than other players.
« Last Edit: April 08, 2010, 03:38:28 AM by rubik »

Knil

  • Knight
  • *
    • View Profile
  • Faction: Neutral
Re: Custom camera patch for the Warband v1.105
« Reply #5 on: April 08, 2010, 04:20:31 AM »
Umm not sure if I did something wrong but this doesn't work.

I ovewritten my mission_templates.txt and when ingame and I try to use the arrow keys nothing happens.

I should mention I'm using 1.105.

atolest

  • Sergeant Knight at Arms
  • *
    • View Profile
  • Faction: Neutral
Re: Custom camera patch for the Warband v1.105
« Reply #6 on: April 08, 2010, 04:54:58 AM »
same here


raul-1

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: raul_the_loony
Re: Custom camera patch for the Warband v1.105
« Reply #7 on: April 08, 2010, 04:20:38 PM »
not working
They attacked from different sides Hard pressed with numbers
We could not even run nor hide
We had to stand and fight
Then I felt a blade of steel
Penetrate my armour
I did not dream, the pain was real,
As I went down I knew my time, Had come.

faradon

  • Count
  • *
  • Hi.
    • View Profile
  • Faction: Neutral
  • MP nick: irc://Faradon
  • M&BWB
Re: Custom camera patch for the Warband v1.105
« Reply #8 on: April 08, 2010, 05:40:11 PM »
Source code pls?

atolest

  • Sergeant Knight at Arms
  • *
    • View Profile
  • Faction: Neutral


faradon

  • Count
  • *
  • Hi.
    • View Profile
  • Faction: Neutral
  • MP nick: irc://Faradon
  • M&BWB
Re: Custom camera patch for the Warband v1.105
« Reply #10 on: April 08, 2010, 05:52:00 PM »
Source code pls?
I think it's this:
http://forums.taleworlds.com/index.php/topic,95149.0.html
Hm, okay. I thought the one for warband was a  little bit different...see, I´m not really a good coder

rubik

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
Re: [S] Custom camera patch for the Warband v1.105
« Reply #11 on: April 09, 2010, 05:46:09 AM »
the trigger for single-player game:

custom_commander_camera_sgl = (
  0, 0, 0, [],
  [
    (get_player_agent_no, ":player_agent"),
    (agent_get_look_position, pos1, ":player_agent"),
    (position_move_z, pos1, "$g_camera_z"),
    (position_move_y, pos1, "$g_camera_y"),
    (agent_get_horse, ":horse_agent", ":player_agent"),
    (try_begin),
      (ge, ":horse_agent", 0),
      (position_move_z, pos1, 80),
    (try_end),
    (mission_cam_set_position, pos1),
    (try_begin),
      (key_is_down, key_left_control),
      (assign, ":move_val", 50),
    (else_try),
      (assign, ":move_val", 10),
    (try_end),
    (try_begin),
      (key_clicked, key_up),
      (mission_cam_set_mode, 1),
      (val_add, "$g_camera_z", ":move_val"),
    (else_try),
      (key_clicked, key_down),
      (mission_cam_set_mode, 1),
      (val_sub, "$g_camera_z", ":move_val"),
    (else_try),
      (key_clicked, key_left),
      (mission_cam_set_mode, 1),
      (val_add, "$g_camera_y", ":move_val"),
    (else_try),
      (key_clicked, key_right),
      (mission_cam_set_mode, 1),
      (val_sub, "$g_camera_y", ":move_val"),
    (try_end),
    (try_begin),
      (this_or_next|game_key_clicked, gk_view_char),
      (this_or_next|game_key_clicked, gk_zoom),
      (game_key_clicked, gk_cam_toggle),
      (mission_cam_set_mode, 0),
    (try_end),
  ])


the trigger for multiply game:

custom_commander_camera_mult = (
  0, 0, 0, [],
  [
    (multiplayer_get_my_player, ":my_player_no"),
    (player_get_agent_id, ":player_agent", ":my_player_no"),
    (gt, ":player_agent", -1),

    (agent_get_look_position, pos1, ":player_agent"),
    (position_move_z, pos1, "$g_camera_z"),
    (position_move_y, pos1, "$g_camera_y"),
    (agent_get_horse, ":horse_agent", ":player_agent"),
    (try_begin),
      (ge, ":horse_agent", 0),
      (position_move_z, pos1, 80),
    (try_end),
    (mission_cam_set_position, pos1),
    (try_begin),
      (key_is_down, key_left_control),
      (assign, ":move_val", 50),
    (else_try),
      (assign, ":move_val", 10),
    (try_end),
    (try_begin),
      (key_clicked, key_up),
      (mission_cam_set_mode, 1),
      (val_add, "$g_camera_z", ":move_val"),
    (else_try),
      (key_clicked, key_down),
      (mission_cam_set_mode, 1),
      (val_sub, "$g_camera_z", ":move_val"),
    (else_try),
      (key_clicked, key_left),
      (mission_cam_set_mode, 1),
      (val_add, "$g_camera_y", ":move_val"),
    (else_try),
      (key_clicked, key_right),
      (mission_cam_set_mode, 1),
      (val_sub, "$g_camera_y", ":move_val"),
    (try_end),
    (try_begin),
      (this_or_next|game_key_clicked, gk_view_char),
      (this_or_next|game_key_clicked, gk_zoom),
      (game_key_clicked, gk_cam_toggle),
      (mission_cam_set_mode, 0),
    (try_end),
  ])

The lines with blue color are the difference.
« Last Edit: April 09, 2010, 06:27:59 AM by rubik »

rubik

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
Re: Custom camera patch for the Warband v1.105
« Reply #12 on: April 09, 2010, 05:53:36 AM »
not working

You need to press arrow keys for more times to move the camera to a suitable position.

raul-1

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: raul_the_loony
Re: [S] Custom camera patch for the Warband v1.105
« Reply #13 on: April 09, 2010, 10:04:03 AM »
i press the aorrow keys and nothing happens  :cry:
They attacked from different sides Hard pressed with numbers
We could not even run nor hide
We had to stand and fight
Then I felt a blade of steel
Penetrate my armour
I did not dream, the pain was real,
As I went down I knew my time, Had come.

rubik

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
Re: [S] Custom camera patch for the Warband v1.105
« Reply #14 on: April 09, 2010, 11:22:21 AM »
It should be Ok now.
« Last Edit: April 09, 2010, 01:31:35 PM by rubik »