XIM Community

Fortnite 1 Key Builder Pro Mode  (Read 14065 times)

Offline MRog40

  • MVP
  • *
  • Posts: 790
  • FPS games are 10% Aim and 90% positioning
    • View Profile
  • PSN ID: MRog40
Fortnite 1 Key Builder Pro Mode
« on: 12:30 PM - 04/11/18 »
THIS IS NOT A XIM LINK TROUBLESHOOTING THREAD
Please read the guides and information available about Xim Link

Use the Scripting section of the Discord for help

Easy key assignments thanks to member FortyOne
Big thanks to cqghost aka rjprevost for his contributions and great ideas

The in game option "Reset Building Choice" and Builder Pro control scheme must be on for this to work properly

v1.6
Turbo building should now be working well.
For this script to work properly, you must bind a Seccondary L2 Key and Secondary R2 Key in your Xim manager
Turbo building stairs should not affect your sensitivity, and swapping pieces while holding down LButton should continue to turbo build with the new piece.

Code: [Select]
#Include %A_AppData%\XIM Link\ScriptAdditionals\AHK_ADDITIONALS.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#InstallKeybdHook
#InstallMouseHook
#UseHook

/*
===================================================================
===============     MRog40's Builder Pro OKB      =================
===============    Contributions by rjprevost     =================
===============               v1.6                =================
===============              4/19/18              =================
===================================================================

===================================================================
=============== Keybind Example:                 ==================
===============     Walls_Key = f                ==================
===============     Triangle_yButton_Key = t     ==================
===============     Left_Dpad = Left             ==================
===================================================================
=============== Special buttons:                 ==================
===============      https://goo.gl/4FhUi7       ==================
===================================================================

===================================================================
================= Do Not Edit Code Above ==========================
===================================================================
*/
;=================== Script Keybinds ==============================
Walls_Key = XButton1
Floors_Key = LCtrl
Stairs_Key = LAlt
Pyramid_Key = x
Reset_Key = g

;=================== Xim Keybinds =================================
Triangle_yButton_Key = 1
Circle_bButton_Key = c
R2_Key = LButton
L2_Key = RButton
Secondary_L2_Key = p
Secondary_R2_Key = o
R1_rBumper_Key = Numpad1
L1_lBumper_Key = q
Left_Dpad = Left

;=================== Global Variables =============================
keyHold := 40 ; time key is held

/*
===================================================================
================= Do Not Edit Code Below ==========================
===================================================================
*/

buildMode := false
L_Button = Secondary_R2_Key
editMode := false

;HotKeys
Hotkey, ~*%Walls_Key% , Walls_Macro
Hotkey, ~*%Floors_Key%, Floors_Macro
Hotkey, ~*%Stairs_Key% , Stairs_Macro
Hotkey, ~*%Pyramid_Key%, Pyramid_Macro
Hotkey, ~*%Reset_Key%, double_Triangle_Macro
HotKey, ~*%Triangle_yButton_Key%, Triangle_yButton_Macro
HotKey, ~*%Circle_bButton_Key%, Circle_bButton_Macro
#If buildMode && !editMode
HotKey, If, buildMode && !editMode
HotKey, *$%L2_Key%, L2_Key_Macro
HotKey, *$%R1_rBumper_Key%, double_Triangle_Macro
HotKey, *$%L1_lBumper_Key%, double_Triangle_Macro
Hotkey, If
#If
Return

;Events
Walls_Macro:
buildPiece(Secondary_R2_Key)
Return

Floors_Macro:
buildPiece(R1_rBumper_Key)
Return

Stairs_Macro:
buildPiece(Secondary_L2_Key)
Return

Pyramid_Macro:
buildPiece(L1_lBumper_Key)
Return

Triangle_yButton_Macro:
buildMode := false
L_Button := Secondary_R2_Key
Return

Circle_bButton_Macro:
circleButton()
Return

#If buildMode && !editMode
$*LButton::
SendInput {%L_Button% DownR}
Return

$*LButton Up::
SendInput {%L_Button% Up}
Return
#If

L2_Key_Macro:
SendInput {%Left_Dpad% DownR}
Sleep keyHold
SendInput {%Left_Dpad% Up}
Return

double_Triangle_Macro:
buildMode := false
L_Button = Secondary_R2_Key
editMode := false
changeStuff(Triangle_yButton_Key, Secondary_R2_Key)
Sleep 20
changeStuff(Triangle_yButton_Key, Secondary_R2_Key)
Return

;Functions
buildPiece(piece)
{
global
SendInput {%L_Button% Up}
SendInput {LButton Up}
if(buildMode && L_Button = piece)
{
changeStuff(Circle_bButton_Key, piece)
}
else if(buildMode)
changeStuff(piece, piece)
else{
changeStuff(Circle_bButton_Key, piece)
if(piece != Secondary_R2_Key)
changeStuff(piece, piece)
}
Sleep 80
if(buildMode && GetKeyState("LButton", "P"))
SendInput {%L_Button% DownR}
else if(!buildMode && GetKeyState("LButton", "P"))
SendInput {LButton DownR}
}

changeStuff(key, var)
{
global
if(key = Circle_bButton_Key)
{
buildMode := !buildMode
SendInput {%L_Button% Up}
Sleep 10
}
L_Button = %var%
SendInput {%key% DownR}
Sleep keyHold
SendInput {%key% Up}
Sleep 40
}

circleButton() {
global
KeyWait, %Circle_bButton_Key%, T0.3
if(ErrorLevel && buildmode) {
KeyWait, %Circle_bButton_Key%
editMode := true
} else if(buildMode && editMode) {
editMode := false
} else {
buildMode := false
}
}

Please explain in detail any bugs you find or suggestions.

I will not be implementing trap support, just press square twice. The reason is that when you don't have traps and hit the trap button, it will mess up the entire script.


Someone suggested I add a donation link so here it is: Donate

My scripts will remain completely free and I'll continue working on them and helping people either way, but as a poor college student I won't turn down any contributions

Also, if you are feeling donation friendly please use the donate button in your xim link to thank W11cE for Xim Link

If you copy pasted this script anytime before the date shown below this message, you may not have the most recent iteration.
« Last Edit: 02:34 AM - 04/20/18 by MRog40 »
Xim Apex | PS4 | PC | G502 | Corsair K65 LUX RGB | C24FG70 | Astro A40 TR | QcK XXL

Offline tainted7oh7

  • Member
  • *
  • Posts: 7
    • View Profile
Re: Fortnite 1 Key Builder Pro Mode
« Reply #1 on: 02:05 PM - 04/11/18 »
You're a saint. I opened up the previous script and started messing around with the logic for getting it to work with mouse click and builder pro but it was definitely annoying. Thanks for all of your work.

Offline APEXisGODLY

  • Member
  • *
  • Posts: 5
    • View Profile
  • Gamertag: TinyTim303
  • PSN ID: FatPat303
Re: Fortnite 1 Key Builder Pro Mode
« Reply #2 on: 02:32 PM - 04/11/18 »
You are too nice. Thanks for all your hard work.

Offline Od1n

  • Global Moderator
  • MVP
  • *
  • Posts: 27863
    • View Profile
Re: Fortnite 1 Key Builder Pro Mode
« Reply #3 on: 06:06 PM - 04/11/18 »
i think itll be worth it

the big advantage of a script + builder pro is that you dont need to cycle through the different building states which solves two issues:
- its faster since you dont need to wait for the cycling
- when you press the build button during the cycling you could sometimes build eg a stair ahead of your desired pyramid because of the cycling time



overall it sucks a little bit that EPIC doesnt want to make use out of the touchpad swipe directions, that way you could have 4 more controller inputs to eg bind weapon selections or get rid of the double press building solution
PS4 & X1 | C: MS | XIM4 | FW: the latest ofc! :) | Mon: BenQ XL2420Z | Pad: Zowie G-SR | KB: Ducky DK1008L Cherry Red O-Rings| A: AKG K701 Creative X7 Antlion Modmic | M: Zowie EC1-A | D: 3200 | P: 1000hz | BF4 4 HIP: 35 ADS: 20

Check out my Youtube Channel: XIMGameplay
Du sprichst Deutsch? Hier gehts zum deutschen Forum

Offline Da New Champ

  • Member
  • *
  • Posts: 44
    • View Profile
  • Gamertag: Da New Champ
Re: Fortnite 1 Key Builder Pro Mode
« Reply #4 on: 06:21 PM - 04/11/18 »
This is gonna be awesome

Offline MRog40

  • MVP
  • *
  • Posts: 790
  • FPS games are 10% Aim and 90% positioning
    • View Profile
  • PSN ID: MRog40
Re: Fortnite 1 Key Builder Pro Mode
« Reply #5 on: 10:02 PM - 04/11/18 »
the big advantage of a script + builder pro is that you dont need to cycle through the different building states which solves two issues:
- its faster since you dont need to wait for the cycling
- when you press the build button during the cycling you could sometimes build eg a stair ahead of your desired pyramid because of the cycling time

It also will save 100 ms or so when switching between 2 slot difference pieces, and make already-in-build-mode switching basically instant. I almost always build a floor while trying to build wall/stair combos with my current script, that's the biggest fix this will have.


Quote
overall it sucks a little bit that EPIC doesnt want to make use out of the touchpad swipe directions, that way you could have 4 more controller inputs to eg bind weapon selections or get rid of the double press building solution
I'm glad they didn't, I don't think Xim can use these. I do wish they would allow totally custom button mapping, because then we wouldn't have to mess with the the struggle of using LButton for build all the time.
Xim Apex | PS4 | PC | G502 | Corsair K65 LUX RGB | C24FG70 | Astro A40 TR | QcK XXL

Offline Od1n

  • Global Moderator
  • MVP
  • *
  • Posts: 27863
    • View Profile
Re: Fortnite 1 Key Builder Pro Mode
« Reply #6 on: 09:08 AM - 04/12/18 »
I almost always build a floor while trying to build wall/stair combos with my current script, that's the biggest fix this will have.

you can solve that by either using a pyramid instead of stairs (edit the pyramid so the front 2 squares are up, itll be a stairs then)
when you cycle to the pyramid itll switch first to stairs then to the pyramid, means if you press confim build too early youll just have a regular stairs instead of the pyramid stairs
the other possibility is to add a global left mouse button stallhotkey that locks up your left mouse button during the cycling procedure

overall both are not ideal and builder pro will solve this anyway :)
PS4 & X1 | C: MS | XIM4 | FW: the latest ofc! :) | Mon: BenQ XL2420Z | Pad: Zowie G-SR | KB: Ducky DK1008L Cherry Red O-Rings| A: AKG K701 Creative X7 Antlion Modmic | M: Zowie EC1-A | D: 3200 | P: 1000hz | BF4 4 HIP: 35 ADS: 20

Check out my Youtube Channel: XIMGameplay
Du sprichst Deutsch? Hier gehts zum deutschen Forum

Offline alanmcgregor

  • MVP
  • *
  • Posts: 1148
    • View Profile
Re: Fortnite 1 Key Builder Pro Mode
« Reply #7 on: 09:48 AM - 04/12/18 »
I know your pain brother, I'm writing a script for T2 and can't tested. Last night can't login to the game servers. Today I got a 2 hrs queue.
XIM APEX + Titan Two
PS4 Pro - ASUS VG245H 24" - Astro A40 TR MixAmp - Razer Orbweaver - Tt Esports Ventus R Modded - Hyper XL

Offline ocz

  • Member
  • *
  • Posts: 123
    • View Profile
  • Gamertag: zer0harm
Re: Fortnite 1 Key Builder Pro Mode
« Reply #8 on: 09:52 AM - 04/12/18 »
I know your pain brother, I'm writing a script for T2 and can't tested. Last night can't login to the game servers. Today I got a 2 hrs queue.

The servers are back on.

Offline Od1n

  • Global Moderator
  • MVP
  • *
  • Posts: 27863
    • View Profile
Re: Fortnite 1 Key Builder Pro Mode
« Reply #9 on: 09:53 AM - 04/12/18 »
I know your pain brother, I'm writing a script for T2 and can't tested. Last night can't login to the game servers. Today I got a 2 hrs queue.


server maintenance, here you can see their progress + updates

https://status.epicgames.com/
PS4 & X1 | C: MS | XIM4 | FW: the latest ofc! :) | Mon: BenQ XL2420Z | Pad: Zowie G-SR | KB: Ducky DK1008L Cherry Red O-Rings| A: AKG K701 Creative X7 Antlion Modmic | M: Zowie EC1-A | D: 3200 | P: 1000hz | BF4 4 HIP: 35 ADS: 20

Check out my Youtube Channel: XIMGameplay
Du sprichst Deutsch? Hier gehts zum deutschen Forum

Offline pacinoallstars

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Fortnite 1 Key Builder Pro Mode
« Reply #10 on: 11:11 AM - 04/12/18 »
thank you for this, i just got my belkin cable. this will will be the first script i try out.

Offline II THE HOST II

  • Member
  • *
  • Posts: 172
    • View Profile
Re: Fortnite 1 Key Builder Pro Mode
« Reply #11 on: 11:41 AM - 04/12/18 »
I am not understanding how this will be faster.  I find the old script to work perfectly fast enough but i lowered the button press time. 

The only problem i have is the script getting messed up when i try to edit.

I am not being argumentative, I just truly want to understand what this will fix other than 1 less button press for the script to handle?

Offline pacinoallstars

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Fortnite 1 Key Builder Pro Mode
« Reply #12 on: 12:00 PM - 04/12/18 »
I am not understanding how this will be faster.  I find the old script to work perfectly fast enough but i lowered the button press time. 

The only problem i have is the script getting messed up when i try to edit.

I am not being argumentative, I just truly want to understand what this will fix other than 1 less button press for the script to handle?

he explained that allrdy. you dont have to take care of cycling so less variables means less keypress, also possible to just hold a button and it will keep spamming walls (turbo mode).

Offline MRog40

  • MVP
  • *
  • Posts: 790
  • FPS games are 10% Aim and 90% positioning
    • View Profile
  • PSN ID: MRog40
Re: Fortnite 1 Key Builder Pro Mode
« Reply #13 on: 12:50 PM - 04/12/18 »
I am not understanding how this will be faster.  I find the old script to work perfectly fast enough but i lowered the button press time. 
I out-build the old script all the time, and I know I'm not the only one.

Quote
The only problem i have is the script getting messed up when i try to edit.
And i've already explained why that is an issue, and why I won't be accommodating editing in the script. You can make a macro button to edit if you'd like that holds to circle to open editing without effecting the building script.
 
Quote
I am not being argumentative, I just truly want to understand what this will fix other than 1 less button press for the script to handle?
Not being argumentative, but is commenting on threads he hasn't even read.  ???

If you don't think this will be better, don't use it, but in my opinion it will be better.

Xim Apex | PS4 | PC | G502 | Corsair K65 LUX RGB | C24FG70 | Astro A40 TR | QcK XXL

Offline II THE HOST II

  • Member
  • *
  • Posts: 172
    • View Profile
Re: Fortnite 1 Key Builder Pro Mode
« Reply #14 on: 02:37 PM - 04/12/18 »
I am not understanding how this will be faster.  I find the old script to work perfectly fast enough but i lowered the button press time. 
I out-build the old script all the time, and I know I'm not the only one.

Quote
The only problem i have is the script getting messed up when i try to edit.
And i've already explained why that is an issue, and why I won't be accommodating editing in the script. You can make a macro button to edit if you'd like that holds to circle to open editing without effecting the building script.
 
Quote
I am not being argumentative, I just truly want to understand what this will fix other than 1 less button press for the script to handle?
Not being argumentative, but is commenting on threads he hasn't even read.  ???

If you don't think this will be better, don't use it, but in my opinion it will be better.

You are always so rude.  That is the only reason i said i am not trying to be argumentative. 

I read the whole thread and am slow to understand things.   

I feel you can help me because you seem knowledgeable but you are so rude I have to say I am sorry before I even ask a question.

I never out build the script so I wasn't understanding.

Why do I rub people the wrong way?  I am just trying to learn.