I've ported my entire datafile-load-procedure from Blitz3D to BMax.
I've split up my project into separate .bmx files (it's more managable than having everything in one big source-file).
Zip-file with separate files: http://users.pandora.be/vge/SG/SG_SeparateFiles.zip
Zip-file with all code in 1 big sourcefile: http://users.pandora.be/vge/SG/SG_EntireFile.zip
When I run the project (file "SpaceGame.bmx", which include all other sourcecode-files), it produces an error on this line:
Error: Identifier "NumSec% not found
When I copy the entire contents of all other sourcefiles into the file SpaceGame.bmx, it runs perfectly.
Is there something missing from my part, or is it just that this project is run by the Beta-version?
I've made sure that all files (and pathnames) have no spaces in them.
Also, if I remove the file "Includes\IncludeAllSources.bmx" and copy the contents of this file into the main project file "SpaceGame.bmx", it seems it cannot find the function "GetParameterName", even if it's included before all classes.
Also, then I have to include the file Class_Sector.bmx" before the file "Class_Universe.txt", because it couldn't find the identier "TSector" when compiling the type TUniverse.
This is not required when all files are merged together.
And it seems that the "Include"-command is gone, is this replaced by the "Import"-command?
I've split up my project into separate .bmx files (it's more managable than having everything in one big source-file).
Zip-file with separate files: http://users.pandora.be/vge/SG/SG_SeparateFiles.zip
Zip-file with all code in 1 big sourcefile: http://users.pandora.be/vge/SG/SG_EntireFile.zip
When I run the project (file "SpaceGame.bmx", which include all other sourcecode-files), it produces an error on this line:
For i = 1 To Universe.NumSec%
Error: Identifier "NumSec% not found
When I copy the entire contents of all other sourcefiles into the file SpaceGame.bmx, it runs perfectly.
Is there something missing from my part, or is it just that this project is run by the Beta-version?
I've made sure that all files (and pathnames) have no spaces in them.
Also, if I remove the file "Includes\IncludeAllSources.bmx" and copy the contents of this file into the main project file "SpaceGame.bmx", it seems it cannot find the function "GetParameterName", even if it's included before all classes.
Also, then I have to include the file Class_Sector.bmx" before the file "Class_Universe.txt", because it couldn't find the identier "TSector" when compiling the type TUniverse.
This is not required when all files are merged together.
And it seems that the "Include"-command is gone, is this replaced by the "Import"-command?