Latest topics

» New & Updated Models(Нові Моделі)
by will73 Today at 7:06 am

» Місії на заказ/Mission request
by johnf Yesterday at 7:07 am

» We all at sometime or another...
by lockie Mon Jun 19, 2017 9:09 pm

» Ukraine fights against enemy.
by lockie Sun Jun 18, 2017 10:45 am

» Tank Pz.Kpfw.I ausf.A
by Kibihiyo Sun Jun 18, 2017 7:44 am

» Game Missions Pack #01 (GMP 1.4)
by alexander9822 Wed Jun 14, 2017 10:23 pm

» STA 3.1 Bugs and crashed. HELP
by alexander9822 Wed Jun 14, 2017 4:34 pm

» STA3.1 testing
by dwain7 Wed Jun 14, 2017 1:53 am

» Campaign "The Nazi power" (Pz.VI "Tiger")
by lockie Sat Jun 10, 2017 5:51 pm

June 2017

MonTueWedThuFriSatSun
   1234
567891011
12131415161718
19202122232425
2627282930  

Calendar Calendar


    newbie question - mission editor

    Share

    DTSFA

    Posts : 10
    Join date : 2016-07-15

    newbie question - mission editor

    Post by DTSFA on Sun Jul 17, 2016 9:57 am

    hi guys

    I have successfully created new user mission,

    one tiger 1 for me, against x3 russion tanks,

    but, the russion tanks dont move or counter attack me ?

    the russion tank crews move into their tanks when I shoot them, but their tanks stay still?

    do I need to set a trigger or something else?

    update :

    ok looks as though I have all units added to the russion division, d'oh,

    but, I cannot see to remove the tiger 1 tank from the rus. division? (is grayed out, is my tank ?)
    avatar
    lockie
    TSF Member
    TSF Member

    Posts : 3512
    Join date : 2014-07-24
    Age : 50
    Location : Ukraine, Kyiv

    Re: newbie question - mission editor

    Post by lockie on Sun Jul 17, 2016 7:42 pm

    DTSFA wrote:hi guys
    I have successfully created new user mission,
    one tiger 1 for me, against x3 russion tanks,
    but, the russion tanks dont move or counter attack me ?
    U need to assign the script, i.e. script_sov_tnk for the Soviet units(tanks). U've to create contour contour_tiger on the map, place inside Tiger, then force Sov. tanks move to this contour.
    Something like this:
    Code:
    script_sov_tnk()
    {
    ext, ai_setstate, 0, 0x0001;
    ext, ai_form, 0;
    ext, ai_move, contour_tiger, false, -1, 15;
    }

    DTSFA

    Posts : 10
    Join date : 2016-07-15

    Re: newbie question - mission editor

    Post by DTSFA on Sun Jul 17, 2016 8:58 pm

    thanks lockie
    here is my script for "t1" user mission I created,

    Code:
    #include "..\ai_defs.engcfg"

    i_divisions:divisions()
    {
    user_human(){tnk_plat2:AA, wp_gunner, 1;}

    divisions()
    {
     tnk_plat1, rkka_mtank1, rus1, -1, 2, rusadv, 1, 1, 0.2, 1.0, 1.0, 0x2, rkka_comp_1, 0.0;
     tnk_plat2, rkka_htant2, ger1, -1, 2, rkka_attacka, 1, 1, 0.2, 1.0, 1.0, 0x2, rkka_comp_1, 0.0;
    }
    }

    i_scriptman:scriptman()
    {
    dummy()
    {

    }

    rusadv()
    {
      ext, ai_setstate, 0, 0x0001;
      ext, ai_form, 0;
     ext, ai_move, ger1, false, -1, 15;
    }

    }


    i_trigman:trigman()
    {
    cs_artfire()
    {

    }

    cs_main()
    {

    }

    cs_map()
    {

    }

    cs_positions()
    {

    }


    triggers()
    {
    }
    }

    _vars() {}

    the ai t34 moves to the ger1 contour, but still does not attack, even after I fire a few rounds into t34, crew close hatch, but thats it, no other reaction ?
    avatar
    lockie
    TSF Member
    TSF Member

    Posts : 3512
    Join date : 2014-07-24
    Age : 50
    Location : Ukraine, Kyiv

    Re: newbie question - mission editor

    Post by lockie on Sun Jul 17, 2016 9:16 pm

    DTSFA wrote:
    the ai t34 moves to the ger1 contour, but still does not attack, even after I fire a few rounds into t34, crew close hatch, but thats it, no other reaction ?
    This is because both units belongs to the Soviet side.
    Make the next changes:

    #include "..\ai_defs.engcfg"

    i_divisions:divisions()
    {
    user_human(){usr_tiger:AA, wp_gunner, 1;}

    divisions()
    {
    tnk_plat1, rkka_mtank1, rus1, -1, 2, sc_sovadv,1, 1, 0.7, 1.0, 1.0, 0x2, rkka_comp_1, 0.0;
    usr_tiger, wer_htann1, ger1, -1, 2, dummy,  1, 1, 0.5, 1.0, 1.0, 0x2, wer_comp_5, 0.0;
    }
    }

    i_scriptman:scriptman()
    {
    dummy()
    {

    }

    sc_sovadv()
    {
    ext, ai_setstate, 0, 0x0001;
    ext, ai_form, 0;
    ext, ai_move, ger1, false, -1, 15;
    }

    }


    i_trigman:trigman()
    {
    cs_artfire()
    {

    }

    cs_main()
    {

    }

    cs_map()
    {

    }

    cs_positions()
    {

    }


    triggers()
    {
    }
    }

    _vars() {}
    To compare the files content u need utility ExamDiff.
    BEFORE U'LL MAKE ANY CHANGES - MAKE A BACKUP, BETTER TWICE!
    More codes for units:
    http://stasf2008.ephpbb.com/t45-units-name-in-the-mission-script

    DTSFA

    Posts : 10
    Join date : 2016-07-15

    Re: newbie question - mission editor

    Post by DTSFA on Sun Jul 17, 2016 9:36 pm

    thanks lockie
    worked a treat,
    I just could not seem to change the tank/division/side through the editor
    is there a specific sequence to creating contours, divisions etc?
    plus, is there a good resource for steel fury kharkov 1942 script coding ?
    how do you know to use 'wer_htann1' for the dessert type version?
    avatar
    lockie
    TSF Member
    TSF Member

    Posts : 3512
    Join date : 2014-07-24
    Age : 50
    Location : Ukraine, Kyiv

    Re: newbie question - mission editor

    Post by lockie on Mon Jul 18, 2016 7:30 am

    DTSFA wrote:
    is there a specific sequence to creating contours, divisions etc?
    Yes. Closed contours are for the triggers working, opened contours are for the moving.

    is there a good resource for steel fury kharkov 1942 script coding?
    U may have a look here:
    http://stasf2008.ephpbb.com/t8-faq-sf-editing
    http://stasf2008.ephpbb.com/t400-question-about-swapping-a-player-s-vehicle-in-a-mission
    http://stasf2008.ephpbb.com/t396-tutorials-for-mission-creation-and-map-editing#3742
    http://stasf2008.ephpbb.com/t427-making-new-units-in-me
    or pick up any missions(as example) from the STA mod.

    how do you know to use 'wer_htann1' for the dessert type version?
    It is the same camo for the desert missions - yellow.

    DTSFA

    Posts : 10
    Join date : 2016-07-15

    Re: newbie question - mission editor

    Post by DTSFA on Mon Jul 18, 2016 4:50 pm

    thanks again lockie

    I will check out your links and get going,

    sorry, I meant wer_htann1 tag, I guess you know is it that variant of tiger 1 by looking at other scripts, and experience,

    is great game, have played men of war, is ok, ironfront, not bad

    and put too many hours into online warthunder, I only realised this steel fury gem existed a couple of weeks ago,

    you modders are the best !

    Sponsored content

    Re: newbie question - mission editor

    Post by Sponsored content


      Current date/time is Thu Jun 22, 2017 12:58 pm