ultimate-tester Posted August 22, 2008 Report Share Posted August 22, 2008 Hello everyone, In BFeditor you have the option for a object: Is Visible. If you uncheck this, your object is invisible. If you save, and loadup the game, your object is still visible. Im talking about a secret ladder I want to make. The ladder has to be invisible, so that nobody can see it. But.. If you walk to it, you have to climb. So the collision has still to be there.. How do I fix this? Gr. Ultimate-Tester Quote Link to comment Share on other sites More sharing options...
TNE26 Posted August 22, 2008 Report Share Posted August 22, 2008 why dont just clone a ladder, and make a invisible(transparent) texture for it.. thats the idea.. the experts will probably help you accomplish it Quote Link to comment Share on other sites More sharing options...
1/2Hawk Posted August 22, 2008 Report Share Posted August 22, 2008 Instead of carrying the load of all those polys and having to do the transparency checks to boot, the super easy way to do this is to: 1) Make a model of a single tiny triangle thats facing downwards so its hard to see. 2) Namel it whateveryouwant__Ladder (with two underscores), *or* after you export go in the .con and change the line that creates it from SimpleObject to a Ladder [ObjectTemplate.create Ladder whateveryouwant] 3) Change the collisionMesh to whatever ladder from BF2 thats the desired height. For a 10m tall ladder, change to ObjectTemplate.collisionMesh ladder_10m for example 4) Map the #0 material to a ladder material (6600) See now you can place that tiny triangle somewhere, but the important thing is that its dragging the col mesh of a real ladder with it, which is what the player interacts with to cause the climbing action. A good way to see your new invisible ladder when positioning on a map btw is to go in the Render menu and make the Decal meshes visible. The rungs will suddenly appear in yellow. My favorite thing to put invisible ladders behind are those tall vines you find west of the hotel on Karkand or the in the US base on Mashtuur. Note that you need the 6600 material for the game to recognize it as a climbing surface, but you'll also hear that chick-chick-chick sound when you climb it unfortunately. Quote Link to comment Share on other sites More sharing options...
ultimate-tester Posted August 22, 2008 Author Report Share Posted August 22, 2008 I discovered a way easier way.. Extract staticobjects.con from the server archive, find the ladder, and add the rule: Object.isVisible "0" But thanks for the help anyway! Quote Link to comment Share on other sites More sharing options...
ultimate-tester Posted August 22, 2008 Author Report Share Posted August 22, 2008 A good way to see your new invisible ladder when positioning on a map btw is to go in the Render menu and make the Decal meshes visible. Is there a way to do this ingame? Maybe a command that you need to put in the init.con? (c:\program files\ea games\battlefield 2\mods\bf2\init.con) Quote Link to comment Share on other sites More sharing options...
1/2Hawk Posted August 22, 2008 Report Share Posted August 22, 2008 Mmmm... might be a tiny chance that theres some obscure pulldown menu command to show the col meshes in game but I doubt it. Hit ~, type "renderer." and press Tab twice to see a list of all the commands available. You could also setup something custom in your map's tmp.con which would allow you to just have to reload the map instead of exiting the game completely. MS might have a tip how to do that (something he mentioned before but I cant for the life of me find that one post). Quote Link to comment Share on other sites More sharing options...
mschoeldgen[Xww2] Posted August 26, 2008 Report Share Posted August 26, 2008 (edited) Afaik, this only works with the debugger EXE : Launch your map and open the console with the 'End' key . Enter this sequence of commands ( in bold ) into it: collisionManager.buildDebugCollisionMeshes this will need a short moment collisionManager.draw Meshes 1 Remember that the <TAB> key is your friend for autocompletion of the command. This will show you the col0's of the objects (projectile collision ) for the first 3P geom. To switch the geom to the wrecks (where applicable, staticobjects don't have this) , enter collisionManager.setGeometry 1 switch back to the first geom with a 0 in this line. To switch the displayed col , enter collisionManager.setActiveLod N , where N is the colN to display. col0 - Projectile collision mesh col1 - Physics collision mesh ( vehicles, landscape ) col2 - Soldier collision mesh ( soldiers will collide with this mesh ) col3 - aux. mesh for navmesh generation - only on selected statics Note that no visual occlusion is rendered , so the colmeshes will shine through the terrain. Thats because the server ( which handles collision ) has no idea about visual objects. Edited August 26, 2008 by mschoeldgen[Xww2] Quote Link to comment Share on other sites More sharing options...
ultimate-tester Posted August 30, 2008 Author Report Share Posted August 30, 2008 thanks, I will try this. Quote Link to comment Share on other sites More sharing options...
ultimate-tester Posted August 30, 2008 Author Report Share Posted August 30, 2008 ehhmm... what is the debugger exe? after putting in the first command it says its a unautorized command Quote Link to comment Share on other sites More sharing options...
Bensta Posted August 31, 2008 Report Share Posted August 31, 2008 The debugger exe is the BF2_R.exe .... Tip: Press continue many many many many times... Quote Link to comment Share on other sites More sharing options...
mschoeldgen[Xww2] Posted August 31, 2008 Report Share Posted August 31, 2008 Ow, its really not so bad with BF2's built-in errors. You should encounter about ten errors about the hud setup ( DICE obviously tried to setup a secondary screen at one point in the development ) , the 'bandWidthChoke' error which the debugger is too old to recognize and about 8 errors about a componentID in a weapon used twice. That should be it. If there are other errors they are caused by your files. Quote Link to comment Share on other sites More sharing options...
ultimate-tester Posted September 1, 2008 Author Report Share Posted September 1, 2008 hmmm. i dont have a bf2_r.exe file in my bf2 directory.. aahhh.. doesn't matter. Ill find it..! TY anyway Quote Link to comment Share on other sites More sharing options...
A-Train Posted September 1, 2008 Report Share Posted September 1, 2008 I discovered a way easier way.. Extract staticobjects.con from the server archive, find the ladder, and add the rule: Object.isVisible "0" But thanks for the help anyway! Wait, what? Did this work? Does it work server side or does the client have to have this as well? Quote Link to comment Share on other sites More sharing options...
TNE26 Posted September 1, 2008 Report Share Posted September 1, 2008 hmmm. i dont have a bf2_r.exe file in my bf2 directory..aahhh.. doesn't matter. Ill find it..! TY anyway You only have the _r.exe if you have the editor installed. If you got the editor (which i think you have) something is very wrong.. Quote Link to comment Share on other sites More sharing options...
B4rr3l Posted January 30, 2018 Report Share Posted January 30, 2018 On 22/08/2008 at 11:46 AM, ultimate-tester said: I discovered a way easier way.. Extract staticobjects.con from the server archive, find the ladder, and add the rule: Object.isVisible "0" But thanks for the help anyway! Thank you Quote Link to comment Share on other sites More sharing options...
kaafirana Posted June 7, 2021 Report Share Posted June 7, 2021 To become invisible, an object must do two things: it must be able to bend the light around itself so that it does not cast shadows, and it must not reflect. Although natural materials cannot do this, a new type of material called metamaterials now makes it possible. April 11, 2007 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.