[Gtkradiant] Problems with md3model on Mac OS X

James Dessart skwirl42 at gmail.com
Sat Sep 8 15:18:21 CDT 2007


I'm trying to get r175 working on Mac OS X, and after some fiddling to
get it to build, I'm having some trouble with the md3model module.
Here are my steps to repro:

Get GtkRadiant built on Mac OS X 10.4.9 (small code changes, can
submit if desired)
Run GtkRadiant
Choose Quake III
Right-click to place any item entity
Crash

It's crashing because the Model class in plugins/md3model/model.h
seems to hold onto invalid Surface objects. It would store pointers
(not sure how those came about), and once I had it ignore null returns
from new Surface, I got some invalid pointers pointing at unallocated
memory.

Everything else seems to work; I can create a brush, assign it a
texture, etc. I just can't load anything that radiant loads an md3
model for.

I also got the quake 2 tools built, after changing a couple of things.
Those seem to be working fine, I can compile a map and such. Some of
my fixes aren't portable, I just did them to get it building, but I
can clean them up if there's interest.

-- 
James Dessart
<http://skwirl.net/cody/>



More information about the Gtkradiant mailing list