Small Issue I Noticed With .res Files.

voogruvoogru Naturally Modified (ex. NS programmer)Members, Retired Developer, NS1 Playtester, Contributor, Constellation Join Date: 2002-10-31 Member: 1827Posts: 1,105 Advanced user
edited May 2004 in Mapping Forum
This is something I've noticed a lot of mappers do, which isnt really needed.

Several times I connected to my server, and downloaded the same file twice during the connection, upon looking in the res file for the map, I've noticed things that are not needed.

For example,

mapname.bsp
model_thats_in_the_map.mdl
sound_thats_in_the_map.mdl

Now, as far as I know, if you use a model, or a sound in a map, The engine precaches the model or sound automagically, any precached resource that a client doesnt have, is sent to the client. And does not need a res file for it to be sent to the client.

Now I dont know if this is a bug with the sv_download url, but I fixed the problem by removing the entries that are not needed in the res file, such as any models/sounds and entries of the mapname.

If I understand correctly, the only thing that the res file will need, is the mini-map, the txt file, and overview files.

I was wondering if anyone else has experienced the same thing, to me this is a problem cause its using twice as much bandwidth than it has to.

Just figured I'd post this here and see if I can get any results about it. Replies welcome.
NOTE: No electrons were harmed during the creation, viewing or writing of this post. All posts are made from 100% recycled electrons. No electrons were discriminated against based upon race, age, religion, or direction of spin.

Comments

  • moultanomoultano Creator of ns_shiva. Members, NS1 Playtester, Contributor, Constellation, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Gold, NS2 Community Developer, Pistachionauts Join Date: 2002-12-14 Member: 10806Posts: 4,219 Advanced user
    are non standard wads needed in the res file?
  • voogruvoogru Naturally Modified (ex. NS programmer) Members, Retired Developer, NS1 Playtester, Contributor, Constellation Join Date: 2002-10-31 Member: 1827Posts: 1,105 Advanced user
    QUOTE (moultano @ May 18 2004, 06:56 AM)
    are non standard wads needed in the res file?

    Im not entirely sure about .wads, but I dont think they are needed in the res file. Might be worth trying it.


    I remember seeing a wad file download twice as well, so I'm thinking the wad files are not needed in the res files.
    NOTE: No electrons were harmed during the creation, viewing or writing of this post. All posts are made from 100% recycled electrons. No electrons were discriminated against based upon race, age, religion, or direction of spin.
  • venomusvenomus Members Join Date: 2002-11-16 Member: 8951Posts: 353
    What I heard was they (Valve) changed the way res files work somewhere along the line, so even though you don't need the precached resources now, they are still in resfiles which date back before whatever patch it was. And obviously ppl don't realise the change either.
  • HibameHibame Members, Reinforced - Shadow Join Date: 2003-11-16 Member: 22974Posts: 585
    No sound is downloaded unless the folder is the same name as the map I belive (iv even had a few instances were event that didnt work). Also a wad wont download unless in the res file and neither will any files that are in special folders. I notice you redownload the map if the auther includes the bsp in the res file (which I think is redundant becouse that alwase downloads unless the server says otherwise). I think that may be right
    The game is balanced, the players are not
  • voogruvoogru Naturally Modified (ex. NS programmer) Members, Retired Developer, NS1 Playtester, Contributor, Constellation Join Date: 2002-10-31 Member: 1827Posts: 1,105 Advanced user
    I did a check with the wad files, apparently the wads need to be put in the .res file.

    Gonna play with it some more and see what happens with sounds.
    NOTE: No electrons were harmed during the creation, viewing or writing of this post. All posts are made from 100% recycled electrons. No electrons were discriminated against based upon race, age, religion, or direction of spin.
  • brute_forcebrute_force Members, Constellation Join Date: 2003-10-04 Member: 21433Posts: 1,616
    QUOTE (voogru @ May 19 2004, 02:19 AM)
    I did a check with the wad files, apparently the wads need to be put in the .res file.

    Gonna play with it some more and see what happens with sounds.

    Yes, wads must be in the res file, otherwise you'll get one of those "FATAL ERROR: wadname.wad not found" and then it crashes.
  • DEADscottDEADscott Members, Constellation Join Date: 2003-03-29 Member: 15022Posts: 663
    EVERY file associated with the map NEEDS to be in the .res file EXCEPT the .bsp.

    If the .bsp file is included in the .res you will download the files twice.
    DEADCLAN'S NS 3.0.3
    67.19.81.77:27015

    DEADCLAN'S POA
    67.19.81.75:27015

    DEADCLAN'S HL2DM
    67.19.81.74:27015

    http://www.deadclan.com
    #deadclan
  • HibameHibame Members, Reinforced - Shadow Join Date: 2003-11-16 Member: 22974Posts: 585
    I use RESGen it saves a few seconds after each compile and it works nice, just need to add the .res to it so the people download the res file to share
    The game is balanced, the players are not
  • wascally_wabbitwascally_wabbit Members Join Date: 2003-09-09 Member: 20701Posts: 435
    Ya, I've noticed downloading stuff twice... Quite annoying when there's a lot to download.
  • woodywoody SoCal Woody56Members Join Date: 2004-02-14 Member: 26541Posts: 260 Advanced user
    edited May 2004
    Here are some examples, Can you tell which ones are correct for use with downloadurl ....a,b,c,d,e or f wink.gif
    (a)// co_skeetshoot_b14 - created by Hibame
    ns2.wad
    ns.wad
    ns_eclipse.wad
    ns_hera.wad
    maps/co_skeetshoot_b14.res

    (b)// co_tunnel.res - created with RESGen v2.0 BETA 3.
    // RESGen is made by Jeroen "ShadowLord" Bogers.
    // For more info go to http://resgen.hltools.com
    // or E-mail me at [email protected]
    // .res entries (2):
    ns.wad
    ns2.wad

    ?// co_alloyv2.res - created with RESGen v2.0 BETA 3.
    // RESGen is made by Jeroen "ShadowLord" Bogers.
    // For more info go to http://resgen.hltools.com
    // or E-mail me at [email protected]
    // .res entries (4):
    ns.wad
    halflife.wad
    ns2.wad
    sprites/nsarms5.spr

    (d)maps/co_futile.txt
    sprites/minimaps/co_futile.spr
    sprites/co_futile/yokkoset.spr
    sprites/co_futile/slimedrop.spr
    sprites/co_futile/messh4x.spr
    sprites/co_futile/moths.spr
    sprites/co_futile/redglow.spr
    overviews/co_futile.tga
    overviews/co_futile.txt

    (e)maps/co_plague_b4.bsp
    maps/co_plague_b4.txt
    sounds/co_plague/alienhive.mp3
    sounds/co_plague/bighum.mp3
    sounds/co_plague/controlroom.mp3
    sounds/co_plague/man_computalk2.wav
    sounds/co_plague/metalstress.wav
    sounds/co_plague/shaft.wav
    sounds/co_plague/steamjet1.wav
    sprites/minimaps/co_plague_b4.spr

    (f)maps/co_secrets_b1.res
    maps/co_secrets_b1.txt
    maps/co_secrets_b1.bsp
    avitar_joins.wad

    and why ?
  • prsearleprsearle Members, Constellation Join Date: 2002-11-01 Member: 2365Posts: 338
    (a) Incorrect. The official wads (ns.wad, ns2.wad, ns_eclipse.wad and ns_hera.wad) don't need to be included since everyone has them. Also, it's poor practice to use textures from the map-specific wads - you risk running into problems when the wad changes (as happened with the latest beta patch).
    (b) Incorrect. Again, official wads shouldn't be listed.
    © Incorrect. As well as listing the official wads, this includes halflife.wad which anyone playing NS will have.
    (d) This looks like the correct one, although the overview file isn't required by the mapping guidelines.
    (e) Incorrect. The bsp doesn't need to be listed as it will automatically be downloaded. Listing it again means it will be downloaded twice.
    (f) Incorrect. Again, the bsp doesn't need to be listed, nor does the res file (the client already has it, else it wouldn't be looking in the res file). Also, the mapping guidelines specify that map-specific textures should be placed in a wad named after the map.
  • woodywoody SoCal Woody56Members Join Date: 2004-02-14 Member: 26541Posts: 260 Advanced user
    WINNER !
    WINNER !
    WINNER !

    however a few mappers put out an updated ver. with the same name, so i leave the .bsp in ... sad.gif
  • DEADscottDEADscott Members, Constellation Join Date: 2003-03-29 Member: 15022Posts: 663
    If a mapper puts out a .bsp with the same name the server WILL NOT download the new one whether its in the .res or not. Then the client will get the dreaded "map differs" error. Thats why new versions of maps should always have a name change.
    DEADCLAN'S NS 3.0.3
    67.19.81.77:27015

    DEADCLAN'S POA
    67.19.81.75:27015

    DEADCLAN'S HL2DM
    67.19.81.74:27015

    http://www.deadclan.com
    #deadclan
  • HibameHibame Members, Reinforced - Shadow Join Date: 2003-11-16 Member: 22974Posts: 585
    a) was generated with RESGen v2.0 BETA 3 too >.<
    The game is balanced, the players are not
Sign In or Register to comment.