Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 17

119.63.x.x news
173.199.x.x forum
175.44.x.x forum
175.44.x.x forum
175.44.x.x forum
188.143.x.x signup
198.2.x.x forum
220.181.x.x top
23.22.x.x forum
36.251.x.x forum
42.62.x.x forum
46.22.x.x download
5.63.x.x news
50.115.x.x forum
66.249.x.x forum
66.249.x.x news
94.181.x.x forum

Last Seen

Dodgeitorelse Fri 07:29
Zipps Fri 02:36
oIQsN5i8vx Fri 01:32
nott Fri 00:27
Xsfd (M.D.A) Thu 20:09

Newest Members

Forums
Wussie
Tue Apr 24 2012, 05:51PM

Posts: 160
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
Your intentions are good but it doesn't seem like a very practical approach. What if tomorrow comes out an all new "caves_something" map which should have an entirely different image? And what about many other maps with variants which are not named "caves", "farm" or "rrbridge", should they be added to lgsl_class.php too?
In my humble opinion, editing core php scripts within LGSL may be fine for a connaisseur like yourself, but sounds like a bad idea for the average user.
The easy way to link multiple map names to the same map image is probably this (only if you run on LINUX): make a symlink for each map variant pointing to the same image name.
In your case, you need to type the following into the Linux console, from within the images folder:
ln -s m01_caves.jpg m01_caves_day_.jpg

Basically, this will create a shortcut m01_caves_day_.jpg pointing to the same image m01_caves.jpg, working exactly like having 2 separate images but with less space occupied on the harddrive.
You will need to have shell access to the webserver to do that, unless your ftp client or cpanel can also create symlinks.
I'm not sure if shortcuts on Windows systems can do the same trick as symlinks on Linux, but one could try it and get back here to report...
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org