dbc17 hacks: fearsome tweak v1.51

I'm using Windows 10 64 bit. Still seems to crash every time for the dump script

That shot selection code is working for me however, I managed to get the AI so confused by changing the numbers to something extreme that they won't even play a shot! :lol

win10 seems to have less tolerance on many things, it's certainly better to work on win7 for this stuff.

I started to create a video tutorial, since there are a lot of things to read/know, but they are not difficult. The knowledge required is:
some assembler programming, some other language programming (Lua can be very useful), and how to use Cheat Engine.
 
uploaded the first part of the modding guide (link in the first post). It explains how to set up things and what tools to use. As i said i had a little cold so
couldnt work much these days. Tomorrow will add another part, and probably an update to show the rain in dbc17.
 
uploaded the first part of the modding guide (link in the first post). It explains how to set up things and what tools to use. As i said i had a little cold so
couldnt work much these days. Tomorrow will add another part, and probably an update to show the rain in dbc17.
Great work bro,can you tell me is their any finding on stadium adboards??
 
Thanks for the guide so far @francobaldo1 :cheers

It's allowed me to at least play around with some stuff in regards to stump physics. So far I've managed to go from getting the game to crash at the start of the bowler's run-up to getting the game to crash when the ball actually hits the stumps. I can call that progress! :lol
 
Thanks for the guide so far @francobaldo1 :cheers

It's allowed me to at least play around with some stuff in regards to stump physics. So far I've managed to go from getting the game to crash at the start of the bowler's run-up to getting the game to crash when the ball actually hits the stumps. I can call that progress! :lol

Did you manage to complete the example in the guide?
by the way, a simple trick is to search for "true" or "false" cases. In the asm files they are shown as IST (is true) and ISF (isfalse). An example for IST is this:
"14 0 5 0", it means that it checks if the value in register 5 is true (14 means IST, while 15 means ISF). So if you change the "14" in "15", the script
will behave in the opposite way. It's what i did in my first mod for dbc14, changing the result of the script GetShouldEdgeBall() from true to false.
 
Did you manage to complete the example in the guide?
by the way, a simple trick is to search for "true" or "false" cases. In the asm files they are shown as IST (is true) and ISF (isfalse). An example for IST is this:
"14 0 5 0", it means that it checks if the value in register 5 is true (14 means IST, while 15 means ISF). So if you change the "14" in "15", the script
will behave in the opposite way. It's what i did in my first mod for dbc14, changing the result of the script GetShouldEdgeBall() from true to false.

Yes, I even reinstalled DBC 14 just to try it and it all worked! :thumbs
 
great to hear from you mate, i'm still doing some work on the game.
If you are intersted, I was just uploading a couple of the decompiled Lua files used by the game, these are two of the main controllers of the player mentality.
It's not explained how they works, but it gives a general idea of what's happening. I remember you wanted to see how things work for the mentality, so just
download the file scripts.zip and open the files with Word.

I'm always interested. Lack of bowleds and lack of mentalities were my only two issues with this title. Are they able to be edited? Did you get any information as to what actually happens? I've always thought skill had more of an impact on how they played, which of course is rubbish because you can have super aggressive, low skilled batsmen IRL and it was impossible to make a very good blocker in DBC.

It seems you have got some amazing bowleds in the game anyway. Great work
 
Last edited:
I just checked out the player mentality scripts in word. Good grief, so something is there! It might as well be in Swahili though. Do you know what any of it means?
 
I just checked out the player mentality scripts in word. Good grief, so something is there! It might as well be in Swahili though. Do you know what any of it means?

there is a lot of documentation, the official site is this:
LuaJIT 2.0 Bytecode Instructions

you can also check my guide (link is in the first post), it's for beginners. A lot of people have downloaded it, so hopefully someone will be able to help with some mods.
About the player mentality, my idea was to change it in game according to the situation (so you can go from defensive to aggressive),
and then "filter" the shots that the batsman should not play (so they would not use aerial shots in the first innings of Test). In this way, it would be possible to
really customize a lot different players.
It was possible in dbc14, in dbc17 is a little different but i think it will not be difficult.

Of course there is now the new Ashes Cricket game in November, so it will be interesting to see how it is. It looks great.
 
there is a lot of documentation, the official site is this:
LuaJIT 2.0 Bytecode Instructions

you can also check my guide (link is in the first post), it's for beginners. A lot of people have downloaded it, so hopefully someone will be able to help with some mods.
About the player mentality, my idea was to change it in game according to the situation (so you can go from defensive to aggressive),
and then "filter" the shots that the batsman should not play (so they would not use aerial shots in the first innings of Test). In this way, it would be possible to
really customize a lot different players.
It was possible in dbc14, in dbc17 is a little different but i think it will not be difficult.

Of course there is now the new Ashes Cricket game in November, so it will be interesting to see how it is. It looks great.

Yes being able to do that would be perfect and I would love to see it in a mod (I think you did it for DBC14 but it was a little extreme). Of course it's very unlikely to see aerial shots on the first morning of a test and it's unlikely to see very conservative batsmen playing them at all. (I think Cook had one six in his entire FC career for a while if I'm not mistaken).
 
Yes being able to do that would be perfect and I would love to see it in a mod (I think you did it for DBC14 but it was a little extreme). Of course it's very unlikely to see aerial shots on the first morning of a test and it's unlikely to see very conservative batsmen playing them at all. (I think Cook had one six in his entire FC career for a while if I'm not mistaken).

what i changed in that mod for dbc14 was the variable "getDesiredRunsForThisOver" (it's in the player mentality script). I set the variable
to a very big number (like 36), and so the batsman became very aggressive. Setting the variable to 0 would make the batsman defensive.
It was just a quick fix that you could use in some situations.

Anyway i just checked how to select the shots for the AI in dbc17 (a thing that i started working some months ago), and i think i got how
it works this time (there were some small problems the last time, that's why i didnt update it). Dont have much to do this weekend, so i might
add it to the mods, if you can play on PC.
 
what i changed in that mod for dbc14 was the variable "getDesiredRunsForThisOver" (it's in the player mentality script). I set the variable
to a very big number (like 36), and so the batsman became very aggressive. Setting the variable to 0 would make the batsman defensive.
It was just a quick fix that you could use in some situations.

Anyway i just checked how to select the shots for the AI in dbc17 (a thing that i started working some months ago), and i think i got how
it works this time (there were some small problems the last time, that's why i didnt update it). Dont have much to do this weekend, so i might
add it to the mods, if you can play on PC.


That's amazing. And it also explains why they try and slog the last ball of the over if the desired runs per over isn't close. Would be the perfect game for me then and I can stop complaining. I always think between 2 RPO and 8 RPO for both test and ODI cricket?

I am in South Africa without access to a gaming PC, but I'll be straight onto DBC with your mod when I get to one.
 
Last edited:
uploaded AI Shot Selection v001 (link in the first post)

This allow to customize the AI batting. You can choose if the batsman should consider a shot or not.
USAGE:
load the game and the mod, press START when you are in the game menu. Now use the sliders to choose
how often the batsman should consider a shot. If you use a max value, it means that the batsman will consider
to play the shot every ball (it doesnt mean that he will play it), if you use lowest value, the batsman will not use
that shot.

@Langeveldt ok, i am gonna upload a video of a match AI vs AI if you can check it. I'm gonna call it the Langeveldt Cup ^^
maybe England vs South Africa
 
@Langeveldt ok, i am gonna upload a video of a match AI vs AI if you can check it. I'm gonna call it the Langeveldt Cup ^^
maybe England vs South Africa

Personalised service of the like never seen before by any patch maker or game developer. It's like you included steak and the finest wine.

I'll get a big fantasy league operating on Twitch when we get bowleds (which are done?) and mentalities a bit more obvious. I will happily watch any Twitch stream or youtube videos in the meantime.

I can't see myself having a PC any time soon though. I've gone from having a life spread out over three countries to having to really take stock of it all. I assume my rig is still in the Netherlands but who knows.

Does the AI shot selection mod include the bowled improvements?

I'd ultimately like a sort of International Cricket Captain with DBC graphics and gameplay. Where you can select the sliders and the batsmen behave accordingly, but you aren't controlling them totally, if that makes sense.
 

Users who are viewing this thread

Top