Re: trueview port

Re: trueview port


Replies | Reply | Tomb Raider Level Editor & Utility Discussion Forum

Posted by Yuri Zhivago on March 14, 2000 at 05:51:25:

In reply to: trueview port posted by Wouter on March 14, 2000 at 00:04:39:

> I've compiled it on FreeBSD (using Mesa for OpenGL) but I get errors loading
> any level I tried, e.g. opera.tr2. Not sure what the problem is. I'm getting
> weird numbers for e.g. Level->NumObjectTextures which causes malloc errors or
> out of data reading non-existant objects when the level is read. Will report
> when it works.

I assume you're forcing byte-aligned structures? This is the most likely
culprit; you need to force byte alignment if possible (if not possible, you
have some work ahead of you). If you're using gcc, look at the
__attributes__((PACKED)) directive; you might need to add it to the end of
every element of every structure (unless they've added a "global packed
structure" command-line argument).

Another thing to verify is that the typedefs for bitu16, bit32, etc.
are correct for your FreeBSD environment (e.g. is "unsigned long" a 32-bit or
64-bit value? short == 16-bit? etc.) - see TR2PORT.H.

Yuri Zhivago



Replies:



Reply

Name:

Email:

Subject:

Message:

Optional
Link URL:

Link Title:

Image URL:


Replies | Reply | Tomb Raider Level Editor & Utility Discussion Forum