4 years agoChanged the way tables are built. Changed the way vessels are assigned to protos. Added comments. Added event hooks in an attempt to dirty vessel caches when we change from them. RelayDatabase_Enhancements
Andy []
Changed the way tables are built. Changed the way vessels are assigned to protos. Added comments. Added event hooks in an attempt to dirty vessel caches when we change from them.

4 years agoMoved all of the vessel parsing code into the new RelayDatabase, which
Andy []
Moved all of the vessel parsing code into the new RelayDatabase, which
watches some events to dirty the cache when states change. Also modules
will no longer offer to transmit if their part is dead or deactivated.

4 years agoDeepened the tabular hash nesting.
Andy []
Deepened the tabular hash nesting.

4 years agoNow maintaining a hash table for ProtoAntennaRelays and using prefab modules to do the maths and stuff, in lieu of messing with persistence and stuff. Also made the error message prettier. proto_to_prefab
Andy Wilkinson []
Now maintaining a hash table for ProtoAntennaRelays and using prefab modules to do the maths and stuff, in lieu of messing with persistence and stuff. Also made the error message prettier.

I should commit more often.

4 years agoRevert "A bunch of stuff trying to use prefabs and protos instead of relying on"
Andy Wilkinson []
Revert "A bunch of stuff trying to use prefabs and protos instead of relying on"

This reverts commit 94849bc0a6aabeded04c8557b3266ff65d017a04.

4 years agoA bunch of stuff trying to use prefabs and protos instead of relying on
Andy []
A bunch of stuff trying to use prefabs and protos instead of relying on
false persistence data.

4 years agoAntennaRange.cfg: Added isAntenna to the part prefab for all parts with ModuleLimitedDataTransmitters.
Andy Wilkinson []
AntennaRange.cfg: Added isAntenna to the part prefab for all parts with ModuleLimitedDataTransmitters.

AntennaRelay.cs: Added a timer to prevent antennas from re-searching their nearest relay multiple times in a single transmission attempt.

Extensions.cs: Remove IsAntenna stuff because we want that to work without persistence data. Doesn't work yet.

ModuleLimitedDataTransmitter.cs:
* Changed DataRate to return a very tiny number if the antenna cannot transmit.
* Changed the transmission message to indictor if it is using a relay or not.
* Removed IsAntenna in favor of using the prefab... hopefully.

4 years agoRemoved the old ARmaxTransmitDistance hokum in favor of just fetching the value from the partPrefab. 0.6.0
Andy Wilkinson []
Removed the old ARmaxTransmitDistance hokum in favor of just fetching the value from the partPrefab.

4 years ago* AntennaRelay.cs:
Andy Wilkinson []
* AntennaRelay.cs:
* IAntennaRelay.cs:
* ProtoAntennaRelay.cs: Added new standard header.

* Extensions.cs: Added new standard header. Changed the way
ProtoAntennaRelays are built to give them a reference to their
ProtoPartSnapshot as well.

* ModuleLimitedDataTransmitter.cs: Added new standard header. Changed
the way maxTransmitDistance is fetched; now using partPrefabs to
avoid putting nonsense in the persistence file.

4 years agoA little refactoring and a new message to indicate if you are using a relay. Also fixed using distant relays instead of nearby Kerbin.
Andy Wilkinson []
A little refactoring and a new message to indicate if you are using a relay. Also fixed using distant relays instead of nearby Kerbin.

4 years agoHopefully the last bulk update for relays. Also includes a bunch of commenting.
Andy []
Hopefully the last bulk update for relays. Also includes a bunch of commenting.

4 years agoA bunch more changes. Relays mostly work now, I think, except for the infinite recursion.
Andy Wilkinson []
A bunch more changes. Relays mostly work now, I think, except for the infinite recursion.

4 years agoA whole bunch of changes to start making simple relays possible.
Andy []
A whole bunch of changes to start making simple relays possible.

4 years agoInitial pass at relay detection. Not working yet.
Andy Wilkinson []
Initial pass at relay detection. Not working yet.

5 years agoMade the CannotTransmit error a little prettier/more obvious.
Andy Wilkinson []
Made the CannotTransmit error a little prettier/more obvious.
A little bit of reorganizing to fit the fields, properties, methods arrangement of the Squad files.

5 years agoChanged the range reporting to 2 digits for cleanliness. AntennaRange-0.5.0
Andy Wilkinson []
Changed the range reporting to 2 digits for cleanliness.

5 years agoAdded the "m" suffix for distances in GetInfo and PostCannotTransmitError.
Andy Wilkinson []
Added the "m" suffix for distances in GetInfo and PostCannotTransmitError.

5 years agoAdded MuMech_ToSI to pretty up the ranges when we report them to users.
Andy Wilkinson []
Added MuMech_ToSI to pretty up the ranges when we report them to users.

5 years agoAdded PreTransmit checks to the scoring properties to make sure nonfunctional antennas don't win the check.
Andy Wilkinson []
Added PreTransmit checks to the scoring properties to make sure nonfunctional antennas don't win the check.

5 years agoAdded a long justification for the DataRate/DataResourceCost overrides.
Andy Wilkinson []
Added a long justification for the DataRate/DataResourceCost overrides.

5 years agoChanged nominalRange back to a float so we can load it from .cfg files.
Andy Wilkinson []
Changed nominalRange back to a float so we can load it from .cfg files.
Put in a hack for DataRate and DataResourceCost so that smaller antennas will be used when possible.

5 years agoChanged ALL the endlines.
Andy Wilkinson []
Changed ALL the endlines.
Also revised a couple of things. Probably mostly comments?

5 years agoChanged to a direct set of the ModuleDataTransmitter packetSize and packetResourceCost instead of our previous attempt at a dynamic overload that wasn't working.
Andy []
Changed to a direct set of the ModuleDataTransmitter packetSize and packetResourceCost instead of our previous attempt at a dynamic overload that wasn't working.

It seems to be working now!

5 years agoChanged a bunch of stuff to try to fix the NullReferenceException problem.
Andy []
Changed a bunch of stuff to try to fix the NullReferenceException problem.

5 years agoChanged up the scaling a bit and added the .cfg file complete with preliminary tuning.
Andy []
Changed up the scaling a bit and added the .cfg file complete with preliminary tuning.

5 years agoInitial commit.
Andy []
Initial commit.