{"id":15009175,"url":"https://github.com/podfolio/gen_black-mod","last_synced_at":"2026-02-20T23:38:54.618Z","repository":{"id":178174290,"uuid":"273355382","full_name":"PodFolio/gen_black-mod","owner":"PodFolio","description":"Modification of gen_black script.","archived":false,"fork":false,"pushed_at":"2022-03-06T10:28:15.000Z","size":1461,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T15:17:55.986Z","etag":null,"topics":["genblack","liveforspeed","python27","vobmod"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PodFolio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-18T22:54:12.000Z","updated_at":"2023-11-27T09:25:33.000Z","dependencies_parsed_at":"2023-07-14T00:00:56.375Z","dependency_job_id":null,"html_url":"https://github.com/PodFolio/gen_black-mod","commit_stats":null,"previous_names":["podfolio/gen_black-mod"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PodFolio%2Fgen_black-mod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PodFolio%2Fgen_black-mod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PodFolio%2Fgen_black-mod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PodFolio%2Fgen_black-mod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PodFolio","download_url":"https://codeload.github.com/PodFolio/gen_black-mod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239493677,"owners_count":19647995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["genblack","liveforspeed","python27","vobmod"],"created_at":"2024-09-24T19:23:28.281Z","updated_at":"2025-10-24T01:10:56.643Z","avatar_url":"https://github.com/PodFolio.png","language":"Python","funding_links":["https://paypal.me/podfolio","https://ko-fi.com/podfolio"],"categories":[],"sub_categories":[],"readme":"# __Modification of Gen_black script__\n\nOriginal version: https://linhasverticais.wordpress.com \u003c/br\u003e\nFrito version: https://static1.downloadgamemods.com/Live%20for%20Speed/Tools/lfsdk.7z\n\n__Requires:__\u003c/br\u003e\nPython 2.5 or 2.7\u003c/br\u003e\nPIL (Python Imaging Library) for python 2.5 or 2.7\n\nIf 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 :/)\n\nIt can be used with __[GenBlack Multicore 2020 DLC](https://github.com/PodFolio/GenBlack-Multicore-2020-DLC)__\n\n\u003chr\u003e\n\n\u003cdetails open=\"open\"\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#added-commands\"\u003eAdded commands\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#glue-ressurected\"\u003eGLUE\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#set_texture_slot2\"\u003eSET_TEXTURE_SLOT2\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#submeshes_count\"\u003eSUBMESHES_COUNT\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#mirror_state\"\u003eMIRROR_STATE\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#mesh_type\"\u003eMESH_TYPE\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#mesh_fix\"\u003eMESH_FIX\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#delete_col-ressurected\"\u003eDELETE_COL\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#delete_shadow\"\u003eDELETE_SHADOW\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#delete_model-ressurected\"\u003eDELETE_MODEL\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#del\"\u003eDEL\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#check_bb\"\u003eCHECK_BB\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#set_bb\"\u003eSET_BB\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#scale_texture\"\u003eSCALE_TEXTURE\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#move_texture\"\u003eMOVE_TEXTURE\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#front_texture_fix\"\u003eFRONT_TEXTURE_FIX\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#modified-commands\"\u003eModified commands\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#mirror-glassfix2fix3bodyoffbodyonbodyfix\"\u003eMIRROR GLASS/FIX2/FIX3/BODYOFF/BODYON/BODYFIX\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#render_template\"\u003eRENDER_TEMPLATE\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#misc\"\u003eMisc\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#lfscarimp-locked-mod-object-dump\"\u003eLFSCarImp locked mod object dump\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#base-vobs\"\u003eBase vobs\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#gen_black-notepad-syntax\"\u003eGen_Black Notepad++ syntax\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#show-your-support\"\u003eShow your support\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n## Added commands\n\n### GLUE ressurected\nwelding two objects, to have smooth edges\n\n```\nGLUE \u003cobj_name\u003e \u003cobj_name2\u003e \u003cdistance\u003e\n```\n\nexample:\u003c/br\u003e\n```\nGLUE m4_C1_Frnt m4_M1_side 0.005\n```\n\n### SET_TEXTURE_SLOT2 \nfor fixing 0.6V ALPHA textures\n\n```\nSET_TEXTURE_SLOT2 \u003c0-4 transparent type\u003e \u003cpart_name\u003e \u003ctexture_name_ALP\u003e \u003ctexture_appiled_mode\u003e \u003ctexture_side\u003e \u003c0-15 slots\u003e\n```\n0-4 transparent type:\u003c/br\u003e\n0 - not transpaent\u003c/br\u003e\n1 - fully transparent\u003c/br\u003e\n2 - glass\u003c/br\u003e\n3 - light glass\u003c/br\u003e\n4 - tinted glass (look for tinted glass in orginal Car2.psh)\u003c/br\u003e\n\nexample:\u003c/br\u003e\n```\nSET_TEXTURE_SLOT2 2 orb2 X_GTW_ALP single top 0 15\n```\n\n### SUBMESHES_COUNT \nset 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)__\u003c/br\u003e\n\n```\nSUBMESHES_COUNT \u003ccount\u003e \n```\nit works like `MESH 1` command but with extra step.\u003c/br\u003e\n\nexample (if you want have total 69 meshes set it to 68. main mesh + 68 sub meshes (childs) = 69):\u003c/br\u003e\n```\nSUBMESHES_COUNT 68\n```\n\n### MIRROR_STATE \nset mesh state (based on idea by [DemonRed](https://www.facebook.com/demonred8/))\u003c/br\u003e\n\n```\nMIRROR_STATE \u003cstate\u003e\n```\nstates:\u003c/br\u003e\nMIRROR_ONLY\u003c/br\u003e\nMIRROR_FIX_POSSIBLE\u003c/br\u003e\n\nexample:\u003c/br\u003e\n```\nMESH 1\nMIRROR_STATE MIRROR_ONLY\n```\n\n### MESH_TYPE\nset mesh type (based on idea by [DemonRed](https://www.facebook.com/demonred8/))\u003c/br\u003e\n\n```\nMESH_TYPE \u003ctype\u003e\n```\ntype:\u003c/br\u003e\nMAIN - main mesh\u003c/br\u003e\nCALIPER - brake caliper\u003c/br\u003e\nWHEEL - steering wheel\u003c/br\u003e\nDEFAULT - default mesh\u003c/br\u003e\nALWAYS_VISIBLE - always visible, even in F mode\u003c/br\u003e\nMIRROR - central rearview mirror\u003c/br\u003e\n\nexample:\u003c/br\u003e\n```\nMESH 5\nMESH_TYPE ALWAYS_VISIBLE\n```\n\n### MESH_FIX \nset mesh fix flag (based on idea by [DemonRed](https://www.facebook.com/demonred8/))\u003c/br\u003e\n\n```\nMESH_FIX \u003cstate\u003e\n```\nstates:\u003c/br\u003e\nON -  mirror fix works\u003c/br\u003e\nOFF - mirror fix not work\u003c/br\u003e\n\nexample:\u003c/br\u003e\n```\nMESH 2\nMESH_FIX OFF\n```\n\n### DELETE_COL ressurected\ndeletes colision\u003c/br\u003e\n\n```\nDELETE_COL \u003cpart_name\u003e\n```\n\n### DELETE_SHADOW\ndeletes shadow\u003c/br\u003e\n\n```\nDELETE_SHADOW \u003cpart_name\u003e\n```\n\n### DELETE_MODEL ressurected\ndeletes parts by specific model\u003c/br\u003e\n\n```\nDELETE_MODEL \u003cpart_name\u003e\n```\n\nexample:\u003c/br\u003e\n````\nMODEL 4\nDELETE_MODEL M1_side\n````\n\n### DEL\ncombined DELETE SHADOW/COL/MODEL command\u003c/br\u003e\n\n```\nDEL \u003cpart_name\u003e \u003c0-2 colision/shadow\u003e \u003cmodel\u003e\n```\ncolision/shadow: \u003c/br\u003e\n0 - no colision/shadow\u003c/br\u003e\n1 - shadow\u003c/br\u003e\n2 - colision\u003c/br\u003e\n\nmodel: \u003c/br\u003e\n0-9 - model number\u003c/br\u003e\n-1  - no model choosed\u003c/br\u003e\n\nexample:\u003c/br\u003e\n```\nDEL M1_side 2 4\n```\n\n### CHECK_BB\ncheck texture boundaries\u003c/br\u003e\n\n```\nCHECK_BB \u003cpart_name\u003e\n```\n\nexample:\u003c/br\u003e\n```\nCHECK_BB M1_side\n```\n\n### SET_BB\nset new boundaries of texture\u003c/br\u003e\n\n```\nSET_BB \u003cpart_name\u003e \u003cx1\u003e \u003cx2\u003e \u003cy1\u003e \u003cy2\u003e\n```\n\nexample:\u003c/br\u003e\n```\nSET_BB M1_side -2.5 2.0 0.5 1.2\n```\n\n### SCALE_TEXTURE\nscale texture\u003c/br\u003e\n\n```\nSCALE_TEXTURE \u003cpart_name\u003e \u003cscale\u003e\n```\nfloat, 1 = 100%\u003c/br\u003e\n\nexample:\u003c/br\u003e\n```\nSCALE_TEXTURE M1_side 0.5\n```\n\n### MOVE_TEXTURE\nmove texture\u003c/br\u003e\n\n```\nMOVE_TEXTURE \u003cpart_name\u003e \u003cleft/right\u003e \u003cup/down\u003e\n```\n\nexample:\u003c/br\u003e\n```\nMOVE_TEXTURE M1_side 1.5 1.2\n```\n\n### FRONT_TEXTURE_FIX\nsimple front texture fix fix\u003c/br\u003e\n\n```\nFRONT_TEXTURE_FIX \u003cpart_name\u003e\n```\n\nexample:\u003c/br\u003e\n```\nFRONT_TEXTURE_FIX plate_Front\n```\n\n\n## Modified commands\n\n### MIRROR GLASS/FIX2/FIX3/BODYOFF/BODYON/BODYFIX\nadded more mirror variants\u003c/br\u003e\n\n`FIX2/FIX3` works like normal FIX \u003c/br\u003e\n\n`GLASS` adding \"smooth\" for glass (like in orginal vob, i don't know if it does anything at all)\u003c/br\u003e\n\n`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)\u003c/br\u003e\n\n### RENDER_TEMPLATE\nnow you can choose if you want use old JPG way or new transparent PNG way! (.jpg or .png at end of filename)\n\nexample:\u003c/br\u003e\n```\nRENDER_TEMPLATE l_find 33_LIGHTS1.png 0\n```\n\n\n## Misc\n\n### LFSCarImp locked mod object dump\nuse __vob_obj_cimp.py__ to dump LFSCarImp locked vob files ;)\u003c/br\u003e\n\n### Base vobs\nin __BASE__ folder:\u003c/br\u003e\n- __P__ folder cointains defauld vob bases from pre virtual mirrors (\"big wing\") update\u003c/br\u003e\n- __R__ folder cointains defauld vob bases from post virtual mirrors (\"big wing\") update, compatible with 0.6V\u003c/br\u003e\n- __Custom__ folder cointains custom vob bases\u003c/br\u003e\n\n### Gen_Black Notepad++ syntax\nSyntax for Notepad++\u003c/br\u003e\n_Language \u003e User Defined Language \u003e Define your language... \u003e Import \u003e chose genblack.xml_\u003c/br\u003e\nIt works with [Visual Studio 2019 Dark Theme for Notepad++](https://github.com/hellon8/VS2019-Dark-Npp)\u003c/br\u003e\n\nexample:\u003c/br\u003e\n![Gen_Black Notepad++ syntax](https://i.imgur.com/eDhyuZN.png)\n\n\n## Show your support\nPlease ⭐️ this repository if this project helped you!\u003c/br\u003e\n\u003ca href=\"https://paypal.me/podfolio\"\u003e\n  \u003cimg src=\"https://i.imgur.com/9tOq2a6.png\" width=\"200\"\u003e\n\u003c/a\u003e\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/podfolio)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpodfolio%2Fgen_black-mod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpodfolio%2Fgen_black-mod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpodfolio%2Fgen_black-mod/lists"}