Metamod: Fix For Mp_blockscripts
voogru
Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
<div class="IPBDescription">Its time for scripters to go elsewhere</div> <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
I've found out why mp_blockscripts didnt work and have decided to release a fix, now we can put a stop to people using scripts like crazy. This is fixed in the next build of NS, but I figured server ops would like to have this now.
It works by simply sending the client sv_blockscripts, instead of mp_blockscripts. (someone made a typo).
Anyways, heres the fix:
<a href='http://www.voogru.com/files/FixScripts.zip' target='_blank'>http://www.voogru.com/files/FixScripts.zip</a>
Let me know if theres any problems.
Lets not turn this into a flamewar of the valid uses of scripting, this is just a plugin to allow server ops to use a feature that was meant to be in NS.
<span style='color:blue'>UPDATE: It doesnt block all scripts and can be easily overridden, unfortantly most scripts that are written can bypas Flayra's method for blocking the scripts. Im going to work on improving the code and blocking the scripts should work properly.</span>
I've found out why mp_blockscripts didnt work and have decided to release a fix, now we can put a stop to people using scripts like crazy. This is fixed in the next build of NS, but I figured server ops would like to have this now.
It works by simply sending the client sv_blockscripts, instead of mp_blockscripts. (someone made a typo).
Anyways, heres the fix:
<a href='http://www.voogru.com/files/FixScripts.zip' target='_blank'>http://www.voogru.com/files/FixScripts.zip</a>
Let me know if theres any problems.
Lets not turn this into a flamewar of the valid uses of scripting, this is just a plugin to allow server ops to use a feature that was meant to be in NS.
<span style='color:blue'>UPDATE: It doesnt block all scripts and can be easily overridden, unfortantly most scripts that are written can bypas Flayra's method for blocking the scripts. Im going to work on improving the code and blocking the scripts should work properly.</span>
This discussion has been closed.
Comments
Either way it will be fixed for sure next patch.
um... what is the point to blocking scripts when you can just replicate the same actions as the script did with other windows commands :x
seriously voogru, why even waste your time on this?
um... what is the point to blocking scripts when you can just replicate the same actions as the script did with other windows commands :x
seriously voogru, why even waste your time on this? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
Erm?
Explain what you mean.
"WTH, my scripts aren't going to work next build on some servers <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo-->"
While I'm here, I should probably ask you one request...
Do you think, while you're on a bug fixing spree, you could turn lastinv into a client side command? That currently is the only script I use, and it does make playing more bearable since lag isn't as noticable with it. Many players would probably be grateful for this.
Also (completely unrelated):
Your fix for custom 3rd party solid entities, you didn't specify in the bug tracker clearly if you fixed it or kept it like it was realizing you weren't creating a CBaseEntity instance and passed it off as your own issue. Is it fixed? :o
"WTH, my scripts aren't going to work next build on some servers <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo-->"
While I'm here, I should probably ask you one request...
Do you think, while you're on a bug fixing spree, you could turn lastinv into a client side command?? That currently is the only script I use, and it does make playing more bearable since lag isn't as noticable with it. Many players would probably be grateful for this.
Also (completely unrelated):
Your fix for custom 3rd party solid entities, you didn't specify in the bug tracker clearly if you fixed it or kept it like it was realizing you weren't creating a CBaseEntity instance and passed it off as your own issue.? Is it fixed? :o <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->"WTH, my scripts aren't going to work next build on some servers <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo-->"<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
Hence why I'm really working hard on this. <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /><!--endemo-->
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Do you think, while you're on a bug fixing spree, you could turn lastinv into a client side command? That currently is the only script I use, and it does make playing more bearable since lag isn't as noticable with it. Many players would probably be grateful for this.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
I'll have to see, im not TOO familiar with the client just yet but I'll probably figure it out.
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Your fix for custom 3rd party solid entities, you didn't specify in the bug tracker clearly if you fixed it or kept it like it was realizing you weren't creating a CBaseEntity instance and passed it off as your own issue.? Is it fixed? :o<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
I fixed my entity code =). A quick note to why it only crashed after a game started, and on solid ents was because of the code that gives you the name of a player your looking at/hive health. Since a traceline has to hit a solid entity (as far as I know) ns detected it and tried to figure out what it was, once it tried to access a CBaseEntity pointer, it crashed.
Edited after I realized I was flaming - sorry.
Hobojoe, go whine in another forum. If you wonder why, read the quote above again.
<b>Its a freaking inconvenience.</b> It does not, mark my words, not, stop anyone from doing the exact same thing with other methods. Lets take a quick look at how this can be done :
<i>Pistol scripting -</i>
- Assign double-click to your pistol attack key via mouse drivers.
- Use the mousewheel
- Use mousedrivers with an autorepeat function (they exist, and will be popular if this ever goes live)
<i>Triple-jumping</i>
- Jack the speed of your mwheel to all hell, then bind it to +jump
- Assign your jump key to repeat x-times via kb or mouse drivers
- use autorepeat mousedrivers
And these are the only commonly used scripts. Things like blinkswipe/leapbite aren't terribly useful, and if someone happens to be handicapped or feel he needs them to play NS properly, then <b>for **** sake, he should be able to</b>. He'll still underperform compared to a person doing it manually and with much more fine control.
Alot more important than this under-educated witchhunt is fixing exploitable variables, like most prominently lightgamma (limiting its functional range to 2.0 minimum for example - the same way gamma can't go higher than 3.0), not removing scripts in hopes of stopping something exploitive, and at the same time removing alot of customizability and ease of use (and simply necessitating doing it externally).
<a href='http://www.unknownworlds.com/forums/index.php?showtopic=74929&st=0&' target='_blank'>http://www.unknownworlds.com/forums/in...pic=74929&st=0&</a>
People say block scripts so people can play on the same level.
But untill you've played NS on 13FPS, and 20 choke constent, and don't need scripts to fire your pistol at any half decent speed, you don't know the meaning of fair.
And don't tell me "Get a better PC", beacuse that's not even half the point.
edits-And i can't play on servers without, sv_blockscripts 1, because we all know every server in the land will be running it.
um... what is the point to blocking scripts when you can just replicate the same actions as the script did with other windows commands :x
seriously voogru, why even waste your time on this? <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
Erm?
Explain what you mean. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
<a href='http://www.ampednews.com/?page=articles&id=1055' target='_blank'>Why removing scripts is a waste of time</a>
Be sure to read the comments for even more info on scripting
Because thats just absurd. The rest of the things that are blocked are fine with me, but blocking ; is the stupidest thing I have ever heard of
I mean, take a simple harmless script like this
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias minusbuild "-use; unbind q; bind q plusbuild"
alias plusbuild "+use; unbind q; bind q minusbuild"
bind q plusbuild
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
All that does is hold down use for me, so I dont have to (and I can type normally while building stuff.
Block wait and the rest, but by blocking the use of ;, you are hurting people with non-abusive scripts :/
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Do you think, while you're on a bug fixing spree, you could turn lastinv into a client side command? That currently is the only script I use, and it does make playing more bearable since lag isn't as noticable with it. Many players would probably be grateful for this.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
I'll have to see, im not TOO familiar with the client just yet but I'll probably figure it out.
<!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
I was under the impression the lastinv used to be clientside and it was changed to serverside when max improved the netcode.
or not.
Blocked scripts was designed to be working in NS. It works to an extent and I plan on improving on it.
If you want to script, then find a server that has mp_blockscripts to 0, not that hard is it?
I'll have to change my whole button config to play on mp_blockscripts 1 enabled servers.
Blocked scripts was designed to be working in NS. It works to an extent and I plan on improving on it.
If you want to script, then find a server that has mp_blockscripts to 0, not that hard is it? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
finally you have redeemed yourself in my eyes after that horrible fireworks thing ^_^
I totally and fully support you on this, and you people who are whining need to knock it off, I mean christ, go gripe and be emo elsewhere
if you think "there's no point in blocking it because you can get around it", then i think your argument sucks. that apathetic point of view can be applied to <b>any</b> aspect of life and is completely worthless. if you're that sad that you need to use mouse drivers so your pistol fires at the cap, then you're simply admitting you are a worthless cheater.
i look forward to seeing voogru blocking all scripting in ns now that he is a dev, and i will support it no matter what anyone else says.
if you think "there's no point in blocking it because you can get around it", then i think your argument sucks. that apathetic point of view can be applied to <b>any</b> aspect of life and is completely worthless. if you're that sad that you need to use mouse drivers so your pistol fires at the cap, then you're simply admitting you are a worthless cheater.
i look forward to seeing voogru blocking all scripting in ns now that he is a dev, and i will support it no matter what anyone else says. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
if you think scripting gives only convience, why don't we also even out these playing fields:
- Make it so everyone's FPS is lowered down to 30 fps, to acommidate for the poor people with crappy computers whose jetpacks don't lift as fast and fades can't blink as quick or LMG's shoot slower or can't bhop.
- Make an actual command that enforces consistancy by not just checking filesize, it's still really easy to put in transparent muzzleflashes
And please, ignore these big issues, so I can't change my sensitivity when I switch teams! I know I did a bad thing, forgive me <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo-->
Also, Forlorn, I thought that nothing has been FPS related since 1.04?
Also, Forlorn, I thought that nothing has been FPS related since 1.04? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
So if all it offers is convience, lets remove it and make the game worse!
....that's a good idea?
And, as long as we are on HL it's FPS releated. Did you know that in CS, for example, your crosshairs which expand and shrink as you shoot... did you know they shrink faster as you have higher fps?
Seriously, the one thing common between all top competetive HL players of any mod:
<b>They all have 100 fps or pretty damn close to it</b>
And the reason is, it's not even a debate, either you have high FPS or play a gimped game. HL was designed on 100 fps.
They all have 100 fps or pretty damn close to it<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
Dude, not everyone. When I actually cared about clans and stuff, I used the same computer I use now, my laptop. I just now got it to do 30 fps max.
Yea, scripts just provide convenience. I've never thought anything of the b-hop scripts or the shootin scripts and stuff.
Meh...I guess its not my game, I just play it. I don't have any access to the code, so I can't do anythin about it. Oh well... 2.01 is played at the LANs, and I can script all I want. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
They all have 100 fps or pretty damn close to it<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
Dude, not everyone. When I actually cared about clans and stuff, I used the same computer I use now, my laptop. I just now got it to do 30 fps max.
Yea, scripts just provide convenience. I've never thought anything of the b-hop scripts or the shootin scripts and stuff.
Meh...I guess its not my game, I just play it. I don't have any access to the code, so I can't do anythin about it. Oh well... 2.01 is played at the LANs, and I can script all I want. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
You were never a top clanner, so you do not belong to my statement.