[HELP]My Police Car Lightbar Don't Work As Well

GTA:V Modding with ZModeler3 discussion.
Post Reply
silentsatan77
Posts: 8
Joined: Fri Jun 04, 2021 8:24 am

[HELP]My Police Car Lightbar Don't Work As Well

Post by silentsatan77 »

Hi guys
in first sorry for my bad English
guys i made a police car as like this photo :


Image


the front of bumper and windows is ok as that picture
but the back of car not working !!!
this is my carcocarvariations :

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<CVehicleModelInfoVariation>
  <variationData> 
    <Item>
      <modelName>polxantia</modelName>
      <colors>
        <Item>
          <indices content="char_array">
            0 
            0
            0
            0
          </indices>
          <liveries>
            <Item value="true" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
            <Item value="false" />
          </liveries>
        </Item>
      </colors>
      <kits>
        <Item>188_polgs350_modkit</Item>
      </kits>
      <windowsWithExposedEdges />
      <plateProbabilities>
        <Probabilities />
      </plateProbabilities>
      <lightSettings value="1" />
      <sirenSettings value="1" />
    </Item>

  </variationData>
</CVehicleModelInfoVariation>


where is the problem !!! tnx to helping me
User avatar
Jacobmaate
Posts: 21
Joined: Sat Feb 20, 2021 7:06 am
Location: Kent, United Kingdom
Contact:

Re: [HELP]My Police Car Lightbar Don't Work As Well

Post by Jacobmaate »

Hi silentsatan77,

I imagine this is likely an issue with the model itself. It seems from your carvariations file you're using the vanilla police sirensetting "<sirenSettings value="1" />".
Here's a screenshot of the emissives used on the police.yft model, sirens 11 to 14 are the rear deck lights - might I suggest checking that the rear lights on your model use one of these slots?
Image

Its hard to say for sure but it looks like your model doesn't have emissives, and is only using dummies, right? If that's the case and you're happy with using it that way then you may be able to just rotate the dummy instead of renaming it.

Hope this helped you, and best of luck with your modding endeavours! :D

Kind regards,
Jacobmaate
Lore Friendly Modder // EUP & RDE Developer
silentsatan77
Posts: 8
Joined: Fri Jun 04, 2021 8:24 am

Re: [HELP]My Police Car Lightbar Don't Work As Well

Post by silentsatan77 »

dear thanks for replay
my english is bad , i dotn understand !
yes my file is vanila
do you want my carvariations file ?
silentsatan77
Posts: 8
Joined: Fri Jun 04, 2021 8:24 am

Re: [HELP]My Police Car Lightbar Don't Work As Well

Post by silentsatan77 »

Any one ?! please help me :(
User avatar
Jacobmaate
Posts: 21
Joined: Sat Feb 20, 2021 7:06 am
Location: Kent, United Kingdom
Contact:

Re: [HELP]My Police Car Lightbar Don't Work As Well

Post by Jacobmaate »

No worries :)

In your ZModeler3 file, your car heirarchy will have multiple "siren(x)" nodes

For instance in the image below you can see I'm using siren1 - siren10.
Image

I suggest checking that on your model the sirens you are using for the rear (broken) lights are set to siren11 or siren12 for RED lights, and siren13 or siren14 for BLUE lights. (This is how it's set up on the vanilla car, which you're using the entry for in carvatiations).

I hope this was explained a bit better for you :)
Lore Friendly Modder // EUP & RDE Developer
silentsatan77
Posts: 8
Joined: Fri Jun 04, 2021 8:24 am

Re: [HELP]My Police Car Lightbar Don't Work As Well

Post by silentsatan77 »

Sir , Is This Ok ?

Image
User avatar
Jacobmaate
Posts: 21
Joined: Sat Feb 20, 2021 7:06 am
Location: Kent, United Kingdom
Contact:

Re: [HELP]My Police Car Lightbar Don't Work As Well

Post by Jacobmaate »

The objects marked "back siren", shouldn't be over 20.
(You can only have siren1, siren2, siren3... up to siren20 - anything over 20 won't work). Try changing the siren170, 180, 80 and 70 to siren11, 12, 13 and 14 as a starting point.

As a side note, I'd also avoid having duplicate names (for instance you have two "misc_h" components).
It may also be a good idea to take a look at some of the vanilla game vehicles to get familiar with how they're setup.
Lore Friendly Modder // EUP & RDE Developer
silentsatan77
Posts: 8
Joined: Fri Jun 04, 2021 8:24 am

Re: [HELP]My Police Car Lightbar Don't Work As Well

Post by silentsatan77 »

Now Is This OK ?

Image
silentsatan77
Posts: 8
Joined: Fri Jun 04, 2021 8:24 am

Re: [HELP]My Police Car Lightbar Don't Work As Well

Post by silentsatan77 »

Dear thanx to you , the problem was the number of sirens ! thanx thnx and thnx again ..

but now i have another problem !

See : Lightbar on the top right is OK but top left only enabled on the right angle

Image

another angels is disabled , u know u can just see the siren from right of car !!!

why ?!
User avatar
Jacobmaate
Posts: 21
Joined: Sat Feb 20, 2021 7:06 am
Location: Kent, United Kingdom
Contact:

Re: [HELP]My Police Car Lightbar Don't Work As Well

Post by Jacobmaate »

The angle where the coronas (light) is visible is dictated by a file called carcols (which sets out all the data which is referenced in your carvations sirenSetting ID entry.

Going into that is a whole different kettle of fish which'll require a lot more explaining - so putting that aside for now, you should look at the vanilla police.yft model (GTAV\x64e.rpf\levels\gta5\vehicles.rpf), and copy the setup those lights have.

In other words, whatever number you're using for the broken side flashing light, is programmed to flash in that direction, so you're better off finding another siren which is front facing by default.
Lore Friendly Modder // EUP & RDE Developer
silentsatan77
Posts: 8
Joined: Fri Jun 04, 2021 8:24 am

Re: [HELP]My Police Car Lightbar Don't Work As Well

Post by silentsatan77 »

Sir Thank you so much foe helping me , you are ROOOOCK :)
Post Reply