An open API service indexing awesome lists of open source software.

https://github.com/podfolio/gen_black-mod

Modification of gen_black script.
https://github.com/podfolio/gen_black-mod

genblack liveforspeed python27 vobmod

Last synced: 4 months ago
JSON representation

Modification of gen_black script.

Awesome Lists containing this project

README

          

# __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](https://www.pypy.org) it can increase compiling speed by 10-50% depends by project size/quality (personaly i can't install PIL on [pypy](https://www.pypy.org), so render_template not works :/)

It can be used with __[GenBlack Multicore 2020 DLC](https://github.com/PodFolio/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
```

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> <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](https://www.facebook.com/demonred8/)), intendent to use with __[GenBlack Multicore 2020 DLC](https://github.com/PodFolio/GenBlack-Multicore-2020-DLC)__

```
SUBMESHES_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](https://www.facebook.com/demonred8/))

```
MIRROR_STATE
```
states:
MIRROR_ONLY
MIRROR_FIX_POSSIBLE

example:
```
MESH 1
MIRROR_STATE MIRROR_ONLY
```

### MESH_TYPE
set mesh type (based on idea by [DemonRed](https://www.facebook.com/demonred8/))

```
MESH_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](https://www.facebook.com/demonred8/))

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

example:
```
MESH 2
MESH_FIX OFF
```

### DELETE_COL ressurected
deletes colision

```
DELETE_COL
```

### DELETE_SHADOW
deletes shadow

```
DELETE_SHADOW
```

### DELETE_MODEL ressurected
deletes parts by specific model

```
DELETE_MODEL
```

example:
````
MODEL 4
DELETE_MODEL M1_side
````

### DEL
combined DELETE SHADOW/COL/MODEL command

```
DEL <0-2 colision/shadow>
```
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
```

example:
```
CHECK_BB M1_side
```

### SET_BB
set new boundaries of texture

```
SET_BB
```

example:
```
SET_BB M1_side -2.5 2.0 0.5 1.2
```

### SCALE_TEXTURE
scale texture

```
SCALE_TEXTURE
```
float, 1 = 100%

example:
```
SCALE_TEXTURE M1_side 0.5
```

### MOVE_TEXTURE
move texture

```
MOVE_TEXTURE
```

example:
```
MOVE_TEXTURE M1_side 1.5 1.2
```

### FRONT_TEXTURE_FIX
simple front texture fix fix

```
FRONT_TEXTURE_FIX
```

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++](https://github.com/hellon8/VS2019-Dark-Npp)

example:
![Gen_Black Notepad++ syntax](https://i.imgur.com/eDhyuZN.png)

## Show your support
Please ⭐️ this repository if this project helped you!


[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/podfolio)