FreeBSD (unix) port works

FreeBSD (unix) port works


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

Posted by wouter on March 14, 2000 at 11:54:16:

In reply to: Re: trueview port posted by Yuri Zhivago on March 14, 2000 at 05:51:25:


: 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).

It's __attribute__((packed)). I just placed it after each struct and that worked (made the error of placing it after the typedef'd name first...)

: 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.

That wasn't a problem.

I first thought it was a problem of game versions as trueview didn't work under winblows 95 when I started the program from a dos box. Later found it does work if I use 'open with' (->trueview.exe). windoze sucks. Didn't get many fps either: start of opera gives me 1.0 fps (ppro 200/voodoo3 200 PCI). Other levels/places give me from 4 to max ca. 15 fps.

Ok. It runs but incredibly slowly (will try the hw accelerated driver (linux binary) later).

I'm not fond of the direct struct reading though. If I provide you with code reading all components, will you use it in your future programs? (i.e. read structs using read_lsb_int16() type functions)

Wouter





Replies:



Reply

Name:

Email:

Subject:

Message:

Optional
Link URL:

Link Title:

Image URL:


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