Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

MasterPlan

Visual planning ideaboard, by indie devs, for indie devs and creatives · By SolarLune

"Assertion failed" error on Windows, program will not start

A topic by squircle created Mar 14, 2020 Views: 314 Replies: 3
Viewing posts 1 to 4

This is when I build from latest source, but it also does this for all pre-made builds, including older ones, all at the same line of code. 

This computer is OpenGL 2.x only. Let me know if there are other specs you need to know

(1 edit)

Hello! 

I do wonder if it is because of that, as I believe MasterPlan (or more specifically, Raylib, which is what MasterPlan uses) requires an OpenGL version of at least 3.3; if the graphics card doesn't support it, then that might be the cause of the issue, as it seems like the window isn't being created properly. If you run MasterPlan through a console window and then check the output that way, does it display anything else?

It does not display anything else, if what you meant was running it through cmd.exe

According to github, Raylib-go supports back to OpenGL 1.1 if you compile it with the opengl11 / opengl21 build tag: https://github.com/gen2brain/raylib-go see "Build tags", but I'm not sure if it's as easy as just building it as such or if your entire software will break if you do this. If it's not so easy, and I don't really do so much software development and such just gamedev so this is a bit out of my league, I think I will try to figure out how to backport it to OpenGL 2 myself because I'd really like to use this software, it looks very cool

(2 edits)

Hello again!

So I looked into your suggestion and found that you were correct! You can easily build MasterPlan with OpenGL 2 support by adding 

-tags opengl21

to the `go` command. This means the run command would be:

go run -tags opengl21 ./

and the build command:

go build -tags opengl21 -ldflags -H=windowsgui -o MasterPlan.exe ./

Unfortunately, while I tried to modify the official builds to be built off of OpenGL 2.1, that caused black screens on Mac, so I can't adopt that change permanently. Sorry! I'll update the recommended system requirements for MasterPlan and see if I can update the build script to make this easier.