Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ikarth autoimport #158

Merged
merged 5 commits into from
Mar 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,10 @@ rom_generator/assets/

# Don't include the recursive assets
gbs_projects/assets

# Don't include the generated titles or backgrounds...
assets/backgrounds/_title*
assets/backgrounds/_generated*

node_modules
trash/*
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,21 @@
#### Develop Branch
![IntegrationTests](https://github.com/ikarth/game-boy-rom-generator/workflows/IntegrationTests/badge.svg?branch=develop)

Game Boy ROM Generator
# Game Boy ROM Generator

To run: `python -m rom_generator.unified`

To import new GBS templates: `python -m rom_generator.scenes.import -i "gbs_projects/<name of GBS file>.gbsproj"`


## Notes

The automatic compilation is a hack that only works on Windows, so you'll have to manually compile the games on other operating systems. This isn't a priority to fix, because the 2.0 version uses a different architecture that makes it less of an issue.

## Installation

(with Anaconda)
```
conda env create -f environment.yml
conda activate genboy_1
```
Binary file added assets/backgrounds/c_test_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/backgrounds/c_test_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/backgrounds/sewer_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/backgrounds/sewer_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/backgrounds/sewer_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/backgrounds/sewer_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/backgrounds/sewer_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/backgrounds/sewer_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/bubbles1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/bubbles2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/macguffin_bell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/macguffin_crystal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/macguffin_egg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/macguffin_sword.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions compile_rom.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@if (@CodeSection == @Batch) @then
@echo off
echo compiling %1

rem This is a really hacky way to do it, but I'm not going to bother
rem with anything fancier for version 1.0 of the generator.

set SendKeys=CScript //nologo //E:JScript "%~F0"


start "GBStudioCompiling" J:\Isaac\Dev\genboy\gbstudio\gb-studio.exe %1

echo Waiting for GB Studio to start...
ping -n 5 -w 1 127.0.0.1 > NUL

%SendKeys% "^7"

ping -n 5 -w 1 127.0.0.1 > NUL

%SendKeys% "+^N"
echo Compiling...

ping -n 20 -w 1 127.0.0.1 > NUL

echo Shutting down after 20 seconds...

rem powershell (get-process)
powershell (ps gb-studio).CloseMainWindow()

echo Finished compiling %1

goto :EOF

@end

// JScript section

var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.AppActivate("GB Studio");
WScript.Sleep(100);
WshShell.SendKeys(WScript.Arguments(0));

78 changes: 78 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: genboy_1
channels:
- spacy
- defaults
dependencies:
- atomicwrites=1.4.0=py_0
- attrs=19.3.0=py_0
- blas=1.0=mkl
- ca-certificates=2021.1.19=haa95532_1
- certifi=2020.12.5=py37haa95532_0
- colorama=0.4.3=py_0
- coverage=5.0=py37he774522_0
- freetype=2.10.4=hd328e21_0
- importlib-metadata=1.6.1=py37_0
- importlib_metadata=1.6.1=0
- intel-openmp=2020.1=216
- jpeg=9b=hb83a4c4_2
- libllvm9=9.0.1=h21ff451_0
- libpng=1.6.37=h2a8f88b_0
- libtiff=4.2.0=he0120a3_0
- llvmlite=0.33.0=py37ha925a31_0
- lz4-c=1.9.3=h2bbff1b_0
- mkl=2020.1=216
- mkl-service=2.3.0=py37hb782905_0
- mkl_fft=1.1.0=py37h45dec08_0
- mkl_random=1.1.1=py37h47e9c7a_0
- more-itertools=8.4.0=py_0
- numba=0.50.1=py37h47e9c7a_0
- numpy-base=1.19.1=py37ha3acd2a_0
- olefile=0.46=py37_0
- openssl=1.1.1j=h2bbff1b_0
- packaging=20.4=py_0
- pillow=8.1.2=py37h4fa10fc_0
- pip=20.1.1=py37_1
- pluggy=0.13.1=py37_0
- py=1.8.2=py_0
- pyparsing=2.4.7=py_0
- pytest=5.4.3=py37_0
- pytest-cov=2.9.0=py_0
- python=3.7.7=h81c818b_4
- six=1.15.0=py_0
- sqlite=3.31.1=h2a8f88b_1
- tbb=2020.0=h74a9793_0
- tk=8.6.10=he774522_0
- vc=14.1=h0510ff6_4
- vs2015_runtime=14.16.27012=hf0eaf9b_2
- wcwidth=0.2.4=py_0
- wheel=0.34.2=py37_0
- wincertstore=0.2=py37_0
- xz=5.2.5=h62dcd97_0
- zipp=3.1.0=py_0
- zlib=1.2.11=h62dcd97_4
- zstd=1.4.5=h04227a9_0
- pip:
- arrdem-datalog==2.0.1
- chardet==3.0.4
- cython==0.29.20
- decorator==4.4.2
- flake8==3.8.3
- idna==2.10
- imageio==2.8.0
- imageio-ffmpeg==0.4.2
- mccabe==0.6.1
- modernblaseball==0.5.6
- moviepy==1.0.3
- numpy==1.19.0
- proglog==0.1.9
- py-mini-racer==0.2.0
- pyboy==1.2.0
- pycodestyle==2.6.0
- pyflakes==2.2.0
- requests==2.24.0
- selenium==3.141.0
- setuptools==47.3.0
- tqdm==4.47.0
- tracery==0.1.1
- urllib3==1.25.9
prefix: F:\tools\Anaconda3\envs\gbromg
Loading