vektorboson 8 Posted October 8, 2002 Hi all, I've got following problem: I want to create my own p3d-model for some 3D-Dialogs. Well I modelled a simple device with the selection "display" where my dialog shall be drawed on. I created my pbo with config, textures and p3d and put it in addons. I called the addon "vb_device" where "device.p3d" is the device model. I created my dialog ressource with object="\vb_device\device.p3d" and a CT_OBJECT_CONTAINER. Now when I try to create that dialog OFP crashes to the desktop without any detailed message what actually happened. Anyone who tried something similar? Share this post Link to post Share on other sites
Prospero 1 Posted October 9, 2002 Did you first try putting the object into the game with a setPos - i.e. to check it out in a very basic way? (I know it's silly, but I have to ask...) Prospero Share this post Link to post Share on other sites
vektorboson 8 Posted October 9, 2002 Yes, it is usable as a static object. Only when I try to use it in dialogs it crashes my OFP! Share this post Link to post Share on other sites
GAMEER_77 0 Posted October 9, 2002 My guess is that you need to define it in someway in the config.cpp. If you can, open up one of the existing models and look at their .cpp's. PEACE Share this post Link to post Share on other sites
vektorboson 8 Posted October 9, 2002 OK, I got my model into my dialog (without any change to the config or the model itself) That is, I used my p3d as a CT_OBJECT_ZOOM (CT_OBJECT worked also) but as soon as I use my model as CT_OBJECT_CONTAINER it crashes me to the desktop. I have defined a selection "display" on my device (that is that black face on the model and please don't b*tch about the model, it shall be proof of concept) This is, were all the controls should be on, but with CT_OBJECT_ZOOM there are no controls, so I need CT_OBJECT_CONTAINER, but there OFP crashes. So I think, this must be a p3d-related problem, any suggestions are welcome! Share this post Link to post Share on other sites
KTottE 0 Posted October 10, 2002 I suggest opening the blok model (note book) and see what selections that have. Better yet, open the laptop model (can't remember the name) and see what selections it have. Share this post Link to post Share on other sites
Lt. Jimbo 0 Posted October 12, 2002 laptop model is just laptop.p3d in the data3d.pbo file of Demo OFP Share this post Link to post Share on other sites
Dschulle 0 Posted October 13, 2002 it works like this: Create your model in O2. Make a selection in the geometry LOD, which is called Component01 (select the boundarys of your object) Create the following Selections in the Memory LOD: (e.g. you want to place your controls on the selection "screen") Screen (All 4 Pt's of the Screen) Screen TL (select Top Left Corner Pt) Screen TR (you can imagine the following)  Screen BL Screen BR In the description be sure to write model = "\Addon_Name\Item.p3d" if you have further questions, you know where to find me  -------------------------- AEF - Campaign Share this post Link to post Share on other sites
vektorboson 8 Posted October 17, 2002 OK, now I got it, look just the image above! I did as Dschulle told me, and had to make a quad of all 4 points, then it worked. Thanks to all and especially Dschulle! Share this post Link to post Share on other sites
GAMEER_77 0 Posted October 17, 2002 Wow, that's pretty sweet! Share this post Link to post Share on other sites
Guest BratZ Posted October 19, 2002 Wow good work, looks nice, nice tip, thanx Share this post Link to post Share on other sites
vektorboson 8 Posted October 20, 2002 Thanks, but I don't think that that was good work, but perhaps this could be good work: Soon to be released Share this post Link to post Share on other sites
kegetys 2 Posted October 20, 2002 Heh, I made a palm too yesterday: http://koti.mbnet.fi/kegetys/flashpoint/screenshots/palm2.jpg http://koti.mbnet.fi/kegetys/flashpoint/screenshots/palm6.jpg Share this post Link to post Share on other sites
vektorboson 8 Posted October 20, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Kegetys @ Oct. 20 2002,16:18)</td></tr><tr><td id="QUOTE">Heh, I made a palm too yesterday: http://koti.mbnet.fi/kegetys/flashpoint/screenshots/palm2.jpg http://koti.mbnet.fi/kegetys/flashpoint/screenshots/palm6.jpg<span id='postcolor'> two people, same idea Share this post Link to post Share on other sites
Dschulle 0 Posted October 20, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Kegetys @ Oct. 20 2002,16:18)</td></tr><tr><td id="QUOTE">Heh, I made a palm too yesterday: [..]<span id='postcolor'> nice work! nice company name Do the dialogs work? Or do you have to replace the complete config of OFP? Share this post Link to post Share on other sites
vektorboson 8 Posted October 20, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Dschulle @ Oct. 20 2002,16:39)</td></tr><tr><td id="QUOTE">Or do you have to replace the complete config of OFP?<span id='postcolor'> Na, the dialogs are defined in the resource.bin, so you have either to replace the resource.bin or create a mod-directory with your custom resource.bin Share this post Link to post Share on other sites
GAMEER_77 0 Posted October 21, 2002 Dagnabbit! Here's the sit: I've created the model, made the 4 points and named them in the memory lod, didn't quite get what dschulle meant when he talked about the geometry Lod (I just made a New Lod, changed it to geometry, attempted to select it all and named the selection component01). The current problem is the config. Since o2 is my first shot at OFP addons, i have no previous experience of .cpp editing. Although it's similar to .ext, i don't know any of the commands and would love someone to point me in the direction of where i can get a list of them. Anyways, could one of you kind fella's post your .cpp as a template for me and others who have yet to delve into .cpp? Thanks Oh, and another Q; When i've made my .pbo, does it go into the addon folder, the res/addon folder or in some other odd place? Thanks PEACE Share this post Link to post Share on other sites