Is 16 filterscripts the max that can load?. -
QatarKnight - 07.08.2013
I noticed that i can only put 16 filterscripts if i put more in the line filterscript in server.cfg i'll start to get unable to load filterscript. Is there something you need to do if you exceed 16 filterscripts?. Or is 16 the maximum possible number of filterscripts?.
Re: Is 16 filterscripts the max that can load?. -
admantis - 07.08.2013
Yes, you can only have 16 filterscripts. You can see that limit in this page:
https://sampwiki.blast.hk/wiki/Limits
You could try "attaching" the filterscript code in your gamemode code, for example if a filterscript is a command, you can directly copy & paste that command in your gamemode. Or remove un-used filterscripts.
Re: Is 16 filterscripts the max that can load?. -
QatarKnight - 07.08.2013
Quote:
Originally Posted by admantis
Yes, you can only have 16 filterscripts. You can see that limit in this page:
https://sampwiki.blast.hk/wiki/Limits
You could try "attaching" the filterscript code in your gamemode code, for example if a filterscript is a command, you can directly copy & paste that command in your gamemode. Or remove un-used filterscripts.
|
Is the the limit going to be raised in a recent update or you do not know?.
Re: Is 16 filterscripts the max that can load?. -
Red_Dragon. - 07.08.2013
No one knows except the developers of SA:MP.
Re: Is 16 filterscripts the max that can load?. -
dannyk0ed - 07.08.2013
Quote:
Originally Posted by Red_Dragon.
No one knows except the developers of SA:MP.
|
Here...
Re: Is 16 filterscripts the max that can load?. -
Pottus - 07.08.2013
If you need 16 filterscripts your not coding correctly particularly if it's a gamemode you shouldn't have any filterscripts in any production script unless there is good reason for it such as missions in a development state I can't see the need for more than a few filterscripts anyways.
You need to take a look at how your doing things because virtually any FS can be made into an include using hooking I get the feeling your taking a modular approach by keeping different parts of your code separate but your method is wrong by trying to use many filterscripts.
The solution is very convenient however use YSI hooking
https://sampforum.blast.hk/showthread.php?tid=166016 it's probably the fastest and by far the easiest way to convert a FS into a include just by compiling with the y_hooks include and switch your public functions in the following manner will give the same results as a FS.
(Note: You'll see need to add the include into your gamemode - #include <myinclude>
pawn Код:
public OnGameModeInit() {}
hook OnGameModeInit() {}
I don't see how much more anyone could ask for with a system like this and I think this pretty much sums up your problem as there is no limit on includes or at least any limit you could ever possibly reach and with the same results as a FS!
Re: Is 16 filterscripts the max that can load?. -
Scenario - 07.08.2013
I'm with Pottus on this one.
Re: Is 16 filterscripts the max that can load?. -
ColorHost-Kevin - 07.08.2013
I would just hook it into your gamemode.