More Progress!

Published June 26, 2007
Advertisement
Hooray!:


Well, it still doesn't read from a directory at runtime, but it is definetly progress. The dialog works great, and loads the levels as intended. Once I get boost working, the loading system will be complete.

On a side note, I'm glad I regularly play through the game to catch bugs[lol]:
Previous Entry Autosave
Next Entry I Winnar!
0 likes 6 comments

Comments

Sir Sapo
Are you using a Boost library to read in all the files in a directory at runtime? If so, that sounds really handy.
June 26, 2007 07:38 PM
Stompy9999
That's the plan, but I haven't been able to get boost working. I'll have another try at it tomorrow, because if I can get the boost filesystem library working in my project, than reading in the contents of the level directory will be really easy.
June 26, 2007 08:37 PM
Sir Sapo
Yeah, I tried for about 2 hours to compile the .libs for Boost::Filesystem, and I finally gave up, so if you manage to get everything working you should let me know[grin]
June 26, 2007 10:10 PM
Stompy9999
I just got it working after finding an installer with pre-built libraries. I had to actually rename the filesystem LIB file from starting with "boost_lib" to "libboost" in order to get it working.
June 26, 2007 10:45 PM
mldaalder
That's odd, I never had any problem with compiling Boost.

For example, their latest release, I put the boost_1_34_0 and the boost-jam-3.1.14-1-ntx86 directories in the same directory (in my case E:\)
Then I went through the command line to boost_1_34_0 and typed:
..\boost-j <tab> \bjam --toolset=msvc stage

I know that isn't the proper thing to do, I think. But it works.
Btw, the <tab> means that I pressed "Tab" there. It does autocomplete for you (tab again to see more results, but in my case one was enough). This way, the starting directory is the boost dir, and bjam will see the boost bjam file(s).


The only thing I haven't managed to get to work is the Serialization library.
Not even the examples compile.
Also, I never had to do anything with the lib files, I didn't even have to #pragma lib them (or add them to the linker arguments). Boost does that all for me. ^_^
I wish Loki would do that...
June 27, 2007 04:23 AM
Stompy9999
When I built the filesystem library with bjam, the lib files that were produced were not the ones I needed. I needed the lib file for a Multithreaded DLL Debug program. Even after installing the pre-built libraries, I was still getting errors because my lib files began with "boost" when it was looking for a lib file that began with "libboost". So, I renamed the filesystem lib file to begin with "libboost", and now it works.
June 27, 2007 10:05 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement