Page 3 of 3 FirstFirst 123
Results 61 to 76 of 76

Topic: Using Viking Controller Macros

  1. #61
    GamePack Developer

    User Info Menu

    Re: Using Viking Controller Macros

    Well I converted my macro to script to the tee and its not playing out the same as the macro. I'm thinking it has something to do with the wait times being under 10ms. Anyway I'm burnt out on this project right now. I might try to magic jack it and see what happens.

  2. #62
    Bulgaria's foremost expert on everything CM related!



    User Info Menu

    Re: Using Viking Controller Macros

    Maybe you are right , but my goal is to replicate Vicing macro.

    Code:
    
    
    
    
    
    main {    
        if(get_val(XB1_RT)) { combo_run(BO2_JITTER_fastXYY);    }
        else if(combo_running(BO2_JITTER_fastXYY)) { combo_stop(BO2_JITTER_fastXYY);    }
    }
     
    combo BO2_JITTER_fastXYY {
    set_val(XB1_RT,100); // 
    wait(10); // 
    set_val(XB1_RT,100); // 
    set_val(XB1_X,100); // 
    set_val(XB1_Y,100); // 
    wait(10); // 
    set_val(XB1_RT,100); // 
    set_val(XB1_LS,100); // 
    set_val(XB1_X,100); // 
    set_val(XB1_Y,100); // 
    set_val(XB1_LX,100); // 
    set_val(XB1_LY,-100); //Up-Right
    wait(21); // 
    set_val(XB1_X,100); // 
    set_val(XB1_Y,0); // 
    set_val(XB1_LS,100); // 
    wait(10); // 
    set_val(XB1_RT,0); // 
    set_val(XB1_X,0); // 
    wait(10); // 
    set_val(XB1_LS,0); // 
    set_val(XB1_LX,0); // 
    set_val(XB1_LY,100); //DOWN
    wait(10); // 
    set_val(XB1_LS,100); // 
    set_val(XB1_LX,100); // 
    set_val(XB1_LY,-100); //Up-Right
    set_val(XB1_RT,0); // 
    wait(10); // 
    set_val(XB1_RT,0); // 
    set_val(XB1_Y,100); // 
    set_val(XB1_LS,100); // 
    wait(21); // 
    set_val(XB1_Y,0); // 
    set_val(XB1_RT,100); // 
    set_val(XB1_LS,100); // 
    wait(12); // 
    set_val(XB1_LX,-100); // 
    set_val(XB1_LY,-100); //Up-Left
    set_val(XB1_LS,0); // 
    wait(12); // 
    }

  3. #63
    GOLD NOVA II

    User Info Menu

    Re: Using Viking Controller Macros


  4. #64
    Bulgaria's foremost expert on everything CM related!



    User Info Menu

    Re: Using Viking Controller Macros

    Quote Originally Posted by mastermod View Post
    Hmmmm that could work if we put it in the right order. maybe @Nerdy could do this or @Excalibur

    Try this and change value for the sp one by one in the range!

    Code:
     
    int sp=1.1; //range 1.1 to 2.0
    // Sprint Jitter Works when you hold RT
    main {
    if(get_val(4)){combo_run (SprintJitter)};
    }
    combo SprintJitter {
    wait(30/sp);
    block(4, 70);
    set_val(20, 100);
    wait(70/sp);
    block(4, 20);
    set_val(12, -100);
    set_val(20, 100);
    wait(20/sp);
    block(4, 30);
    set_val(12, -100);
    set_val(20, 0);
    wait(30/sp);
    block(4, 50);
    set_val(12, -100);
    set_val(8, 100);
    wait(50/sp);
    block(4, 50);
    set_val(12, -100);
    set_val(8, 0);
    wait(50/sp);
    set_val(12, -100);
    set_val(17, 100);
    set_val(4, 0);
    wait(50/sp);
    set_val(12, -100);
    set_val(8, 0);
    set_val(17, 100);
    wait(40/sp);
    set_val(12, -100);
    set_val(17, 0);
    set_val(4, 0);
    wait(10);
    set_val(12, -100);
    set_val(8, 100);
    set_val(4, 0);
    wait(50/sp);
    set_val(12, -100);
    set_val(8, 0);
    set_val(4, 0);
    wait(50/sp);
    set_val(12, -100);
    set_val(8, 100);
    set_val(17, 100);
    set_val(4, 0);
    wait(50/sp);
    set_val(12, -100);
    set_val(8, 0);
    set_val(17, 100);
    set_val(4, 0); 
    wait(40/sp);
    set_val(12, -100);
    set_val(17, 0);
    set_val(4, 0);
    wait(10);
    block(4, 50);
    set_val(12, -100);
    set_val(8, 100);
    wait(50/sp);
    block(4, 50);
    set_val(12, -100);
    set_val(8, 0);
    wait(50/sp);
    block(4, 20);
    set_val(12, 0);
    }

  5. #65
    GOLD NOVA II

    User Info Menu

    Re: Using Viking Controller Macros

    it messes up when i change the number. bui thats proabably because were increasing the sprint too. we need to just increase the X and Y and leave the sprint alone

  6. #66
    GOLD NOVA II

    User Info Menu

    Re: Using Viking Controller Macros

    is there any more progress on this? It seems as if we are so close.

  7. #67
    SILVER ELITE MASTER

    User Info Menu

    Re: Using Viking Controller Macros

    what happened to this?

    i was checking the viking macro files (vkm) and the difficult part seems to be the tween feature it has on the analog sticks. (Left Stick and Right Stick, RT and LT also has a tween feature but it looks less difficult)
    for example, lets say for sake of argument

    LeftStick Start Position:
    LX = 0
    LY = -100

    LeftStick End Position:
    LX = 100
    LY = 0

    tween = lets says 80 ms (assuming speed multiplier is 1.0 (10ms))

    so you have rotate the left stick from [0,-100 ] to [100,0] in 8 steps if we update/record the information every 10ms.

    0 = [0, -100] = 0 milliseconds
    1 = [??, ??] = 10 miliseconds
    2 = [??, ??] = 20 miliseconds
    3 = [??, ??] = 30 miliseconds
    4 = [??, ??] = 40 miliseconds
    5 = [??, ??] = 50 miliseconds
    6 = [??, ??] = 60 miliseconds
    7 = [??, ??] = 70 miliseconds
    8 = [100, 0] = 80 miliseconds

    for me that's the most difficult part because i don't know much about circle algorithms if someone has an algorithm to calculate it then maybe i can put something together, because the other parts seems less difficult.

  8. #68
    Bulgaria's foremost expert on everything CM related!



    User Info Menu

    Re: Using Viking Controller Macros

    Quote Originally Posted by VincentX View Post
    what happened to this?

    i was checking the viking macro files (vkm) and the difficult part seems to be the tween feature it has on the analog sticks. (Left Stick and Right Stick, RT and LT also has a tween feature but it looks less difficult)
    for example, lets say for sake of argument

    LeftStick Start Position:
    LX = 0
    LY = -100

    LeftStick End Position:
    LX = 100
    LY = 0

    tween = lets says 80 ms (assuming speed multiplier is 1.0 (10ms))

    so you have rotate the left stick from [0,-100 ] to [100,0] in 8 steps if we update/record the information every 10ms.

    0 = [0, -100] = 0 milliseconds
    1 = [??, ??] = 10 miliseconds
    2 = [??, ??] = 20 miliseconds
    3 = [??, ??] = 30 miliseconds
    4 = [??, ??] = 40 miliseconds
    5 = [??, ??] = 50 miliseconds
    6 = [??, ??] = 60 miliseconds
    7 = [??, ??] = 70 miliseconds
    8 = [100, 0] = 80 miliseconds

    for me that's the most difficult part because i don't know much about circle algorithms if someone has an algorithm to calculate it then maybe i can put something together, because the other parts seems less difficult.
    If you want to calculate all this value - check the Script Manipulator HELP - and spatially Combo Assistant with Analogue Axis Map :
    https://cronusmax.com/forums/showthre...l=1#post973093

  9. #69
    SILVER ELITE MASTER

    User Info Menu

    Re: Using Viking Controller Macros

    Quote Originally Posted by Excalibur View Post
    If you want to calculate all this value - check the Script Manipulator HELP - and spatially Combo Assistant with Analogue Axis Map :
    i already checked the combo-assistant (sequence for circle move), yes that's kind of what i was talking about. sorry English is not my first language, so i can't express myself correctly sometimes.
    i was talking about a tween feature in the viking macros. it is similar to the sequence for circle move but it is way different.

    for example, lets say tween=20 and and you choose FROM UP to RIGHT, it has to perform the move in 20 steps.
    if tween=10, it has to perform the move in 10 steps
    if tween=2, it has to perform the move in 2 steps.

    what i was asking is if anyone knows the algorithm in any language to calculate the values of X and Y depending on the tween value for each step.

    im trying to create a software to translate viking macros to gpc.
    viking has this dynamic movement for sticks.

    i think the easy way to start "the convertor" is to treat the viking left/right stick as static, and forget about the tween until later.


    btw, are your X and Y values correct for UP-RIGHT?
    your software creates X=100, Y=-100, if it is a circle you cant never have those values.
    if you send X=100 and Y=-100 to the console then i think it is fixed internally to the correct values.

  10. #70
    Bulgaria's foremost expert on everything CM related!



    User Info Menu

    Re: Using Viking Controller Macros

    Quote Originally Posted by VincentX View Post
    i already checked the combo-assistant (sequence for circle move), yes that's kind of what i was talking about. sorry English is not my first language, so i can't express myself correctly sometimes.

    1. what i was asking is if anyone knows the algorithm in any language to calculate the values of X and Y depending on the tween value for each step.


    2.btw, are your X and Y values correct for UP-RIGHT?
    your software creates X=100, Y=-100, if it is a circle you cant never have those values.
    if you send X=100 and Y=-100 to the console then i think it is fixed internally to the correct values.
    About 1. - Sorry I can't help with this.

    But the value will be like this in my opinion :
    0 = [0 , -100] = 0 milliseconds
    1 = [20 ,-100] = 10 miliseconds
    2 = [60 ,-100] = 20 miliseconds
    3 = [80 ,-100] = 30 miliseconds
    4 = [100,-100] = 40 miliseconds
    5 = [100, -80] = 50 miliseconds
    6 = [100, -60] = 60 miliseconds
    7 = [100, -20] = 70 miliseconds
    8 = [100 , 0] = 80 miliseconds

    About 2. - What do you mean with this - your software creates X=100, Y=-100, if it is a circle you cant never have those values.

    In the theory they are correct I think.
    In the theory they must look like this:
    Attachment 933

    If you try to achieve them with game-pad when look at device monitor you will never get exact this value.
    They go around X=88 / Y= -87 depending of the game-pad.
    I made experiment right now and this is the result I have:
    - with my DS4 I get X=78 / Y=-78

    - with my XB1 I get X=89 / Y=-89

    In practice when I was check it in device monitor they look like this :

    Attachment 932

  11. #71
    SILVER ELITE MASTER

    User Info Menu

    Re: Using Viking Controller Macros

    i found the information i was looking for.
    calculating a x y coordinate for a given point in a circle.
    it was actually a simple math problem lol,
    http://www.mathopenref.com/coordbasiccircle.html

  12. The Following User Says Thank You to VincentX For This Useful Post:


  13. #72
    MASTER GUARDIAN II

    User Info Menu

    Re: Using Viking Controller Macros

    I have a viking macro controller for the 360.... if that would help

  14. The Following User Says Thank You to falconpunch323 For This Useful Post:


  15. #73
    SILVER IV

    User Info Menu

    Re: Using Viking Controller Macros

    could you take the shotgun master ultra and play it in the combo magik plugin and send it to me? just a note to remember though, it may help when doing so to change the playback on the macro to "when button is pressed play once" or whatever, i dont have my 360 macro anymore or i would do all kinds of stuff like this. ill have my xbox one macro soon though and ill give back help.

    even more help possibly, use the tac switch version and then when you play it in the magik plugin it wont see extra RT pulls or anything, making for a possibly cleaner code.

  16. #74
    SILVER II

    User Info Menu

    Re: Using Viking Controller Macros

    http://www.viking360.com/library/?macro=890
    can someone convert this macro to gpc

    and possibly this one too XD

    http://www.viking360.com/library/?macro=405

  17. #75
    SILVER I

    User Info Menu

    Re: Using Viking Controller Macros

    I've seen that someone was offering to record their viking macro to gpc i was wondering can you record the xyy jitter on the fastest speed for me please that would be amazing as i used to have 1 and it broke so i would enjoy it greatly thank you im sorry if this post is really late as ive only had my cronus a week. p.s. Thank You!!!

  18. #76
    SILVER IV

    User Info Menu


Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new topics
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •