Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Sesquipedalian on January 25, 2002, 08:25:00 pm

Title: Why didn't I think of that?
Post by: Sesquipedalian on January 25, 2002, 08:25:00 pm
(Credit on this goes to the VBB newbie Blue Star.  Maybe some people have already thought of this, but even still, it is very much worth mentioning.)

Open your ships.tbl, and use find and replace to change every occurrence of two spaces to one space.  Make several passes until no more occurrences are found (find and replace always moves on after replacing something, so an 8 space section gets reduced to 4 spaces the first time, 2 the second, and 1 on the last pass).  In my case, a 375KB ships.tbl was reduced to 284KB.

That is a lot of room.

P.S. Wordpad would crash when I did this, so I copied the text into WordPerfect, did the changes there and then copied the revised text back into Wordpad.
Title: Why didn't I think of that?
Post by: LAW ENFORCER on January 25, 2002, 08:31:00 pm
you mean the big spaces between the entrie and its value?
Title: Why didn't I think of that?
Post by: Galemp on January 25, 2002, 09:19:00 pm
Genius! IOU! I also removed every instance of repeated developer junk after the ;;.
Title: Why didn't I think of that?
Post by: Sesquipedalian on January 25, 2002, 10:21:00 pm
I mean any set of multiple spaces.  There are places where tabs are used instead of spaces, and it doesn't pick those up, but still...
Title: Why didn't I think of that?
Post by: Kitsune on January 26, 2002, 01:35:00 am
It doesn't need to pick up 'Tab's.  
Tab's only count as one character.

I discovered the find and replace function shortly after I edited the whole thing manually.

I did this because I thought I was going to wear out my delete key. x.x



------------------
~Space Kitsuné
6-tailed modder.
Title: Why didn't I think of that?
Post by: ZylonBane on January 26, 2002, 02:13:00 am
 
Quote
Originally posted by GalacticEmperor:
Genius! IOU!
"Genius"? This is one of the oldest tricks in the search-and-replace book.
Title: Why didn't I think of that?
Post by: Galemp on January 26, 2002, 09:37:00 am
Then why is the forum topic named what it is? Huh? Punk? You want some?!?! (jk)

------------------
"An evil mind is a constant comfort."
Revisit the Great War at The Freespace-Freespace 2 Port Project ("http://www.angelfire.com/games4/freespace/")
Title: Why didn't I think of that?
Post by: Sesquipedalian on January 26, 2002, 12:16:00 pm
Just because I called it that.  As I said in the original post, others have probably already thougth of this.  I just posted it for the benefit of anyone who, like myself, hadn't thought of it yet.
Title: Why didn't I think of that?
Post by: Fozzy on January 26, 2002, 12:28:00 pm
once i posted a "compresed" table to my website but no one was intrested
Title: Why didn't I think of that?
Post by: Nico on January 26, 2002, 01:26:00 pm
Well, there's alreay the cleaned up tbls from shrike, so...  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/smile.gif)
Title: Why didn't I think of that?
Post by: IceFire on January 26, 2002, 02:34:00 pm
Yup, Shrike did it before  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/smile.gif)