Currently, its only for Singleplayer untill I can find a function to add it onto in game.
Quote
Its so in single player campaigns you can save things like minerals, health, and other stuff to load in the next level.
What it does is quite simple: It allows you to read certain addresses, write them to a file, and reload them into the game at a later time. The addresses it will read will either be in the plugin itself, or in a file with a list of addresses in the .mpq. When it write the values, it will write them to a file named logfile.lgf in the same directory as the mod. The file format will look similar to this:
Code
R.A.W.R [Reading And Writing Ready] Plugin Created by A_of_s_t.
!8!660
Current format is:
Type|Address|Value
#
Int|0x0057F0D8|50
Int|0x0057F0DC|10050
Int|0x0057F0E0|50
Int|0x0057F0E4|50
Int|0x0057F0E8|50
Int|0x0057F0EC|50
Int|0x0057F0F0|50
Int|0x0057F0F4|50
#
Logfile.lgf Closed.
!8!660
Current format is:
Type|Address|Value
#
Int|0x0057F0D8|50
Int|0x0057F0DC|10050
Int|0x0057F0E0|50
Int|0x0057F0E4|50
Int|0x0057F0E8|50
Int|0x0057F0EC|50
Int|0x0057F0F0|50
Int|0x0057F0F4|50
#
Logfile.lgf Closed.
How the plugin will work will be that when a unit (currently the Overlord) is on the map, the plugin will write the addresses to a file and kill the overlord. When there is another unit (currently the uraj chrystal) is on the map, the plugin will read from this file in a generic way so that no matter what addresses are in the file (well, no ANY address, I'll be adding some checks in there so that no one messes with the game), they will be changed ingame according to the file.
I'm currently only done with the writing part of the plugin. I'll be adding in the ability to read addresses from a file to add them to the logfile.lgf later on tonight.
Questions, comments, ideas?
EDIT:
logfile.lgf format changed.
Number System added for reading how many values are in the logfile.lgf