PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

v0.99 beta 2 available

Guys,

Beta 2 of v0.99 is available for download. This *should* be the final 0.99, but you know how these things go, so I'll call it beta 2 until I'm pretty confident everything is OK now. :)

Changes:
- Library now properly plays samples when no music is playing;
- EVC now compiles (still EVC 3.0 though);
- Some minor improvements in the ini file code.

Download URL:
http://overloaded.pocketmatrix.com/v0.99a%20-%20July%2015th,%202002.zip

This time the link should be clickable too. :)

Have a nice weekend;

- Jacco
- EVC now compiles (still EVC 3.0 though);


there is no "Overloaded_dist.vcw" in that package ?
i don't feel making it by myself :(

<<notice that the package file name is still 99a ? is there a 99b somewhere ?>>
I misspelled the 0.99b download url. The correct url is:

[url]overloaded.pocketmatrix.com/v0.99b - July 19th, 2002.zip[url]
Hi there,

i noticed some changed about IniFile reading between v0.99a and v0.99b

i mean:

Code:

CIString s_ini;
ScopedPtr<IniFile> IFile;

IFile.Reset( g_Factory->NewIniFile( "ini/game.ini" ) );

IFile->GetStringValue( mysection, mykey, s_ini );
//if ( s_ini != "" ) // do not work in v0.99b
if ( s_ini.c_str() != "" ) // do not work in v0.99a
myTga.Reset( g_Factory->NewSurface( s_ini.c_str() ));


well i'm asking because i have an assertion failed somewhere lower, (well err i think it's trying to de-allocate something ... not easy to say event with the assert macro :/ ) do we have something to do else ?

of course, when compiling in release32 nothing happens as said in the macro comments...
Mmm, that is really weird. But not entirely impossible. I'll look into it.

Cheers,

Jape
sorry guys, i come back on this cause i've been trying to find what's wrong all week end, with no success. i've clean up my code to a poor:
Code:

CIString s_ini;
ScopedPtr<IniFile> IFile;
IFile.Reset( g_Factory->NewIniFile( "ini/game.ini" ) );

and i fall on an assertion fail when i leave the method, as soon as i add that line:
Code:

IFile->GetStringValue( "section", "key", s_ini );


that's in VC++6 Win32 debug + v0.99b

i can see that s_ini has a valid value in the debugger executing step by step (my string: "Graphics/mygraph.tga" ) the assertion only comes up after the end of the method

what i don't understand (over the fact it doesn't work) is why do i have no assertion under 0.99a with the same code

btw: only GetStringValue gives this, GetIntValue do not.
Jaap: That looks like the same bug that Reinier had today... Let's do a diff in the morning.
Lwil, what is the exact assertion that you get? Normally I put descriptive messages into my asserts, so it has to say something. Is it 'section' not found perhaps?

In that case, does the ini file contain a section called [section]?

Cheers,

Jape
Hi Jape,

Yes the section is valid, if i debug step by step i can even see that s_ini takes the exact value of what is in the game.ini file. i can even use it to load my tga, it works.

that's later, when i get out of the method:

it goes to XSTRING ~basic_string()

it looks like it tries to free something then comes ine dbgheap.c ...

finally i get a user breakpoint calles from code and

Debug Assertion Failed!
File: dbgheap.c
Line: 1011
Expression: _CrtIsValidHeapPointer(pUserData)

!?!?

Cheers, Lewil
THanks Lewil, now I know what it is!

I ran into the exact same problem yesterday as well, and it is quite funny we didn't notice the problem before cause it has always been there.

Anyway, you need to build your libraries and appliction usign the "MultiThreaded DLL". This is the only way it is possible for a memory chunk to be allocated in the DLL, and released in the application. Using the "MultiThreaded DLL" setting (can be found in project->settings->codegeneration) a shared memory manager is used.

However, if you compile using MultiTHreaded DLL, you'll run into some problems with MikMod. Search for "#define MIKMODAPI" in all the sources, and make sure it is defined to nothing. That may result in a lot of warnings, but it will at least compile.

I'm sorry for all the trouble, we'll try to upload a fixed version next week, but at the moment we're transitioning some software so we can't do it right now.

If you still aren't able to fix it, let me know! If you need help really quickly, my icq nr is 19637432.

Cheers,

Jape
huhu :')

i correct the bug in sprite::draw() and i change the soundplay routine of the v0.99a and that's ok :')

we'll see that later... let's say for v1.00 ?

i have a funny question for all independant overloaded developpers: :twisted:

how many of you using v0.99a or v0.99b ? and how many of these succeeded in building an ARM version of his game with these versions ? :roll: