Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Vulpes101

9
Posts
A member registered Oct 15, 2020

Recent community posts

Don't know if it helps, but when going over the script I found a few more possible problems + I thought it was a bit slow, so I made it faster.

https://pastebin.com/HQ11fM4C

If that does not help, where do you see the errors? If you also see the errors, when you only start the game (not my script), then something in there is going wrong and I can't change that. Sorry.

Ah right. I think it downloads number of pages instead of number of images, which is kind of dumb ^^.

For a fix add 

if ($match_count -gt 52) { break }

after the line

"$match_count = ($match_count + 1);"

This should stop the loop after downloading 52 images. If there are too few images, just up the number in the if.

Hope that helps.

Here is the version for Rule34.xxx: https://pastebin.com/H4LAjX7b and the updated version for the old one (Just some syntax things on my side, so no need to download the new one if you already have the old one): https://pastebin.com/q7ZDqLYp

You still have to create your own .bat file (just copy start.bat, rename it and change the text in it to the right .ps1 file)

I also added some comments on what to do if you want to change websites. Sadly it is not very straight forward and you kind of have to understand regexes, a little bit of HTML and of course some PowerShell. But they might help to give at least some pointers on what to do.

No worries. I wrote it and fixing it because gelbooru is changing its website is really not a big deal. I rather have to thank you for posting the error and so on. Helped a lot with fixing it :)

Should be working now with this script: https://pastebin.com/K1ae96KX

Windows 7 just does not ship initially with the latest powershell but with the link here, you can download the installation for the newer powershell. This is the link for the installation to powershell 5.1 for Windows 7.

You don't have to update your OS just for that :)

No, Invoke-WebRequest is present in version 5 (I am running 5.1 and it is still there). I found a post where it is explained, that the alias wget is deprecated in 5.1, but the original function is still there.

The only time where Invoke-WebRequest would not be present for you would be if you ran version 2 or lower. This is only the case on Windows 7. You can check this if you run a powershell window (Just type powershell into your windows search or press the Windows Key + R, type powershell and run it).

There type the command:

$PSVersionTable.PSVersion

If this shows for the Major column a version lower than 3 you are running on an old version and a solution for you would be to update your version here then it should run. 

As much as I want to fix this game I really don't want to find workarounds for web requests and Json parsing in version 2.0. I did this at one point for other stuff and it is a pain in the arse :P . (Also the version 2 on my system is somehow busted and I would either need to reinstall windows, setup a windows 7 VM or something similar just to test stuff.)

(1 edit)

That is because the execution policy on your system is set to restricted. I forgot that this is the default, sorry about that. Also the script needs an update, because gelbooru changed their auto complete url.


Execution Policy:

If you want to run it and don't want to change the system settings to allow all scripts to be run (which I would not advise if you do not need it), then create a .bat file (e.g. start.bat) in the folder with the start.ps1 script.

Open it with any plain editor like good old notepad and paste this script:

powershell -executionpolicy RemoteSigned -File "start.ps1"

Which will set the execution policy for this one instance of powershell and make the script runnable.


Update:

Here is the updated version of the script to accept the auto completes in a JSON format.

https://pastebin.com/vmzTytxA

Thanks for mentioning the issue.

Should be fixed here: https://pastebin.com/47HvJPkF

As there is no fix in sight I wrote a script which will do the download, organize the pictures and so on. Problem is, that it won´t load the pictures in the background. It has to download all before starting the game. The script will ask for your waifu name, then download the files, then start the game and this will ask for your waifu name again. Just type the same name and it should work. Hopefully.

If you want to use it just copy the text from https://pastebin.com/Dt4yZmzy into a .ps1 file (e.g. start.ps1). Now place this file in the root of the game where waifu_solitair.exe is located. Run the script by either double clicking or right clicking and pressing run (I have no idea anymore what the default is) and enjoy. 

It can take a while, but at least it works.


PS: @cwdogflip This game is really a very neat idea. Good job :)

PPS: If you want to use other sites/tags you can do that by changing the links in the script. Tags should be easy as just $main_url_base has to be changed, but for sites you have to figure out the regexes and so on for yourself ^^

For example if you not only want explicit images just remove '+rating%3aexplicit' from the $main_url_base.