Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: Dwarf Fortress eclipse plugin, wip  (Read 18232 times)

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Dwarf Fortress eclipse plugin, wip
« on: March 15, 2010, 10:51:53 am »

Hello,

I have started "Eclipse for Dwarf Fortress" project. So far, results are enouraging:

Spoiler (click to show/hide)

As you can see, I have basic syntaxt-highlighted text editor running along with outline display and syntax check (along with code completion even).

So far supported raws are:
* All OBJECT:ITEM raws

So far whole "project" consists of xtext definition of grammar for raws:

Here at google code

Features:

* Code completion
* Crosslinking of resources and code completition on user defined objects
* Validation
* Other nifty features like code folding, outline

How-To:

So far, project is in baby-mode, so it takes extra effort to get running, here are few steps:

1) Download xtext ide, you want "Eclipse 3.6M6 (Helios) + TMF Xtext 1.0.0M6"
2) Unpack and run eclipse, create new worskpace, create new Xtext project
3) In wizzard, only important thing is that you select extension "txt"
4) Project gets created along with sample definition file, "Raw.xtext", replace contents of this with whatever you download
5) run GenerateRaw.mwe2, this will actually create plugion from grammar
6) run project as "eclipse application", this launches new eclipse that has our raw plugin installed
7) Create new untyped project
8) Create new direction ans select advanced options: link to existing filesystem directory.
9) You are done. or not, this is not exactly good explanation of what you need to do.
7)
« Last Edit: April 17, 2010, 11:53:22 am by zwei »
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Dwarf Fortress eclipse plugin, wip
« Reply #1 on: March 15, 2010, 01:54:34 pm »

I want to know what a RAWRGLOSS is.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

soul4hdwn

  • Bay Watcher
  • make due with what you have
    • View Profile
Re: Dwarf Fortress eclipse plugin, wip
« Reply #2 on: March 15, 2010, 02:58:30 pm »

I want to know what a RAWRGLOSS is.
rainbow+roar+FABULOUS

actually it's just a typo =p think it's suppose to be rawgloss
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Dwarf Fortress eclipse plugin, wip
« Reply #3 on: March 15, 2010, 04:06:27 pm »

think it's suppose to be rawgloss
Except that, you know, the term is MATGLOSS...

I'm also fairly certain there's no [ANNOYING] tag :P
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Sizik

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress eclipse plugin, wip
« Reply #4 on: March 15, 2010, 04:48:58 pm »

And, there is aparently issue with comments (they are hard to parse as their delimiters - ] for start and [ for end are part of tag definition), any ideas about defining them?

Could you do something with the fact that anything not enclosed in brackets is technically a comment?
Logged
Skyscrapes, the Tower-Fortress, finally complete!
Skyscrapes 2, repelling the zombie horde!

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress eclipse plugin, wip
« Reply #5 on: March 16, 2010, 02:18:24 am »

And, there is aparently issue with comments (they are hard to parse as their delimiters - ] for start and [ for end are part of tag definition), any ideas about defining them?

Could you do something with the fact that anything not enclosed in brackets is technically a comment?

With exception of first line which should contain name of file, but yeah, i have some ideas :)

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress eclipse plugin, wip
« Reply #6 on: March 16, 2010, 08:48:46 am »

I want to know what a RAWRGLOSS is.
rainbow+roar+FABULOUS

actually it's just a typo =p think it's suppose to be rawgloss

It was supposed to be radonm raw-like gibberish.

Anyhow, some progress here, rules for weapons are complete:



Source:

Spoiler (click to show/hide)

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress eclipse plugin, wip
« Reply #7 on: March 18, 2010, 06:54:07 am »

OBJECT:ITEM raws are done. next up: MATGLOSS

Zaranthan

  • Bay Watcher
  • Plump Helmet Smelter
    • View Profile
Re: Dwarf Fortress eclipse plugin, wip
« Reply #8 on: March 18, 2010, 08:27:42 am »

Logged
Quote from: Howard, Nerf This, by Scott D. Ferguson
Villains sleep with hookers, heroes sleep with destiny.

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress eclipse plugin, wip
« Reply #9 on: March 19, 2010, 10:29:14 am »



Halfway throught MATGLOSS.

As you can see, crosslinking materials and metals works perfectly: editor now "knows" that METAL tag refers to existing metal raw and that ENVIROMENT_SPEC prefers to stone raw and does apropriate checks as well as code assists. Yay!

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress eclipse plugin, wip
« Reply #10 on: March 24, 2010, 01:59:21 pm »

Went ahead and switched to xtext 1.0 experimental branch to get new juicy features:

ctrl+shift+g to find refencences to selected object

ctrl+o to bring up quick outline for find-as-you type objects

f3 to jump to object definition

CrazyTim

  • Bay Watcher
    • View Profile
Re: Dwarf Fortress eclipse plugin, wip
« Reply #11 on: March 24, 2010, 09:01:12 pm »

This seems like a really bangin' idea... Will have to DL when I get home.
Logged
GENERATION 26:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment

LegoLord

  • Bay Watcher
  • Can you see it now?
    • View Profile
Re: Dwarf Fortress eclipse plugin, wip
« Reply #12 on: March 24, 2010, 09:05:45 pm »

Er . . . what does this do, for those less-computer savvy of us?
Logged
"Oh look there is a dragon my clothes might burn let me take them off and only wear steel plate."
And this is how tinned food was invented.
Alternately: The Brick Testament. It's a really fun look at what the bible would look like if interpreted literally. With Legos.
Just so I remember

Captain Mayday

  • Bay Watcher
  • A Special Kind of Terrible
    • View Profile
Re: Dwarf Fortress eclipse plugin, wip
« Reply #13 on: March 24, 2010, 10:31:48 pm »

It's a modder's tool.
Logged
Why not join us on IRC? irc.newnet.net #bay12games

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Dwarf Fortress eclipse plugin, wip
« Reply #14 on: April 09, 2010, 01:15:27 am »

(note: work on older raws aborted due to new release and stuff, working on DF2010 31.02 raws)
Pages: [1] 2 3