Author Topic: [WB, Kit, Code's + Model's, - Firre Arrow - OSP]  (Read 2748 times)

0 Members and 1 Guest are viewing this topic.

El Guanche

  • Regular
  • *
  • Modificando el WARBAND!!
    • View Profile
    • Mount&Blade.es
  • Faction: Nord
[WB, Kit, Code's + Model's, - Firre Arrow - OSP]
« on: October 25, 2011, 08:17:14 PM »

Here is the code, already completed, under the platform, "M&B Warband"
Megaupload Download Here
MediaFire Download Here

Image Here:
(click to show/hide)
I've also added some textures and 3D models, a Bow, test!
Best to check yourself, the. Brf

Content:
BRF's:
- Fire_ranged_ammo
- Fire_ranged_weapon
Textures:
- Fire_flying_missiles
- Fire_missiles
- Fire_weapons1
Screenshots:
- Various pictures
Image Web:
- Images from the web
Extras:
- Fire_flying_missiles.xcf (Format The Gimp, for layers)
- Fire_weapons1.xcf (Format The Gimp, for layers)
Codes:
- Fire Arrow's (includes bolts, but are not assigned ...)
- Fire Bow (Test Version, "Optional", the latter is not essential)
- Fire Particle's System

Finally, just need to rebalance the parameters, price, number of arrows, weight, ect ..
I forgot the names of the arrows and bow, are in Spanish .... you know.

(Warning: This code only works with the implementation of "WSE") :!:

Quote
Before I go, I want to thank:
Mirathei
SonKidd
Dunde
Swyter
cmpxchg8b
: for the system, WSE!
« Last Edit: November 06, 2011, 07:35:54 PM by El Guanche »

Specialist

  • Master Knight
  • *
  • World War 3 Team Leader
    • View Profile
  • Faction: Neutral
  • MP nick: TheSpecialist
  • WB
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #1 on: October 25, 2011, 09:06:45 PM »
If you use the one from Mount&Blade, it should work.



El Guanche

  • Regular
  • *
  • Modificando el WARBAND!!
    • View Profile
    • Mount&Blade.es
  • Faction: Nord
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #2 on: October 25, 2011, 09:30:54 PM »
Specialist
Well do not think I made ​​many mistakes in the MS (Module System), all perfect, compiled the first!

but at the time, make it work .... nothing happened!

Maybe it is to press a key to enable it?

I did a test with the Bow, but nothing happened!

Wait, give me a second ... Put here mirathei codes, but again, are for the "M & B."

Mirathei
For now, its just for looks. I'll work on making things actually light up.

In any appropriate mission template:
(click to show/hide)




In module_items:
(click to show/hide)



In module_parties:
(click to show/hide)


You say, that this code works?

 Warband's platform?, No ... what's more, I just try now, does not 10 minutes.

 Now if you say you have to change anything, maybe work!

 I have the patch, 1143 M & B Warband.

 Thank Specialist

Specialist

  • Master Knight
  • *
  • World War 3 Team Leader
    • View Profile
  • Faction: Neutral
  • MP nick: TheSpecialist
  • WB
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #3 on: October 25, 2011, 09:36:30 PM »
Maybe it doesn't. Normally code from MB will work in Warband, but you can also try this: http://forums.taleworlds.com/index.php/topic,70666.0.html

If you can decipher the source code, you can port the fire arrow code over.

El Guanche

  • Regular
  • *
  • Modificando el WARBAND!!
    • View Profile
    • Mount&Blade.es
  • Faction: Nord
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #4 on: October 25, 2011, 09:44:29 PM »
I look at it now!
 Thank Specialist

*EDIT*

Specialist

hmm, that does not have much to do with the kind of "fire arrows" that I mentioned! lol
But watching the video ... it has something interesting, that the ship is on fire!

Nothing you see this image to see the differences:
(click to show/hide)

What do you think of the Arrows of the image, the arrows of Video?


Specialist

mMmm, eso no tiene mucho que ver con el tipo de "Flechas de Fuego" que yo menciono!! jajaja
Pero mirando bien el video...tiene algo interesante, que el barco se prende fuego!

Que opinas de las Flechas de la imagen, a las flechas del Video?
« Last Edit: October 25, 2011, 09:55:40 PM by El Guanche »

SonKidd

  • Knight
  • *
    • View Profile
  • Faction: Nord
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #5 on: October 25, 2011, 10:33:49 PM »
The easy way is to use WSE.

The harder way will be to go with Mirathei's code - which will never be exactly accurate.

I personally tried it with Warband, and I think it worked.

Try dissecting the code for testing first - add some display_messages to see which parts of the code is played and which are not.

Also, you are using it for single-player right?
SonKidd's Multiplayer Troop Item Generator (v0.9b)
http://forums.taleworlds.com/index.php?topic=197856.0
Shaking Camera Script (Earthquake):
http://mbmodwiki.ollclan.eu/wiki/Shaking_Camera_Script
Script to guarantee all melee weapons:
http://mbmodwiki.ollclan.eu/wiki/Spawn_troops_with_all_melee_weapons

El Guanche

  • Regular
  • *
  • Modificando el WARBAND!!
    • View Profile
    • Mount&Blade.es
  • Faction: Nord
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #6 on: October 25, 2011, 11:19:40 PM »
SonKidd

If a player only!
I'll tell you the biggest problem I have ... lol I have no idea of ​​codes!
disaster go with what I like!

I have no idea who may be the WSE, well I look over ... but not knowing what function find out!

You may want to give me a review!

I use the (MS)-Module System, because it is cleaner to use intrusive programs or simple txt file.

I explain it, right? jejeje

But I use a little ingenuity, I thought that there are torches, and they already have their own parameters in
Module_items.py ... Why not analyze the code of the torch and apply it to an arrow?

I did exactly that, but nothing happened, not a small little fire, no burning flame ... lol and a little smoke!

by god!

So, as I prefer to look decistir code ... in fact, to continue going crazy translating, pages, post, tutorials ... (I have a headache, from time to translate).

Sonkidd
 .... if you happen to have the code, you care to have fun?
 Well I'll show you something I did for arrows fired once!

Snapshott:
(click to show/hide)



SonKidd

Si solo para un jugador!!
Te voy a contar el mayor problema que tengo...jajaja es que no tengo idea de codigos!
vaya desastre, con lo que me gustan!!

No tengo idea de que puede ser el WSE, bueno lo mire por encima...pero no averigue saber que funcion tiene!!

Si quieres, puedes darme un repaso!

Utilizo el (MS)-Module System, por que es mas limpio que usar programas intrusos o simples archivos txt.

Me explique bien, verdad? jejeje

Pero utilizo algo de ingenio, pense que existen las antorchas, y ellas ya tiene sus propios parametros en
Module_items.py... por que no analizar el codigo de la antorcha y aplicarselo a una flecha?

Exactamente eso hice, pero no paso nada, ni un fueguito pequeño, ni una llamita ardiente...jajaja ni un poco de humo!!

por dios!!

Asi que, ya voy a decistir...prefiero buscar el codigo hecho, a seguir volviendome loco traduciendo, paginas, post, tutoriales...(me duele la cabeza, de tanto traducir).

Sonkidd
....si por casualidad tienes el codigo, te importaria pasarmelo?
Bueno te voy a mostrar algo que hice para las flechas una vez disparadas!!


Well after testing the code: "Fire Arrows" of Mirathei and see what did not work!

Look for the code of the torch!
(click to show/hide)
I marked in Blue, is to copy ...

Then find the code for the Arrow.

Copy it and create a new arrow to distinguish it in the store ... What crap!
(click to show/hide)
What is Red, which is added to the Code of the Arrow.
The marked in Green, is identifying the new Arrow.

Well .. None of this is that I'm far away will see the light lol


Bueno despues de probar el codigo: "Fire Arrows" de Mirathei y ver que no me funcionaba!

Busque el codigo de la antorcha!

Lo marcado en Azul, es lo que copie...

Despues busque el codigo de la Flecha.

Lo copie y cree una flecha nueva, para diferenciarla en la tienda...Que chorrada!!

Lo que esta en Rojo, es lo que añadi al codigo de la Flecha.
Lo marcado en Verde, es identificacion la nueva Flecha.

Pues nada de esto sirve..sera que ando muy lejos de ver la luz jajaja
« Last Edit: October 25, 2011, 11:39:46 PM by El Guanche »

SonKidd

  • Knight
  • *
    • View Profile
  • Faction: Nord
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #7 on: October 26, 2011, 12:07:30 AM »
I have a similar piece of code - for multiplayer and quite a bit more complex, so it won't be very applicable in this scenario - it would just be easier to modify what you have.

Firstly, I would test if the "psys_torch_fire" particle system is working.

Try this:

Code: [Select]

(0, 0, 0.5, [(key_is_down, key_b), (eq,0,0),], [
(display_message, "@PARTICLE SYSTEM TEST"),
(get_player_agent_no,":agent_id"),
                (agent_get_position,pos1,":agent_id"),
                (position_move_y, pos1, 50),
                (particle_system_burst, "psys_torch_fire", pos1, 15),
]),



Now for testing, press B. And see if:
1) A message: "PARTICLE SYSTEM TEST" is displayed on lower left corner.
2) You see a particle burst in front of you.
SonKidd's Multiplayer Troop Item Generator (v0.9b)
http://forums.taleworlds.com/index.php?topic=197856.0
Shaking Camera Script (Earthquake):
http://mbmodwiki.ollclan.eu/wiki/Shaking_Camera_Script
Script to guarantee all melee weapons:
http://mbmodwiki.ollclan.eu/wiki/Spawn_troops_with_all_melee_weapons

El Guanche

  • Regular
  • *
  • Modificando el WARBAND!!
    • View Profile
    • Mount&Blade.es
  • Faction: Nord
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #8 on: October 26, 2011, 12:35:54 AM »
SonKidd

mmm one question: where is that code?
 - Module_items.py?
 - Module_mision_template.py?
 - Module_particles.py?
 .... on somewhere special?
 ----------- Editor Mode enabled?
not give me a clue!

and pressing the "B", you mean during a battle, press the "B"?

I just kill ... jajajajaja that madness is this!
If it works, you're a beast!


SonKidd

mmm una sola pregunta: donde va ese codigo?
- Module_items.py?
- Module_mision_template.py?
- Module_particles.py?
....en algun sitio en especial?
----------- Modo editor habilitado?
no se, dame una pista!!


y lo de presionar la "B", te refieres durante una batalla, pulso la tecla "B"?

Me acabas de matar...jajajajaja que locura es esta!!
Si funciona, eres una Fiera!!

EDIT


We take a look over the file: Module_particles.py
and in my opinion, I could not see anything blocked.

Search: Torch!

I found it all in green, without asterisks nowhere ...

Take a look and see if you notice anything weird!

Module_particles.py
(click to show/hide)
(click to show/hide)
(click to show/hide)


Le eche un vistazo por encima al archivo: Module_particles.py
y a mi parecer, no pude ver nada bloqueado.

Busque: Torch!

Lo encontre todo en color verde, sin asteriscos por ningun lado...

Echale un ojo, a ver si tu notas algo raro!
« Last Edit: October 26, 2011, 12:48:32 AM by El Guanche »

SonKidd

  • Knight
  • *
    • View Profile
  • Faction: Nord
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #9 on: October 26, 2011, 02:15:39 AM »
Just ignore what I said before.




In module_mission_template,
search for lead_charge
and change it like this:

Code: [Select]
(
    "lead_charge",mtf_battle_mode,charge,
    "You lead your men to battle.",
    [
     (1,mtef_defenders|mtef_team_0,0,aif_start_alarmed,12,[]),
     (0,mtef_defenders|mtef_team_0,0,aif_start_alarmed,0,[]),
     (4,mtef_attackers|mtef_team_1,0,aif_start_alarmed,12,[]),
     (4,mtef_attackers|mtef_team_1,0,aif_start_alarmed,0,[]),
     ],
    [
...
    ] + fire_arrow_trigger;
  ),

At the top of mission_templates.py add this:

Code: [Select]
fire_arrow_trigger = [

      (ti_before_mission_start, 0, 0, [], [
(try_for_range,":slot",0,500),
    (party_set_slot,"p_fire_arrows",":slot",-1),
(end_try),]),

      (0.005, 0, 0, [],[
(try_for_agents,":agent"),                                                 
    (party_get_slot,":fire","p_fire_arrows",":agent"),
    (ge,":fire",0),
    (party_get_slot,":x","p_x_coordinate",":agent"),
    (party_get_slot,":y","p_y_coordinate",":agent"),
    (party_get_slot,":z","p_z_coordinate",":agent"),
    (party_get_slot,":xvel","p_x_velocity",":agent"),
    (party_get_slot,":yvel","p_y_velocity",":agent"),
    (party_get_slot,":zvel","p_z_velocity",":agent"),
    (val_add,":x",":xvel"),
    (val_add,":y",":yvel"),
    (val_add,":z",":zvel"),
    (position_set_x,pos1,":x"),
    (position_set_y,pos1,":y"),
    (position_set_z,pos1,":z"),
    (particle_system_burst, "psys_torch_fire", pos1, 15),
    (position_set_z_to_ground_level,pos1),
    (position_get_z,":zground",pos1),
    (try_begin),
       (le,":z",":zground"),
       (particle_system_burst,"psys_torch_fire",pos1, 1000),
       (party_set_slot,"p_fire_arrows",":agent",-1),
    (else_try),
       (party_set_slot,"p_x_coordinate",":agent",":x"),
       (party_set_slot,"p_y_coordinate",":agent",":y"),
       (party_set_slot,"p_z_coordinate",":agent",":z"),
       (val_sub,":zvel",1),
       (party_set_slot,"p_z_velocity",":agent",":zvel"),
    (end_try),
(end_try),]),
    ]
SonKidd's Multiplayer Troop Item Generator (v0.9b)
http://forums.taleworlds.com/index.php?topic=197856.0
Shaking Camera Script (Earthquake):
http://mbmodwiki.ollclan.eu/wiki/Shaking_Camera_Script
Script to guarantee all melee weapons:
http://mbmodwiki.ollclan.eu/wiki/Spawn_troops_with_all_melee_weapons

El Guanche

  • Regular
  • *
  • Modificando el WARBAND!!
    • View Profile
    • Mount&Blade.es
  • Faction: Nord
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #10 on: October 26, 2011, 01:58:42 PM »
SonKidd

Excuse me, look like a useless.

 You just lost me completely ...

 Let's see if I focus, where the code ends: "lead_charge"

 I put: + fire_arrow_trigger,.

 But you put an ellipsis is, (...)?

 **** that I fried neurons! I echo a mess now, everything is the difference of language,

 It is assumed that we all write ... according to the Royal Academy of Language! (to whom it happens)

 That would otherwise not understand anything, you have to **** with translations!

 Sorry to drive you crazy.

 Wait I relax ... Let's see
 As should be the Module_mision_template.py?

 And do not pay much attention let me do a test and come back to the hell of translations.


It should be like this?
(click to show/hide)


SonKidd

Disculpame, parezco un inutil.

Es que me acabo de perder totalmente...

A ver si me centro, donde termina el codigo: "lead_charge"

Debo poner: + fire_arrow_trigger;.

Pero, has puesto unos puntos suspensivos hay, (...)?

joder que se me frien las neuronas!! estoy echo un lio ahora mismo, todo es la diferencia de idioma,

Se supone que, todos debemos escribir...segun la Real Academia de Lengua!! (a quien se le ocurre)

Por que de otra manera no se entiende nada, hay que joderse con las traducciones!!

Disculpa por volverte loco.

Espera que me relajo...A ver
Como deberia quedar el Module_mision_template.py ?

No e hagas mucho caso dejame hacer una prueba y vengo otra vez al infierno de las traducciones.

Deberia quedar parecido a esto?

EDIT

(click to show/hide)
The red, has a ^, as if you were telling me that this is wrong!
I get errors during compilation!

La marca roja, tiene un ^, como si estubiera indicandome que eso esta mal!
Me da errores durante la compilacion!!
« Last Edit: October 26, 2011, 02:10:21 PM by El Guanche »

dunde

  • Grandmaster Knight
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #11 on: October 26, 2011, 04:09:01 PM »
No, it's not like that.

Just follow SonKidd's instruction.
In module_mission_templates.py,

Put those lines above mission_templates = [ :
Code: [Select]
fire_arrow_trigger = [

      (ti_before_mission_start, 0, 0, [], [
(try_for_range,":slot",0,500),
    (party_set_slot,"p_fire_arrows",":slot",-1),
(end_try),]),

      (0.005, 0, 0, [],[
(try_for_agents,":agent"),                                                 
    (party_get_slot,":fire","p_fire_arrows",":agent"),
    (ge,":fire",0),
    (party_get_slot,":x","p_x_coordinate",":agent"),
    (party_get_slot,":y","p_y_coordinate",":agent"),
    (party_get_slot,":z","p_z_coordinate",":agent"),
    (party_get_slot,":xvel","p_x_velocity",":agent"),
    (party_get_slot,":yvel","p_y_velocity",":agent"),
    (party_get_slot,":zvel","p_z_velocity",":agent"),
    (val_add,":x",":xvel"),
    (val_add,":y",":yvel"),
    (val_add,":z",":zvel"),
    (position_set_x,pos1,":x"),
    (position_set_y,pos1,":y"),
    (position_set_z,pos1,":z"),
    (particle_system_burst, "psys_torch_fire", pos1, 15),
    (position_set_z_to_ground_level,pos1),
    (position_get_z,":zground",pos1),
    (try_begin),
       (le,":z",":zground"),
       (particle_system_burst,"psys_torch_fire",pos1, 1000),
       (party_set_slot,"p_fire_arrows",":agent",-1),
    (else_try),
       (party_set_slot,"p_x_coordinate",":agent",":x"),
       (party_set_slot,"p_y_coordinate",":agent",":y"),
       (party_set_slot,"p_z_coordinate",":agent",":z"),
       (val_sub,":zvel",1),
       (party_set_slot,"p_z_velocity",":agent",":zvel"),
    (end_try),
(end_try),]),
    ]


search for lead_charge
and change it like this:

Code: [Select]
(
    "lead_charge",mtf_battle_mode,charge,
    "You lead your men to battle.",
    [
     (1,mtef_defenders|mtef_team_0,0,aif_start_alarmed,12,[]),
     (0,mtef_defenders|mtef_team_0,0,aif_start_alarmed,0,[]),
     (4,mtef_attackers|mtef_team_1,0,aif_start_alarmed,12,[]),
     (4,mtef_attackers|mtef_team_1,0,aif_start_alarmed,0,[]),
     ],

bla,bla,bla,bla .......

    [
...
    ] + fire_arrow_trigger,
  ),


El Guanche

  • Regular
  • *
  • Modificando el WARBAND!!
    • View Profile
    • Mount&Blade.es
  • Faction: Nord
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #12 on: October 26, 2011, 05:12:30 PM »
dunde
I just saw my translation from Spanish to English and backwards!
 and I realize, of where the problem is that the translation says incoherent things!

 A yes, that way I can not understand anything and neither do you.

 So I ask a little patience and thank you in advance.

Dunde, if not, it bothers you, you can do me a favor,
 Put the code, which is located on top of Fire_arrow, and the code is below,
 Maybe I can understand it that way.

 because, following the footsteps of SonKidd, I'm in the same spot, Syntaxis error.

 Let me explain:
 Code: which is located above.
 Code: Fire_arrow.
 Code: which is situated below.

 I'm not saying it's nobody's fault, just because of the translation itself.

 (I've been writing this post, plus or minus 1 hour. (holy god).


Acabo de ver, mi traduccion del español al ingles y al reves!!
y me doy cuenta, de donde radica el problema, es que la traduccion dice cosas incoherentes!

A si, que de esta manera no puedo entender nada y usted tampoco.

Por eso les ruego un poco de paciencia y doy las gracias de antemano.

Dunde, si no, te molesta, puedes hacerme un favor,
Poner el codigo, que se situa encima , de Fire_arrow, y el codigo que se encuentra por debajo,
Quizas yo, de esa manera pueda entenderlo.

porque, siguiendo los pasos de SonKidd, sigo en el mismo punto, error de syntaxis.

Me explico:
Codigo: que se encuentra situado arriba.
Codigo: Fire_arrow.
Codigo: que se encuentra situado abajo.

No estoy diciendo que sea culpa de nadie, solo culpa de la propia traduccion.

(llevo escribiendo este post, mas o menos 1 hora. (santo dios).

dunde

  • Grandmaster Knight
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #13 on: October 26, 2011, 06:12:14 PM »
(click to show/hide)



(click to show/hide)

El Guanche

  • Regular
  • *
  • Modificando el WARBAND!!
    • View Profile
    • Mount&Blade.es
  • Faction: Nord
Re: Someone knows some script "Fire Arrows" for the Warband?
« Reply #14 on: October 26, 2011, 09:08:30 PM »
Dunde
This code works right!
Thank you very much indeed.

But I have a question, a large, ask!
As is described in the game; flying_missiles?
Investigating a bit, some details, I look at ...
The code, of the torch and I compare it with the code of Mirathei.
Look at this, in the original code of the torch:
(click to show/hide)

You can make a comparison with this part of the code of Mirathei:
(click to show/hide)

You could add something similar to: Flying_missiles?

* Flying_missiles, is neither a weapon nor is it an item.
(I think you understand what I mean, right?)
Although, I do not know how to do ...

However, ... someone who understands the method, could certainly carry it out.


Dunde
Este codigo, funciona correcto!
Muchas gracias de verdad.

Pero tengo una pregunta, una gran, pregunta!!
Como se califica en el juego; flying_missiles?
Investigando un poco, algunos detalles, me fijo en...
El codigo, de la Antorcha y yo lo comparo con el codigo, de Mirathei.
Mira esto, en el codigo original de la antorcha:

Puedes hacer una comparacion con esta parte del codigo, de Mirathei:

Se podria añadir algo parecido, a: Flying_missiles?
Aunque, yo, no sabria como hacerlo...

Pero, alguna persona...que entienda el metodo, seguramente podria llevarlo a cabo.