Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: WMCoolmon on August 21, 2003, 02:31:02 am

Title: Syntax-colored ships.tbl
Post by: WMCoolmon on August 21, 2003, 02:31:02 am
I've made coloring definitions for ships.tbl in Crimson Editor (http://www.crimsoneditor.com). The zip (with install instructions) is located here (http://members.cox.net/~wmcoolmon/crimedit.zip).

Enjoy. :D
Title: Syntax-colored ships.tbl
Post by: FreeTerran on August 21, 2003, 06:31:49 am
Cool :D thanks for do that
Title: Syntax-colored ships.tbl
Post by: Martinus on August 21, 2003, 05:40:13 pm
[color=66ff00]Nice one! Worthy of a news post methinks. :nod:
[/color]
Title: Syntax-colored ships.tbl
Post by: Taristin on August 21, 2003, 07:18:41 pm
Trying to make Sandy's php thing useless, eh? :p
Title: Syntax-colored ships.tbl
Post by: WMCoolmon on August 21, 2003, 11:52:27 pm
A bit of competition can't hurt... ;)

 His will probably work better with non-retail TBLs, actually  :nervous:
Title: Syntax-colored ships.tbl
Post by: FreeTerran on August 22, 2003, 06:32:51 am
Quote
Originally posted by Raa Tor'h
Trying to make Sandy's php thing useless, eh? :p

What php thing ?
Title: Syntax-colored ships.tbl
Post by: Sandwich on September 03, 2003, 05:48:51 am
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 (http://www.textpad.com), 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. :)
Title: Syntax-colored ships.tbl
Post by: mikhael on September 03, 2003, 09:36:11 am
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. ;)
Title: Syntax-colored ships.tbl
Post by: Sandwich on September 03, 2003, 06:09:31 pm
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 (http://www.google.com/search?q=postgresql)
MySQL- ~14,800,000 pages (http://www.google.com/search?q=mysql)


:D
Title: Syntax-colored ships.tbl
Post by: mikhael on September 03, 2003, 09:12:36 pm
Quote
Originally posted by Sandwich

PostgreSQL - ~3,910,000 pages (http://www.google.com/search?q=postgresql)
MySQL- ~14,800,000 pages (http://www.google.com/search?q=mysql)
: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.
Title: Syntax-colored ships.tbl
Post by: Sandwich on September 04, 2003, 12:57:28 am
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:



(http://linker.kturby.com/forums/html/emoticons/nahnah.gif)
Title: Syntax-colored ships.tbl
Post by: mikhael on September 04, 2003, 08:57:04 am
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.


(http://linker.kturby.com/forums/html/emoticons/nahnah.gif) [/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.
Title: Syntax-colored ships.tbl
Post by: Sandwich on September 04, 2003, 04:51:46 pm
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
Title: Syntax-colored ships.tbl
Post by: mikhael on September 04, 2003, 07:39:29 pm
Quote
Originally posted by Sandwich


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


Official Term? Its a whole web phenomenon! (http://www.googlefight.com/)

Ever wonder about  Wing Commander vs Freespace (http://www.googlefight.com/cgi-bin/compare.pl?q1=Freespace&q2=%22Wing+Commander%22&B1=Make+a+fight%21&compare=1&langue=us)? GoogleFight resolves all battles. ;)
Title: Syntax-colored ships.tbl
Post by: WMCoolmon on September 04, 2003, 09:16:53 pm
*Suggests fight for the hall of fame* :D
Title: Syntax-colored ships.tbl
Post by: Taristin on September 04, 2003, 09:17:23 pm
Much funnier response... (http://www.googlefight.com/cgi-bin/compare.pl?q1=Freespace&q2=porn&B1=Make+a+fight%21&compare=1&langue=us)