Skip to content

ded3d/noita_youtube_integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noita YouTube Integration mod v0.1.5

Thanks to dextercd for making this mod possible.

Installation

  1. If you already have a Google Projects API key with access to YouTube Data API v3, just paste it to key.txt file and jump to step 4. But if you don't, go to Google Cloud Developer Console. There you need to create a new project with any preferred name.
  2. Then go to YouTube Data API v3 page and enable it for your new project.
  3. Go to Credentials page and create a new API key (CREATE CREDENTIALS $\to$ API key), save the shown value.
  4. Download the dextercd/Noita-Dear-ImGui and unpack it to $NOITA_GAME/mods/.
  5. Download the latest mod release and unpack it to the mods directory.
  6. Paste the API key to key.txt file if you didn't.
  7. The mod is now ready to work!

Build

Windows

  1. Get the Rust and MSVC.
  2. Get the mod source code.
  3. Run the following Powershell script:
Get-ChildItem -Recurse -File -Include *.lua,*.toml | ForEach-Object { (Get-Content $_.FullName) | ForEach-Object { $_ -replace "`{VERSION`}", "0.1.5" } | Set-Content $_.FullName }
rustup target add i686-pc-windows-msvc
cargo build --release --target i686-pc-windows-msvc
Copy-Item -Path .\target\i686-pc-windows-msvc\release\yt_wrapper.dll -Destination .\lib\
  1. Rename the mod folder to youtube_integration.

Linux

  1. Get the latest rust and mingw-w64.
  2. Get the mod source code.
  3. Run the following script:
find . -type f \( -name "*.lua" -o -name "*.toml" \) -exec sed -i 's/{VERSION}/0.1.5/g' {} +
rustup target add i686-pc-windows-gnu
cargo build --release --target i686-pc-windows-gnu
cp ./target/i686-pc-windows-gnu/release/yt_wrapper.dll ./lib/
  1. Rename the mod folder to youtube_integration.