Apex Legends Gamepack

Titan Two general support. Questions, firmware update, feature request.

Re: Apex Legends Gamepack

Postby Mochi » Mon May 06, 2019 7:57 am

Hi J2Kbr, I am sorry to be annoying, but any luck finding the time to configure the new game-pack update with DontAtMe's script?

Apologies again for being persistent, just looking forward to it :)
User avatar
Mochi
Sergeant First Class
Sergeant First Class
 
Posts: 24
Joined: Wed Mar 20, 2019 8:02 am

Re: Apex Legends Gamepack

Postby anderson78 » Mon May 06, 2019 3:52 pm

Mochi wrote:Hi J2Kbr, I am sorry to be annoying, but any luck finding the time to configure the new game-pack update with DontAtMe's script?

Apologies again for being persistent, just looking forward to it :)


Me too, i keep refreshing these pages several times a day to see if either the finished script (using DontAtMe's xbox values) or gamepack has been uploaded.

Really looking forward to it :innocent_smile_1:
User avatar
anderson78
Corporal
Corporal
 
Posts: 5
Joined: Sat Apr 13, 2019 11:49 pm

Re: Apex Legends Gamepack

Postby Mochi » Tue May 14, 2019 12:28 pm

Mochi wrote:Hi J2Kbr, I am sorry to be annoying, but any luck finding the time to configure the new game-pack update with DontAtMe's script?

Apologies again for being persistent, just looking forward to it :)


:smile1008: :smile0506:
User avatar
Mochi
Sergeant First Class
Sergeant First Class
 
Posts: 24
Joined: Wed Mar 20, 2019 8:02 am

Re: Apex Legends Gamepack

Postby J2Kbr » Sat May 18, 2019 2:42 pm

Sorry guy, since May 5th I am far from the office (planned trip to USA). Will be back by the end of next week.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Apex Legends Gamepack

Postby Mochi » Mon May 27, 2019 7:09 am

J2Kbr wrote:Sorry guy, since May 5th I am far from the office (planned trip to USA). Will be back by the end of next week.


Thank you and looking forward :smile0203:
User avatar
Mochi
Sergeant First Class
Sergeant First Class
 
Posts: 24
Joined: Wed Mar 20, 2019 8:02 am

Re: Apex Legends Gamepack

Postby DontAtMe » Mon May 27, 2019 10:55 pm

Here is a cleaned up version of my script.
Code: Select all
uint8 group_detected;
main {
  if (is_active(BUTTON_5))
    group_detected = ffb_detect(ffb_get_actual(FFB_3, NULL));
  else {
    if (group_detected) {
      if (check_release(BUTTON_5, 250) || event_active(BUTTON_14))
        group_detected = NULL;
    }
  }
}
 
uint8 ffb_detect(fix32 val) {
  static fix32 v;
  static uint8 current_group;
  static uint8 old_group;
 
  if (!group_detected) {
    v = (val * 255f / 100f) * 10f;
    current_group = detect_group(v);
    if (current_group && current_group != old_group) {
      int8 * print_group[] = {
        0,
        "<h1>Group 1</h1><h3> ALTERNATOR, PROWLER, R-99",
        "<h1>Group 2</h1><h3> DEVOTION, FLATLINE, HAVOC, HEMLOCK, R-301, SPITFIRE",
        "<h1>Group 3</h1><h3> PP2020, RE-45",
        "<h1>Group 4</h1><h3> EVA-B AUTO, PACEKEEPER",
        "<h1>Group 5</h1><h3> MOZAMBIQUE, WINGMAN",
        "<h1>Group 6</h1><h3> G7-SCOUTE, KRABER, LONGBOW, TRIPPLE TAKE"
      };
      printf(print_group[current_group]);
      old_group = current_group;
    }
  }
  return current_group;
}
 
uint8 detect_group(fix32 v) {
  if (v > 80f) return 5;
  else if (v > 65f) return 4;
  else if (v > 55f && ffb_get_actual(FFB_1, NULL) > 39f) return 6;
  else if (v > 55f) return 3;
  else if (v > 35f) return 2;
  else if (v > 25f) return 1;
  return 0;
}

I removed the bullet tracking feature, from this script, because it was only half implemented, and made the code harder to understand.

This script is able to detect all six weapon groups, for Xbox One Only.
Feel free to use this as reference for when you are updating the game pack. :smile0517:
User avatar
DontAtMe
Captain
Captain
 
Posts: 502
Joined: Tue Oct 02, 2018 4:49 am

Re: Apex Legends Gamepack

Postby TrayDay » Fri Jun 07, 2019 8:49 am

J2Kbr wrote:Sorry guy, since May 5th I am far from the office (planned trip to USA). Will be back by the end of next week.

I been trying to get the script working on the PS4 for the weapon group. But the detection is in fact flipped between the xbox and ps4. Any update on when you be adding SL-AR to the Apex Gamepack? Thanks.
User avatar
TrayDay
First Sergeant
First Sergeant
 
Posts: 60
Joined: Wed Nov 02, 2016 11:12 pm

Re: Apex Legends Gamepack

Postby Mochi » Fri Jun 07, 2019 10:24 am

I come back to this thread every few days... but don't think he has the time to update it :)
User avatar
Mochi
Sergeant First Class
Sergeant First Class
 
Posts: 24
Joined: Wed Mar 20, 2019 8:02 am

Re: Apex Legends Gamepack

Postby Mochi » Wed Jun 12, 2019 12:01 pm

Sorry to bother J2Kbr, but if you don't plan to update the gamepack as you are understandably busy; would it be alright to share the code that you created for the PS4 that identifies the 6 weapon groups? That would lessen the irritability that I keep bumping this thread :D
User avatar
Mochi
Sergeant First Class
Sergeant First Class
 
Posts: 24
Joined: Wed Mar 20, 2019 8:02 am

Re: Apex Legends Gamepack

Postby n3rdwith » Thu Jun 13, 2019 12:05 am

DontAtMe wrote:Here is a cleaned up version of my script.
Code: Select all
uint8 group_detected;
main {
  if (is_active(BUTTON_5))
    group_detected = ffb_detect(ffb_get_actual(FFB_3, NULL));
  else {
    if (group_detected) {
      if (check_release(BUTTON_5, 250) || event_active(BUTTON_14))
        group_detected = NULL;
    }
  }
}
 
uint8 ffb_detect(fix32 val) {
  static fix32 v;
  static uint8 current_group;
  static uint8 old_group;
 
  if (!group_detected) {
    v = (val * 255f / 100f) * 10f;
    current_group = detect_group(v);
    if (current_group && current_group != old_group) {
      int8 * print_group[] = {
        0,
        "<h1>Group 1</h1><h3> ALTERNATOR, PROWLER, R-99",
        "<h1>Group 2</h1><h3> DEVOTION, FLATLINE, HAVOC, HEMLOCK, R-301, SPITFIRE",
        "<h1>Group 3</h1><h3> PP2020, RE-45",
        "<h1>Group 4</h1><h3> EVA-B AUTO, PACEKEEPER",
        "<h1>Group 5</h1><h3> MOZAMBIQUE, WINGMAN",
        "<h1>Group 6</h1><h3> G7-SCOUTE, KRABER, LONGBOW, TRIPPLE TAKE"
      };
      printf(print_group[current_group]);
      old_group = current_group;
    }
  }
  return current_group;
}
 
uint8 detect_group(fix32 v) {
  if (v > 80f) return 5;
  else if (v > 65f) return 4;
  else if (v > 55f && ffb_get_actual(FFB_1, NULL) > 39f) return 6;
  else if (v > 55f) return 3;
  else if (v > 35f) return 2;
  else if (v > 25f) return 1;
  return 0;
}

I removed the bullet tracking feature, from this script, because it was only half implemented, and made the code harder to understand.

This script is able to detect all six weapon groups, for Xbox One Only.
Feel free to use this as reference for when you are updating the game pack. :smile0517:

So if I add this to the current Apex Legends Game Pack it will allow the recoil to adjust based off of the group type? I've been very happy with the other features of the game pack and the auto-fire, but I haven't found a good anti-recoil.
User avatar
n3rdwith
Corporal
Corporal
 
Posts: 4
Joined: Fri Jun 07, 2019 4:39 pm

PreviousNext

Return to Titan Two Device

Who is online

Users browsing this forum: No registered users and 151 guests