You're quite welcome. I *hope* the script is bug-free (I think so). I just wrote it today (with only getting 3 hours of sleep!) - More videos to come about a variety of topics / content that you will not see anywhere else! - I have actually do *so much* this year with tools to play this game better and also tools to improve the game. I just haven't got to making videos about the content yet, because as soon as I finish one thing, I do another! - But hopefully more video content to come soon!
@@4EverTrying Well, I really really like your work! Hope to find some spare time to play this old gem again. And then with some (or all...) your scripts. (If I can work that out, because its all hieroglyphics for me). Like more of "us" this was my first ever PC game. And it just made my life. The music from TSK is EPIC.
Thanks. I used 2 strings (instead of 2 arrays) to keep track of things, because it's actually significantly more efficient to use Pos() to find a substring in a string than to loop through an array until the element is found. For example, here's a comparison of the two methods for another script that I wrote: Video Demonstration of the efficiency difference (benchmark) in destroying A LOT of schoolhouses on a LARGE map: ruclips.net/video/D59IMJB5Sqo/видео.html
Offtopic from this specific video. But, When a map has an X amount of units (yours and enemy's) its like they al become zombies and go wandering everywhere. Even in the enemy buildings. Is this heard of before and is there something to do about?
Are you referring to AI groups like the ones that are stagnant (which I then use a bowman to "wake them up") at this part in this video? ruclips.net/video/jNbHkjPkCyw/видео.html - Or did you literally mean they move everywhere? - But no, I am not familiar with the "even in enemy buildings" part. (The only ins and outs of enemy buildings is from recruits who are hungry but can't eat, etc.)
@@4EverTrying No, they go really everywhere! But I do have to say.... (it is quitte a long time ago I played it I have to admit) that some of the units where hungry indeed. It was most of the times when you played very much hours in one game. Or in specific missions where there are simply "to much" enemy unit being made. And then its like a game crash... -isch. The game plays on, but you have no control over your troops anymore. Units walk to the enemy lines, walk into enemy buildings. Straight from the school, right towards the enemy.
@@garaapje That's probably bugs from the original game. (Here is a large list of such bugs, if interested pastebin.com/HUxckKFd , but the **Remake** has fixed many of these kinds of bugs.)
@@4EverTrying Yes original for sure. KAM PR also. I own the (first? like, original) Remake also. I do believe it also happens there. But I am not sure, just have to start playing again to find out I guess. I will check the list right away, thanks for that! :)
@@garaapje *I will check the list right away, thanks for that!* - That list of bugs/changes was actually for the latest patch of the original TPR game. - That list was the changelog that Litude provided a link to in this post www.knightsandmerchants.net/forum/viewtopic.php?p=52084#p52084 (of which one can download the patch). - (His patch and the remake are two separate projects. The remake started with entirely new code. The patch was a modification of the original game's code, as far as I know.) - So sorry for not making that clear! The changelog for the *remake* is MUCH LARGER. - I thought to mention that specific list because it was the most convenient and has personally given me nostalgia about what I remember was wrong with the original game.
Very nice!!
Holy.... molly... you are a wizard
Thank you so much for this video and for your magic with the script making!
You're quite welcome. I *hope* the script is bug-free (I think so). I just wrote it today (with only getting 3 hours of sleep!)
- More videos to come about a variety of topics / content that you will not see anywhere else!
- I have actually do *so much* this year with tools to play this game better and also tools to improve the game. I just haven't got to making videos about the content yet, because as soon as I finish one thing, I do another!
- But hopefully more video content to come soon!
@@4EverTrying Well, I really really like your work!
Hope to find some spare time to play this old gem again.
And then with some (or all...) your scripts. (If I can work that out, because its all hieroglyphics for me).
Like more of "us" this was my first ever PC game. And it just made my life. The music from TSK is EPIC.
Wow, I discovered scripts a few days ago in KAM, and your script is so good, tks for sharing
Thanks. I used 2 strings (instead of 2 arrays) to keep track of things, because it's actually significantly more efficient to use Pos() to find a substring in a string than to loop through an array until the element is found.
For example, here's a comparison of the two methods for another script that I wrote:
Video Demonstration of the efficiency difference (benchmark) in destroying A LOT of schoolhouses on a LARGE map: ruclips.net/video/D59IMJB5Sqo/видео.html
@@4EverTrying Thats cool, tks for explanation
muy bueno , una barra de vida , siempre quize ver eso
Offtopic from this specific video.
But, When a map has an X amount of units (yours and enemy's) its like they al become zombies and go wandering everywhere. Even in the enemy buildings.
Is this heard of before and is there something to do about?
Are you referring to AI groups like the ones that are stagnant (which I then use a bowman to "wake them up") at this part in this video? ruclips.net/video/jNbHkjPkCyw/видео.html
- Or did you literally mean they move everywhere?
- But no, I am not familiar with the "even in enemy buildings" part. (The only ins and outs of enemy buildings is from recruits who are hungry but can't eat, etc.)
@@4EverTrying No, they go really everywhere!
But I do have to say.... (it is quitte a long time ago I played it I have to admit) that some of the units where hungry indeed.
It was most of the times when you played very much hours in one game. Or in specific missions where there are simply "to much" enemy unit being made. And then its like a game crash... -isch.
The game plays on, but you have no control over your troops anymore. Units walk to the enemy lines, walk into enemy buildings. Straight from the school, right towards the enemy.
@@garaapje That's probably bugs from the original game. (Here is a large list of such bugs, if interested pastebin.com/HUxckKFd , but the **Remake** has fixed many of these kinds of bugs.)
@@4EverTrying Yes original for sure. KAM PR also.
I own the (first? like, original) Remake also.
I do believe it also happens there. But I am not sure, just have to start playing again to find out I guess.
I will check the list right away, thanks for that! :)
@@garaapje
*I will check the list right away, thanks for that!*
- That list of bugs/changes was actually for the latest patch of the original TPR game.
- That list was the changelog that Litude provided a link to in this post www.knightsandmerchants.net/forum/viewtopic.php?p=52084#p52084 (of which one can download the patch).
- (His patch and the remake are two separate projects. The remake started with entirely new code. The patch was a modification of the original game's code, as far as I know.)
- So sorry for not making that clear! The changelog for the *remake* is MUCH LARGER.
- I thought to mention that specific list because it was the most convenient and has personally given me nostalgia about what I remember was wrong with the original game.