Skip to content

Commit 992be70

Browse files
YoshiRulzblack-sliver
authored andcommitted
Docs: Revise all docs mentioning Lua in EmuHawk (which are in English), and other misc. corrections (ArchipelagoMW#1782)
* Fix links to TASVideos.org using HTTP * Revise all docs mentioning Lua in EmuHawk which are in English resolves TASEmulators/BizHawk#3650 * Correct capitalisation of "BizHawk" in strings and camelCase identifiers * Use the term "EmuHawk" when referring to the app, in English docs --------- Co-authored-by: black-sliver <[email protected]>
1 parent 5b51b84 commit 992be70

33 files changed

+175
-174
lines changed

FF1Client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _cmd_nes(self):
3333
logger.info(f"NES Status: {self.ctx.nes_status}")
3434

3535
def _cmd_toggle_msgs(self):
36-
"""Toggle displaying messages in bizhawk"""
36+
"""Toggle displaying messages in EmuHawk"""
3737
global DISPLAY_MSGS
3838
DISPLAY_MSGS = not DISPLAY_MSGS
3939
logger.info(f"Messages are now {'enabled' if DISPLAY_MSGS else 'disabled'}")

OoTClient.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async def server_auth(self, password_requested: bool = False):
100100
await super(OoTContext, self).server_auth(password_requested)
101101
if not self.auth:
102102
self.awaiting_rom = True
103-
logger.info('Awaiting connection to Bizhawk to get player information')
103+
logger.info('Awaiting connection to EmuHawk to get player information')
104104
return
105105

106106
await self.send_connect()

PokemonClient.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async def server_auth(self, password_requested: bool = False):
7878
await super(GBContext, self).server_auth(password_requested)
7979
if not self.auth:
8080
self.awaiting_rom = True
81-
logger.info('Awaiting connection to Bizhawk to get Player information')
81+
logger.info('Awaiting connection to EmuHawk to get Player information')
8282
return
8383

8484
await self.send_connect()

Zelda1Client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _cmd_nes(self):
4646
logger.info(f"NES Status: {self.ctx.nes_status}")
4747

4848
def _cmd_toggle_msgs(self):
49-
"""Toggle displaying messages in bizhawk"""
49+
"""Toggle displaying messages in EmuHawk"""
5050
global DISPLAY_MSGS
5151
DISPLAY_MSGS = not DISPLAY_MSGS
5252
logger.info(f"Messages are now {'enabled' if DISPLAY_MSGS else 'disabled'}")

data/lua/common.lua

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ end
2727

2828
local is23Or24Or25 = (bizhawk_version=="2.3.1") or (bizhawk_major == 2 and bizhawk_minor >= 3 and bizhawk_minor <= 5)
2929
local isGreaterOrEqualTo26 = bizhawk_major > 2 or (bizhawk_major == 2 and bizhawk_minor >= 6)
30-
local isUntestedBizhawk = bizhawk_major > 2 or (bizhawk_major == 2 and bizhawk_minor > 9)
31-
local untestedBizhawkMessage = "Warning: this version of bizhawk is newer than we know about. If it doesn't work, consider downgrading to 2.9"
30+
local isUntestedBizHawk = bizhawk_major > 2 or (bizhawk_major == 2 and bizhawk_minor > 9)
31+
local untestedBizHawkMessage = "Warning: this version of BizHawk is newer than we know about. If it doesn't work, consider downgrading to 2.9"
3232

3333
u8 = memory.read_u8
3434
wU8 = memory.write_u8
@@ -94,12 +94,12 @@ function drawMessages()
9494
end
9595
end
9696

97-
function checkBizhawkVersion()
97+
function checkBizHawkVersion()
9898
if not is23Or24Or25 and not isGreaterOrEqualTo26 then
99-
print("Must use a version of bizhawk 2.3.1 or higher")
99+
print("Must use a version of BizHawk 2.3.1 or higher")
100100
return false
101-
elseif isUntestedBizhawk then
102-
print(untestedBizhawkMessage)
101+
elseif isUntestedBizHawk then
102+
print(untestedBizHawkMessage)
103103
end
104104
return true
105105
end

data/lua/connector_adventure.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ end
457457

458458
function main()
459459
memory.usememorydomain("System Bus")
460-
if not checkBizhawkVersion() then
460+
if not checkBizHawkVersion() then
461461
return
462462
end
463463
local playerSlot = memory.read_u8(PlayerSlotAddress)

data/lua/connector_ff1.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ function receive()
414414
end
415415

416416
function main()
417-
if not checkBizhawkVersion() then
417+
if not checkBizHawkVersion() then
418418
return
419419
end
420420
server, error = socket.bind('localhost', 52980)

data/lua/connector_ladx_bizhawk.lua

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
-- SPDX-License-Identifier: MIT
44

55
-- This script attempts to implement the basic functionality needed in order for
6-
-- the LADXR Archipelago client to be able to talk to BizHawk instead of RetroArch
7-
-- by reproducing the RetroArch API with BizHawk's Lua interface.
6+
-- the LADXR Archipelago client to be able to talk to EmuHawk instead of RetroArch
7+
-- by reproducing the RetroArch API with EmuHawk's Lua interface.
88
--
99
-- RetroArch UDP API: https://github.com/libretro/RetroArch/blob/master/command.c
1010
--
@@ -16,19 +16,19 @@
1616
-- commands are supported right now.
1717
--
1818
-- USAGE:
19-
-- Load this script in BizHawk ("Tools" -> "Lua Console" -> "Script" -> "Open Script")
19+
-- Load this script in EmuHawk ("Tools" -> "Lua Console" -> "Script" -> "Open Script", or drag+drop)
2020
--
2121
-- All inconsistencies (like missing newlines for some commands) of the RetroArch
2222
-- UDP API (network_cmd_enable) are reproduced as-is in order for clients written to work with
2323
-- RetroArch's current API to "just work"(tm).
2424
--
2525
-- This script has only been tested on GB(C). If you have made sure it works for N64 or other
26-
-- cores supported by BizHawk, please let me know. Note that GET_STATUS, at the very least, will
26+
-- cores supported by EmuHawk, please let me know. Note that GET_STATUS, at the very least, will
2727
-- have to be adjusted.
2828
--
2929
--
3030
-- NOTE:
31-
-- BizHawk's Lua API is very trigger-happy on throwing exceptions.
31+
-- EmuHawk's Lua API is very trigger-happy on throwing exceptions.
3232
-- Emulation will continue fine, but the RetroArch API layer will stop working. This
3333
-- is indicated only by an exception visible in the Lua console, which most players
3434
-- will probably not have in the foreground.
@@ -82,7 +82,7 @@ while true do
8282
-- "GET_STATUS PLAYING game_boy,AP_62468482466172374046_P1_Lonk,crc32=3ecb7b6f"
8383
-- CRC32 isn't readily available through the Lua API. We could calculate
8484
-- it ourselves, but since LADXR doesn't make use of this field it is
85-
-- simply replaced by the hash that BizHawk _does_ make available.
85+
-- simply replaced by the hash that EmuHawk _does_ make available.
8686

8787
udp:sendto(
8888
"GET_STATUS " .. status .. " game_boy," ..

data/lua/connector_oot.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ function receive()
18621862
end
18631863

18641864
function main()
1865-
if not checkBizhawkVersion() then
1865+
if not checkBizHawkVersion() then
18661866
return
18671867
end
18681868
server, error = socket.bind('localhost', 28921)

data/lua/connector_pkmn_rb.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function receive()
167167
end
168168

169169
function main()
170-
if not checkBizhawkVersion() then
170+
if not checkBizHawkVersion() then
171171
return
172172
end
173173
server, error = socket.bind('localhost', 17242)

data/lua/connector_tloz.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ function receive()
561561
end
562562

563563
function main()
564-
if not checkBizhawkVersion() then
564+
if not checkBizHawkVersion() then
565565
return
566566
end
567567
server, error = socket.bind('localhost', 52980)

docs/network diagram/network diagram.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ flowchart LR
3535
subgraph Final Fantasy 1
3636
FF1[FF1Client]
3737
FFLUA[Lua Connector]
38-
BZFF[BizHawk with Final Fantasy Loaded]
38+
BZFF[EmuHawk with Final Fantasy Loaded]
3939
FF1 <-- LuaSockets --> FFLUA
4040
FFLUA <--> BZFF
4141
end
@@ -45,7 +45,7 @@ flowchart LR
4545
subgraph Ocarina of Time
4646
OC[OoTClient]
4747
LC[Lua Connector]
48-
OCB[BizHawk with Ocarina of Time Loaded]
48+
OCB[EmuHawk with Ocarina of Time Loaded]
4949
OC <-- LuaSockets --> LC
5050
LC <--> OCB
5151
end

docs/network diagram/network diagram.svg

+1-1
Loading

host.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ tloz_options:
136136
# true for operating system default program
137137
# Alternatively, a path to a program to open the .nes file with
138138
rom_start: true
139-
# Display message inside of Bizhawk
139+
# Display message inside of EmuHawk
140140
display_msgs: true
141141
dkc3_options:
142142
# File name of the DKC3 US rom
@@ -178,8 +178,8 @@ adventure_options:
178178
# Alternatively, a path to a program to open the .a26 file with (generally EmuHawk for multiworld)
179179
rom_start: true
180180
# Optional, additional args passed into rom_start before the .bin file
181-
# For example, this can be used to autoload the connector script in BizHawk
182-
# (see BizHawk --lua= option)
181+
# For example, this can be used to autoload the connector script in EmuHawk
182+
# (see EmuHawk --lua= option)
183183
# Windows example:
184184
# rom_args: "--lua=C:/ProgramData/Archipelago/data/lua/connector_adventure.lua"
185185
rom_args: " "

worlds/adventure/Options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class RhindleMinimumSpeed(Range):
175175
class ConnectorMultiSlot(Toggle):
176176
"""If true, the client and lua connector will add lowest 8 bits of the player slot
177177
to the port number used to connect to each other, to simplify connecting multiple local
178-
clients to local BizHawks.
178+
clients to local EmuHawk instances.
179179
Set in the yaml, since the connector has to read this out of the rom file before connecting.
180180
"""
181181
display_name = "Connector Multi-Slot"

worlds/adventure/docs/setup_en.md

+15-16
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@
22

33
## Important
44

5-
As we are using Bizhawk, this guide is only applicable to Windows and Linux systems.
5+
As we are using BizHawk, this guide is only applicable to Windows and Linux systems.
66

77
## Required Software
88

9-
- Bizhawk: [Bizhawk Releases from TASVideos](https://tasvideos.org/BizHawk/ReleaseHistory)
9+
- BizHawk: [BizHawk Releases from TASVideos](https://tasvideos.org/BizHawk/ReleaseHistory)
1010
- Version 2.3.1 and later are supported. Version 2.7 is recommended for stability.
11-
- Detailed installation instructions for Bizhawk can be found at the above link.
11+
- Detailed installation instructions for BizHawk can be found at the above link.
1212
- Windows users must run the prereq installer first, which can also be found at the above link.
1313
- The built-in Archipelago client, which can be installed [here](https://github.com/ArchipelagoMW/Archipelago/releases)
1414
(select `Adventure Client` during installation).
1515
- An Adventure NTSC ROM file. The Archipelago community cannot provide these.
1616

17-
## Configuring Bizhawk
17+
## Configuring BizHawk
1818

19-
Once Bizhawk has been installed, open Bizhawk and change the following settings:
19+
Once BizHawk has been installed, open EmuHawk and change the following settings:
2020

21-
- Go to Config > Customize. Switch to the Advanced tab, then switch the Lua Core from "NLua+KopiLua" to
22-
"Lua+LuaInterface". Then restart Bizhawk. This is required for the Lua script to function correctly.
21+
- (≤ 2.8) Go to Config > Customize. Switch to the Advanced tab, then switch the Lua Core from "NLua+KopiLua" to
22+
"Lua+LuaInterface". Then restart EmuHawk. This is required for the Lua script to function correctly.
2323
**NOTE: Even if "Lua+LuaInterface" is already selected, toggle between the two options and reselect it. Fresh installs**
24-
**of newer versions of Bizhawk have a tendency to show "Lua+LuaInterface" as the default selected option but still load**
24+
**of newer versions of EmuHawk have a tendency to show "Lua+LuaInterface" as the default selected option but still load**
2525
**"NLua+KopiLua" until this step is done.**
2626
- Under Config > Customize, check the "Run in background" box. This will prevent disconnecting from the client while
27-
BizHawk is running in the background.
27+
EmuHawk is running in the background.
2828

29-
- It is recommended that you provide a path to BizHawk in your host.yaml for Adventure so the client can start it automatically
30-
- At the same time, you can set an option to automatically load the connector_adventure.lua script when launching BizHawk
29+
- It is recommended that you provide a path to EmuHawk in your host.yaml for Adventure so the client can start it automatically
30+
- At the same time, you can set an option to automatically load the connector_adventure.lua script when launching EmuHawk
3131
from AdventureClient.
3232
Default Windows install example:
3333
```rom_args: "--lua=C:/ProgramData/Archipelago/data/lua/connector_adventure.lua"```
@@ -63,11 +63,10 @@ path as recommended).
6363

6464
### Connect to the Multiserver
6565

66-
Once both the client and the emulator are started, you must connect them. Within the emulator click on the "Tools"
67-
menu and select "Lua Console". Click the folder button or press Ctrl+O to open a Lua script.
68-
69-
Navigate to your Archipelago install folder and open `data/lua/connector_adventure.lua`, if it is not
70-
configured to do this automatically.
66+
Once both the client and the emulator are started, you must connect them, assuming you didn't set it up to be automatic.
67+
Navigate to your Archipelago install folder, then to `data/lua`, and drag+drop the `connector_adventure.lua` script onto
68+
the main EmuHawk window. (You could instead open the Lua Console manually, click `Script``Open Script`, and navigate
69+
to `connector_adventure.lua` with the file picker.)
7170

7271
To connect the client to the multiserver simply put `<address>:<port>` on the textfield on top and press enter (if the
7372
server uses password, type in the bottom textfield `/connect <address>:<port> [password]`)

worlds/alttp/docs/multiworld_de.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- Hardware oder Software zum Laden und Abspielen von SNES Rom-Dateien fähig zu einer Internetverbindung
88
- Ein Emulator, der mit SNI verbinden kann
99
([snes9x rr](https://github.com/gocha/snes9x-rr/releases),
10-
[BizHawk](http://tasvideos.org/BizHawk.html))
10+
[BizHawk](https://tasvideos.org/BizHawk))
1111
- Ein SD2SNES, [FXPak Pro](https://krikzz.com/store/home/54-fxpak-pro.html), oder andere kompatible Hardware
1212
- Die Japanische Zelda 1.0 ROM-Datei, mit folgendem Namen: `Zelda no Densetsu - Kamigami no Triforce (Japan).sfc`
1313

@@ -106,7 +106,7 @@ kommunizieren darf.
106106

107107
##### BizHawk
108108

109-
1. Stelle sicher, dass der BSNES-Core in Bizhawk geladen wird. Dazu musst du auf das Tools-Menü in Bizhawk klicken und
109+
1. Stelle sicher, dass der BSNES-Core in BizHawk geladen wird. Dazu musst du auf das Tools-Menü in BizHawk klicken und
110110
folgende Optionen wählen:
111111
`Config --> Cores --> SNES --> BSNES`
112112
2. Lade die entsprechende ROM-Datei, wenn sie nicht schon automatisch geladen wurde.

worlds/alttp/docs/multiworld_en.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- Hardware or software capable of loading and playing SNES ROM files
77
- An emulator capable of connecting to SNI
88
([snes9x rr](https://github.com/gocha/snes9x-rr/releases),
9-
[BizHawk](http://tasvideos.org/BizHawk.html), or
9+
[BizHawk](https://tasvideos.org/BizHawk), or
1010
[RetroArch](https://retroarch.com?page=platforms) 1.10.1 or newer). Or,
1111
- An SD2SNES, [FXPak Pro](https://krikzz.com/store/home/54-fxpak-pro.html), or other compatible hardware. **note:
1212
modded SNES minis are currently not supported by SNI**
@@ -88,16 +88,15 @@ the lua you are using in your file explorer and copy the `socket.dll` to the bas
8888

8989
##### BizHawk
9090

91-
1. Ensure you have the BSNES core loaded. You may do this by clicking on the Tools menu in BizHawk and following these
92-
menu options:
93-
`Config --> Cores --> SNES --> BSNES`
94-
Once you have changed the loaded core, you must restart BizHawk.
91+
1. Ensure you have the BSNES core loaded. This is done with the main menubar, under:
92+
- (≤ 2.8) `Config``Cores``SNES``BSNES`
93+
- (≥ 2.9) `Config``Preferred Cores``SNES``BSNESv115+`
9594
2. Load your ROM file if it hasn't already been loaded.
96-
3. Click on the Tools menu and click on **Lua Console**
97-
4. Click Script -> Open Script...
98-
5. Select the `Connector.lua` file you downloaded above
95+
If you changed your core preference after loading the ROM, don't forget to reload it (default hotkey: Ctrl+R).
96+
3. Drag+drop the `Connector.lua` file that you downloaded above onto the main EmuHawk window.
9997
- Look in the Archipelago folder for `/SNI/lua/`.
100-
98+
- You could instead open the Lua Console manually, click `Script``Open Script`, and navigate to `Connector.lua`
99+
with the file picker.
101100

102101
##### RetroArch 1.10.1 or newer
103102

worlds/alttp/docs/multiworld_es.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- Hardware o software capaz de cargar y ejecutar archivos de ROM de SNES
1414
- Un emulador capaz de ejecutar scripts Lua
1515
([snes9x rr](https://github.com/gocha/snes9x-rr/releases),
16-
[BizHawk](http://tasvideos.org/BizHawk.html), o
16+
[BizHawk](https://tasvideos.org/BizHawk), o
1717
[RetroArch](https://retroarch.com?page=platforms) 1.10.1 o más nuevo). O,
1818
- Un flashcart SD2SNES, [FXPak Pro](https://krikzz.com/store/home/54-fxpak-pro.html), o otro hardware compatible
1919
- Tu archivo ROM japones v1.0, probablemente se llame `Zelda no Densetsu - Kamigami no Triforce (Japan).sfc`
@@ -126,7 +126,7 @@ ejecutas, puedes ser que el firewall de Windows te pregunte si le permites la co
126126

127127
1. Asegurate que se ha cargado el nucleo BSNES. Debes hacer esto en el menu Tools y siguiento estas opciones:
128128
`Config --> Cores --> SNES --> BSNES`
129-
Una vez cambiado el nucleo cargado, Bizhawk ha de ser reiniciado.
129+
Una vez cambiado el nucleo cargado, BizHawk ha de ser reiniciado.
130130
2. Carga tu fichero de ROM, si no lo has hecho ya.
131131
3. Haz click en el menu Tools y en la opción **Lua Console**
132132
4. Haz click en el botón para abrir un nuevo script Lua.

worlds/alttp/docs/multiworld_fr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- Une solution logicielle ou matérielle capable de charger et de lancer des fichiers ROM de SNES
1414
- Un émulateur capable d'éxécuter des scripts Lua
1515
([snes9x rr](https://github.com/gocha/snes9x-rr/releases),
16-
[BizHawk](http://tasvideos.org/BizHawk.html))
16+
[BizHawk](https://tasvideos.org/BizHawk))
1717
- Un SD2SNES, [FXPak Pro](https://krikzz.com/store/home/54-fxpak-pro.html), ou une autre solution matérielle
1818
compatible
1919
- Le fichier ROM de la v1.0 japonaise, sûrement nommé `Zelda no Densetsu - Kamigami no Triforce (Japan).sfc`

worlds/dkc3/docs/setup_en.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- Hardware or software capable of loading and playing SNES ROM files
99
- An emulator capable of connecting to SNI such as:
1010
- snes9x-rr from: [snes9x rr](https://github.com/gocha/snes9x-rr/releases),
11-
- BizHawk from: [BizHawk Website](http://tasvideos.org/BizHawk.html)
11+
- BizHawk from: [TASVideos](https://tasvideos.org/BizHawk)
1212
- RetroArch 1.10.3 or newer from: [RetroArch Website](https://retroarch.com?page=platforms). Or,
1313
- An SD2SNES, FXPak Pro ([FXPak Pro Store Page](https://krikzz.com/store/home/54-fxpak-pro.html)), or other
1414
compatible hardware
@@ -94,16 +94,16 @@ the lua you are using in your file explorer and copy the `socket.dll` to the bas
9494

9595
##### BizHawk
9696

97-
1. Ensure you have the BSNES core loaded. You may do this by clicking on the Tools menu in BizHawk and following these
98-
menu options:
99-
`Config --> Cores --> SNES --> BSNES`
100-
Once you have changed the loaded core, you must restart BizHawk.
97+
1. Ensure you have the BSNES core loaded. This is done with the main menubar, under:
98+
- (≤ 2.8) `Config``Cores``SNES``BSNES`
99+
- (≥ 2.9) `Config``Preferred Cores``SNES``BSNESv115+`
101100
2. Load your ROM file if it hasn't already been loaded.
102-
3. Click on the Tools menu and click on **Lua Console**
103-
4. Click the Open Folder icon that says `Open Script` via the tooltip on mouse hover, or click the Script Menu then `Open Script...`, or press `Ctrl-O`.
104-
5. Select the `Connector.lua` file included with your client
101+
If you changed your core preference after loading the ROM, don't forget to reload it (default hotkey: Ctrl+R).
102+
3. Drag+drop the `Connector.lua` file included with your client onto the main EmuHawk window.
105103
- Look in the Archipelago folder for `/SNI/lua/x64` or `/SNI/lua/x86` depending on if the
106104
emulator is 64-bit or 32-bit. Please note the most recent versions of BizHawk are 64-bit only.
105+
- You could instead open the Lua Console manually, click `Script``Open Script`, and navigate to `Connector.lua`
106+
with the file picker.
107107

108108
##### RetroArch 1.10.3 or newer
109109

0 commit comments

Comments
 (0)