GithubHelp home page GithubHelp logo

Comments (4)

jcalero avatar jcalero commented on September 28, 2024

Hi Joshwoo69, can you show me the code where your trying to construct the parser? It looks like you're paying the constructor 3 arguments but it only takes 0, 1 or 2.

This project is still a work in progress and I haven't gotten around to wrote documentation yet, but I'll give you a quick snippet of how it should be used (im on my phone, there might be typos) :

var myParser = new KerbalParser.parser();
var config = myParser.parseConfig("path/to/cfgfile");

Let me know how it goes

from kerbal-parser.

Ristellise avatar Ristellise commented on September 28, 2024

here ya go
var filter = new List { "PART" };
var parser = new Parser(filter, false, true);
it appears in your partcollection.cs of Ksp-techtree-edit
I am willing to be your tester too.

from kerbal-parser.

jcalero avatar jcalero commented on September 28, 2024

Wow. You're using a feature that I haven't even committed to the repository yet. It's like you've seen my local repository! :D

In ksp-techtree-edit I'm using a newer version of KerbalParser. I'll commit the changes once I get home, but for the time being just remove the filter argument from the parser. You can do your own filtering with the parsed tree instead at that point by just checking each of the KerbalNodes.Name inside the KerbalConfig.Nodes collection.

And thanks for the offer of being a tester, that's great to hear! I'm actually willing to release this project properly, post on the KSP forums and provide documentation, soon. But it's great to have people use it before then so that we catch any obvious errors. Thanks!

from kerbal-parser.

jcalero avatar jcalero commented on September 28, 2024

aa890b9

from kerbal-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.