Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign in to follow this  
Guest Mauler

3 - advanced Advanced Building Tutorial - Author: Läubi

Recommended Posts

Guest Mauler

renx_ico.gif RenX / le_ico.gif Leveledit

 

Make your own Building:

a Step by Step to create a full functional building like the Westwood ones.

Important!! Read this tutorial carefully. 
If something didn`t work as you have expected it, check the coresponding part of the tutorial if you have not miss a thing.

 

  1. First of all, of course you need you building. I used for this tutorial is the Atreides Weapon factory for the Battle for Dune Mod
    image-42-01_GEB.JPG

    It is important that you move your whole building to the center of RenX.
    You also should already have setup all collision settings.
     
  2. Now select all the meshes that are part of the EXTERIOR. This should be all parts of the exterior of the bulding, excluding any emitters, animations or doors.
    image-42-02_EXTMESH.JPG

    Then goto the W3D-Tools --> Assign Node Names:
    image-42-03_ASINGNAMES.JPG

    In the following dialog uncheck/check the Options you see on the screen below, enter at the Root Name: entry a short name, e.g. atrwep (atreides weponfactory) followed by a ^.
    You should write this down. because youll need that later, I`ll refer to this name as the Meshprefix later.
    The Meshprefix should NOT exceed 6 characters.
    image-42-04_ROOTNAMES.JPG
     
  3. Congratulation you have now created a buildings exterior. Now goto Group --> Group and enter a name (e.g. wep_ext)
    image-42-05_GROUP.JPG
     
  4. Now hide your ExteriorGroup and unhide all parts of the interior, again excluding any emitters, animations or doors.
    image-42-06_INT.JPG

    Again select all meshes and open the same dialog as for the interior. Enter the Meshprefix followed by a #.
    image-42-07_INT_2.JPG

    Again Group this and name it for example wep_int:
    image-42-08_GROUP_INT.JPG
     
  5. Now we will add the doors, emitters as well as animate them for the later use.
    If you have already done this, you can just skip this part.
    For the doors I`ll use the standard Rengade MP ones, but of course you can make your own ones.
  6. As you can see, I have unhidden the Ext/Int-Group to better align things. For the doors you need the name of the preset of the door, the standard Rengade doors name is `mpdr_0` create a box 1x1x1 at the topview, and place it at the location where the door should be placed, name the box : mpdr_0~ (or the name your door-preset has in Leveledit + a ~ ) add a 00 after the ~ for the first, a 01 for the second and so on.
    When you have placed all doors, group the doors e.g. as wep_doors.

    image-42-09_DOORS.JPG


    When you are done with the doors, you need some damage emitters. You can make your own with W3D-Editor or use Renegade ones, extract them with XCC_Mixer you can identify them by the leading e_ (e.g.e_19fire1.w3d). For all Emitters you should extract (or download) the e_master01.tga so you can see the emitter effects:
    image-42-10_EMITTER.JPG

    Now create three boxes (1x1x1) named: emitter0, emitter25, emitter50, emitter75. I will refer to this as the `DamageBox`.
    After that, create 1x1x1 boxes named like the emitter file (without the w3d) that should be displayed later, in this case e_fire1. I will refer to this as `EmitterBox`.
    IMPORTANT: Never just rename the emitter file!! You must edit the name in w3d-Viewer and re-export it or the file will not be loaded or even crash Renegade!!!
    Now link the EmitterBox to the DamageBox emitter75 if this emitter should be showed up at the state for when the building is 25% damaged, emitter50 for half damged, emitter25 when the bulding is damaged by 75% and emitter0 when the building is detroyed.

    For this use the Link tool 
    image-42-11_LINK.JPG image-42-12_DRAG.JPG
    and klick and drag from your EmitterBox to your DamageBox (The damage box will flash for about 2 sek when this is done succesfull.

    Then place all around your building emitters or objects that should be displayed at the different states and link them to the coresponding DamageBox.
    I recommend to save your work now if you have not done this before!!
  7. Now we must make an animation, so Renegade later know what parts must be showed at the damage states.
    For that you should reopen RenX, because the `Trackview` that we will need often conflicts with the RenegadeMaterialEditor for Gmax, restarting RenX solves the problem.
    Open now the `Trackview`: image-42-13_TRACKVIEW.JPG
    On the Trackview browse to Objects --> emitter75:
    image-42-14_TW2.JPG
    Add a visibility track by clicking the eye icon image-42-15_EYE.JPG that will add a new option to your Object:
    image-42-16_VISIBLTRACK.JPG
    Click on the new option and add via the image-42-17_ADDKEYS.JPG at frame 1, 2 and 3 a new key.

    image-42-18_ADDKEYS.JPG

    Rightklick the first key and change the value to 0 (invisible)
    image-42-19_KEYOPTION.JPG

    Now change this also for key2. The trird key must not be changed and should stay at value 1 (visible)

    Repeat this process for all other DamageBoxes, but switch the keys to the following:

    When you have done this, group all DamgeBoxed and the EmitterBoxes e.G wep_emitter

    • emitter50 frame 1,4,5
    • emitter25 frame 1,6,7
    • emitter0 frame 1,8,9
    • Now we will prepare the PT and the MCT (This is optional)
      Your PT`s and MCT can have also animations like the damage emitters. For the PT`s you might want to add animations for a powerless building like westwood does. for thsi jsut create four more emitter boxes( emitter0p, emitter25p and so on) and count up the last frame by one for each state liek you have seen in Section 6.

      Select all MCT Meshes and use the naming tool that is described in Section 2, and use as a basename the meshprefix#mct (e.g. atrwep#mct). repeat this for the PT`s also but use meshprefix#pt here (e.g. atrwep#pt)
      Group all your PT`s and the MCT to a seperate group, e.g. wep_pct and wep_mct
    • Exporting time.
      Now you must export all parts for the use in Leveledit.

      Export:
      * the Interior Group as mesprefix_int (Renegade Terrain)
      * the Doors Group as meshprefix_doors (Renegade Terrain)
      * the Damage and Emitter as meshprefix_dam (Hirachy Animated Model)
      * The MCT Group as meshprefix_mct (Hirachy Animated Model)
      * The PT Group as meshprefix_pt (Hirachy Animated Model)

      In my example I`ll get 5 files: atrwep_int.w3d, atrwep_doors.w3d, atrwep_dam.w3d, atrwep_mct.w3d, atrwep_pt.w3d
      image-42-20_W3DS.JPG
      Copy all these files into Your modfolder if you have not done this already, a seperate folder e. g. buildingparts would be a nice idea.
      image-42-21_FOLD.JPG
    • Setup your exterior mesh for use in Maps.
      You might wonder what will happen to the exterior mesh. We must jsut setup some very simple parts to finish this:
      create a box from the TOPVIEW (1x1x1) in the EXACT center of Gmax/Renx. Name this box meshprefix_int~, then clone the box (or create a new one) and name it meshprefix_doors~ and so on for all w3d`s you have exportet in part 8. then select all these boxes and activate the [x] Hide and [x]Aggregate w3d option.
      image-42-23_W3D.JPG

      After that select your ExteriorMesh and these Boxes and group them to for example AtreidesWeponfactory and save your work.
      You can now Merge this Group into your map(s) like the orginal westwood buildings.
    • Setup everything in Leveledit.
      Now start the Leveleditor and Load your Modpackage.

      Goto Terrain-->Add and enter a name, e.g. mybuildings
      image-42-24_LEADGROUPT.JPG

      Select this new group and press again add. Enter as name meshprefix_doors (e.g. atrwep_doors) and under the settings tab under m_Modelname select your _doors w3d file.
      image-42-25_W3DSEL.JPG
      Repeat this part also for the mesprefix_int w3d file, you`ll then has 2 new entry`s:
      image-42-26_GROUP.JPG

      Now change to the Tiles Tab and again press add create a new entry named: mybuildingtiles under the Physics Type select BuildingAggregate.
      image-42-27_BLDAGTILES.JPG

      Select this new group and once again press add, enter as name: meshprefix_dam, under the Physics Model be sure that the type is Building Aggregate, change the Model Name to your coresponding w3d file, the AnimationMode to Manual
      image-42-28_SETUP_DAM.JPG

      Scroll down to the Building Behavior Settings and change the AnimLogicMode to ANIM_LOGIC_SEQUENCE.
      The Buidling state for 75% to 1, 1 as showed below, for 50% 2,2 for 25% 3,3 for detroyed 4,4.
      Repeat this also for the State: Power OFF.
      image-42-29_SETUP2.JPG

      After that press OK, again use the add, now enter as name: meshprefix_mct (e.g atrwep_mct), select the needed w3d, setup everything like before, but check the checkbox labled [x] IsMCT.
      If your MCT also has animation sequences, you must set them up coresponding to your animation as described above.
      image-42-30_MCT.JPG

      Again add another tile, name it meshprefix_pt, set it up as explained for the MCT, but let the [ ] IsMCT uncheked.

      Now you have three new entrys in your mybuldingstiles group:
      image-42-31_FINALY.JPG
    • Congratulations!!!
      You are finished now. Add your Building Group you have created in part 9 to your map via the MERGE command in RenX/Gmax, export it as Renegade Terrain and enjoy your bulding.
    • One Last Step:
      To make your building work ingame you have to Clone wia the ADD button one of the Buildingcontrollers, for example mine is a Weponsfactory, so I clone the GDI_Weponsfactory:
      image-42-32_CLONE.JPG

      You can name it whatever you want.... but you must fill in the MESHPREFIX into the coresponding field:
      image-42-33_MESHPREFIX.JPG

      Of course you can edit other settings like health in this dialog too,play around abit with these settings 
    • Have Fun by detroy all your hard work ingame 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Unstoppable
      This is a modify of Building Health Sounds. Originally created by Xpert from Atomix. Plugin reports building health percents and destruction imminents ingame with EVA sounds like below. If you see bug, let me know in comments or mail me canozkan145@gmail.com
       
      [BldWarning] The GDI Power Plant health at 75 percent.
      [BldWarning] Warning - GDI Power Plant - Destruction imminent.
       
      NOTE: Some buildings in some maps not reporting their health percent. I realized that and working on a fix.
    • By zunnie
      Place the obelisk controller like this on the Obelisk in your map:

       
       
      Goto the properties of the obelisk controller and substract 41 from the Z value, enter the new value in the Z box and press OK.
      In this example:
      Old Value = 28.009
      Substract - 41.000
      New Value = 12.991

       
       
      The controller will jump underneith the map, this is fine, and supposed to happen.

       
      Now when you play your map the obelisk will fire from the red top.
    • By zunnie
      The Environment Setup Tutorial
      This tutorial will attempt to learn you how to setup your entire working environment for creating maps in gMax and the free provided Renegade Public Tools v2.
      It includes all the tools you need and they should be installed in this particular order:
       
      1- The gMax Installation Files and Registration ByPass. (NOTE: Windows 8+ and 10 are NOT supported, you'll need Windows 7 or XP Pro to use gMax without glitches, there is NO fix for this.) 2- The official Renegade Public Tools version 2 from Westwood Studios. (Works fine with 8+ and 10) 3- The unofficial LevelEditor from Tiberian Technologies for support with 4.6 Scripts Update. (Works fine with 8+ and 10) 4- Some (semi) Critical Assets required for making a map for Renegade in gMax/RenX. 5- The XCC mixer i personally have been using since i don't know when, it's the best eventhough it's not the latest.  
      Environment Guide Package
      Download the file i prepared as zip from the MPF download area:
       
      Once it is downloaded, make sure you unblock the file by going to the zip properties and clicking "Unblock" BEFORE you extract it.

       
      In this tutorial i will install EVERYTHING to do with mapping for Renegade in my folder on the D drive in "Renegade-Mapping".


      Go ahead and extract the zip somewhere, open it in a new window:
      And then copy the contents somewhere:

       
      Go into the #Installs folder that you extracted inside the Renegade-Mapping folder


      Step 1 - Install gMax and apply the registry fix
      We need to install gMax first, you MUST install it first or it won't work properly later.
      Open the gmax12+bypass.zip and copy files into your #Installs folder and then run gmax12.exe to install it.
      In this guide i am installing directly into the Renegade-Mapping folder so the endresult will be something like the following:

      Now, because the author of gMax doesn't send out emails anymore to register gMax for free, there is included a Autodesk.reg file, right click on that and choose Merge and when promted do Yes to merge it.


      When installation is done and you merged the registry thing, then run gMax for the first time.
      You will be prompted to select a rendering device, here you choose "Direct 3D" and continue.
      Once it has fully loaded you must exit gMax again.
       
       
      Step 2 - Install the official Renegade Public Tools v2
      Extract the file Renegade_Tools_Installer_2.zip and run the executable, install it into your Renegade-Mapping folder, endresult should look simular to this:

       
      Go into the folder LevelEdit and you will see these files:

       
      Now delete (yes delete permanently) the LevelEdit.exe that is currently there, the original from Westwood.
      Extract the file LevelEdit46.zip and copy the resulting LevelEdit46.exe to your LevelEdit folder like so:

       
      Goto your Renegade GAME folder, which you updated to the latest TT Script Update (available on http://www.tiberiantechnologies.org )
      Copy the following files to your LevelEdit folder and overwrite any existing ones there:
      "MemoryManager.dll" "Mss32.dll" "Shared.dll" "ttle.dll" You should end up with a LevelEdit folder looking like this:

       
      Now make a complete copy of your Renegade game folder (which is updated to 4.6 of course) and name it "RenegadeEditorGame", just copy and paste it somewhere like:

       
      Now open the Registry Editor through your startmenu "search" option type: regedit and open it.

       
      Expand the folders (or keys as they are called) until you are inside the Renegade folder/key.
      "HKEY_LOCAL_MACHINE -> SOFTWARE -> Wow6432Node -> Westwood -> Renegade"

       
      You see the InstallPath option there? Double click on it and change its value to where your game2.exe is located in the RenegadeEditorGame you copied earlier, in my example here it would be:
      D:\Games\Westwood\RenegadeEditorGame\game2.exe


      Now close the Registry Editor program, we don't need it no more now, you don't need to save anything, it does so automatically.
       
      Run the Editor
      Ok, so we can finally run the editor now, go into the LevelEdit folder and run LevelEdit46.exe
      There click the "New..." button and call it for example "MyWork".


      Double click the MyWork in the window and it shall bring up the editor in action:

       
      You'll notice the editor created a folder called "MyWork":


      Which contains a few key folders the editor uses:

       
      Create a map project folder inside the levels folder like so:


      Inside this folder you will save your Editor's "C&C_My_Map.lvl" file and stuff related to your map such as W3D models/terrain and maybe textures, cinematic text files and/or audio.
      ALWAYS choose to "Save Current Level As..." inside the editor ALWAYS WHENEVER you want to save your progress, do NOT EVER use "Save Current Level" (trust me), period, or it will not update some files (lsd/ldd/ddb) for your map and it wont work properly when you make a .mix with XCC later on.

       
      For example the endresult could look like this:

       
      << i will update this guide later tonight or tomorrow, just 1 thing: If you have missing textures make sure you place them in your Editor_Cache folder and reload the editor >>
       
    • By zunnie
      This file contains all the assets i use in my guide to set up a working environment for Renegade mapping/modding with gMax/RenX and Level Editor.
      View the guide @
       
       
×

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.