Page 1 of 1

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

PostPosted: Sun Mar 20, 2016 2:46 am
by Dephault
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.

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

PostPosted: Sun Mar 20, 2016 6:59 am
by J2Kbr
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.

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

PostPosted: Mon Mar 21, 2016 3:39 pm
by UK_Wildcats
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.

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

PostPosted: Tue Apr 19, 2016 8:28 am
by Dephault
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

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

PostPosted: Tue Apr 19, 2016 3:28 pm
by UK_Wildcats
Happy that you got it figured out.

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

PostPosted: Sun Jan 06, 2019 7:10 am
by HEAVEN477
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