Lower Pings!

cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
<div class="IPBDescription">Thanks j0e</div> Ok, first get this uber-sweet tool : <a href='http://www.joe.to/ns/' target='_blank'>http://www.joe.to/ns/</a>

get the ripent.exe, ns_hera.ent, and ns_bast.ent files (you can get the bsp files instead, but its best to get some practice and don't use up j0e's bandwidth). and put them in your maps folder (or a temp folder with the bsp files too)

then, make backups of ns_hera.bsp ns_bast.bsp ns_tanith.bsp files.

next we use the tool.

at the command line type :
<b>riptent -import</b> <i>ns_mapname</i>

for whatever ent file you have

i.e to patch hera

<b>ripent -import ns_hera</b>

(note: do not use .bsp or .ent for patching).

j0e has the other files, i have included tanith.



Ok, now how did we do this? its easy.

<b>ripent -export ns_</b><i>mapname</i>

that creates ns_<i>name</i>.ent in the same dir.

then (using a DOZE text editor, it will not recognize unix line breaks) remove all mp3, wav, ambience_general, custom_particle s from the ent file. then save it. then import it, then test the map.

pretty easy, you can remove some sprites, but be careful, you can "break" the map if you remove the wrong ones.

Thanks to j0e for showing me how to use this!
«1

Comments

  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    btw, this is all server side and will not affect the cleints at all.

    anywhere from 50-200ms ping increases j0e and i have recorded.
  • Dan_ForeverDan_Forever Join Date: 2002-08-02 Member: 1054Members
    How does it effect the map? How does it accomplish what it does?
  • SuicideDogSuicideDog Join Date: 2002-11-10 Member: 8104Members
    edited January 2003
    ok.. changed what I typed before.. now I'm asking a different question. Is the tantih one already optimized?
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--Dan Forever+Jan 5 2003, 10:01 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Dan Forever @ Jan 5 2003, 10:01 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->How does it effect the map? How does it accomplish what it does?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    it takes out the worthless things that a server doesn't need to compute such as ambient light, ambient sounds and such, thus in effect lowering overhead.

    pings drop like crazy.

    (from IRC chat)
    [19:30] <+HF|KIR|HanoverFist> Tanith a laggy map too?
    [19:30] <CrackerJackMack> yes, i'm going to test it right now..i stripped it
    [19:30] <+HF|KIR|HanoverFist> k just owndering why pings are all 100+
    [19:30] <+HF|KIR|HanoverFist> stripping really help that much?
    [19:31] <CrackerJackMack> some clients had 63ms pings w/onos on hera w/stripping
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--SuicideDog+Jan 5 2003, 10:01 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (SuicideDog @ Jan 5 2003, 10:01 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->ok.. changed what I typed before.. now I'm asking a different question. Is the tantih one already optimized?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    yes....i didn't remove any sprites though....but everything else, my pings dropped 150ms
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited January 2003
    I released yet another plug-in! This plug-in will do just what modding the map does, without the hassle of editing all the maps.

    This plug-in will strip the following ents from all maps:

    env_particles
    env_particles_custom
    ambience_generic
    target_mp3audio

    And it does it automatically for each map.

    I haven’t tried it yet (but it does strip the ents) so it should work.


    Link: <a href='http://www.voogru.net/www/stripent_mm.zip' target='_blank'>http://www.voogru.net/www/stripent_mm.zip</a>

    No Linux compile yet, but its coming. (and yes the source is included)

    Update: now has a linux version, thanks scottl
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    man, and I was planning on making this later tonight :/
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    It took me literally 5 mins to make that.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited January 2003
    yeah I know, just the dispatchspawn hook with selective superceding.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--[WHO]Them+Jan 5 2003, 11:48 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([WHO]Them @ Jan 5 2003, 11:48 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->yeah I know, just the dispatchspawn hook with selective superceding.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    both of you are nerds LOL
  • Suicide_RunSuicide_Run Join Date: 2002-12-17 Member: 10939Members
    but helpfull nerds <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' valign='absmiddle' alt='wink.gif'><!--endemo-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    well yes, that they already knew.
  • FlayraFlayra Game Director, Unknown Worlds Entertainment San Francisco Join Date: 2002-01-22 Member: 3Super Administrators, NS2 Developer, Subnautica Developer
    edited January 2003
    I know you guys are just trying to help, but I really don't want people using it. We put a lot of time into making the levels ambient, and having you rip all this stuff out is like a stab in our gut. I know it doesn't matter what I say because you can do it if you want, but I wanted to at least let you know that we're not happy about it and would ask that you don't do it.

    I also find it hard to believe that this has a noticeable effect, as I've already optimized for the most common entities.

    Server performance will continue to be improved as I get more time, but I can only go so fast.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited January 2003
    <!--QuoteBegin--Flayra+Jan 5 2003, 12:48 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Flayra @ Jan 5 2003, 12:48 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->I know you guys are just trying to help, but I really don't want people using it.  We put a lot of time into making the levels ambient, and having you rip all this stuff out is like a stab in our gut.  I know it doesn't matter what I say because you can do it if you want, but I wanted to at least let you know that we're not happy about it and would ask that you don't do it.

    I also find it hard to believe that this has a noticeable effect, as I've already optimized for the most common entities.

    Server performance will continue to be improved as I get more time, but I can only go so fast.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    most of us are aware that you can only move so fast. But the fact remains that my linux server runs like caboose on some maps when i have more than 14 players. and even though I LOVE the levels in this game, any tweak that will lower lag is far more welcome than a couple special effects.

    I went to the #naturalselection channel one day and asked for ways to reduce lag. and the only answer they had for me was to reduce maximum players. And for me that's just not kosher, I like big games. and I also like it to not lag out with 18 players when the same hardware that easily handled 2 cs servers (each 20 player) without a single ping going over 90 only 2 months ago.

    So yes, it may be a stab to the dev team, but eye/ear candy takes a back seat to performance in my opinion.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--Flayra+Jan 5 2003, 12:48 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Flayra @ Jan 5 2003, 12:48 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->I know you guys are just trying to help, but I really don't want people using it. We put a lot of time into making the levels ambient, and having you rip all this stuff out is like a stab in our gut. I know it doesn't matter what I say because you can do it if you want, but I wanted to at least let you know that we're not happy about it and would ask that you don't do it.

    I also find it hard to believe that this has a noticeable effect, as I've already optimized for the most common entities.

    Server performance will continue to be improved as I get more time, but I can only go so fast.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    flayra i'm sorry that it hurt your feelings, but it didn't modify the Clients at all, it just removed the ents so that the server did not have to read and process them.

    we couldn't modify the code to ignore those entities so we modified the maps so it wouldn't have to.

    you probably would have made the code do this later and i don't think you should be offended. But i'm truely sorry, i was only trying to help out the other server operaters to run a better game (giving your mod better PR)
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    I dont know if Flayra was talking to me as well (i wasnt really hacking the maps) but...

    I kinda agree with [WHO]Them as far as performance, But I guess its stab if you modify the entities in the map (or map hacking/modding) and I see his point. I have tried making particle effects in the server (which worked) but it was a real pain to get it to look right.

    Ill leave the plugin on since it doesnt auctually modify the maps(unless Flayra asks me to remove it).

    Anyways, sorry.

    -voogru
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    the reason i decided to edit the maps instead of using botman's stripper2 or something is because the plugins tend to break...this was more stable.

    but i will not post it in here anymore. will host the files on my own server for those who want them.
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    All the enties are sent from the server to the client, if the ents are taken out of the map server-side none of the clients will see it. (since its not there)
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    i still see everything just fine on my server....maybe i'm just not noticing.
  • j0ej0e Join Date: 2002-11-01 Member: 2840Banned
    i think hera is the most beautiful map i've ever seen in any HL MOD. and bast is pretty damn cool too. i know a LOT (months, i'm sure) of work went into these levels. unfortunately as they are right now, i just can't use them on my server at all because the pings climb to 300-500 (other maps are <200).

    so, i thought this would be an ok TEMPORARY measure because i know the NS team will gradually make NS more efficient, and i look forward to the time when these maps can run in their default beauty.

    for now the choice i have is, have 6 maps in the mapcycle, or 8? and would the guys that made the maps prefer to have them played at all (without any ambient sounds or cool particle effects) to not having them used?

    i'll do whatever flayra wants, but if it's up to me, i'd rather have a less beautiful bast/hera than no bast/hera at all.

    and FYI to other people, what this does is <b>remove the ambient sounds and particle effects</b> from these maps completely (both server and client) which frees up maybe 10-20% of the cpu. if your pings were going up because the CPU was at 99% this will help a bit, but it's not going to let you run twice as many players on your server or anything crazy like that. and i don't know about their plugins but i would suggest if you do any of these things you <b>back up your BSP files first</b> (as i said on the web page) so that when new versions come out that are more CPU efficient you can let your players play the maps as originally designed.

    i really hope this doesn't seem like any kind of indictment of the maps because like i said, i think hera is incredible. it's jsut that i can't even use it without removing some of the entities (for now).

    joe
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    For now I have just put a message in my consgreet explaining that I am temporarily using optimized versions of bast and hera. The minute I can playably run these maps (as far as scrims go) without this map hacking, I will be changing straight back to the originals. But for right now there is no other choice if I want to play these maps.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    believe me, if the server if my server could run it effieciently, i would run them unedit as well. but as j0e said, this is just a temporary fix so people can enjoy this great maps with a decient ping time.
  • ECA_ShocK-TroopeRECA_ShocK-TroopeR Join Date: 2002-12-24 Member: 11472Banned
    as a player not a server op, i would perfer better ping (being on 56k) than fancy lighting or "fog" or something
  • BVAlphaGeekBVAlphaGeek Join Date: 2002-11-08 Member: 7735Members
    Sorry Flayra, As much as I dislike going against your wishes when it comes to this game linux server performance is too broken not to take advantage of every chance to reduce it. As soon as you guys get the linux performance issue under control I will run the maps as created because the eye candy is so nice.
  • SirusSirus Join Date: 2002-11-13 Member: 8466Members, NS1 Playtester, Constellation
    Hera is amazing =D.
  • HtNickoliHtNickoli Join Date: 2002-11-24 Member: 9786Members
    I too will be running the modified maps until the linux issue is fixxed. AS Hera and Bast makes my clients pings climb from <50 to 200+.
  • tlarmontlarmon Join Date: 2002-11-15 Member: 8701Members
    Hera doesn't seem to be as much of a problem as ns_bast on my server. I don't play ns_bast at all on my server for that very reason! ns_hera is has more lag than most of the other maps, but ns_bast is the worst. As for the best (lowest) pings, I'd say ns_nancy or ns_eclipse have the lowest pings of all the maps.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    i've always had problems with ns_tanith more than i have hera or bast. thats why i posted the tanith file.
  • HukkaHukka Join Date: 2002-11-05 Member: 6989Members
    I tested ns_tanith, ns_bast and ns_hera and pings are pretty good. 30-50 for everyone. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    I have 18 player server. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • tlarmontlarmon Join Date: 2002-11-15 Member: 8701Members
    <!--QuoteBegin--Hukka+Jan 6 2003, 02:41 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Hukka @ Jan 6 2003, 02:41 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->I tested ns_tanith, ns_bast and ns_hera and pings are pretty good. 30-50 for everyone. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    I have 18 player server. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo--><!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Wait until later in the round. That's when you can really judge a map.

    I play NS almost non-stop. It's all I've done for the past couple of months, along with eat, sleep, and work <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' valign='absmiddle' alt='biggrin.gif'><!--endemo-->
Sign In or Register to comment.