Usefull B&W Glitch (CI)

Kratzean

Member
Joined
Feb 13, 2006
Messages
274
I found one of the most useful Glitches in B&W (CI).

With the Map Script line "SET_GLOBAL_LAND_BALANCE" you can change a lot of values in the Memory of the game, like an Gametrainer, because the limit for a maximal (or minimal) value is missed, to limit the area of memory, the Script line use.

For example you can change your player color with any colors you like (256x256x256 for RGB) and without using an extra program. So you can change for a single map a Color of a player.


For Creature Isle I found the combinations for the player Colors:
Player 1:
SET_GLOBAL_LAND_BALANCE(415871, xxx)
SET_GLOBAL_LAND_BALANCE(-303798, xxx)

Player 2:
SET_GLOBAL_LAND_BALANCE(415872, xxx)
SET_GLOBAL_LAND_BALANCE(-303797, xxx)

Player 3:
SET_GLOBAL_LAND_BALANCE(415873, xxx)
SET_GLOBAL_LAND_BALANCE(-303796, xxx)

Player 4:
SET_GLOBAL_LAND_BALANCE(415874, xxx)
SET_GLOBAL_LAND_BALANCE(-303795, xxx)

Player 5:
SET_GLOBAL_LAND_BALANCE(415875, xxx)
SET_GLOBAL_LAND_BALANCE(-303794, xxx)

Player 6:
SET_GLOBAL_LAND_BALANCE(415876, xxx)
SET_GLOBAL_LAND_BALANCE(-303793, xxx)

Player 7:
SET_GLOBAL_LAND_BALANCE(415877, xxx)
SET_GLOBAL_LAND_BALANCE(-303792, xxx)

The xxx-Values are float values. To use any color you want, you have to convert your Hex-Values into Float-Values.

Here are some Color-Values (the original Colors and the Colors from my tool).
Red: 2.3443261E-38
Green: 6.611915E-39
Purple: 2.0872485E-38
Skyblue/Turquoise: 6.610002E-39
Yellow: 2.350891E-38
Blue: 6.563367E-39
Orange: 2.3476266E-38
Black: 2.304891E-39
White: 2.3509886E-38
Grey: 1.456691E-38
Brown: 1.1777902E-38
Pink: 2.3439795E-38
Darkred: 1.17549435E-38
Darkgreen: 2.2959E-41
snd.Brown: 1.8789399E-38
Wheat: 2.256808E-38

Perhaps I can find some other values, for example the Alignment-Values of the other Players.

edit: The only problem is: If you save your game and load it after a Restart of the Game, only the original Script lines of "SET_GLOBAL_LAND_BALANCE" are stored into the Savegame. for example if you change your color to green for a map, after a Restart and loading of the Savegame, your color is red.

But until you keep your game on after this changes on a map, the changed values are avaiable on other maps (except, you use the same command of "SET_GLOBAL_LAND_BALANCE" too at this map) too, because it's a glitch.
 
I found the Code Combination für B&W1:

***B&W1 v 1.30***

Player 1:
SET_GLOBAL_LAND_BALANCE(409495, 1.5026957E-38)
SET_GLOBAL_LAND_BALANCE(-290191, 1.5026957E-38)
Player 2:
SET_GLOBAL_LAND_BALANCE(409496, 1.5026957E-38)
SET_GLOBAL_LAND_BALANCE(-290190, 1.5026957E-38)
Player 3:
SET_GLOBAL_LAND_BALANCE(409497, 1.5026957E-38)
SET_GLOBAL_LAND_BALANCE(-290189, 1.5026957E-38)
Player 4:
SET_GLOBAL_LAND_BALANCE(409498, 1.5026957E-38)
SET_GLOBAL_LAND_BALANCE(-290188, 1.5026957E-38)
Player 5:
SET_GLOBAL_LAND_BALANCE(409499, 1.5026957E-38)
SET_GLOBAL_LAND_BALANCE(-290187, 1.5026957E-38)
Player 6:
SET_GLOBAL_LAND_BALANCE(409500, 1.5026957E-38)
SET_GLOBAL_LAND_BALANCE(-290186, 1.5026957E-38)
Player 7:
SET_GLOBAL_LAND_BALANCE(409501, 1.5026957E-38)
SET_GLOBAL_LAND_BALANCE(-290185, 1.5026957E-38)

edit:
You can use both Scriptlines in combination for B&W and CI on a single map, I have tested it and the game doesn't crashed! :)

edit: "one" command cause a crash in my game (i don't have an idea, why), but on 1.30 it worked without problems.
 
That's really impressive haha, good find.
 
Yes, thx. In my opinion, it's better than a tool, because so we can make maps with individual player colors, for us as a player too.^^
 
oh by the way, since you seem quite interested in more advanced modding, check out these write ups I did about the technical changes in the patches hosted here: https://github.com/HandsomeMatt/bw1-patches

there's also stuff about emulating the black & white 1 online servers: https://github.com/HandsomeMatt/bw1-mp

mapselection.png


and other fun stuff on my github in general https://github.com/HandsomeMatt?tab=repositories (bw1-setup is the setup utility, BMWViewer is for Black & White 2 model files etc..) enjoy!

w4XKDu4.png
 
The B&W Viewer doesn't work. I wantet to show some of the models for modding, but the tool doesn't start.
 
Kratzean said:
The B&W Viewer doesn't work. I wantet to show some of the models for modding, but the tool doesn't start.

Sorry the BMWViewer on my GitHub is completely the wrong project folder. I've only so far been able to find the binary of my model viewer, however it is a .NET assembly so you can easily decompile the code for yourself if you wish. I have attached the viewer in a zip file below. It is incredibly basic, I also have an obj exporter somewhere that I will try to find for you. (which is how I displayed them in blender)

rJTVKPB.png
 
Back
Top