Comments (4)
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.
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.
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.
from kerbal-parser.
Related Issues (20)
- Detect ModuleManager Nodes and ignore or store separately
- Wrap "PART" object in a model
- Wrap "RESOURCE" Object
- Wrap techtree NODE/REMOVENODE objects
- Wrap "EXPERIMENT_DEFINITION" objects
- Wrap "RESOURCE_DEFINITION" objects
- Verify how to deal with duplicate keys HOT 1
- Create ParseException model to wrap exceptions in.
- Catch duplicate properties and ignore.
- Deal with STORY_DEF special case HOT 1
- Deal with "file name is top node"
- Deal with } bracket before NODE
- Allow "null" values E.g. "description ="
- ESSENTIAL: Allow for duplicates of values...
- Update README with proper instructions
- Change license to CC-SA
- "Full KSP Folder Test"
- Make node names case sensitive and add exceptions
- Document code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kerbal-parser.