Skip to content

PodFolio/gen_black-mod

Repository files navigation

Modification of Gen_black script

Original version: https://linhasverticais.wordpress.com
Frito version: https://static1.downloadgamemods.com/Live%20for%20Speed/Tools/lfsdk.7z

Requires:
Python 2.5 or 2.7
PIL (Python Imaging Library) for python 2.5 or 2.7

If you run this script with pypy it can increase compiling speed by 10-50% depends by project size/quality (personaly i can't install PIL on pypy, so render_template not works :/)

It can be used with GenBlack Multicore 2020 DLC


Table of Contents
  1. Added commands
  2. Modified commands
  3. Misc
  4. Show your support

Added commands

GLUE ressurected

welding two objects, to have smooth edges

GLUE <obj_name> <obj_name2> <distance>

example:

GLUE m4_C1_Frnt m4_M1_side 0.005

SET_TEXTURE_SLOT2

for fixing 0.6V ALPHA textures

SET_TEXTURE_SLOT2 <0-4 transparent type> <part_name> <texture_name_ALP> <texture_appiled_mode> <texture_side> <0-15 slots>

0-4 transparent type:
0 - not transpaent
1 - fully transparent
2 - glass
3 - light glass
4 - tinted glass (look for tinted glass in orginal Car2.psh)

example:

SET_TEXTURE_SLOT2 2 orb2 X_GTW_ALP single top 0 15

SUBMESHES_COUNT

set sub-mesh count for main mesh (based on idea by DemonRed), intendent to use with GenBlack Multicore 2020 DLC

SUBMESHES_COUNT <count> 

it works like MESH 1 command but with extra step.

example (if you want have total 69 meshes set it to 68. main mesh + 68 sub meshes (childs) = 69):

SUBMESHES_COUNT 68

MIRROR_STATE

set mesh state (based on idea by DemonRed)

MIRROR_STATE <state>

states:
MIRROR_ONLY
MIRROR_FIX_POSSIBLE

example:

MESH 1
MIRROR_STATE MIRROR_ONLY

MESH_TYPE

set mesh type (based on idea by DemonRed)

MESH_TYPE <type>

type:
MAIN - main mesh
CALIPER - brake caliper
WHEEL - steering wheel
DEFAULT - default mesh
ALWAYS_VISIBLE - always visible, even in F mode
MIRROR - central rearview mirror

example:

MESH 5
MESH_TYPE ALWAYS_VISIBLE

MESH_FIX

set mesh fix flag (based on idea by DemonRed)

MESH_FIX <state>

states:
ON - mirror fix works
OFF - mirror fix not work

example:

MESH 2
MESH_FIX OFF

DELETE_COL ressurected

deletes colision

DELETE_COL <part_name>

DELETE_SHADOW

deletes shadow

DELETE_SHADOW <part_name>

DELETE_MODEL ressurected

deletes parts by specific model

DELETE_MODEL <part_name>

example:

MODEL 4
DELETE_MODEL M1_side

DEL

combined DELETE SHADOW/COL/MODEL command

DEL <part_name> <0-2 colision/shadow> <model>

colision/shadow:
0 - no colision/shadow
1 - shadow
2 - colision

model:
0-9 - model number
-1 - no model choosed

example:

DEL M1_side 2 4

CHECK_BB

check texture boundaries

CHECK_BB <part_name>

example:

CHECK_BB M1_side

SET_BB

set new boundaries of texture

SET_BB <part_name> <x1> <x2> <y1> <y2>

example:

SET_BB M1_side -2.5 2.0 0.5 1.2

SCALE_TEXTURE

scale texture

SCALE_TEXTURE <part_name> <scale>

float, 1 = 100%

example:

SCALE_TEXTURE M1_side 0.5

MOVE_TEXTURE

move texture

MOVE_TEXTURE <part_name> <left/right> <up/down>

example:

MOVE_TEXTURE M1_side 1.5 1.2

FRONT_TEXTURE_FIX

simple front texture fix fix

FRONT_TEXTURE_FIX <part_name>

example:

FRONT_TEXTURE_FIX plate_Front

Modified commands

MIRROR GLASS/FIX2/FIX3/BODYOFF/BODYON/BODYFIX

added more mirror variants

FIX2/FIX3 works like normal FIX

GLASS adding "smooth" for glass (like in orginal vob, i don't know if it does anything at all)

BODYOFF/BODYON/BODYFIX adding "smooth" for body parts (like in orginal vob, i don't know if it does anything at all, using only on MESH 1)

RENDER_TEMPLATE

now you can choose if you want use old JPG way or new transparent PNG way! (.jpg or .png at end of filename)

example:

RENDER_TEMPLATE l_find 33_LIGHTS1.png 0

Misc

LFSCarImp locked mod object dump

use vob_obj_cimp.py to dump LFSCarImp locked vob files ;)

Base vobs

in BASE folder:

  • P folder cointains defauld vob bases from pre virtual mirrors ("big wing") update
  • R folder cointains defauld vob bases from post virtual mirrors ("big wing") update, compatible with 0.6V
  • Custom folder cointains custom vob bases

Gen_Black Notepad++ syntax

Syntax for Notepad++
Language > User Defined Language > Define your language... > Import > chose genblack.xml
It works with Visual Studio 2019 Dark Theme for Notepad++

example:
Gen_Black Notepad++ syntax

Show your support

Please ⭐️ this repository if this project helped you!

ko-fi

About

Modification of gen_black script.

Topics

Resources

Stars

Watchers

Forks

Languages