Klopjero Posted September 8, 2017 Author Share Posted September 8, 2017 it looks promising Quote Link to comment Share on other sites More sharing options...
Nielk1 Posted September 9, 2017 Share Posted September 9, 2017 Things are going well. Now I am just trying to figure out what to do with the matches as they occur. I'm thinking I could do it like a windows copy dialog works, where all perfect matches will go through first, then it will start asking questions. Quote Link to comment Share on other sites More sharing options...
Klopjero Posted September 9, 2017 Author Share Posted September 9, 2017 verry nice cant'wait to try it Quote Link to comment Share on other sites More sharing options...
Nielk1 Posted September 9, 2017 Share Posted September 9, 2017 I hit a snag with the JSON data format. I am going to try to use the XML instead. The problem is that some items, like files lists are an Object if it's a single item or an Array of Objects if it's more than one. The result is all my checks are seeing 0 results because it's failing to read the response. The good thing is that the way I coded the API it's probably only 2 small sections that need editing. probably. Quote Link to comment Share on other sites More sharing options...
Klopjero Posted September 9, 2017 Author Share Posted September 9, 2017 You build it modular... so you could use the interface for your other scrapers? Quote Link to comment Share on other sites More sharing options...
Nielk1 Posted September 9, 2017 Share Posted September 9, 2017 No, just good coding practice. Quote Link to comment Share on other sites More sharing options...
Klopjero Posted September 9, 2017 Author Share Posted September 9, 2017 I'm so dissapointed Quote Link to comment Share on other sites More sharing options...
Nielk1 Posted September 9, 2017 Share Posted September 9, 2017 So I've been trying to avoid using JSON.net just due to not wanting to conflict with any other plugins that use it as during the LaunchBox current beta I am not sure what version to target. Welp, JSON.net is just too good. I switched to that from the native JSON parser and was able to fix my issue immediately by writing a custom serilalizer for attributes that could be either arrays or singles. I hope the next version of LaunchBox releases soon so I can fix my version targets. I'm done for tonight but here's a picture. I will probably want to do some followup API calls using that Id to get what's not listed here. What suggestions do you have for what to do with the data? You can see the types of data by looking at various items there such as this one: https://www.doomworld.com/idgames/levels/doom/Ports/0-9/007ltsd I'll probably allow for everything to be added as custom fields so complex themes can access it of course, or more specifically I will add some sort of check-boxes to the scraper for it. Quote Link to comment Share on other sites More sharing options...
Klopjero Posted September 9, 2017 Author Share Posted September 9, 2017 Excellent work Nielk! my suggestion: DOOMWorld - > Launchbox ======================= Tile -> Title size -> special - file size date - > release date Author -> Developer/ publisher Description -> notes Etc ? Quote Link to comment Share on other sites More sharing options...
Nielk1 Posted September 9, 2017 Share Posted September 9, 2017 1 Quote Link to comment Share on other sites More sharing options...
Klopjero Posted September 10, 2017 Author Share Posted September 10, 2017 that looks great! Quote Link to comment Share on other sites More sharing options...
Nielk1 Posted September 10, 2017 Share Posted September 10, 2017 @Klopjero If you want to test it now you can. There's probably a huge pile of bugs in it at this stage. This zip contains the source code, in the bin folder are the plugin DLLs you will need to add to LaunchBox's Plugin folder. You can make a subfolder for this in there. You should consider this very-beta and as with any beta things you should back up your Data folder. LaunchBox_DoomWorldScraper.zip 1 1 Quote Link to comment Share on other sites More sharing options...
Klopjero Posted September 10, 2017 Author Share Posted September 10, 2017 2 hours ago, Nielk1 said: @Klopjero If you want to test it now you can. There's probably a huge pile of bugs in it at this stage. This zip contains the source code, in the bin folder are the plugin DLLs you will need to add to LaunchBox's Plugin folder. You can make a subfolder for this in there. You should consider this very-beta and as with any beta things you should back up your Data folder. LaunchBox_DoomWorldScraper.zip When I get home I will start using this and report back my finding. Youre awesome! Quote Link to comment Share on other sites More sharing options...
Klopjero Posted September 10, 2017 Author Share Posted September 10, 2017 6 hours ago, Nielk1 said: @Klopjero If you want to test it now you can. There's probably a huge pile of bugs in it at this stage. This zip contains the source code, in the bin folder are the plugin DLLs you will need to add to LaunchBox's Plugin folder. You can make a subfolder for this in there. You should consider this very-beta and as with any beta things you should back up your Data folder. LaunchBox_DoomWorldScraper.zip Wow... feeling like an utter nOOB here. Eventually I placed the entire bin folder into the plugin folder. I opened the powershell scritp in an administrative console. ran set-executionpolicy etc etc... I don't see what is loaded... but then again..I'm not sure how this plugin should manifest itself.. I loaded the Visual studio project into VS set the debug program to the proper location.. ran it .. What info do you need ? or could you make a short instruction on how to test this properly. 1 Quote Link to comment Share on other sites More sharing options...
Nielk1 Posted September 10, 2017 Share Posted September 10, 2017 (edited) @Klopjero All you need to do is place the DLLs from bin into a subfolder in Plugins. Launchbox will see them when it starts and add the menu item automatically. The source code is there for if I disappear or something or if for some reason you don't trust me and want to compile it yourself. I have an extra step in my system that copies the DLLs from the project's bin into a folder in Launchbox/Plugins before starting Launchbox in my debugger. Edited September 11, 2017 by Nielk1 1 Quote Link to comment Share on other sites More sharing options...
Klopjero Posted September 11, 2017 Author Share Posted September 11, 2017 It's weird. ib placed the dll's into it's own folder. It loads without issue. But I don't see the context menu you mentioned. I appreciate your source code. I only loaded it up because the dll's didn't seem to load properly. Show me 2 pictures. One of the folder structure of your plug in folder. The other of the context menu and where to find it so I can tell whether the plug in loaded properly. Thanks a lot so far. Quote Link to comment Share on other sites More sharing options...
Nielk1 Posted September 11, 2017 Share Posted September 11, 2017 (edited) Folder structure's irrelevant, Launchbox aggressively searches for all DLL files in its Plugins folder. The menu item will either be on the bottom of the [Tools] menu, or under [Tools > Download Metadata and Media...] (which will now have child items) if you have the menu cleanup plugin as well. I am working with the LB beta so it's possible some difference is preventing it from working. Edited September 11, 2017 by Nielk1 Quote Link to comment Share on other sites More sharing options...
Klopjero Posted September 11, 2017 Author Share Posted September 11, 2017 I can't remember it having child items...|I'll have a look when I get back from work. Quote Link to comment Share on other sites More sharing options...
Nielk1 Posted September 11, 2017 Share Posted September 11, 2017 4 minutes ago, Klopjero said: I can't remember it having child items...|I'll have a look when I get back from work. It doesn't normally, only if the menu cleanup plugin is installed. Quote Link to comment Share on other sites More sharing options...
Klopjero Posted September 11, 2017 Author Share Posted September 11, 2017 So..I'm going to echo this. The Doomworldscraper will be found under [tools] ->[download metadata and media] now. I tried this, that is to say. once I loaded the DLL's into launchbox yesterday evening. and I ran the Download metadata and media, but it didnt retrieve the metadata. I also can't tell if the dll's are loaded properly, I can say that LAunchbox didnt throw errors while starting up. I'm aware that this could be frustrating for you, I just need to be clear about the situation. I don't have the menucleanup plugin installed, so the [download metadata and media] has no child items. So how can I tell if the plugin is working correctly? Does it have it's own button to click? or did you make it part of the [download metadata and media] routine? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.