Latest topics

» Campaign: Otto Carius (WIP)
by lockie Today at 11:15 am

» Best laptop for playing
by Lightning62 Today at 10:36 am

» All of the command keys are set to ???
by lockie Today at 8:00 am

» Sta scranny 001:Error
by mechanic Yesterday at 9:51 pm

» Missing Keyboard Defaults
by Lightning62 Sat Dec 09, 2017 9:10 pm

» Any way to separate infantry from tanks?
by aleader Sat Dec 09, 2017 5:50 pm

» STA(Steel Tank Add-on) 3.2 (Steel Fury)
by Lightning62 Sat Dec 09, 2017 3:46 pm

» Missions by Deviator (Місії ад Девіатора)
by Deviator Fri Dec 08, 2017 11:13 pm

» New T-34/85 Sounds and Infantry Gun Sounds
by KurtTank Fri Dec 08, 2017 9:27 pm

December 2017

MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031

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 : 3776
    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 : 3776
    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 : 3776
    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 Mon Dec 11, 2017 6:06 pm