Bots in LAN game. How to add them? [Archive] - Team17 Forum

PDA

View Full Version : Bots in LAN game. How to add them?

Sapphire
20 Jan 2007, 19:21
Hey all!
My first post here. ^_^ The game is amazing, I really like it. :) But I have a question...
I play W4 with my friend by LAN, but we haven't found any possibility of adding computer's team into game. You know, for example, deathmatch 4 teams, one is mine, one is my friend's and two other - computer. Is that possible at all? Maybe there are some patches exist to make it possible or maybe there are some other ways to have bots in lan game?

quakerworm
20 Jan 2007, 23:05
might be possible with a memory editor. if the game lets you add more than one team per player, you might be able to use the memory editor to change the team to ai controlled after you have added it.
first, create a team that you will use as bots. set it to human controlled. use the memory editor to find all integer values that are set to 0. set the team to ai controlled of lowest skill level. repeat the search for memory locations set to 1 within the previous search results. increment the skill, and search for 2. keep doing this until you have just one address left. then, search for the name of the team. compare the address of the name with the address you got before. if it's a small number, you are done. if not, you need to find a pointer to the team's name. search memory for address of the team's name. there could be more than one result for both name and pointer. you just need to find one that is very similar to the address you got for skill level. record the difference. when you found the difference, set the bot team to human controlled.
now, host a game. add your team, and the bot team. search for the name of the bot team. either use the name's address or look for pointer, depending on which difference you used above. add/subtract the difference to find the new location of the team's skill parameter. check that location. if done right, it should be set to 0. change the value to represent the skill level you want. start the game.
if you found the correct memory location, the team will now be set as ai controlled. there are several outcomes, depending on how t17 have handled ai teams. first, is that the game will go on as usual, with your computer controlling the bot team. second, is that you will still control the bot team. third, and probably most likely, the game will simply crash, and you just wasted a load of time.

Melon
20 Jan 2007, 23:10
Surely both players on both computers will need to do this?
There isn't an ingame option to do it, by the way, Sapphire. Bots can only be used offline (well, LAN technically isn't online, but you know what I mean).
Oh, and I have little idea what you're talking about quakerworm. I don't even know what a memory editor does. Sapphire may not either.

quakerworm
20 Jan 2007, 23:37
Surely both players on both computers will need to do this?
Oh, and I have little idea what you're talking about quakerworm. I don't even know what a memory editor does. Sapphire may not either.
memory editor is a program that lets you change the values stored in memory used by the game. some people use these to cheat in various games. give themselves extra health, money, or whatever. you would need to have some skill with these to be able to do what i outlined above, but there are plenty of tutorials on-line on using various memory editors.
and no. you should only need to do this on one end. it will either work that way, or not work at all, depending on how ai is done. it is entirely possible that the game only sends key strokes, and ai will be acting only on host's machine, causing the loss of synchronization between clients.

Sapphire
21 Jan 2007, 10:57
Eeer... Lol... Yeah, I understand all you said, but this way is a little... ummm... Well, I just wanna say I didn't expect anything like that. :)) But I'll try however. Thank you for that. :) I'll report about results...

vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.