Skip to content

Commit

Permalink
MM 4.1.0, make packetSize integer, changed some packetResourceCost fo…
Browse files Browse the repository at this point in the history
…r be more stockalike
  • Loading branch information
yalov committed Oct 18, 2019
1 parent 7298d8c commit 00d1509
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 16 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
ChangeLog:

## Version 2.1.0
* KSP 1.8
* MM 4.1.0
* packetSizes are integers,
* packetResourceCost is more stockalike

## Version 2.0.1
* KSP 1.7, remove KSP max version limit
* update localization
Expand Down
6 changes: 3 additions & 3 deletions CommNetAntennasExtension.version
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"DOWNLOAD": "https://github.com/yalov/CommNetAntennasExtension/releases",
"VERSION": {
"MAJOR": 2,
"MINOR": 0,
"PATCH": 1,
"MINOR": 1,
"PATCH": 0,
"BUILD": 0
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 7,
"MINOR": 8,
"PATCH": 0
},
"KSP_VERSION_MIN": {
Expand Down
6 changes: 6 additions & 0 deletions GameData/CommNetAntennasExtension/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
ChangeLog:

## Version 2.1.0
* KSP 1.8
* MM 4.1.0
* packetSizes are integers,
* packetResourceCost is more stockalike

## Version 2.0.1
* KSP 1.7, remove KSP max version limit
* update localization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"DOWNLOAD": "https://github.com/yalov/CommNetAntennasExtension/releases",
"VERSION": {
"MAJOR": 2,
"MINOR": 0,
"PATCH": 1,
"MINOR": 1,
"PATCH": 0,
"BUILD": 0
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 7,
"MINOR": 8,
"PATCH": 0
},
"KSP_VERSION_MIN": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PART
antennaType = RELAY
packetInterval = 0.35
packetSize = 2
packetResourceCost = 18.0
packetResourceCost = 24.0
requiredResource = ElectricCharge
DeployFxModules = 0
ProgressFxModules = 1
Expand Down
16 changes: 8 additions & 8 deletions GameData/CommNetAntennasExtension/Parts/RTantennas-patch.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
@MODULE[ModuleDataTransmitter]
{
@antennaType = DIRECT
@packetInterval = 0.6
@packetInterval = 0.3
@packetSize = 2
@packetResourceCost = 12.0
@packetResourceCost = 16.0
@requiredResource = ElectricCharge
@antennaPower = 5000000
@antennaCombinable = True
Expand All @@ -44,8 +44,8 @@
{
@antennaType = RELAY
@packetInterval = 0.35
@packetSize = 1.5
@packetResourceCost = 24.0
@packetSize = 1.0
@packetResourceCost = 16.0
@requiredResource = ElectricCharge
@antennaPower = 7000000000
@antennaCombinable = True
Expand All @@ -70,8 +70,8 @@
{
@antennaType = RELAY
@packetInterval = 0.35
@packetSize = 2.5
@packetResourceCost = 24.0
@packetSize = 3
@packetResourceCost = 30
@requiredResource = ElectricCharge
@antennaPower = 25000000000
@antennaCombinable = True
Expand All @@ -97,8 +97,8 @@
{
@antennaType = DIRECT
@packetInterval = 0.10
@packetSize = 2.5
@packetResourceCost = 20.0
@packetSize = 2
@packetResourceCost = 28
@requiredResource = ElectricCharge
@antennaPower = 500000000000
@antennaCombinable = True
Expand Down
Binary file removed GameData/ModuleManager.4.0.3.dll
Binary file not shown.
Binary file added GameData/ModuleManager.4.1.0.dll
Binary file not shown.
13 changes: 12 additions & 1 deletion release.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
./release_spacedock_utils.py
Public domain license.
author: flart, version: 11
author: flart, version: 12
https://github.com/yalov/SpeedUnitAnnex/blob/master/release.py
Script loads release-arhive to github and spacedock
Expand All @@ -24,6 +24,7 @@
import re
from shutil import copy
import zipfile
from tkinter import Tk

from git import Repo
from github import Github
Expand Down Expand Up @@ -69,6 +70,14 @@ def get_version(version_file, obj="VERSION"):
return version


def copy_to_clipboard(text):
r = Tk()
r.withdraw()
r.clipboard_clear()
r.clipboard_append(text)
r.update() # now it stays on the clipboard after the window is closed
r.destroy()

def get_description(path):
""" Get description of the last version in the changelog """
version = r"(#+ )?(Version )?\d(\d)?\.\d(\d)?\.\d(\d)?(\.\d)?(/\d(\d)?\.\d(\d)?\.\d(\d)?(\.\d)?)?( [(\"\')][^\n]*[)\"\')])?"
Expand Down Expand Up @@ -174,11 +183,13 @@ def publish_to_github(token, mod_name, version, last_change, is_draft, is_prerel
print("draft: {}\nprerelease: {}\n".format(DRAFT, PRERELEASE))
print("parsing "+ CHANGELOG +" ...")
LAST_CHANGE = get_description(CHANGELOG)
copy_to_clipboard(LAST_CHANGE)
print("- start of desc ------------")
print(LAST_CHANGE)
print("- end of desc --------------")
print("")


ZIPFILE = os.path.join(RELEASESDIR, MODNAME + "-v" + VERSION + ".zip")
if os.path.exists(ZIPFILE):
print(ZIPFILE + " already exists.")
Expand Down

0 comments on commit 00d1509

Please sign in to comment.