Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
Automan

[SA] IVF 211: EML (Tutorial for ZM2)

Recommended Posts

Automan

The information to be able to use EML (Emergency Light Mod) of IVF (Improved Vehicle Features) version 2.1.1, by the master DK22pac.
With 3 clarifications, it can understand how to use this feature in Zanoza Modeler 2.

 

1) First of all, the emergency light information file is not only one, but a file for each vehicle needs to be done.
Therefore, it is neither the eml_example.dat file nor the eml.dat file.
The file will have .eml extension, not .dat.
I recommend calling the file as the .dff/.txd template. For example:
copcarvg.dff/txd -> copcarvg.eml
The .eml files must be placed in the folder:
(...)GTA San Andreas\ImVehFt\eml

 

2) In the emergency lights data, in the .eml file, there is no key element, that is:
# ID vehicle.ide - # lights (1 to 16).
596 8
596 is the ID for copcarla it to vehicle.ide, while 8 are the lights that will be used for coping, 4 front and 4 rear, 2 red and 2 blue per part, maybe.
Data strings:
# ID_parent ID R G B A light_type corona_size shadow_size flash_inertia num_switches starting_state switching_time
contain 13 parameters, more or less easy to understand.
To read them better:
ID_parent
ID
R \
G  \____ RGBA color light, in hexadecimal or decimal (FF -> 255)
B  /
A /
light_type (0-front<>4-rear)
corona_size
shadow_size
flash_inertia
num_switches (0-on/off<>1-off/on)
starting_state
switching_time
It is indispensable that the number of lights strings matches the number of dummies in the .dff template, otherwise there will be a program crash.
Standard data are:
1 0 E0 00 00 80 0 0.3 3 15.0 2 1 400 800
2 0 00 00 E0 80 0 0.3 3 15.0 2 1 400 800
(The first light is red, the second is blue).
eml_scheme.jpg

 

3) The dummies of the lights in the .dff model are from 1 to 16, and are called:
light_em1 -> light_em16
Texture management does not use texture, because the color of the light will be assigned to the 3d mesh from the eml file.
The RGB of the 16 lights are:
(R) 255 -> 240
(G) 0
(B) 0
ZM2 does not distinguish materials with the same textures but with different RGB.
It is necessary to use 16 [env:xx], but ZM2 does not even distinguish these in sequence, for example from 8 to 23.
It can use these env values:
7-8-9-11-12-14-19-21-22-24-25-26-28-29-31
(Use env:13 for mirror, without texture).
Note!: In ZM2 we need to expand the Material Editors window to full screen to set all RGB values.
So, table:
em#:
1- 2- 3- 4- 5- 6- 7- 8- 9- 10- 11- 12- 13- 14- 15- 16
env:
7- 8- 9- 11- 12- 14- 16- 17- 18- 19- 21- 22- 24- 25- 26- 28
red: (green and blue=0)
255-254-253-252-251-250-249-248-247-246-245-244-243-242-241-240

eml_material.jpg

 

4) Download example of .eml and .dff files, from my Lampo Cop:
http://www.mediafire.com/file/1tbws6qo6qbf1bq/EMLtutorial.rar/file
lampo_cop.jpg

Share this post


Link to post
Share on other sites
Miami1884

Til today i have no clue what "parent id" is for or how to use it.

Share this post


Link to post
Share on other sites
Leinad
38 minutes ago, Leinad said:

I have added a new copbike, (this cop bike https://www.gtainside.com/en/sanandreas/bikes/120064-gta-tbogt-police-bike/) but eml didn't works. does I have to edit EML file to work with the new bike?

Nevermind, I just had edit the .eml file with notepad, i just changed the id 523 by the new one, everything it's possible with mods

 

https://i.imgur.com/wXS56OW.png

Share this post


Link to post
Share on other sites
Pavilion_Seon

Only Zmodeler?.. I use 3d max but I crash all try..

 

(sorry for my bad english..)

Share this post


Link to post
Share on other sites
Automan
On 12/26/2018 at 9:04 PM, Miami1884 said:

Til today i have no clue what "parent id" is for or how to use it.

 

On 1/24/2019 at 8:39 AM, Pavilion_Seon said:

Only Zmodeler?.. I use 3d max but I crash all try..

 

(sorry for my bad english..)

 

Sorry for the wait, I did not have the message notify! :)

 

'Parent ID' is only the sequence from 1 to 16 of the data strings.
'ID' is always 0.

 

Only ZM2. I use 3ds max only for the peds rig. (And not even so much now, with the magnificent masterpiece of the OS W-10 ..)
It seems strange that 3ds max crashes... Only part 3) requires the use of the modeling program, and in addition to the creation of dummies, there is only the management of materials.
Of course, 3ds max does not have the ZM2 tags ([env:9, spec]), and the 'environment reflection', with non-sequential values, 16 (7-8-9-11-12-14-16-17-18-19-21-22-24-25-26-28), serves only to bypass the problem with the materials that has ZM2 -and its problem of values of [env]...)

Edited by Automan

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  

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.