Author Topic: Why didn't I think of that?  (Read 2449 times)

0 Members and 1 Guest are viewing this topic.

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Why didn't I think of that?
(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.
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline LAW ENFORCER

  • Turret Fiend
  • 210
    • http://www.armouredstar.com
Why didn't I think of that?
you mean the big spaces between the entrie and its value?
Conflict GRDLA:
Operation Return To Riker
www.ARMOUREDSTAR.com - the latest site is not finished yet!
[What we have here is the source to the Freespace ENGINE, not the Freespace GAME. By allowing the ENGINE to support all kinds of cool stuff, we're allowing the creation of all new GAMES] - TurboNed

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Why didn't I think of that?
Genius! IOU! I also removed every instance of repeated developer junk after the ;;.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

  

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Why didn't I think of that?
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...
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline Kitsune

  • 27
Why didn't I think of that?
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.
~Space Kitsuné
6-Tailed RPG Nut.

"Why the hell don't we have any missles on this damn boat?!"
"But Sir, we have Tempests, Rockeyes, and unknown bombs."
"Like I said ensign, 'Why don't we have any missles on this damn boat?!"

"I went to a fight last night and a hockey game broke out."  -Groucho Marx

 

Offline ZylonBane

  • The Infamous
  • 29
Why didn't I think of that?
 
Quote
Originally posted by GalacticEmperor:
Genius! IOU!
"Genius"? This is one of the oldest tricks in the search-and-replace book.
ZylonBane's opinions do not represent those of the management.

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Why didn't I think of that?
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
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
Why didn't I think of that?
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.
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline Fozzy

  • Wokka wokka wokka!
  • 28
  • Wanabe A Mighty Modder
    • Fozzy's Myspace
Why didn't I think of that?
once i posted a "compresed" table to my website but no one was intrested
The Terran VolksWagen Project - Lol
"that was a little too close, we gota wait fifteen mins to change our shorts" = (snipes, FS2)
I can whoop your ass with my LOGITECH

 

Offline Nico

  • Venom
    Parlez-vous Model Magician?
  • 212
Why didn't I think of that?
Well, there's alreay the cleaned up tbls from shrike, so...  
SCREW CANON!

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
Why didn't I think of that?
Yup, Shrike did it before  
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."