Skip to content

Commit 7f3abdd

Browse files
committed
Code signing update
Improvements to download and install of add-on. Pauline speaks some messages. Clear event queue to prevent freezing. Refresh list of arcade other roms after installing add-on
1 parent bad0b0b commit 7f3abdd

File tree

9 files changed

+41
-20
lines changed

9 files changed

+41
-20
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@
3939
/sounds/award1.mp3
4040
/sounds/award2.mp3
4141
/roms/gbcolor/gbcolor_dk_gw_gallery.state
42+
/dkwolf/dkwolf32_addon.exe
43+
/dkwolf/dkwolf_addon.exe
44+
/fonts/tom-thumb.bdc

build32_sign.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ echo Sign Windows 32bit executables - when build is not performed on host machi
66
echo ----------------------------------------------------------------------------------------------
77

88
echo **** Code sign program executables with Open Source Developer Certificate
9-
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool" sign /tr http://timestamp.apple.com/ts01 /n "Open Source Developer" dist\launch32.exe dist\dkwolf\dkwolf.exe
9+
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool" sign /tr http://timestamp.ssl.trustwave.com /n "Open Source Developer" dist\launch32.exe dist\dkwolf\dkwolf.exe
1010
pause

build64.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ rmdir build /s /Q
6565
del *.spec
6666

6767
echo **** Code sign program executables with Open Source Developer Certificate
68-
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool" sign /tr http://timestamp.apple.com/ts01 /n "Open Source Developer" dist\launch.exe dist\remap_pc.exe dist\dkwolf\dkwolf.exe
68+
"C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool" sign /tr http://timestamp.ssl.trustwave.com /n "Open Source Developer" dist\launch.exe dist\remap_pc.exe dist\dkwolf\dkwolf.exe
6969

7070
echo **** package into a release ZIP getting the version from version.txt
7171
set /p version=<VERSION
@@ -117,8 +117,8 @@ del dist\console_addon\roms\pc /s /Q
117117
del dist\console_addon\roms\dos /s /Q
118118

119119
echo **** Addon version of dkwolf 32 bit includes all drivers
120-
del dist\console_addon\dkwolf\dkwolf.exe /s /Q
121-
copy dkwolf\dkwolf_addon32.exe dist\console_addon\dkwolf\dkwolf_addon.exe /Y
120+
del dist\console_addon\dkwolf\dkwolf_addon.exe /s /Q
121+
copy dkwolf\dkwolf32_addon.exe dist\console_addon\dkwolf\dkwolf_addon.exe /Y
122122

123123

124124
%zip_path% a releases\add-ons\dkafe_console_addon_pack_%addon_version%_reduced.zip .\dist\console_addon\* -m0=LZMA -mx6

dk_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ def is_pi():
547547
COIN_INFO = ["Hey Jumpman!", '', "You must collect coins..", "to unlock more games", "", "Push COIN for game info", ""]
548548
FREE_INFO = ["Hey Jumpman!", '', "All arcades are free to play", "", "Push COIN to for game info", ""]
549549
TEXT_INFO = ["", "Push 'JUMP' to play or 'P1 START' for game options"]
550+
INSTALL_INFO = ["Hey, we're installing everything now", "Hang tight while we sort it all out", "It shouldn't take too much longer"]
551+
DOWNLOAD_INFO = ["Hey, we're downloading the add-on", "It's jam packed with cool stuff", "Hang on in there"]
550552

551553
NO_ROMS_MESSAGE = [
552554
"NO ROMS WERE FOUND!", "",

dk_patch.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,17 @@ def install_addons():
117117
return
118118
for addon in reversed(glob("dkafe_*_addon_*.zip")):
119119
# Installing message...
120-
from launch import write_text, update_screen, dk_font, pl_font, RED, GREY, MAGENTA, PINK, get_image
120+
from launch import write_text, update_screen, dk_font, pl_font, RED, GREY, MAGENTA, PINK, BLACK, INSTALL_INFO, get_image
121121
write_text("EXTRACTING ADD-ON PACK", font=dk_font, y=0, fg=RED)
122122
write_text("The console add-on pack is being extracted and installed.", font=pl_font, y=14, fg=RED)
123123
_g.screen.blit(get_image("artwork/sprite/pauline.png"), (0, 215))
124-
write_text("Please wait...", x=22, y=218, bg=MAGENTA, fg=PINK, bubble=True)
124+
write_text("Installing...", x=22, y=218, bg=MAGENTA, fg=PINK, bubble=True)
125125
pygame.draw.rect(_g.screen, GREY, [0, 245, 224, 8], 0)
126126
update_screen()
127127

128128
# Do Install
129129
try:
130+
_counter = 0
130131
with zipfile.ZipFile(addon) as zf:
131132
file_list = zf.namelist()
132133
for idx, file in enumerate(file_list):
@@ -142,10 +143,14 @@ def install_addons():
142143
_g.screen.blit(get_image("artwork/sprite/dk2.png"), (167, 205))
143144
else:
144145
_g.screen.blit(get_image("artwork/sprite/dk3.png"), (167, 205))
145-
pygame.draw.rect(_g.screen, RED, [0, 245, _progress, 8], 0)
146-
write_text(f'{_percent:.2f}' + "% installed", x=22, y=218, bg=MAGENTA, fg=PINK, bubble=True)
146+
pygame.draw.rect(_g.screen, RED, [0, 245, _progress, 8], 0) # progress bar
147+
pygame.draw.rect(_g.screen, BLACK, [22, 210, 150, 16], 0) # clear message
148+
write_text(INSTALL_INFO[int(_counter % (len(INSTALL_INFO) * 60) / 60)], x=22, y=218,
149+
bg=MAGENTA, fg=PINK, bubble=True)
150+
_counter += 1
147151
update_screen()
148152
zf.extract(file)
153+
pygame.event.clear()
149154
update_screen()
150155
zf.close()
151156
except:
@@ -158,6 +163,7 @@ def install_addons():
158163
for path in pathlist:
159164
os.remove(str(path))
160165
os.remove(addon)
166+
161167
return addon # restrict to install of 1 add-on for now
162168

163169

dkwolf/cfg/dkongjr.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<mameconfig version="10">
44
<system name="dkongjr">
55
<counters>
6-
<coins index="0" number="56" />
6+
<coins index="0" number="57" />
77
</counters>
88
</system>
99
</mameconfig>

dkwolf/plugins/skipstartupframes/src/startplugin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function ssf:startplugin()
175175
menuNotifier = emu.register_menu(menu_callback, menu_populate, _p("plugin-skipstartupframes", "Skip Startup Frames"))
176176

177177
-- otherwise MAME 0.227 and newer compatibility check
178-
elseif tonumber(emu.app_version()) >= 0.227 then
178+
elseif emu.app_version() >= "0.227" then
179179
emu.register_start(function()
180180
startNotifier = True
181181
start()

launch.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ def check_patches_available():
153153
_, _count = _s.read_romlist("romlist_addon.csv")
154154
_count += 2 # add "congo bongo" and "dkongjre" to count
155155
write_text(f"+ {str(_count)} CLONES, PORTS & HACKS IN THE CONSOLE ADD-ON PACK", font=pl_font, x=0, y=239, fg=WHITE)
156+
157+
# Refresh list of arcade other roms
158+
arcade_other = []
159+
for _rom in glob(os.path.join(ROM_DIR, "other", "*.zip")):
160+
arcade_other.append(os.path.basename(_rom).split(".")[0])
161+
globals()["ARCADE_OTHER"] = arcade_other
162+
156163
if applied_patches or installed_addons:
157164
jump_to_continue(0)
158165
else:
@@ -778,7 +785,7 @@ def get_addon():
778785
write_text("The console add-on pack is being downloaded.", font=pl_font, y=14, fg=RED)
779786
_g.screen.blit(get_image("artwork/sprite/pauline.png"), (0, 215))
780787
_g.screen.blit(get_image("artwork/sprite/dk0.png"), (167, 205))
781-
write_text("Please wait...", x=22, y=218, bg=MAGENTA, fg=PINK, bubble=True)
788+
write_text("Downloading...", x=22, y=218, bg=MAGENTA, fg=PINK, bubble=True)
782789
pygame.draw.rect(_g.screen, GREY, [0, 245, 224, 8], 0)
783790
update_screen()
784791
try:
@@ -790,11 +797,12 @@ def get_addon():
790797
if total_size > 0:
791798
chunk_size, download_size = 1024, 0
792799
with open(latest_addon_path, 'wb') as f:
800+
_counter = 0
793801
for chunk in r.iter_content(chunk_size=chunk_size):
794802
if chunk:
795803
f.write(chunk)
796804
download_size += chunk_size
797-
if pygame.time.get_ticks() % 30 == 0:
805+
if pygame.time.get_ticks() % 60 == 0:
798806
_progress = round((download_size / total_size) * DISPLAY[0])
799807
_percent = (download_size / total_size) * 100
800808
_g.screen.blit(get_image("artwork/sprite/dkblank.png"), (167, 205))
@@ -806,10 +814,13 @@ def get_addon():
806814
_g.screen.blit(get_image("artwork/sprite/dk2.png"), (167, 205))
807815
else:
808816
_g.screen.blit(get_image("artwork/sprite/dk3.png"), (167, 205))
809-
pygame.draw.rect(_g.screen, RED, [0, 245, _progress, 8], 0)
810-
write_text(f'{_percent:.2f}' + "% downloaded", x=22, y=218, bg=MAGENTA, fg=PINK, bubble=True)
817+
pygame.draw.rect(_g.screen, RED, [0, 245, _progress, 8], 0) # progress bar
818+
pygame.draw.rect(_g.screen, BLACK, [22, 210, 150, 16], 0) # clear message
819+
write_text(DOWNLOAD_INFO[int(_counter % (len(DOWNLOAD_INFO) * 60) / 60)], x=22, y=218,
820+
bg=MAGENTA, fg=PINK, bubble=True)
821+
_counter += 1
811822
update_screen()
812-
823+
pygame.event.clear()
813824
# Allow up to 10 seconds for the file to save fully.
814825
for i in range(0, 10):
815826
if os.path.exists(latest_addon_path):

readme.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ The latest releases are available to download from below. Refer to the [How to
2020
| -------------------------------------------------------------------------------------------------------------------- | ------- | -------------------------------------------|
2121
| [dkafe_win64_binary_v0.73.zip](https://github.com/10yard/dkafe/releases/download/v0.73/dkafe_win64_binary_v0.73.zip) | 0.73 | Windows 64 bit (x64) systems (Recommended) |
2222
| [dkafe_win32_binary_v0.73.zip](https://github.com/10yard/dkafe/releases/download/v0.73/dkafe_win32_binary_v0.73.zip) | 0.73 | Windows 32 bit (x86) systems |
23-
| [dkafe_winxp_binary_v0.67.zip](https://github.com/10yard/dkafe/releases/download/v0.67/dkafe_winxp_binary_v0.67.zip) | 0.67 | Windows XP only |
2423
| [dkafe_rpi4_image_v0.72.gz](https://github.com/10yard/dkafe/releases/download/v0.72/dkafe_rpi4_image_v0.72.gz) | 0.72 | Raspberry Pi 4 and 400 only |
24+
| [dkafe_winxp_binary_v0.67.zip](https://github.com/10yard/dkafe/releases/download/v0.67/dkafe_winxp_binary_v0.67.zip) | 0.67 | Windows XP (No longer maintained) |
2525

2626
* Windows binaries are digitally signed to ensure the origin of the files and their integrity.
2727
* DKAFE sources can also run on other systems, for example, see the section on installing to [Ubuntu Linux](#ubuntu-linux)
@@ -62,9 +62,9 @@ There is now a console add-on pack which adds 4 extra stages and is packed out w
6262
- Several Donkey Kong hacks and plugins made by me specifically for use with this frontend.
6363
- A custom lightweight version of WolfMAME built specifically for Donkey Kong, and it's clones and bootlegs.
6464
- MAME plugins and scripts that interface with the frontend to add cool features such as score targets, stage practice and a coaching mode.
65-
- A built in music playlist that features 14 fantastic Donkey Kong remix tracks by default.
65+
- A built in music playlist that features 16 fantastic Donkey Kong remix tracks by default.
6666
- Extensive configuration options.
67-
- An optional console add-on pack featuring over 300 ports, clones and hacks for 60 classic gaming systems.
67+
- An optional console add-on pack featuring over 300 ports, clones and hacks for 60 classic gaming systems, and a bonus arcade stage.
6868

6969
### The frontend does not include:
7070
- Roms or information on how to obtain them.
@@ -309,7 +309,7 @@ An optional add-on pack includes over 300 Donkey Kong ports and hacks for the fo
309309
- Watara Supervision
310310

311311

312-
The Donkey Kong console games will appear on the 4 extra stages (*Crazy Kong and Big Kong stages are exclusive to Win x64 platform).
312+
The Donkey Kong console games will appear on the 4 extra stages (*Crazy Kong and Big Kong stages are exclusive to Win x64 platform). There is also a bonus arcade stage.
313313
In unlock mode, you must play for a given amount of time to win coins instead of reaching a target score e.g. Play 2 minutes for 3rd prize, 4 minutes for 2nd prize and 8 minutes for first prize.
314314

315315
The default controls for these games have been configured to work with arcade controls. Typically press "P1 Start" or "Jump" to start.
@@ -716,7 +716,6 @@ I would love to get to the infamous killscreen on level 22. My current PB is 51
716716
## What's next?
717717

718718
- Add a test screen for the player controls and a welcome screen to set the initial frontend preferences.
719-
- Create an alternative frontend for vertical arcade games (like 60-in-1 board) with DK, Pacman, Ms Pacman, Galaga, Burger Time, Frogger etc. No roms will be provided.
720719

721720

722721
## Thanks to

0 commit comments

Comments
 (0)