Author Topic: Syntax-colored ships.tbl  (Read 2441 times)

0 Members and 1 Guest are viewing this topic.

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Syntax-colored ships.tbl
I've made coloring definitions for ships.tbl in Crimson Editor. The zip (with install instructions) is located here.

Enjoy. :D
-C

 

Offline FreeTerran

  • Master of the apocalypse
    Reset count: 1
  • 210
Cool :D thanks for do that
Silva in lumine Lunae arcana est. Domos mea Silva in lumine Stellarum est.

 

Offline Martinus

  • Aka Maeglamor
  • 210
    • Hard Light Productions
[color=66ff00]Nice one! Worthy of a news post methinks. :nod:
[/color]

 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
Trying to make Sandy's php thing useless, eh? :p
Freelance Modeler | Amateur Artist

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
A bit of competition can't hurt... ;)

His will probably work better with non-retail TBLs, actually :nervous:
-C

 

Offline FreeTerran

  • Master of the apocalypse
    Reset count: 1
  • 210
Quote
Originally posted by Raa Tor'h
Trying to make Sandy's php thing useless, eh? :p

What php thing ?
Silva in lumine Lunae arcana est. Domos mea Silva in lumine Stellarum est.

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
This one: http://www.hard-light.net/forums/index.php/topic,16537.0.html

:hopping:

...kidding!! :p

Anyway, I've gotten sucked up into replaying (and hopefully finishing this time) Homeworld, which is why the TBL parser I did is on hold. But I've reworked the whole parser according to the flowchart I drew out (and posted, I might add), and it works pretty well, so I'll hopefully update that thread in a bit.

As for this one, I'm assuming this Crimson editor is something akin to TextPad, with color-coding and parsing for various programming languages, scripts, and stuff.

The main difference, Snipes, is that whereas his is a simple way to navigate a .TBL file easier (one of the reasons I only edit HTML code in Homesite and not notepad is the color coding), my parser has the potential to do a lot more. Currently it will parse the file, seperate it into field names, variables, and comments, horizontally align all the variables in the same column, etc. But because it does that seperation into elements, it has the potential to go as far as storing a complete .TBL file in a MySQL database and output selective ship entries into a custom .TBL file. :)
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
Quote
Originally posted by Sandwich
The main difference, Snipes, is that whereas his is a simple way to navigate a .TBL file easier (one of the reasons I only edit HTML code in Homesite and not notepad is the color coding), my parser has the potential to do a lot more. Currently it will parse the file, seperate it into field names, variables, and comments, horizontally align all the variables in the same column, etc. But because it does that seperation into elements, it has the potential to go as far as storing a complete .TBL file in a MySQL database and output selective ship entries into a custom .TBL file. :)


Hey Sandwich. You might want to take a look at BitFlux. Its an entirely browser based XML editor. It might be possible for you to turn your TBL browser into a full fledged editor. :D

http://www.bitfluxeditor.org/


By the way, what's up with that MySQL thing? Use PostgreSQL like a sane human being. ;)
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Quote
Originally posted by mikhael


Hey Sandwich. You might want to take a look at BitFlux. Its an entirely browser based XML editor. It might be possible for you to turn your TBL browser into a full fledged editor. :D

http://www.bitfluxeditor.org/


Will check it out - eventually. ;)


Quote
Originally posted by mikhael
By the way, what's up with that MySQL thing? Use PostgreSQL like a sane human being. ;)


PostgreSQL - ~3,910,000 pages
MySQL- ~14,800,000 pages


:D
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
Quote
Originally posted by Sandwich

PostgreSQL - ~3,910,000 pages
MySQL- ~14,800,000 pages
:D


It takes 14 million MySQL servers to push the same amount of data as 3.9 million PostgreSQL servers. ;)

Besides, MySQL is a pretty bad at locking semantics, fails the ACID test (or did last time I poked at it) and lacks subselects. Oh yeah, and you can't dynamically adjust schema properly in-situ. You have to dump the table and recreate it to even defrag a table. That's... pathetic. Even MS Access doesn't require that.
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Quote
Originally posted by mikhael


It takes 14 million MySQL servers to push the same amount of data as 3.9 million PostgreSQL servers. ;)

Besides, MySQL is a pretty bad at locking semantics, fails the ACID test (or did last time I poked at it) and lacks subselects. Oh yeah, and you can't dynamically adjust schema properly in-situ. You have to dump the table and recreate it to even defrag a table. That's... pathetic. Even MS Access doesn't require that.


And this concludes our lesson for today, kiddies - never get into an argument over database types with someone who knows more than you do. But hey, at least you can try this at home. ;)

And Mikh - your ifirst rejoinder there is pathetic. That's based upon two obviously fallacious assumptions:

  • That the Google count of pages mentioning either database is in any way indicative of the number of servers using such databases out there
  • Even if the above were true, and there were 14mil MySQL servers compared to 3.9mil PostgreSQL servers,, there is nothing to indicate that those sum total of servers are pushing the same amount of data.


SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
Quote
Originally posted by Sandwich

And Mikh - your ifirst rejoinder there is pathetic. That's based upon two obviously fallacious assumptions:

  • That the Google count of pages mentioning either database is in any way indicative of the number of servers using such databases out there
  • Even if the above were true, and there were 14mil MySQL servers compared to 3.9mil PostgreSQL servers,, there is nothing to indicate that those sum total of servers are pushing the same amount of data.


[/B]

Well yeah. I was being rather silly, as I suspect you were when you used a GoogleFight as a response in the first place. :D

My subsequent serious points, however, stand.
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Quote
Originally posted by mikhael

Well yeah. I was being rather silly, as I suspect you were when you used a GoogleFight as a response in the first place. :D


"GoogleFight" - lol! Is that an official term nowadays? :p
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
Quote
Originally posted by Sandwich


"GoogleFight" - lol! Is that an official term nowadays? :p


Official Term? Its a whole web phenomenon!

Ever wonder about Wing Commander vs Freespace? GoogleFight resolves all battles. ;)
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
*Suggests fight for the hall of fame* :D
-C

  

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
Freelance Modeler | Amateur Artist