LB for modem
ZXNet echo conference «code.zx»
From 500:812/08.29 → To to those who delve into Last Bat 1 April 1998
Hello everyone who see above
I am sending this letter (slightly shortened) by second
swarm again, because the first time it hit
BADS.
Introducing the map that is being unloaded
when selecting the "SAVE" option in the normal "LAST"
BATTLE" , (there are all the variables in order
bots and databases, etc.), it should be sent
bark on the modem,
or after each player action,
causing the map change to transmit
several bytes (this is of course more complicated and
not needed in a turn-based game)
or this is what I came up with (if only
memory):
before the player's turn, duplicate this
map (#2600 or less? bytes) to-
something in memory, then at the end of the ho-
yes compare these two cards by subtraction
old card from new (or vice versa):
old card:# 00 02 03 00 00 99 99 00
new card :# 01 02 03 03 02 99 98 00
compare card:# 01 00 00 03 02 00 FF 00
The comparison map will have a large
number of zeros or numbers (mostly)
close to it (#FE,#FF,1,2) because map
basically does not change, but various co-
ordinates and strength indicators, etc. change
vary slightly.
Then pack the comparison card
any suitable (in terms of speed and
algorithm) inserted by the packer and
transmit via modem, and on the second computer
do the opposite.
Thus, the transmitted block will be
reduced by several (especially at the beginning)
times. I have already tried this method on one
one of his games with the computer:
it was turn 80, I have a lot of troops, the computer(super brain level) too, though all
there are two skirmishes. comparison map after
my move was packed by LPC packer
(who remembers this one :) up to four sectors
!!! That is, you need to transfer everything
four sectors.
-+- ZXASM 3.00