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

Development instructions #9

Open
Mte90 opened this issue Jul 28, 2022 · 4 comments
Open

Development instructions #9

Mte90 opened this issue Jul 28, 2022 · 4 comments

Comments

@Mte90
Copy link

Mte90 commented Jul 28, 2022

It is not clear to me if how to compile or how to start a new project based on this code.
There are various examples or shell scripts but no list of requirements...

Also the examples doesn't have instructions on how to compile them so apart the Readme there aren't instructions.

@evanbowman
Copy link
Owner

I've created a project template here, and linked it from the readme in this repository:

https://github.com/evanbowman/bpcore-project-template/tree/master

@Mte90
Copy link
Author

Mte90 commented Jul 29, 2022

I will keep discussing here also if there is a repo as it is already opened.
So I executed the build and generated NewProject.gba but mgba crashes with a segmentation fault.

Also the build didn't output anything like an error or so.

I will share to you on the gbadev discord the gba rom if it is useful to debug.

@Mte90
Copy link
Author

Mte90 commented Aug 1, 2022

I was thinking to create a bash script to execute before build.lua that fix the colors of all the bitmaps.

convert background.bmp -type truecolor background.bmp
convert tiles/test.bmp -type truecolor tiles/test.bmp
output=$(./build.lua 2>&1)
if [[ -z "$output" ]]; then
    /usr/games/mgba-qt ./NewProject.gba
else
    echo $output
fi

@Mte90
Copy link
Author

Mte90 commented Aug 2, 2022

Also the rom after build still keep the name BPCoreEngine and not the one defined in the manifest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants