Filterscript merging...?
#1

Hi Guys,
I am a beginner scripter so i have a question in mind.
Can i merge two filterscripts in one? For e.g a script stats with #Define ...........
and ends with a long coding
can i copy another script beneath that and start it again with #Define
This will create multiple command lines so i wonder will it work?



Regards,
YM
Reply
#2

It is pretty simply if you use hooking and includes at that point each include is basically a filterscript.

Look at Texture Studio and how many includes there is.
https://github.com/Pottus/Texture-St...ts/tstudio.pwn

Now look at some includes.
https://github.com/Pottus/Texture-St...allobjects.pwn
https://github.com/Pottus/Texture-St...o/restrict.pwn
https://github.com/Pottus/Texture-St...io/listsel.pwn

See they are pretty much their own filterscripts but are compiled into a single script.
Reply
#3

I think you did'nt get my point or i did'nt got your bro.
I talked about Merging two filterscripts. But i got a idea thanks.
So can we merge two filterscripts?
Reply
#4

You can merge scripts, though you will collide very often with alot of things, so it's not easy to merge.
Reply
#5

You just can't paste a filterscript to the bottom of another, as that will definitely cause compiling issues with the possibility of some callbacks or functions already being used within the first filterscript.

Basically you need to copy/paste code from the second filterscript all into the appropriate callbacks within the first filterscript, defines with defines, variable declarations with variable declarations an so on.


Hope that cleared things up
Reply
#6

Quote:
Originally Posted by FireRage007
Посмотреть сообщение
I think you did'nt get my point or i did'nt got your bro.
I talked about Merging two filterscripts. But i got a idea thanks.
So can we merge two filterscripts?
that's what pottus said. You can use hooking to merge two filterscripts as modules and compile them to one. It would be much easier than copy pasting contents of two filterscripts in one file and maintaining logic to fit them.
Also the method you said is not possible as it violates programming /scripting concept.
Reply
#7

Quote:
Originally Posted by SyS
Посмотреть сообщение
that's what pottus said. You can use hooking to merge two filterscripts as modules and compile them to one. It would be much easier than copy pasting contents of two filterscripts in one file and maintaining logic to fit them.
Also the method you said is not possible as it violates programming /scripting concept.
Yup i am sorry for that. But i dont know about hooking too i am new, so can u please tell me about that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)