PDA

View Full Version : Stronghold 2 v1.3.1 Trainer


Toastysoul
08-05-2007, 02:35 AM
I decided to go ahead and make my own trainer for v1.3.1. I got stuck on a certain mission and after (re)trying it for about 2 hours, I felt it was less effort to teach myself to build a trainer. (Even though I was wrong about the level of effort, it was well worth it to slaughter the computer for a while :graywink: )

I've plucked all the right memory locations AFAIK, and the draft trainer seems to work the way it's supposed to. The only trouble is there are about 34 different things that I've taken the time to locate, and I don't really feel like making a +34 trainer. So, basically I need to know which features you want most. Less is better, but I'm flexible. Unlimited money is good, but I hate clicking 100 times in the market to get the items I want, some of which aren't always available.

I can set then freeze all items (food, weapons, etc), popularity, population (current and max), honor, and of course money. I'm certain with a little extra effort, I could also set it up to simply "add" say 100 or so to all items, or certain groups of items. Anyways, I need to know what you guys want so I can get the trainer finalized and released to MG.

Please, list your requests like this:

Action...................................Hotkey

Unlimited Money...................ctrl+m
500 Stone/Wood...................ctrl+s
Add 500 to honor..................ctrl+h
Freeze Population..................ctrl+p

So on and so forth, so I can easily see what you want. If you don't want to do it like that, I'll just ignore your requests and give the next person what they want.

Toastysoul
08-05-2007, 05:36 PM
This is what I'm looking at so far:


100,000 Gold..........F5
5000 Honor.............F6
200 Population........F7
100 Popularity.........F8
Unlimited Food.........F9
Unlimited Weps........F10
500 Wood/Stone......F11


Sound good?

Toastysoul
08-06-2007, 12:49 PM
OK, GUI for the trainer is done, I think it looks pretty kick ass. It's not as busy as Fanaion's, but I don't have another person coding it for me either.

While testing out the trainer, I noticed something unintended. Apparently the game wont update the stockpile, armory, or granary simply because you tell it you now have 100 of a given item. There are 2 separate memory locations for each stack inside each stockpile that tell it what the item type is, and how many of these there are. While this detail may seem somewhat inconsequential, the problem arises when you try to sell any of the "forced quantity" of items. Simply put, you can use any items given to you by the trainer for creating (buildings, soldiers, etc), but unless the stock pile count agrees with the inventory count, you can't get rid of the extra items, and EVEN WORSE your industries that use those items, such a fletchers and blacksmiths, depend on the stockpile count! Even if you force the inventory to say you have 0 wood, if there is wood in the stockpile, the fletcher takes it anyway. The granary & armory also have the same issue, but nothing pulls from either building itself, so it's not a problem.

I know this can be worked around, but it requires a much more complex programing statement to make happen. Essentially, to get the trainer to fool the game into thinking you genuinely have a certain quantity of item, it would require scanning your inventory slots for any existing items, and updating that quantity (up to a max value), and/or looking for an empty inventory space and sticking it in there. The problem is, I'm not sure what can be done if you have multiple stockpiles, or if the stockpile is already full. Additionally, the game uses 2 pointers to get to the address of the stockpile and I'm not sure the program I'm using supports altering memory locations from 2 pointers away.

I'm working on a solution where the trainer will simply lock the stockpile values with a max stack of a given item. So that the last few spaces of your first stockpile will always be filled with each of the items that get used in various industries. This will over-write anything that's in there, but it's unavoidable. It will only be a serious issue if your stockpile is full, and even in that case, you aren't loosing items, only exchanging them for something else. ;)

Toastysoul
08-06-2007, 10:36 PM
I decided to dump the stockpile support. Although I have a very firm understanding of how the game operates, it's just too much trouble to setup the trainer to support your industries too. I mean, why even have industries when you have unlimited weapons? Things like candles, cloth, & ale can be bought easily enough. If it's critical your industries are supported, just use the $100K gold to buy the materials you need. ;)

Everything is done, just need to release the trainer to Megagames.


Have fun with it, any issues, please reply in this thread.

:sword:

Toastysoul
08-07-2007, 01:15 AM
Included .nfo attached. Notepad was so lame, I had to include an image for those without an nfo viewer.

Tussca
08-08-2007, 06:38 PM
where can i download this trainer?

Toastysoul
08-09-2007, 10:13 AM
Hello, I am a new member on this forum attempting to post a link. My message has been flagged as spam, so it was replaced with this automated message instead.

Toastysoul
08-09-2007, 10:19 AM
Hello, I am a new member on this forum attempting to post a link. My message has been flagged as spam, so it was replaced with this automated message instead. <---- That is so f'ing irritating. I can't even link to megagames? How many freaking posts do I need to make?

where can i download this trainer?

I emailed it to megagames several days ago (right after my last post), and have heard nothing back. I don't know if they are busy or just slow, but it doesn't seem to be up yet. I just attached the trainer to this post.

Toastysoul
08-12-2007, 09:35 PM
Sweet! It's finally been posted to the main website. :dance1:

killallday
08-27-2007, 07:48 PM
first i have to say thank you for making this trainer its nice :).

but it seems i cant get passed a part on the game and these codes dont offer any support when doing a seige mission where you attack. the codes have no effect on these "seige based" mission. and they wouldnt do anything sence you cant build anything.

maybe make a selected group invincible? or all. not sure you can do that. i would be vary thankfull.

*edit maybe destroy selected group/all too?

or could you point me to one of them "saved game" for the v 1.3.1

killallday
08-28-2007, 04:54 PM
i also belive i found a bug with this. not sure you might want to double check. on the path of peace missions "sim campaign" once you get to the part where you finish rebuilding the castle and move the trainer errors and no longer works after that. and it also doesnt work on newer game you make. i fixed it by reinstailing the game.

Scuba3465
08-22-2008, 03:51 PM
I would really like to see this trainer updated for patch 1.4 if someone could point me in the direction to a 1.4 trainer it would be greatly appreciated. Thanks

alanf00
10-24-2008, 05:59 PM
Yes a 1.4.1 trainer would be apprecieated

prussianiron
07-06-2009, 11:41 AM
Attention! This is a trojan horse, as stated by norton! Do not download this file!!