I always enjoy a good theory or two. Do tell, Hapuga.
I always enjoy a good theory or two. Do tell, Hapuga.
Well ok, same text I've sent to Tomix
There is not much that I can really tell you, but I will try to gather all the bits of information that I managed to get.
First of all, Map files DO NOT have the AI programmed in them. It is easily checked by taking a "good" v. 1.3 map and putting it in 1.7 folder.
Second, I have a strong belief that the EXE does not hold any data about the AI. AI needs a lot of scripting, and the initial size of an exe is about 300 kb. It is too small to have an AI script. Besides, I think it is pretty stupid to include AI in the exe, noone does that now, exe only executes modules, not stores them.
Third, I seriously doubt that WAD files have AI included. I have replaced 1.7 wads with 1.3 ones, game crashes very quickly but I managed to notice that AI was still lame.
Fourth, by the method of exclusion, we are left with the EDITOR folder. This means, that with a 90% chance, AI is somewhere in the KWD's, you are absolutely right.
Now, we are left with but one thing. Study these files and if we will succeed, we may change the AI for good.
AI code in DK2 IS built in EXE file. You just picked up wrong EXE file - the one that has 260kb is just a CD protector + splash screen shower.
Real EXE file has 2907kb.
The EXE file contains a few arrays that are used for AI. There are some values to change, but without any debug data it's even hard to say where exactly they start.
Summary: AI is made using static arrays inside EXE file. It works like a state machine - there's no AI Script. Everything is hard-coded, and only single parameters in arrays may be updated by values from inside levels.
So it's in the exe ... that's bad. I've changed in past some bytes in the exe but there where no effect, maybe I changed the wrong bytes .
Is there any way for us to find out where are the part of AI in the exe?
More important for me is to find out the positions where are the bugs "saved":
CHAT-BUG - The game crashes if one player use TAB to chat
MONEY-BUG - The game crashes if one players goldreserve goes under 0
PLAYER-BUG - The game crashes if one player presses Space, ESC or go out of the game when he/she is defeated
AI-BUG - The AI have problems dropping creatures with the "Hand of Evil"
RESET-BUG - When a player goes while DK2 is running to the desktop, sometimes some settings will be resetted
KEYBOARD-BUG - Keyboard settings will not be saved
BUTTON-BUG - Players can use Magic-Boxes more than one times
NORTH/SOUTH-BUG - Creatures in the south are more powerful than their opponents in the north
Can anybody something say about the control-settings? They will everytime not be saved.
For the Chat, Money and Player bugs, I'm wondering if it is caused by the game or by Hamachi.
For the Chat Bug, do the different languages can affect something?
For the Money Bug, how is it possible for the gold reserve to be negative?
For the Reset Bug, I don't catch it. All I know is that, setting a compatibility mode does that bug. Otherwise, it should be fine.
For the Keyboard Bug, keys are saved in a table in the Registry. Something to try would be to test all values and do some kind of guide.
For the Button Bug, it's cheating, simply. If someone does that in a multiplayer game (pressing the button twice very fast), just don't play with that cheater. He will ruin his reputation.
I like dragons! They're the center of my life! I'll never forget them...
Dungeon Keeper 2 Patch: With More Balance and Pie [Hiatus]
Forever Hiatus. Probably. Latest Version: 3.5 w/Levels 1-11 Revised.
The Awakening: GM Powers Activate!
Tesonu is napping!
And both games were in the same language?
I like dragons! They're the center of my life! I'll never forget them...
Dungeon Keeper 2 Patch: With More Balance and Pie [Hiatus]
Forever Hiatus. Probably. Latest Version: 3.5 w/Levels 1-11 Revised.
The Awakening: GM Powers Activate!
Tesonu is napping!
I didn't test it.For the Chat Bug, do the different languages can affect something?
On payday if you have not enough gold it goes for a second under 0.For the Money Bug, how is it possible for the gold reserve to be negative?
In the registry are only the "normal" settings saved. I can't find anything about keyboard settings.For the Keyboard Bug, keys are saved in a table in the Registry. Something to try would be to test all values and do some kind of guide.
How can hamachi be a problem for the game (chat, crashes)?
Weird. I know that when the total amount of gold for the payday is lower than your gold reserve, a red number is blinking in the gold reserve bar, showing a negative value. Is it that number that's causing the crash or it's really when a creature get his pay when the gold reserve is around 0, dropping it into a negative value?Originally Posted by Tomix
How about this:Originally Posted by Tomix
HKEY_CURRENT_USER >>> Software >>> Bullfrog Productions Ltd >>> Dungeon Keeper II >>> Configuration >>> Player >>> Key Table
Here, all the keys for the 63 different commands are stored.
I don't know. Perhaps some kind of incompatibility. I was just wondering.Originally Posted by Tomix
I like dragons! They're the center of my life! I'll never forget them...