Bare.Game engine has been revised

Discussion related to the development of Bare Game http://www.baregame.org
sysrpl
Posts: 108
Joined: Thu Feb 05, 2015 6:31 pm

Bare.Game engine has been revised

Postby sysrpl » Mon Feb 09, 2015 3:37 am

Though the Bare.Game engine version 2 isn't ready yet, I've gone back to the github version and updated it to work with the latest fixes 3_0 branch of Free Pascal. I've also created new example project for it located in Bare.Game/examples/draw. Install instructions and other information is on github here:

http://github.com/sysrpl/Bare.Game

User avatar
blaisewirth
Posts: 2
Joined: Thu Feb 05, 2015 5:21 pm

Re: Bare.Game engine has been revised

Postby blaisewirth » Mon Feb 09, 2015 3:09 pm

I did the installation instructions and the example was successful. Amazing job!

I use Windows 8.1 x64 and Lazarus 1.4RC1 / 3.0.1 recommend adding these installation instructions for 64-bit Windows users

Code: Select all

Windows users download SDL 2 and rename SDL2.dll to libSDL2.dll and place libSDL2.dll in your C: \ Windows \ SysWOW64 folder.


and for some reason, I got this error message the first time you compiled the example:

http://i.imgur.com/E5A5Eal.png

Code: Select all

Compile Project, Target: draw.exe: Exit code 1, Errors: 1, Warnings: 1
Warning: Recompiling Bare.Graphics.Imaging.Windows, checksum changed for Bare.Graphics.Imaging
bare.graphics.imaging.windows.pas(12,23) Fatal: Cannot find Bare.Graphics.Imaging.Windows used by Bare.Graphics.Imaging,


I had to open the package barerun.lpk and compile again

google translator

sysrpl
Posts: 108
Joined: Thu Feb 05, 2015 6:31 pm

Re: Bare.Game engine has been revised

Postby sysrpl » Mon Feb 09, 2015 4:42 pm

Oh yeah that error. It's super damn annoying. It's a bug in Lazarus codetools, or maybe somewhere else in the IDE. I can't reproduce it regularly, but it seems to happen sometimes once you open/start a project with Bare Game and include the image loading units.

It's been the only real bug in the know issues page for two years now:

http://www.baregame.org/#topic_known_issues

Line 95 of Bare.Graphics.Imaging

http://github.com/sysrpl/Bare.Game/blob ... ng.pas#L95

The fact that I use dotted namespaces and the uses starts with the same first three identifiers "Bare.Graphics.Imaging" causes Lazarus to give that error sometimes, one time per opening a project. The solution as you noted to go to "Packages | Open Recent Package | barerun" and press compile. You don't have to leave the project to do that.

Please report this problem to the official Lazarus devs using the bug tracker:

http://bugs.freepascal.org/view_all_bug_page.php, mention codetools


Return to “Bare Game”

Who is online

Users browsing this forum: No registered users and 1 guest