06 Mar 13, 11:08AM
(This post was last modified: 06 Mar 13, 11:21AM by RandumKiwi.)
Just cause I feel like being one-step ahead of Bukz, I decided to be two steps ahead of Bukz...
The Linux script now does the following:
1) Convert newlines to Linux format.
2) Remove comments.
3) Remove leading/trailing spaces/tabs.
4) Removes invalid commands (i.e. shows ONLY lines starting with: loadnotexture loadsky mapmodelreset mapmodel texturereset texture fog fogcolour mapsoundreset mapsound watercolour shadowyaw)
5) Remove blank lines.
6) OPTIONALLY: Preserves any comments made before the mapmodelreset command.
Code available here.
(Lines 53 to 88)
The Linux script now does the following:
1) Convert newlines to Linux format.
2) Remove comments.
3) Remove leading/trailing spaces/tabs.
4) Removes invalid commands (i.e. shows ONLY lines starting with: loadnotexture loadsky mapmodelreset mapmodel texturereset texture fog fogcolour mapsoundreset mapsound watercolour shadowyaw)
5) Remove blank lines.
6) OPTIONALLY: Preserves any comments made before the mapmodelreset command.
Code available here.
(Lines 53 to 88)