Thread: FastDL vs. File Names with Space

Page 1 of 2 12 LastLast
Results 1 to 25 of 35
  1. #1
    Ain't no moebuta tenyuhuang's Avatar
    Join Date
    Jan 2016
    Location
    China
    Posts
    69

    FastDL vs. File Names with Space

    It happens when you have a map which requires "ZOMBIE ATTACK!.wav" or "snow turret.mdl" manifested in its .res file - that client will fail to download that file from a FastDL source and stuck at loading forever.
    Does adding quotes or replacing space in the .res file with %20 solve the problem?
    Thanks in advance.

  2. #2
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    442

    Re: FastDL vs. File Names with Space

    %20 in the res file could probably work (if the client does not take it literal), but it is better to rename the files (replace spaces with underscores) and then to ripent the bsp file, adjusting for the new filenames. And probably tell the mapper not to use nasty chars or spaces in his filenames :P

  3. #3
    Ain't no moebuta tenyuhuang's Avatar
    Join Date
    Jan 2016
    Location
    China
    Posts
    69

    Re: FastDL vs. File Names with Space

    Quote Originally Posted by nico View Post
    %20 in the res file could probably work (if the client does not take it literal), but it is better to rename the files (replace spaces with underscores) and then to ripent the bsp file, adjusting for the new filenames. And probably tell the mapper not to use nasty chars or spaces in his filenames :P
    Guess what? It DOES take %20 literally.

    QQ截图20160218011711.png QQ截图20160218011910.png

    The sunny side: at least the file was downloaded properly - in content.
    But the new flavor it adds sure doesn't seem to appeal the almighty GoldSource engine

    reco.bsp beats me: I could neither make the engine download it correctly, nor can I find any trace of it in reco.ent, or any related sound .txt list. Actually this made me wonder if that file is used AT ALL...
    Last edited by tenyuhuang; 17-02-2016 at 12:42 PM.

  4. #4
    Game tester  
    Tester
    Join Date
    Aug 2009
    Location
    Sao Paulo, Brazil
    Posts
    208

    Re: FastDL vs. File Names with Space

    Another alternative is to use quotes, it works at least...

    "sound/revil/ZOMBIE ATTACK!.wav"

  5. #5
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,558

    Re: FastDL vs. File Names with Space

    This can also depend on the server hosting the files, game server and web server. Linux based operating systems tend to not like spaces in file names so much.
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  6. #6
    Is not hoers Streamfox's Avatar
    Join Date
    Apr 2009
    Location
    Zandronum
    Posts
    759

    Re: FastDL vs. File Names with Space

    Quote Originally Posted by AdamR View Post
    This can also depend on the server hosting the files, game server and web server. Linux based operating systems tend to not like spaces in file names so much.
    Not to speak about upper/lower cases. On linux, file.wav and file.WAV are two different stuffs. And this makes quite a trouble when the res has file.wav, and the actually file is file.WAV.

    Gotta love fix the file names and res files.

  7. #7
    a person RNG's Avatar  
    Contributor
    Join Date
    Sep 2006
    Posts
    3,842

    Re: FastDL vs. File Names with Space

    fixing peoples lazy file management is always a joy

  8. #8
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    442

    Re: FastDL vs. File Names with Space

    Quote Originally Posted by RNG View Post
    fixing peoples lazy file management is always a joy
    Well, I wrote a script for this http://148.251.69.41:8889/sc5/tools/resgenerator.bash

    After downloading a map I do the following:

    1. download map & unpack
    2. make existing res files contents all lowercase
    3. make resource filenames all lowercase
    4. check manually for missing t-models and and add them to the res file (in lowercase)
    5. check if sound/model replacment files (if existing) use proper format (correct: "foo" "bar")
    6. run resgenerator.bash on bsp file
    7. if there are special chars or resources with whitespaces in file/folder-names, rename them, modify and import .ent file
    8. in map series, I check the .ent's for game_end and replace it with trigger_changelevel + spawnflags 2 and remove mp_nextmap from the map cfgs if applicable

    With Unix Magic this is done in a few seconds if I don't have to spend time on number 7/8.

    Result: A very clean and non-chaotic server installation.

  9. #9
    warrior spy-warrior's Avatar  
    Contributor
    Join Date
    Nov 2006
    Location
    Europe, France, Paris
    Posts
    2,951

    Re: FastDL vs. File Names with Space

    Good job

    Add maximum value in script:
    -texdata # : Alter maximum texture memory limit (in kb)
    -lightdata # : Alter maximum lighting memory limit (in kb)

  10. #10
    Ain't no moebuta tenyuhuang's Avatar
    Join Date
    Jan 2016
    Location
    China
    Posts
    69

    Re: FastDL vs. File Names with Space

    Thanks for the tips and tools. After adding quotes it did work for the single file, however the map still stucks at loading. I'll have to check more from the log to see what else happened...

  11. #11
    Game tester  
    Tester
    Join Date
    Aug 2009
    Location
    Sao Paulo, Brazil
    Posts
    208

    Re: FastDL vs. File Names with Space

    Quote Originally Posted by tenyuhuang View Post
    Thanks for the tips and tools. After adding quotes it did work for the single file, however the map still stucks at loading. I'll have to check more from the log to see what else happened...
    Check if you have 0KB files added into res file, they usually make hang at loading, otherwise it is building node graph.

  12. #12
    Administrator Sniper's Avatar  
    Manager
    Join Date
    Aug 2001
    Posts
    7,119

    Re: FastDL vs. File Names with Space

    Quote Originally Posted by tenyuhuang View Post
    It happens when you have a map which requires "ZOMBIE ATTACK!.wav" or "snow turret.mdl" manifested in its .res file - that client will fail to download that file from a FastDL source and stuck at loading forever.
    Does adding quotes or replacing space in the .res file with %20 solve the problem?
    Thanks in advance.
    This should be fixed in the next patch.

  13. #13
    Server Owner Enrory's Avatar
    Join Date
    Dec 2016
    Location
    Austria
    Posts
    123

    Re: FastDL vs. File Names with Space

    Is this problem now fixed?

  14. #14
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,558

    Re: FastDL vs. File Names with Space

    It should be. We've had a few releases since December last year.
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  15. #15
    Server Owner Enrory's Avatar
    Join Date
    Dec 2016
    Location
    Austria
    Posts
    123

    Re: FastDL vs. File Names with Space

    hmmmm

    in reco map files this file cant load in fast download?
    "sound/revil/ZOMBIE ATTACK!.wav"

    i use the newest version of this map but doesnt work.

  16. #16
    Still learning wolf-3d's Avatar  
    Tester
    Join Date
    Jan 2011
    Location
    Somewhere Warm.
    Posts
    1,458

    Re: FastDL vs. File Names with Space

    Quote Originally Posted by Enrory View Post
    hmmmm

    ...
    "sound/revil/ZOMBIE ATTACK!.wav"

    ...
    CAPS and spaces in file names is never a good idea, the file should be renamed/fixed, the .bsp ripent'd and any resource (.res) file edited to correct this.
    (Also "reco" is a non-offical map, so the "someone else" (rather than the Dev's at SC) should do this.)
    Regards
    Wolf-3D

  17. #17
    warrior spy-warrior's Avatar  
    Contributor
    Join Date
    Nov 2006
    Location
    Europe, France, Paris
    Posts
    2,951

    Re: FastDL vs. File Names with Space

    Quote Originally Posted by wolf-3d View Post
    CAPS and spaces in file names is never a good idea, the file should be renamed/fixed, the .bsp ripent'd and any resource (.res) file edited to correct this.
    I will test the maps on a public server.
    Je vais tester les maps sur un serveur publique.
    http://scmapdb.com/mappack:resident-evil-map-pack

    For .wav files can we convert them to .mp3?
    Pour les fichiers .wav pouvons-nous les convertir en .mp3 ?

  18. #18
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,558

    Re: FastDL vs. File Names with Space

    Check that the file casing is correct on both sides -- the map, and the web server. If your web server is Linux then requesting "ZOMBIE ATTACK!.wav" when the file on the web server is named "zombie attack!.wav" will definitely not work without something like mod_speling.
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  19. #19
    Still learning wolf-3d's Avatar  
    Tester
    Join Date
    Jan 2011
    Location
    Somewhere Warm.
    Posts
    1,458

    Re: FastDL vs. File Names with Space

    Possibly not the place to discuss this but I am NOT in favour of fixing the code to account for "Mapper Mistakes" (However un-intentional and innocent they originally were.)
    File names like "ZOMBIE ATTACK!.wav" already have caused a number edge case changes to the code. Causing changes to Download code and Parser Code that leads to more edge case corrections.

    Historically:
    Fixing "snow turret.mdl" exposed "snow turretT.mdl" model not found.
    Also raising the question of should sub-models (Model.001, etc) be auto downloaded.
    "ZOMBIE ATTACK!.wav" caused a necessary check for UPPER case due to Linux support.

    The problem is that fixing "such issues" in the code, then gets Everyone "Used to the idea" that it is their use is Okay.

    What happens when someone uses "ZOMBIE ATTACK!.wav" in a Global Sound Replacement (.gsr) file ?
    What happens when someone uses "UPPER Space Non-standard-Chr" in other files names or paths ? (e.g. model/my HGrunt/my HGrunt.mdl)
    What happens if the UPPER & Spaces are used in a Player.mdl name (fix ?) and later that model finds it way into a "forcepmodels" map via map worldspawn (fix ?) and then someone forces it via a map.cfg (fix ?)
    What about their use in Global Model Replacement Files (.gmr) ?
    What about used of potentially illegal or Special meaning chars? (e.g. "+!ZOMBIE ATTACK!")
    What other non-standard chars and language chars are we going to support/correct for?
    What about Angel Script support, are we going to allow space and non-standard chars to be used in AS code? (Simply because it seen as used and "okay" everywhere else.)

    Backward "compatibility and support" needs to be balanced against "Official Content" (our Valve/HL1 commitments), how much "Other MOD compatibility" we have, how much "code bloat" we are willing to take, loss of Polymorphic Behavior and the road-map of new features in development.

    Unfortunately I think, we need to swap some of the "correction and fixing onus" back to mappers or server Ops, especially when it applies to Non-Offical Content.

    PS: I am not saying "Don't report" these issues, they do need to be fixed, it is just who fixes them and if they cause crashes that concern me.
    And if you don't know how to fix them, ASK there are enough people around (Dev's, Server Operators, Ripent'ers etc.) who have "patch fixed" this themselves years ago for their own maps or servers.
    Last edited by wolf-3d; 11-09-2017 at 11:30 AM.
    Regards
    Wolf-3D

  20. #20
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [uk]
    Posts
    8,558

    Re: FastDL vs. File Names with Space

    Case insensitive file names. That's something Microsoft got very right in their operating systems. (As much as I like Linux... for servers.)

    I'd agree for best compatibility that your map resources should ideally be all lower case, and either use hyphens or underscores in place of spaces. Also best to stick with ASCII characters. (No UTF-8.)
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  21. #21
    warrior spy-warrior's Avatar  
    Contributor
    Join Date
    Nov 2006
    Location
    Europe, France, Paris
    Posts
    2,951

    Re: FastDL vs. File Names with Space

    Quote Originally Posted by wolf-3d View Post
    And if you don't know how to fix them, ASK there are enough people around (Dev's, Server Operators, Ripent'ers etc.) who have "patch fixed" this themselves years ago for their own maps or servers.
    Quote Originally Posted by AdamR View Post
    I'd agree for best compatibility that your map resources should ideally be all lower case, and either use hyphens or underscores in place of spaces. Also best to stick with ASCII characters. (No UTF-8.)

  22. #22
    Server Owner Enrory's Avatar
    Join Date
    Dec 2016
    Location
    Austria
    Posts
    123

    Re: FastDL vs. File Names with Space

    wow thanks for the fast answers.

    Yes, it is the mistake from the mapper. Is not a bug in game.
    in the néw update he named it "sound/revil/ZOMBIE_ATTACK!.wav" but is the same problem.
    Why use caps and ! symols. stupid.

    Ye maybe another server owner have a fix. I am now looking for.
    thanks for all

  23. #23
    Still learning wolf-3d's Avatar  
    Tester
    Join Date
    Jan 2011
    Location
    Somewhere Warm.
    Posts
    1,458

    Re: FastDL vs. File Names with Space

    That is okay and I will try to help.

    Some questions, that might affect things:
    1 - Where did you get/download the reco.zip from ?
    2 - Are you running Linux ?


    If you are running Windows and downloaded RECO from www.scmapdb.com then you can try the following:

    Open the "RECO.res" file, which should be in either one of three places:
    ~\Sven Co-op\svencoop_addon\maps <== Preferred location\Assumed location.
    ~\Sven Co-op\svencoop_downloads\maps <== where any friends (clients will find the file.)
    ~\Sven Co-op\svencoop\maps <== Legal location but not recommended.

    Open "RECO.res" in a plain text editor (Like NotePad++)
    change it from "sound/revil/ZOMBIE ATTACK!.wav" (This is around/at Line: 149)
    to:
    sound/revil/zombie_attack.wav

    -> remove the quotes marks (") from beginning and end.
    -> remove the exclamation mark (!).
    -> change to lowercase.

    Save RECO.res and exit.

    Go to:
    ~\Sven Co-op\svencoop_addon\sound\revil\
    Rename the file to zombie_attack.wav


    Restart your Server, load the "reco map", ask a friend to join, test.

    PS: Make sure you do not have multiple (Old or Different) copies of RECO.res in other locations.
    - Please tell us if that helped/fixed it or not. (There are other solutions, things that can be tried).
    - Feedback also means we can ask for the file changed/fixed on www.scmapdb.com (for example.)

    PPS: There are lots of other "UPPER Case" file names etc. used in various places, ignore them Until they become a problem, because (as discussed in previous posts) the Dev's have put in code that will catch and fix most of them.
    Last edited by wolf-3d; 12-09-2017 at 12:37 PM.
    Regards
    Wolf-3D

  24. #24
    Server Owner Enrory's Avatar
    Join Date
    Dec 2016
    Location
    Austria
    Posts
    123

    Re: FastDL vs. File Names with Space

    1. From this side www.scmapdb.com
    2. Yes is linux

    i was try to edit the res file but i can nothing change.
    With notepad++ i can change but not save.

  25. #25
    Still learning wolf-3d's Avatar  
    Tester
    Join Date
    Jan 2011
    Location
    Somewhere Warm.
    Posts
    1,458

    Re: FastDL vs. File Names with Space

    "With notepad++ i can change but not save. "

    LOL Yes, you are correct. - I also just tried, and NotePad++ version 7.51 (released a few days ago) seems to have "bugs" on some Operating systems.

    I am running Windows but this worked for me.
    Download version 7.5 from https://notepad-plus-plus.org/download/v7.5.html

    When you run/install it, a pop-up window with default install options, will appear, remove the "check box" for "Auto update", continue finish the install. (Don't think the next pop-up for Dictionary will cause problems.)

    Then Start NotePad++, file Open, find the file (Mine "Lost" the old file locations) and try to edit RECO.res again.
    Regards
    Wolf-3D

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •