Welcome
Welcome to <strong>SunUO</strong>.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

Nerun's Distro case-sensitivity issue under Linux/UNIX

Support for modifying scripts or writing your own

Nerun's Distro case-sensitivity issue under Linux/UNIX

Postby malign on Tue Aug 21, 2007 1:50 pm

This is not directly SunUO related, but something I found along the way. If anyone is using Nerun's Distro 4.x to populate their SunUO virtual worlds under Linux/UNIX, case sensitivity comes into play again here. A simple solution is to traverse to your Data/Monsters/ directory and then issue this set of commands to properly rename them so that they can be parsed:

Code: Select all
for dir in Felucca Ilshenar Malas Mondain Tokuno Trammel; do mv $dir `echo $dir| tr [:upper:] [:lower:]`; done
for file in felucca/*.map ilshenar/*.map malas/*.map mondain/*.map tokuno/*.map trammel/*.map; do mv $file `echo $file | tr [:upper:] [:lower:]`; done


*Note: This is for fresh installations of Nerun's. If you have custom map files in these directories that you do not want renamed, take measures to avoid it.

Just copy and paste the lines into your shell prompt and it'll go to work for you. It saves about 5-10 minutes (depending on your type speed) of manually typing mv to rename each file and directory.

I hope this helps some people.

Regards,
malign
malign
 
Posts: 15
Joined: Tue Aug 21, 2007 7:44 am

Postby Argo on Tue Aug 21, 2007 2:37 pm

This is a real timesaver, I did the mv method but this would have been much easier.
Argo
Site Admin
 
Posts: 46
Joined: Wed Aug 15, 2007 12:41 pm

thanks

Postby Naggie on Fri Aug 24, 2007 7:29 am

Thanks, that will prove to be very useful when I have time to set up my (Debian of course :wink: ) linux SunUO server
Naggie
 
Posts: 20
Joined: Wed Aug 15, 2007 1:29 pm


Return to Script Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron