OpenB3d Mod error with BMax NG

Started by Xaron, March 18, 2022, 07:42:52

Previous topic - Next topic

Xaron

Hi there,

I just wanted to check out the good old BMax and OpenB3d. Installed everything plus the latest OpenB3d from git.

But when compiling the module I get an error that mod/openb3dstd.mod/d/inc/functions_std.bmax cannot be read.

When looking there, openb3dstd.mod does that:

Code: BASIC
Include "../openb3dcore.mod/inc/functions_std.bmx"


But actually that file isn't there, in that folder there are only:

Code: BASIC
openb3d.bmax
openb3dcore.bmax


Is that an error I can happily ignore?

Thanks!

edit: Apparently that was kind of a glitch. Never mind, works.

markcwm

Hi Xaron,

Quoteerror: mod/openb3dstd.mod/d/inc/functions_std.bmax cannot be read.

There is no d/ folder so I assume that's a typo.

I did a bit of a hack here and maybe that's what's BMK was complaining about. I made openb3dstd.mod a dummy module that links to functions_std.bmx in openb3dcore.mod so there was a way to separate the Blitz3d command list from the Openb3d command list.

Derron

As written in the Discord-channel it worked for me without blaming something.

I also mentioned the "/d" thin which is coming out of nowhere.

bye
Ron

Xaron

Well that /d was reported like that in the error message. But as it was there just once I guess all is good. :)

markcwm

Code: BASIC
Include "../openb3dcore.mod/inc/functions_std.bmx"


This must be the line causing the error, it's in openb3dstd.bmx, the d/inc is the last character from openb3dcore.mod, so somehow it gets truncated, it probably expects the path to be openb3dstd.mod, one character less.

Xaron

Ah yes, that makes sense! Thanks!

Derron

Quote from: markcwm on March 18, 2022, 21:20:06
Code: BASIC
Include "../openb3dcore.mod/inc/functions_std.bmx"


This must be the line causing the error, it's in openb3dstd.bmx, the d/inc is the last character from openb3dcore.mod, so somehow it gets truncated, it probably expects the path to be openb3dstd.mod, one character less.


So ... is this an issue in NG ? If so - describe in short what to do to replicate and I can raise an issue (or you do :D)


bye
Ron

markcwm

If Xaron is still reading this thread could you tell us what Blitzmax version and OS you were using when you got this error.

I haven't been able to reproduce this, I tested with NG 0.92 in Windows and BRL 1.52 and no errors. As Xaron said the error disappeared when he rebuilt so its not really a problem.

I've fixed it in my module by not using a relative path with Include "../file.bmx"

Xaron

I used BLIde with the latest released BMax NG (BlitzMax_win32_x64_0.129.3.45) and latest OpenB3D from github.

It actually happened when BLIde created the documentation for OpenB3D.

Derron

Cannot find the string "cannot be read" inside my bmx-ng folders (except for some js or C file-comments). So might as well be an error message in one of the Blide files.


bye
Ron

Xaron

Yeah that might be very well a BLIde problem. But no worries, everything's working. Sorry for the turmoil. ;)