Latest topics

» T-34/85/D5Т
by mechanic Today at 12:49 pm

» Missions by Deviator (Місії ад Девіатора)
by lockie Today at 8:26 am

» Calculation of the armor penetration
by mechanic Yesterday at 6:56 am

» STA3.2 settings are not saved
by mechanic Yesterday at 6:54 am

» Airplane shotdown!
by Glushak Fri Oct 20, 2017 2:16 pm

» Campaign "The Nazi power" (Pz.VI "Tiger")
by lockie Fri Oct 20, 2017 6:53 am

» Terminated russian occupants in Ukraine
by lockie Thu Oct 19, 2017 8:16 pm

» Танк Пантера Д/А/Г/ Panther ausf.D,A,G
by will73 Wed Oct 18, 2017 1:30 pm

» Movie The Man with the Iron Heart
by plug_nickel Wed Oct 18, 2017 1:28 pm

October 2017

MonTueWedThuFriSatSun
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

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 : 3685
    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 : 3685
    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 : 3685
    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 Sun Oct 22, 2017 4:42 pm