adding your own script/someone elses, to an existing script

Gtuner Pro general support. Operation, questions, updates, feature request.

Moderator: The_Rabid_Taco

adding your own script/someone elses, to an existing script

Postby Dephault » Sun Mar 20, 2016 2:46 am

Hey all.

My apologies if this has been covered previously. I did do a search and didn't find anything.
I'd like to be able to add my own few lines of script to an existing script but am not sure how to code all that well.

1. Using the visual scripting is fine but then adding to an existing script does not work for me. Id like to know how to add my own lines into script.

2. What i would also like to do is combine button remapping with the bo3 V2.0 script if at all possible.

bo3 script: http://www.consoletuner.com/gpclib/?s=1054
Button remapping script : http://www.consoletuner.com/gpclib/?s=1071

Please let me know if this is possible at all.

Thanks,
Dephault.
User avatar
Dephault
First Sergeant
First Sergeant
 
Posts: 64
Joined: Mon May 25, 2015 8:25 am

Re: adding your own script/someone elses, to an existing scr

Postby J2Kbr » Sun Mar 20, 2016 6:59 am

It is totally possible combine two or more scripts, however by doing that you must maintain the GPC structure, for example you can only have one main section, so you need combine the code within the main section of both scripts into only one, same for the init section. You also need check if there is no naming conflict on variables and combos.

Both scripts you linked are quite long and complex. The changes of get it working on by simply merging both into a single script is very low. My suggestion is just change the BO3 script with the button remaps you need, it will be much simpler and fast approach.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 16860
Joined: Tue Mar 18, 2014 1:39 pm

Re: adding your own script/someone elses, to an existing scr

Postby UK_Wildcats_Fans » Mon Mar 21, 2016 3:39 pm

I have been adding mods and suggestions from forum members to my BO3 v2.0 script. At this point, the script uses 96.4% of the available memory; therefore, there is very little room to add much more to it. That is why I stopped adding more features because I don't have the room. The script has a define section for mapping the buttons. You easily update these to what you want them.
User avatar
UK_Wildcats_Fans
Brigadier General
Brigadier General
 
Posts: 2041
Joined: Thu Jan 08, 2015 6:53 pm
Location: San Diego, California USA

Re: adding your own script/someone elses, to an existing scr

Postby Dephault » Tue Apr 19, 2016 8:28 am

Hey all. I apologies for the late reply. I have had troubles with my login for some time now.
Thanks for the reply. After reading your comments i did manage to change the script and now have normal button layout.

In future if i want to edit a script i will be sure to make a not-so-long and complex script to merge.
Thanks guys
User avatar
Dephault
First Sergeant
First Sergeant
 
Posts: 64
Joined: Mon May 25, 2015 8:25 am

Re: adding your own script/someone elses, to an existing scr

Postby UK_Wildcats_Fans » Tue Apr 19, 2016 3:28 pm

Happy that you got it figured out.
User avatar
UK_Wildcats_Fans
Brigadier General
Brigadier General
 
Posts: 2041
Joined: Thu Jan 08, 2015 6:53 pm
Location: San Diego, California USA

Re: adding your own script/someone elses, to an existing scr

Postby HEAVEN477 » Sun Jan 06, 2019 7:10 am

can someone make a script for me where you press l1 to spin in a circle and throe punches with right r3 for fight night champion it only spins when the button l1 is pressed
User avatar
HEAVEN477
Private
Private
 
Posts: 1
Joined: Sun Jul 23, 2017 2:19 pm


Return to Gtuner Pro Support (Titan One)

Who is online

Users browsing this forum: Puffbudder, TeraN and 1 guest