Tutorial v.1 By Jirachi

Results 1 to 5 of 5
  1. #1
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    Tutorial v.1 By Jirachi

    Well, I didn't think of a name for the title so I just went with this.

    In this tutorial, I would be talking about some stuff, as of the following:

    • Exporting Models (Blender)
    • Adding your items into your Gunz client
    • HP/AP meds working into your Gunz client
    • Q/A:
      • Crashes at Mesh loading
      • Nomsg issues
      • No model in after added in the client
    • Blender Useful Tips/Hints
      More will be pronounced after I remember any other issues that I encountered or thought of.


    ----------

    Exporting Models
    ----------

    Requirements:
    • Blender (I used 2.49b, I think)
    • Python (it has to work with the Blender that you're using) Ex: Mine is 2.6
    • Python scripts (gunz_export.py and gunz_import.py)


    Steps:
    ----------

    • 1. Open Blender

      2. a) Open your .blend file or b) make the item that you want

      3. If you did step 2.a), you will need to make sure you got it's texture. Process to Step 4.

      4. To get your texture, you will need to go into UV/Image Editor. Hover over between the menu header and the view (you should get a cursor that shows two arrows pointing away from each other).

      5. Right click, and split your screen (Right click > Split Area). You can split anywhere, just as long you can see your model and the other screen.

      6. Choose either one of the sides to go into UV/Image Editor. It should be at the button left of your area (a grid image).

      7. Now, you need to load your image.

      8. Go to your other view (3d view) and select all of the verts (Press A, if that didn't work, press it again).

      9. Alright, you will need to get it into your UV/Image Editor view. Press U and click "Project From View."

      10. Move your selected verts via keys (G, S, R, etc..)

      11. You're done with that. Press F6.

      12. At the button, change the texture type from none to Image and load it.

      13. Click the car that is on the right of the "x" (above the texture type).

      14. Go to File > Export > GUNZ (*.elu).

      15. Export it as any versions (4- Items with transparency, 5- Items with transparency : file size will be smaller than 4, 6- Items with transparency, 7- Mainly for clothing). And you're done exporting.

    Note: Daggers, swords, katanas, grenades/flashes, HP/AP meds are different from exporting a model that shoots, such as; shotguns, rifles, snipers, rockets, pistols, and revolvers. I'll post it later.

    ---------

    Adding your models
    ---------

    Requirements:
    • Model.elu file
    • model.mrs
    • system.mrs
    • zitem.xml (in system.mrs)
    • weapon.xml (in model.mrs)
    • Mrs un/packer
      • zlib.dll
      • mrs.exe/mrsencryption.exe
      • compile.bat
      • decompile.bat
    • Gunz client


    ----------

    Get your de/compile.bat
    ----------

    I. Make a new .txt files (compile.txt/decompile.txt)

    II. Put this inside the .txt file:
    Code:
    Compile:
    mrs.exe c <filename>
    
    Decompile:
    mrs.exe d <filename>.mrs
    Ex:
    Code:
    Compile:
    mrs.exe c system
    
    Decompile:
    mrs.exe d system.mrs
    III. Now you have to change the extension of the file to .bat.
    Note: If you can't change it, go to your Folder Options via Control Panel and uncheck "Hide extensions for known file types" in the View tab.

    IV. Now you got your .bat file(s).
    ----------

    Continue:

    1. Get your model.mrs

    2. Copy and paste it to the desktop (or anywhere you want it).

    3. Make sure you have the mrs.exe and zlib.dll with the .mrs file to de/compile it.

    4. Decompile it using the decompile.bat you created in step I-IV.

    5. After it is done decompiling, go into the model folder and find your weapon.xml.

    6. Edit your weapon.xml (right click > Edit).

    7. Add your code to get your model in.
    Code:
     <AddWeaponElu name="<name>" weapon_motion_type = "<WM>" weapon_type = "<WT>" >
      <AddBaseModel name="<name>" filename="<.elu directory>" />
     </AddWeaponElu>
    <WM> - Weapon_Motion_Type:
    1 : katana
    2 : 1h pistol
    3 : 2h pistol

    a. pistol
    b. magnum

    4 : shotgun

    a. shotgun
    b. machinegun

    5 : rifle
    6 : grenade type motion

    a. grenade
    b. flashbang
    c. smoke
    d. tear_gas
    e. dynamite

    7 : dagger
    8 : item
    9 : rocket launcher
    10 : 1hp smg
    11 : 2hp smg
    12 : sword
    13 : blade
    14 : 2h dagger

    <WT> - Weapon_type:
    1 : katana
    2 : 1h pistol
    3 : 2h pistol
    4 : shotgun
    5 : machinegun
    6 : rifle
    7 : grenade
    8 : flashbang
    9 : smoke
    10 : dagger
    11 : medikit
    12 : repairkit
    13 : rlauncher
    14 : 1h smg
    15 : 2h smg
    16 : sword
    17 : blade
    18 : 2h dagger
    An example of adding in a sword/katana from MAXTRAXv3:
    Code:
     <AddWeaponElu name="sword01" weapon_motion_type = "12" weapon_type = "16" >
      <AddBaseModel name="sword01" filename="model/weapon/sword/sword01.elu" />
     </AddWeaponElu>
    8. Save it and put your .elu file wherever you put for the filename from your weapon.xml.

    9. Pack/Compile your model.mrs and put it into your client.

    10. Now you want to added it into your zitem.xml list. Find and decompile your system.mrs.

    11. Open up your zitem.xml with notepad.

    12. Since the example shows that I added in a sword/katana, you would like the zitem code for it
    Ex:
    Code:
    	<ITEM id="<ID>" name="<Name for Item>" mesh_name="<AddBaseMode name>" totalpoint="0" type="melee"
    		res_sex="a" res_level="0" slot="melee" weapon="katana" weight="10" bt_price="0" delay="<delay>"
    		damage="15" range="220" ctrl_ability="0" magazine="0" reloadtime="0" slug_output="false"
    		gadget_id="0" hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0" color="#FFFFFFFF"
    		image_id="0" bullet_image_id="0" magazine_image_id="0" desc="<Item's Description>" />
    So this would is how it would be;
    Code:
    	<ITEM id="1337" name="WTFSWORD" mesh_name="sword01" totalpoint="0" type="melee"
    		res_sex="a" res_level="0" slot="melee" weapon="katana" weight="10" bt_price="0" delay="50"
    		damage="1337" range="1337" ctrl_ability="0" magazine="0" reloadtime="0" slug_output="false"
    		gadget_id="0" hp="1337" ap="1337" maxwt="1337" sf="1337" fr="1337" cr="1337" pr="1337" lr="1337" color="#FFFFFFFF"
    		image_id="0" bullet_image_id="0" magazine_image_id="0" desc="Blah blah blah blah blah sword!" />
    13. Save it and copy and paste it into your Server folder.

    14. Optional: You can add your item into the shop.xml (server folder).
    Ex:
    Code:
    <SELL itemid="1337"/>
    15. Pack/compile your system.mrs and put it into your client.

    ----------

    HP/AP Pickable

    Requirements:
    • Worlditem.xml
    • system.mrs
    • Gunz Client
    • Server files


    ----------

    1. Open your worlditem.xml with notepad.

    2. You'll see there's 2 types of code, worlditem code and the addworlditem code. First, you're going to do the worlditem code.
    Code:
    		<WORLDITEM id="<ID>" name="<name>">
    			<TYPE><Hp/Ap/HpAp/bullet></TYPE>
    			<AMOUNT><Ammount of Healing/Reparing></AMOUNT>
    			<MODELNAME><name of model></MODELNAME>
    		</WORLDITEM>
    Ex:
    Code:
    		<WORLDITEM id="1337" name="WTFMED">
    			<TYPE>hpap</TYPE>
    			<AMOUNT>1337</AMOUNT>
    			<MODELNAME>WTFMED</MODELNAME>
    		</WORLDITEM>
    3. After you added your worlditem code, you'll will now add your worlditem.
    Code:
    			<AddWorldItemElu name ="<name>">
    				<AddBaseModel name ="<name>" filename="<elu directory>"/>
    			</AddWorldItemElu>
    Ex:
    Code:
    			<AddWorldItemElu name ="WTFMED">
    				<AddBaseModel name ="WTFMED" filename="model/weapon/item/WTFMED.elu"/>
    			</AddWorldItemElu>
    4. Save it, copy and paste your worlditem.xml to your server foler.

    5. Pack/compile your system.mrs and put it into your client.

    Note: You can add animation as well. Click here for a tutorial by Styx

    ----------

    Time for a Q/A:

    Q: Why does my client crashes at "Loading Mesh"?
    A: Either you did something wrong in the weapon.xml or the elu is corrupted. Please make sure that you exported your models right.

    Q: Why do I get some/most things with the "nomsg"?
    A: Check your strings.xml/message.xml via your system.mrs, don't forgot to put your strings.xml/message.xml in both your client and server folder.

    Q: There is no model shown after I added in the zitem.xml, what's going on?
    A: In your zitem.xml, the item's "mesh_name" is incorrect from the weapon.xml. You have to make sure that the "mesh_name" in your zitem.xml is the same as the one in your weapon.xml

    ----------
    Theses are what I use most of the times when I'm using Blender to model items.

    Blender Tips/Hints:

    Editing Mode:
    • x.G - Grab (move the selected verts)
      x.S - Scaling (making things bigger/smaller, only selected verts)
      x.R - Rotate (rotating the selected verts)
      U > Project From View - Puts the selected verts into the UV/Image Editor view.
      L - Selects the all of the verts near your mouse cursor (will select the whole shape)
      X - An option of delete the following for verts: Verts, faces, edge, etc..
      E - Extrude (extrude any selected verts)
      Z - Change (draw type), solil/wireframe
      Tab - Change model, object/edit
      Ctrl+R - Loop cut (similar to subdivide)
      Numpad 1 - View Z and X axis
      Numpad 3 - View Z and Y sxis
      Numpad 7 - View Y and X axis
      Numpad 5 - View in a 3D angle
      Ctrl+N - Recalculate outside texture
      Ctrl+Shift+N - Recalculate inside texture
      Scroll/Middle Click + Move - View in 3D
      Middle click + X - A thing I call Special controls.
      • Note: The red X refers to the X's at the beginning of the tips/hints.

      Right Click - Selects the nearby vert
      Right click while doing something such as moving (G, S, R) - Cancels operation


    ----------

    Notice: I will post a link here of my tutorial v.2 here.

    ----------

    Updated: Add in blender tips/hints.
    Last edited by Anju; 26-12-11 at 03:33 AM.


  2. #2
    the sound's resound echo Jelle is offline
    MemberRank
    Jun 2009 Join Date
    ._.Location
    1,036Posts

    Re: Tutorial v.1 By Jirachi

    Thanks for the guide.
    My problem was when adding a armor piece.
    It just.. showed up like there was no clothing.
    Weird.

  3. #3
    hey Irahnik is offline
    MemberRank
    Mar 2010 Join Date
    127.0.0.1Location
    1,680Posts

    Re: Tutorial v.1 By Jirachi

    should've put this in the right section for better help but k0o0o0o0o0ol.

  4. #4
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    Re: Tutorial v.1 By Jirachi

    Sorry about posting it in the wrong section. I totally forgot, my fault.

    Request a move.

  5. #5
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    Re: Tutorial v.1 By Jirachi

    Updated



Advertisement