Machine Learning Recruiter
Moderator: Forum Moderators
Re: Machine Learning Recruiter
I'm following those instructions, but as I said, I've downloaded the patch, downloaded the source and now it's telling me to apply the patch to the source using the following command:
patch -p1 -i [path to patch file]
However I have no idea what patch(.exe?) is. I have no such file, nor does it appear to be part of the patch itself nor the Wesnoth source. I'm not referring to the patch file, rather the command "patch".
patch -p1 -i [path to patch file]
However I have no idea what patch(.exe?) is. I have no such file, nor does it appear to be part of the patch itself nor the Wesnoth source. I'm not referring to the patch file, rather the command "patch".
-
- Posts: 74
- Joined: March 4th, 2012, 6:09 pm
Re: Machine Learning Recruiter
Hi Quitch,
Thanks for looking at this. I'd like to help out, but unfortunately I'm on a Mac and it sounds like your on Windows. Can anybody help out with the best way to apply a patch on Windows?
SD
Thanks for looking at this. I'd like to help out, but unfortunately I'm on a Mac and it sounds like your on Windows. Can anybody help out with the best way to apply a patch on Windows?
SD
Re: Machine Learning Recruiter
It is a Unix/Linux program that updates text files (an that is typically included in any Unix/Linux installation). Your mention of ".exe" suggests you are using Windows, which would mean you need a Windows version of the utility.Quitch wrote:But what's patch? I cannot find such a file.
Re: Machine Learning Recruiter
Ah, I wondered if it might be a Unix thing.
I've tracked down patch for Windows as part of GnuWin32 and so will try that.
I've tracked down patch for Windows as part of GnuWin32 and so will try that.
Re: Machine Learning Recruiter
Okay, I refuse to be defeated...
So, I run the command using the Windows version of patch (2.5.9) under an elevated command prompt. Patch then prompts me for "File to patch". I provide it with the patch to the 1.11.1 source code folder, but it states that this is not a regular file and then terminates.
Help!
So, I run the command using the Windows version of patch (2.5.9) under an elevated command prompt. Patch then prompts me for "File to patch". I provide it with the patch to the 1.11.1 source code folder, but it states that this is not a regular file and then terminates.
Code: Select all
C:\WINDOWS\system32>"c:\Program Files (x86)\GnuWin32\bin\patch.exe" -p1 -i c:\users\quitch\downloads\ML_Recruiter_0.4.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/RELEASE_NOTES b/RELEASE_NOTES
|index c0de997..c98e1f9 100644
|--- a/RELEASE_NOTES
|+++ b/RELEASE_NOTES
--------------------------
File to patch: C:\Users\Quitch\Downloads\wesnoth-1.11.1
c:\Program Files (x86)\GnuWin32\bin\patch.exe: **** File C:\Users\Quitch\Downloads\wesnoth-1.11.1 is not a regular file -- can't patch
- Alarantalara
- Art Contributor
- Posts: 789
- Joined: April 23rd, 2010, 8:17 pm
- Location: Canada
Re: Machine Learning Recruiter
Repeat the exact same command, but change the current directory to your copy of the Wesnoth source first (where you see the src, data, projectfiles, etc. directories).
It wanted to know where the RELEASE_NOTES file was when it asked for the file to patch.
It wanted to know where the RELEASE_NOTES file was when it asked for the file to patch.
Re: Machine Learning Recruiter
Thanks, progress has been made. Alas, victory has not been secured it now terminates and crashes during the patching process.
Don't know if this is simply Windows 8 and GnuWin32's patch not getting along though.
Code: Select all
c:\Users\Quitch\Downloads\wesnoth-1.11.1>"c:\Program Files (x86)\GnuWin32\bin\patch.exe" -p1 -i c:\users\quitch\Downloads\ML_Recruiter_0.4.patch
patching file RELEASE_NOTES
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
Re: Machine Learning Recruiter
I'm split this discussion off into the compiling forum
http://forums.wesnoth.org/viewtopic.php?f=5&t=38108
http://forums.wesnoth.org/viewtopic.php?f=5&t=38108
Re: Machine Learning Recruiter
I too am unable to patch the AI, despite having read the thread by Quitch.
Thanks for your help. This sounds like a fun concept.
It would help to provide initial conditions per breakdown, most notably starting gold and income. I am currently using the experimental AI recruiters that are available via the add-on server, without a patch. I have endured some serious waiting time in the range of 10-30 seconds. In the game I am playing today (Northerners v. Knalgan) this occurs on a regular basis each turn, multiple times per turn. Since a dialog also appears requesting a screenshot, my wait is further compounded by the interruption.SeattleDad wrote:For anyone who wants to learn more about ML Recruiter, I've just updated the Wiki at http://wiki.wesnoth.org/Machine_Learning_Recruiter.
New items are faction vs. faction statistics for ML Recruiter 0.3, faction-by-faction unit recruitment percentages, a further breakdown of unit recruitment percentages vs. the Undead to show MLR's adaptability, and some basic documentation on the new script that lets you train your own ML Recruiter.
Thanks for your help. This sounds like a fun concept.
I'm tired.
Re: Machine Learning Recruiter
Thanks for reporting. Unfortunately, Fred (the AI you're using here) is still work in progress and not at all optimized. We will get back to that soon and, hopefully, both improve the AI itself and speed it up in the process. Unfortunately, that's not going to happen over night though.howwitty wrote:I am currently using the experimental AI recruiters that are available via the add-on server, without a patch. I have endured some serious waiting time in the range of 10-30 seconds. In the game I am playing today (Northerners v. Knalgan) this occurs on a regular basis each turn, multiple times per turn. Since a dialog also appears requesting a screenshot, my wait is further compounded by the interruption.
SP campaigns: Galuldur's First Journey (1.12 & 1.14) & Grnk the Mighty (1.10 & 1.12)
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
Re: Machine Learning Recruiter
Oy! Just found this old topic while I'm in making a full ML-based AI for Wesnoth, this all looks fascinating!
I have the Transformer side of the AI done, but I need to figure out the interfacing with the game. If you're interested please send me a message!
I have the Transformer side of the AI done, but I need to figure out the interfacing with the game. If you're interested please send me a message!
- Alarantalara
- Art Contributor
- Posts: 789
- Joined: April 23rd, 2010, 8:17 pm
- Location: Canada
Re: Machine Learning Recruiter
There was a patch linked somewhere in the thread that allowed grabbing results from an ML toolkit, though since it was applied to a 13-year version of the code, you're unlikely to be able to use it as is. It might be worth reading for ideas though if it's still available.