Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Results 1 to 10 of 55

Threaded View

  1. #30
    Junior Member
    Join Date
    May 2015
    Location
    São Caetano do Sul - SP - Brazil
    Posts
    8
    Rep Power
    0

    Default

    Hello people,

    To add a new type of warn in the "DiMka WA P.1.7.4 - Ultimate xxxxxx" skin without modifying the existing ones, it is necessary to make additions / changes in the following files:

    * In the image files "speedwarn.bmp", "speedwarn0.bmp" and "speedwarn1.bmp" to add the image of the new type.

    * In the image files "cameraKSM_nn", "cameraKSMMenu_nn" and "cameraKSMSS_nn" with the image of the new type.

    NOTE: All images are inside the "ui_igo9 \ 480_272" folder (or your resolution) of the skin's compressed file. The "speedwarn.bmp", "speedwarn0.bmp" and "speedwarn1.bmp" are the same. Just create one and rename it. Don't forget to make backups of the original image files.

    * In "customized.lua" (inside the folder "ui_igo9 \ common \ ui" of the compressed skin file) edit the following parameters / codes:

    - In "sc_wCameraSetting_LoadDefault = function (model)" change the settings of the desired type, such as type 28:

    -- {type = 28, visualtype = 0, voicetype = 0, voicealert = L "! passcam", voicesecond = 0, overspeedvalid = 0, overspeedtype = 0, overspeeddelta = 0, overspeedound = L "", overspeedvolume = 0, approachtype = 0, distvalid = 0, diston = 0, distvisual = 300, distsound = 300, distsoundtts = 0, voicesecondtts = 0},
    {type = 28, visualtype = 1, voicetype = 2, voicealert = L "! passcam", voicesecond = 1, overspeedvalid = 1, overspeedtype = 1, overspeeddelta = 0, overspeedound = L "", overspeedvolume = 0, approachtype = 2 , distvalid = 0, diston = 0, distvisual = 0, distsound = 0, distsoundtts = 1, voicesecondtts = 1},

    - In "function sd_undefined_type (n)" you must change "return n> 23 and n <30" so that it contains non-selectable types, such as:

    return n> 23 and n <30

    In this case, types 24, 25, 26, 27, 28 and 29 cannot be selected. Already in:

    return (n> 23 and n <28) or (n> 28 and n <30)
    or
    return (n> 23 and n <28) or n == 29

    In this case, types 24, 25, 26, 27 and 29 cannot be selected. Thus, type 28 is left to be used.

    * In "variable_def.ui" (inside the "ui_igo9 \ common \ ui" folder of the skin's compressed file) edit in "<userlist wCameraSettingName name =" str "tts =" str "type =" int "firstphrase =" wstr " editspeed = "bool" overspeedvalid = "bool" editdirection = "bool" defdirection = "int" visible = "bool"> "the following parameters:

    ; <row name = "" tts = "" type = 28 firstphrase = L "" editspeed = false overspeedvalid = false>
    <row name = "Invalid Speed ​​Camera" tts = "Invalid Speed ​​camera," type = 28 firstphrase = L "Invalid_SC" editspeed = true overspeedvalid = true>

    * Add in the file "dictionary.lang" which is inside a compressed file of the language used (in my case "Lang_Portuguese-bra" inside the folder "content \ lang"):

    Invalid Speed Camera = "Fixed speed camera without approval by INMETRO"

    * In the "sys.txt" file in the alerts section, edit to include the new type 28 alert:

    [...]

    ; S P E E D C A M - C A T: 28
    [speedcam_category: 28]
    activated_spoken_type = speech
    activated_speech = "Fixed speed camera not approved by INMETRO ahead."
    ; activated_min_speech_repeat_delay = -1

    [...]

    "speedwarn.bmp" with new type 27 and 28:

    [Only registered and activated users can see links. ]

    New image for "camerakSMSS_28.bmp":

    [Only registered and activated users can see links. ]

    Greetings,
    CYK
    Last edited by CYK; 31st August 2020 at 02:08 PM.

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •