Pmarzec2000 / acf

Automatically exported from code.google.com/p/acf
0 stars 0 forks source link

Linux case sensitivity problem #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
ACF is completely broken on Linux servers cause Linux is case sensitive.
Changing all files and folders names to lowercase fixes the problem.

Original issue reported on code.google.com by vigipony on 16 Oct 2011 at 9:11

GoogleCodeExporter commented 9 years ago
Forgot to add: Linux server can't load, for example, model with not only 
lowercase name even if path supplied in Lua are with correct cases. But if 
supplied path has incorrect case, but path to model is lowercase, model will 
load.

Original comment by vigipony on 21 Oct 2011 at 5:27

GoogleCodeExporter commented 9 years ago
Ask for a JFS filesystem, at me it works fine

ur just recode, recompile models and rename everything to make it userfriendly
...

Original comment by patrickg...@googlemail.com on 22 Jul 2012 at 8:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Until they fix this, here's what I suggest doing.  I'm on Ubuntu, so this may 
differ for you guys.  This was written at ACF Revision 308.

Make a shell script titled makelowercase.sh in your ACF folder with the 
following command:

find ./ | sort -r | sed 's/\(.*\/\)\(.*\)/mv "\1\2" "\1\L\2"/' |sh

save that.  Then make sure that you run the following command to make your 
shell script executable:

chmod +x makelowercase.sh

Now, launch your server.  But UH OH! Some dipshit can't decide whether he wants 
proper case or all lowercase! So now you have the errors:

Couldn't include file 'ACF/Server/sv_ACFBase.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 50))
Couldn't include file 'ACF/Server/sv_ACFDamage.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 51))
Couldn't include file 'ACF/Server/sv_ACFBallistics.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 52))
Couldn't include file 'ACF/Shared/Rounds/RoundAP.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 61))
Couldn't include file 'ACF/Shared/Rounds/RoundAPHE.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 62))
Couldn't include file 'ACF/Shared/Rounds/RoundHE.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 63))
Couldn't include file 'ACF/Shared/Rounds/RoundHEAT.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 64))
Couldn't include file 'ACF/Shared/Rounds/RoundHP.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 65))
Couldn't include file 'ACF/Shared/Rounds/RoundRefill.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 66))
Couldn't include file 'ACF/Shared/Rounds/RoundFunctions.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 67))
Couldn't include file 'ACF/Shared/ACFGunList.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 69))
Couldn't include file 'ACF/Shared/ACFMobilityList.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 70))
Couldn't include file 'ACF/Shared/ACFSensorList.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 71))
Couldn't include file 'ACF/Shared/ACFMissileList.lua' (File not found) 
(@addons/ACF/lua/autorun/acf_globals.lua (line 72))
[@addons/ACF/lua/autorun/acf_globals.lua:83] bad argument #1 to 'pairs' (table 
expected, got nil)

Go to %Your ACF Folder%/lua/autorun/acf_globals.lua.  Yes, the filename should 
be all lowercase.  If it isn't, the shell script didn't work right.  Between 
lines 41 and 72 you'll see a few AddCSLuaFiles and includes.  You'll need to 
change the filenames between the parentheses from uppercase to lowercase.  In 
Notepad++, you can highlight the filename and hit Ctrl+U.  Be careful though, 
as you shouldn't have "AddCSLuaFile" highlighted, or it will change it to 
lowercase!  Only the filename should be highlighted.

Also, while you're in there, change your ACF.Version from 307 to 308, some 
dumbass (karbine) forgot to do that.

So yeah, now your ACF should be working without issue.  Now if we can find an 
easy way to fix the god-awful folder structure.  There wasn't one thought given 
to admins when they put this out, I swear.

Original comment by Belirka...@gmail.com on 27 Aug 2012 at 4:39