Jump to content


Qouick coding help


9 replies to this topic

#1 Axel of Sweden

    <Custom title available>

  • Member
  • 739 posts
  • Projects: Operation Garbo

Posted 22 April 2007 - 11:46

Hi, Aos here,

Iam experiencing a few problems when i put new models ingame

1.How do i change their names?

2.How do install new caemos?

3.I tried my tank in the game but the turret didnt turn, what did i do wrong?

4.How do i add transparency to stuff like jet afterburners, muzzlefx and chopperblades etc?

5.How do i change engine sound on vehicles?

6. how do i change vehicle speed?

Im integrating models for the Silent heroes project so i need some help.
Posted Image
Posted Image

#2 Jazzie Spurs

    [Pantsu-Dan]

  • Project Team
  • 4073 posts
  • Projects: Commanding the ECA 33rd Ground Assault Team.

Posted 22 April 2007 - 13:17

 Axel of Sweden, on 22 Apr 2007, 13:46, said:

Hi, Aos here,

Iam experiencing a few problems when i put new models ingame

1.How do i change their names?

2.How do install new caemos?

3.I tried my tank in the game but the turret didnt turn, what did i do wrong?

4.How do i add transparency to stuff like jet afterburners, muzzlefx and chopperblades etc?

5.How do i change engine sound on vehicles?

6. how do i change vehicle speed?

Im integrating models for the Silent heroes project so i need some help.

1 u need Gmax
Open de file an export with the new name

2 thts my work dont worry i pit in the mod :P

3 Turret name it the same of the model?

4 is in gmax but coz my english its crapy i cant explain :joint:

5 My work

6 My work

Posted Image
Posted Image
Posted ImageBlack Lagoon OST
Posted Image

#3 Slye_Fox

    FOXTec Leader

  • Project Leader
  • 2351 posts
  • Projects: CnC: Condition Red, Sigma Invasion, Armoured Sky: Ethereal Dawn

Posted 22 April 2007 - 13:48

4. transparency is done with a Alpha layer on the texture.
Posted Image

#4 Golan

    <Charcoal tiles available>

  • Member Test
  • 3300 posts

Posted 22 April 2007 - 14:14

1. The name of the model (like avpaladin.w3d) can be changed when exporting from GMax. The name of the unit is defined in the units code by a line like this:

Quote

DisplayName = OBJECT:GDIMilitaryMammoth
Which refers to an entry in generals.csf .

3. The model has to be seperated into several objects, each having a specific name that is later used to define in the code what each object is. The turret-object´s name has to be specified in the w3ddraw tag, usually found at the beginning of a units code:

Quote

Draw = W3DTankDraw ModuleTag_01

DefaultConditionState
Model = gvmammoth
Turret = Turret01
TurretPitch = ROCKETPOD01 ROCKETPOD02
WeaponLaunchBone = PRIMARY WEAPONA
WeaponFireFXBone = PRIMARY WEAPONA
WeaponRecoilBone = PRIMARY BARREL
WeaponLaunchBone = SECONDARY WEAPONB
WeaponFireFXBone = SECONDARY WEAPONB
WeaponRecoilBone = SECONDARY ROCKETPOD
End


4. Transparency can be made by using either an alphamap or an additive texture. For the first one, your texture has to include an alphachannel (creating these differs depending on what graphic programm you use) and the RenX-material has to use one of the alpha-blend modes ("alpha blend", "alpha test", "alpha test and blend"). The second one is a normal texture (which should be notably darker though) and the RenX-material has to use the blend mode "add".

Edited by Golan, 22 April 2007 - 14:15.

Now go out and procreate. IN THE NAME OF DOOM!

#5 Axel of Sweden

    <Custom title available>

  • Member
  • 739 posts
  • Projects: Operation Garbo

Posted 22 April 2007 - 14:56

The turret is separated to the rest off the model named TURRET01

And got a gap between it and the chassis

And is also linked to the chassis

Then whats wrong?

Transparency is,nt on my mind anymore,

just the turret

Edited by Axel of Sweden, 22 April 2007 - 15:01.

Posted Image
Posted Image

#6 Futschki

    Duh!

  • Member
  • 2835 posts

Posted 22 April 2007 - 16:25

2.Go To Data\INI\MappedImages\TextureSize_512\SAUserInterface512.ini
And Figure Out The Dimension Urself I cant be arsed to tell you how xD
4.Select The Objects Go To The Utilities Tab Click On W3d tools and uncheck The Export Geometry
6.Extract The Locomotor.ini and ull find out urself
Posted Image

#7 Axel of Sweden

    <Custom title available>

  • Member
  • 739 posts
  • Projects: Operation Garbo

Posted 22 April 2007 - 16:42

Turning expert geomety off will only make the object invisible,

It,s not what i think off transparency
Posted Image
Posted Image

#8 Futschki

    Duh!

  • Member
  • 2835 posts

Posted 22 April 2007 - 16:52

Oh Ok ... Sorry :joint:
Posted Image

#9 Slye_Fox

    FOXTec Leader

  • Project Leader
  • 2351 posts
  • Projects: CnC: Condition Red, Sigma Invasion, Armoured Sky: Ethereal Dawn

Posted 22 April 2007 - 17:57

have you got the 'export as bone' cheacked ASWALL as the geomitry one?
Posted Image

#10 Kris

    <Custom title available>

  • Project Team
  • 3825 posts

Posted 24 April 2007 - 18:16

Quote

6. how do i change vehicle speed?



Its controlled via Locomotor.ini , The file it self is self explanatory because the EA "programmers" added a few useful comments.

For implementing it on a tank for example, Its controlled via the "locomotor" object parameter.

Example:
Object OMFGTANK
*shitloads of code*
Locomotor = SET_NORMAL OMFGTANKLocomotor
End


:D

Edited by Chris, 24 April 2007 - 18:17.










1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users