Author |
Message |
ChJees
Joined: Thu Jul 19, 2007 11:31 am Posts: 249 Location: Sweden, Hallstavik
|
Re: Ini Parser Source Code (C++)
Bug fixes + Convenience Functions UpdateThis update fixes some minor bugs and adds three functions for data retrieving. New Functions!Code: node* NodeSearchName( std::string name, node* target ) node* NodeSearchValue( std::string value, node* target ) node* NodeSearchVariableGroup( std::string group, node* target ) The usage is pretty straightforward:Edit: How to check if it exists Code: node* Actor = NodeSearchName( "AddActor", root_of_some_file); if ( Actor != NULL ) //ALWAYS DO THIS! Or you will get a Segmentation Fault error if it not exists. { if ( Actor->value = "AHuman" ) cout << "We has a actor somewhere!"; } Download
Last edited by ChJees on Tue Dec 16, 2008 4:31 pm, edited 1 time in total.
|
Tue Dec 16, 2008 12:52 am |
|
|
ChJees
Joined: Thu Jul 19, 2007 11:31 am Posts: 249 Location: Sweden, Hallstavik
|
Re: Ini Parser Source Code (C++)
Critical BugfixSolves a bug where going one level down when parsing never added an item to the data tree! Current Version 1.2 Download
|
Tue Dec 16, 2008 4:25 pm |
|
|
ChJees
Joined: Thu Jul 19, 2007 11:31 am Posts: 249 Location: Sweden, Hallstavik
|
Re: Ini Parser Source Code (C++)
Here is a WIP version of my Rte Inspector, it is not so stable. Crashes on .rte's with lots of includes is what i think. Important, change the CortexCommandFolder under GlobalSettings to YOUR Cortex Command directory. In the Settings.ini file which comes with the program. Not so informative yet, but it barely works . (Nowhere near the final version) Download
|
Tue Dec 16, 2008 9:50 pm |
|
|
ChJees
Joined: Thu Jul 19, 2007 11:31 am Posts: 249 Location: Sweden, Hallstavik
|
Re: Ini Parser Source Code (C++)
Minor BugfixMade it so that it parses / and * in a value. Download
|
Wed Dec 17, 2008 3:55 pm |
|
|
teh somebody
Joined: Sun Aug 31, 2008 5:22 pm Posts: 156 Location: Finland
|
Re: Ini Parser Source Code (C++)
Wow... Five posts. Wasn't a doublepost a bad thing?
On topic this could be handy for noobyer modders (like me) and our tests. I hate to open cc all the time to wait it's says error, it's so slow.
|
Thu Dec 18, 2008 4:59 pm |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Ini Parser Source Code (C++)
teh somebody wrote: Wasn't a doublepost a bad thing? I think only if the post is mere discussion. Bumpdating like this should be fine.
|
Thu Dec 18, 2008 9:49 pm |
|
|
ChJees
Joined: Thu Jul 19, 2007 11:31 am Posts: 249 Location: Sweden, Hallstavik
|
Re: Ini Parser Source Code (C++)
Minor update (But important)Made the parser behave more like Cortex Command's. (Ignore whitespace before first letter\number\symbol character.) In other words, it would parse the Prison escape.rte Index.ini file correctly. Download
|
Fri Dec 19, 2008 7:58 pm |
|
|
ChJees
Joined: Thu Jul 19, 2007 11:31 am Posts: 249 Location: Sweden, Hallstavik
|
Re: Ini Parser Source Code (C++)
Update for Code and Rte InspectorA quite working and more useful Rte Inspector program is available now. At least it will now check if all Includes are right. And a critical update to the source code which fixed a problem which made parsing certain Ini files impossible without crashing. (Try to parse or old Shotgun.ini in Ronin.rte with old parser versions.) PixRte InspectorDownloadsParser Source CodeRte Inspector
|
Sat Dec 20, 2008 12:19 am |
|
|
CandleJack
Joined: Sun May 18, 2008 8:30 am Posts: 732
|
Re: Ini Parser Source Code (C++)
Why isn't this stickied? Also, can't you use sourceforge to host this?
|
Sat Dec 20, 2008 5:57 am |
|
|
ChJees
Joined: Thu Jul 19, 2007 11:31 am Posts: 249 Location: Sweden, Hallstavik
|
Re: Ini Parser Source Code (C++)
CandleJack wrote: Why isn't this stickied? Also, can't you use sourceforge to host this? I see no reason for it to be stickied . (I think mods do too) Not big enough for Sourceforge i think. Since this is just another out of other 1000s of parsers. And here is a new Rte Inspector version :3. It will display a lot more data, but won't do any Instance checks so far. Rte Inspector Download
|
Sat Dec 20, 2008 9:39 pm |
|
|
ChJees
Joined: Thu Jul 19, 2007 11:31 am Posts: 249 Location: Sweden, Hallstavik
|
Re: Ini Parser Source Code (C++)
Bug fix and new Rte Inspector updateThis update fixes a bug which made a program crash when a empty value after a = was parsed. (Thanks to Whitty's overpowered mod for me to find that bug.) Parser Source UpdateRte Inspector
|
Sun Dec 21, 2008 2:35 pm |
|
|
Thoughtprocess
Joined: Mon Feb 11, 2008 3:42 pm Posts: 259
|
Re: Ini Parser Source Code (C++)
You should probably rename the OP to "Ini Parser Source Code + RTE Inspector", since this is a bit more than just a bit of source code.
RTE Inspector looks intriguing. Will try it out ASAP.
|
Thu Dec 25, 2008 3:56 am |
|
|
Miles_T3hR4t
Joined: Mon Jun 04, 2007 5:55 am Posts: 1627 Location: Ohio
|
Re: Ini Parser Source Code (C++)
I think this needs to not only be stickied but I think it needs to be bundled with all future CC builds as a free add-on tool
|
Thu Dec 25, 2008 5:15 am |
|
|
|