diff --git a/(4)CircuitBreakers1.0_PBP1.02.scx b/(4)CircuitBreakers1.0_PBP1.02.scx index e7005d9..7fdf43f 100644 Binary files a/(4)CircuitBreakers1.0_PBP1.02.scx and b/(4)CircuitBreakers1.0_PBP1.02.scx differ diff --git a/(4)Fighting Spirit_PBP1.02.scx b/(4)Fighting Spirit_PBP1.02.scx index 0a34e80..1fb47cc 100644 Binary files a/(4)Fighting Spirit_PBP1.02.scx and b/(4)Fighting Spirit_PBP1.02.scx differ diff --git a/(4)PBP_TEST.scx b/(4)PBP_TEST.scx index ff2af60..c99fb13 100644 Binary files a/(4)PBP_TEST.scx and b/(4)PBP_TEST.scx differ diff --git a/source/VERSION b/source/VERSION new file mode 100644 index 0000000..caea8fb --- /dev/null +++ b/source/VERSION @@ -0,0 +1 @@ +1.02 \ No newline at end of file diff --git a/source/main.py b/source/main.py index 9848918..ef47922 100644 --- a/source/main.py +++ b/source/main.py @@ -8,7 +8,8 @@ import unitloop import upgrade -VERSION = "1.02" +with open("source/VERSION", "r") as f: + VERSION = f.read() def onPluginStart(): diff --git a/source/test.py b/source/test.py index 0672ccd..3445a10 100644 --- a/source/test.py +++ b/source/test.py @@ -5,10 +5,10 @@ from eudplib import * -from main import VERSION - def onInit(): + with open("source/VERSION", "r") as f: + VERSION = f.read() eddfnames = [ "main_CircuitBreakers.edd", "main_FightingSpirit.edd", @@ -28,6 +28,7 @@ def onInit(): f.seek(0) f.write(output) f.truncate() + chkt = GetChkTokenized() SPRP = bytearray(chkt.getsection("SPRP")) @@ -38,19 +39,19 @@ def onInit(): UNIx = bytearray(chkt.getsection("UNIx")) UNIx[0:228] = b"\0" * 228 for i in range(228 * 8, 228 * 10, 2): - UNIx[i:i + 2] = i2b2(20) + UNIx[i:i + 2] = i2b2(30) chkt.setsection("UNIx", UNIx) TECx = bytearray(chkt.getsection("TECx")) TECx[0:44] = b"\0" * 44 for i in range(44 * 5, 44 * 7, 2): - TECx[i:i + 2] = i2b2(20) + TECx[i:i + 2] = i2b2(30) chkt.setsection("TECx", TECx) UPGx = bytearray(chkt.getsection("UPGx")) UPGx[0:61] = b"\0" * 61 for i in range(61 * 9 + 1, 61 * 11 + 1, 2): - UPGx[i:i + 2] = i2b2(20) + UPGx[i:i + 2] = i2b2(30) UPGx[i + 61:i + 63] = i2b2(0) chkt.setsection("UPGx", UPGx)