Author Topic: linux bic editor  (Read 925 times)

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
linux bic editor
« on: February 20, 2013, 07:29:08 pm »


               there are a million windows versions of these editors, but has anybody written or come across one for linux?  preferable command line based?

should i make my own?
               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
linux bic editor
« Reply #1 on: February 20, 2013, 07:39:30 pm »


               Have you considered nwn-lib and Ruby?  It can manipulate all the GFF files.  https://github.com/niv/nwn-lib
               
               

               


                     Modifié par pope_leo, 20 février 2013 - 07:49 .
                     
                  


            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
linux bic editor
« Reply #2 on: February 21, 2013, 06:36:47 pm »


               working with it now.  once i learn a bit more ruby and nwn-lib's API (where is it?) i should be able to get what i want.
               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
linux bic editor
« Reply #3 on: February 21, 2013, 06:55:42 pm »


               API/docs are here: ci.swordcoast.net/job/nwn-lib/yardoc/
               
               

               


                     Modifié par pope_leo, 21 février 2013 - 06:56 .
                     
                  


            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
linux bic editor
« Reply #4 on: February 22, 2013, 03:05:31 pm »


               well, this is the basics of what i wanted:


#!/usr/bin/env nwn-dsl

# This script will extract all items the worked-on
# struct is currently in possession of.
o = need ARGV.shift, :bic, :utc, :uti

o.each {|k, v|
       print "#{k}: #{v["value"]}\\n";
}


there's a lot of work yet to convert the integer values into strings (like "class" is stored as a number, which needs to be converted to text).  i'm well on my way, though.