Updated: Pieces manager to support WS sources

Updated: Ignored models list
This commit is contained in:
dvdvideo1234 2023-11-08 22:57:31 +02:00
parent b485abd3ab
commit 09a4ce8ee5
3 changed files with 321 additions and 27 deletions

View File

@ -4,8 +4,14 @@ setlocal enabledelayedexpansion
:: The location of the script ( Do not change )
set emd_chew_pathb=%~dp0
:: Addons file extension
set emd_chew_adext=gma
:: The path to Garry's mod
set emd_chew_gmod=F:\Games\Steam\steamapps\common\GarrysMod
set emd_chew_gmod=D:\Games\Steam\steamapps\common\GarrysMod
:: Path to the workshop directory
set emd_chew_wshop=D:\Games\Steam\steamapps\workshop\content\4000
:: The path to Garry's mod addons folder
set emd_chew_addon=%emd_chew_gmod%\garrysmod\addons
@ -18,31 +24,32 @@ set emd_chew_repo=%emd_chew_addon%\TrackAssemblyTool_GIT
:: The path to the "garrysmod/data/trackassembly/trackasmlib_db.txt"
:: Such file is generated when tool control panel is refreshed in developer mode
set emd_chew_dbase=%emd_chew_gmod%\garrysmod\data\trackassembly\trackasmlib_db.txt
set emd_chew_dbase=%emd_chew_gmod%\garrysmod\data\trackassembly\exp\trackasmlib_db.txt
:: The path to the skipped models list
set emd_chew_skip=%emd_chew_repo%\data\peaces_manager\models_ignored.txt
set emd_chew_skip=%emd_chew_repo%\data\trackassembly\tools\peaces_manager\models_ignored.txt
:: How many addons are to be processed
set emd_chew_addcnt=16
set emd_chew_addcnt=17
:: GMA addons to be processed
set emd_chew_addlst[1]=sligwolfs_minitrains_149759773
set emd_chew_addlst[2]=sligwolfs_modelpack_147812851
set emd_chew_addlst[3]=sligwolfs_rerailer_132843280
set emd_chew_addlst[4]=sprops_workshop_edition_173482196
set emd_chew_addlst[5]=[1-gauge]_magnums_train_model_pack_290130567
set emd_chew_addlst[6]=shinji85s_rails_train_pack_326640186
set emd_chew_addlst[7]=sligwolfs_bgc_173717507
set emd_chew_addlst[8]=(classic)_steventechnos_buildings_and_roads_pack__331192490
set emd_chew_addlst[9]=mr.train_m_gauge_517442747
set emd_chew_addlst[10]=g_scale_track_pack_718239260
set emd_chew_addlst[11]=rons_minitrain_props_728833183
set emd_chew_addlst[12]=battleships_abandoned_rails(penn_central_simulator_2017)(wip)_807162936
set emd_chew_addlst[13]=alexcookies_2ft_track_pack_740453553
set emd_chew_addlst[14]=joes_track_pack_1658816805
set emd_chew_addlst[15]=steventechnos_buildings_and_roads_pack_2.0_1888013789
set emd_chew_addlst[16]=trackmania_united_track_props_1955876643
set emd_chew_addlst[1]=149759773
set emd_chew_addlst[2]=147812851
set emd_chew_addlst[3]=132843280
set emd_chew_addlst[4]=173482196
set emd_chew_addlst[5]=290130567
set emd_chew_addlst[6]=326640186
set emd_chew_addlst[7]=173717507
set emd_chew_addlst[8]=331192490
set emd_chew_addlst[9]=517442747
set emd_chew_addlst[10]=718239260
set emd_chew_addlst[11]=728833183
set emd_chew_addlst[12]=807162936
set emd_chew_addlst[13]=740453553
set emd_chew_addlst[14]=1658816805
set emd_chew_addlst[15]=1888013789
set emd_chew_addlst[16]=1955876643
set emd_chew_addlst[17]=3071058065
:: Folder list for extraction and the directories they will be extracted
set emd_chew_adddir[1]=SligWolf's Minitrains
@ -61,9 +68,9 @@ set emd_chew_adddir[13]=AlexCookie's 2ft track pack
set emd_chew_adddir[14]=Joe's track pack
set emd_chew_adddir[15]=StevenTechno's Buildings 2.0
set emd_chew_adddir[16]=Trackmania United Props
set emd_chew_adddir[17]=Fortification Collection
:: AUTOMATIC STUFF ::
:: Show the current folder
echo Running in: %emd_chew_pathb%
:: Output file for models list
@ -76,10 +83,48 @@ del %emd_chew_pathb%%emd_clog_lfile%.txt
:: Extract the GMA addons in the matching folders
for /L %%k in (1,1,%emd_chew_addcnt%) do (
cd %emd_chew_pathb%
rd /S /Q "!emd_chew_adddir[%%k]!"
call %emd_chew_binloc%\gmad.exe extract -file "%emd_chew_addon%\!emd_chew_addlst[%%k]!.gma" -out "%emd_chew_pathb%!emd_chew_adddir[%%k]!" >> %emd_clog_lfile%.txt
echo [%%k]!emd_chew_adddir[%%k]! @ %TIME%
set /A emd_chew_match=0
:: Try the addons folder
IF !emd_chew_match! EQU 0 (
:: Extract addon info
set "emd_chew_fdid=!emd_chew_addlst[%%k]!"
set "emd_chew_fdnm=!emd_chew_adddir[%%k]!"
:: Create search path
set emd_chew_fgma=!emd_chew_addon!\*
set emd_chew_fgma=!emd_chew_fgma!!emd_chew_fdid!*
set emd_chew_fgma=!emd_chew_fgma!.!emd_chew_adext!
set "emd_chew_fdnm=!emd_chew_adddir[%%k]!"
for %%i in (!emd_chew_fgma!) do (
set /A emd_chew_match=1
:: Extract the GMA in the current folder
cd %emd_chew_pathb%
IF EXIST "!emd_chew_fdnm!\" ( rd /S /Q "!emd_chew_fdnm!" )
call %emd_chew_binloc%\gmad.exe extract -file "%%i" -out "%emd_chew_pathb%!emd_chew_fdnm!" >> %emd_clog_lfile%.txt
echo Addons: [%%k]{!emd_chew_fdnm!} @ %TIME%
)
)
:: Try the workshop content folder
IF !emd_chew_match! EQU 0 (
:: Extract addon info
set "emd_chew_fdid=!emd_chew_addlst[%%k]!"
set "emd_chew_fdnm=!emd_chew_adddir[%%k]!"
:: Create search path
set emd_chew_fgma=!emd_chew_wshop!\
set emd_chew_fgma=!emd_chew_fgma!!emd_chew_fdid!\
set emd_chew_fgma=!emd_chew_fgma!*.!emd_chew_adext!
for %%i in (!emd_chew_fgma!) do (
set /A emd_chew_match=1
:: Extract the GMA in the current folder
cd %emd_chew_pathb%
IF EXIST "!emd_chew_fdnm!\" ( rd /S /Q "!emd_chew_fdnm!" )
call %emd_chew_binloc%\gmad.exe extract -file "%%i" -out "%emd_chew_pathb%!emd_chew_fdnm!" >> %emd_clog_lfile%.txt
echo Workshop: [%%k]{!emd_chew_fdnm!} @ %TIME%
)
)
:: Try the workshop content folder
IF !emd_chew_match! EQU 0 (
echo Not-Available: [%%k]{!emd_chew_fdnm!} @ %TIME%
)
)
:: Get all the model files in the current directory

View File

@ -587,6 +587,19 @@ models/sligwolf/wheels/tractor_wheel_125x125.mdl
models/sligwolf/wheels/tractor_wheel_150x150.mdl
models/sligwolf/wheels/tractor_wheel_175x175.mdl
models/sligwolf/wheels/tractor_wheel_200x200.mdl
models/weapons/w_357_vr.mdl
models/weapons/w_bugbait_vr.mdl
models/weapons/w_crossbow_vr.mdl
models/weapons/w_crowbar_vr.mdl
models/weapons/w_grenade_vr.mdl
models/weapons/w_irifle_vr.mdl
models/weapons/w_physcannon_vr.mdl
models/weapons/w_pistol_vr.mdl
models/weapons/w_rpg_vr.mdl
models/weapons/w_shotgun_vr.mdl
models/weapons/w_slam_vr.mdl
models/weapons/w_smg1_vr.mdl
models/weapons/w_stunstick_vr.mdl
# SligWolf's White Rails
models/sligwolf/wheels/tractor_wheel_025x025.mdl
@ -597,6 +610,19 @@ models/sligwolf/wheels/tractor_wheel_125x125.mdl
models/sligwolf/wheels/tractor_wheel_150x150.mdl
models/sligwolf/wheels/tractor_wheel_175x175.mdl
models/sligwolf/wheels/tractor_wheel_200x200.mdl
models/weapons/w_357_vr.mdl
models/weapons/w_bugbait_vr.mdl
models/weapons/w_crossbow_vr.mdl
models/weapons/w_crowbar_vr.mdl
models/weapons/w_grenade_vr.mdl
models/weapons/w_irifle_vr.mdl
models/weapons/w_physcannon_vr.mdl
models/weapons/w_pistol_vr.mdl
models/weapons/w_rpg_vr.mdl
models/weapons/w_shotgun_vr.mdl
models/weapons/w_slam_vr.mdl
models/weapons/w_smg1_vr.mdl
models/weapons/w_stunstick_vr.mdl
# SligWolf's Railcar
models/sligwolf/unique_props/placeholder001.mdl
@ -4810,6 +4836,229 @@ models/sprops/triangles_superthin/right/size_4/st_rtri_48x78.mdl
models/sprops/triangles_superthin/right/size_4/st_rtri_48x84.mdl
models/sprops/triangles_superthin/right/size_4/st_rtri_48x90.mdl
models/sprops/triangles_superthin/right/size_4/st_rtri_48x96.mdl
models/sprops/geometry/superthin/discs/fdisc_102.mdl
models/sprops/geometry/superthin/discs/fdisc_108.mdl
models/sprops/geometry/superthin/discs/fdisc_114.mdl
models/sprops/geometry/superthin/discs/fdisc_12.mdl
models/sprops/geometry/superthin/discs/fdisc_120.mdl
models/sprops/geometry/superthin/discs/fdisc_126.mdl
models/sprops/geometry/superthin/discs/fdisc_132.mdl
models/sprops/geometry/superthin/discs/fdisc_138.mdl
models/sprops/geometry/superthin/discs/fdisc_144.mdl
models/sprops/geometry/superthin/discs/fdisc_18.mdl
models/sprops/geometry/superthin/discs/fdisc_24.mdl
models/sprops/geometry/superthin/discs/fdisc_30.mdl
models/sprops/geometry/superthin/discs/fdisc_36.mdl
models/sprops/geometry/superthin/discs/fdisc_42.mdl
models/sprops/geometry/superthin/discs/fdisc_48.mdl
models/sprops/geometry/superthin/discs/fdisc_54.mdl
models/sprops/geometry/superthin/discs/fdisc_60.mdl
models/sprops/geometry/superthin/discs/fdisc_66.mdl
models/sprops/geometry/superthin/discs/fdisc_72.mdl
models/sprops/geometry/superthin/discs/fdisc_78.mdl
models/sprops/geometry/superthin/discs/fdisc_84.mdl
models/sprops/geometry/superthin/discs/fdisc_90.mdl
models/sprops/geometry/superthin/discs/fdisc_96.mdl
models/sprops/geometry/superthin/discs/hdisc_102.mdl
models/sprops/geometry/superthin/discs/hdisc_108.mdl
models/sprops/geometry/superthin/discs/hdisc_114.mdl
models/sprops/geometry/superthin/discs/hdisc_12.mdl
models/sprops/geometry/superthin/discs/hdisc_120.mdl
models/sprops/geometry/superthin/discs/hdisc_126.mdl
models/sprops/geometry/superthin/discs/hdisc_132.mdl
models/sprops/geometry/superthin/discs/hdisc_138.mdl
models/sprops/geometry/superthin/discs/hdisc_144.mdl
models/sprops/geometry/superthin/discs/hdisc_18.mdl
models/sprops/geometry/superthin/discs/hdisc_24.mdl
models/sprops/geometry/superthin/discs/hdisc_30.mdl
models/sprops/geometry/superthin/discs/hdisc_36.mdl
models/sprops/geometry/superthin/discs/hdisc_42.mdl
models/sprops/geometry/superthin/discs/hdisc_48.mdl
models/sprops/geometry/superthin/discs/hdisc_54.mdl
models/sprops/geometry/superthin/discs/hdisc_60.mdl
models/sprops/geometry/superthin/discs/hdisc_66.mdl
models/sprops/geometry/superthin/discs/hdisc_72.mdl
models/sprops/geometry/superthin/discs/hdisc_78.mdl
models/sprops/geometry/superthin/discs/hdisc_84.mdl
models/sprops/geometry/superthin/discs/hdisc_90.mdl
models/sprops/geometry/superthin/discs/hdisc_96.mdl
models/sprops/geometry/superthin/discs/qdisc_102.mdl
models/sprops/geometry/superthin/discs/qdisc_108.mdl
models/sprops/geometry/superthin/discs/qdisc_114.mdl
models/sprops/geometry/superthin/discs/qdisc_12.mdl
models/sprops/geometry/superthin/discs/qdisc_120.mdl
models/sprops/geometry/superthin/discs/qdisc_126.mdl
models/sprops/geometry/superthin/discs/qdisc_132.mdl
models/sprops/geometry/superthin/discs/qdisc_138.mdl
models/sprops/geometry/superthin/discs/qdisc_144.mdl
models/sprops/geometry/superthin/discs/qdisc_18.mdl
models/sprops/geometry/superthin/discs/qdisc_24.mdl
models/sprops/geometry/superthin/discs/qdisc_30.mdl
models/sprops/geometry/superthin/discs/qdisc_36.mdl
models/sprops/geometry/superthin/discs/qdisc_42.mdl
models/sprops/geometry/superthin/discs/qdisc_48.mdl
models/sprops/geometry/superthin/discs/qdisc_54.mdl
models/sprops/geometry/superthin/discs/qdisc_60.mdl
models/sprops/geometry/superthin/discs/qdisc_66.mdl
models/sprops/geometry/superthin/discs/qdisc_72.mdl
models/sprops/geometry/superthin/discs/qdisc_78.mdl
models/sprops/geometry/superthin/discs/qdisc_84.mdl
models/sprops/geometry/superthin/discs/qdisc_90.mdl
models/sprops/geometry/superthin/discs/qdisc_96.mdl
models/sprops/misc/sq_holes/superthin/fhole_102.mdl
models/sprops/misc/sq_holes/superthin/fhole_108.mdl
models/sprops/misc/sq_holes/superthin/fhole_114.mdl
models/sprops/misc/sq_holes/superthin/fhole_12.mdl
models/sprops/misc/sq_holes/superthin/fhole_120.mdl
models/sprops/misc/sq_holes/superthin/fhole_126.mdl
models/sprops/misc/sq_holes/superthin/fhole_132.mdl
models/sprops/misc/sq_holes/superthin/fhole_138.mdl
models/sprops/misc/sq_holes/superthin/fhole_144.mdl
models/sprops/misc/sq_holes/superthin/fhole_18.mdl
models/sprops/misc/sq_holes/superthin/fhole_24.mdl
models/sprops/misc/sq_holes/superthin/fhole_30.mdl
models/sprops/misc/sq_holes/superthin/fhole_36.mdl
models/sprops/misc/sq_holes/superthin/fhole_42.mdl
models/sprops/misc/sq_holes/superthin/fhole_48.mdl
models/sprops/misc/sq_holes/superthin/fhole_54.mdl
models/sprops/misc/sq_holes/superthin/fhole_60.mdl
models/sprops/misc/sq_holes/superthin/fhole_66.mdl
models/sprops/misc/sq_holes/superthin/fhole_72.mdl
models/sprops/misc/sq_holes/superthin/fhole_78.mdl
models/sprops/misc/sq_holes/superthin/fhole_84.mdl
models/sprops/misc/sq_holes/superthin/fhole_90.mdl
models/sprops/misc/sq_holes/superthin/fhole_96.mdl
models/sprops/misc/sq_holes/superthin/hhole_102.mdl
models/sprops/misc/sq_holes/superthin/hhole_108.mdl
models/sprops/misc/sq_holes/superthin/hhole_114.mdl
models/sprops/misc/sq_holes/superthin/hhole_12.mdl
models/sprops/misc/sq_holes/superthin/hhole_120.mdl
models/sprops/misc/sq_holes/superthin/hhole_126.mdl
models/sprops/misc/sq_holes/superthin/hhole_132.mdl
models/sprops/misc/sq_holes/superthin/hhole_138.mdl
models/sprops/misc/sq_holes/superthin/hhole_144.mdl
models/sprops/misc/sq_holes/superthin/hhole_18.mdl
models/sprops/misc/sq_holes/superthin/hhole_24.mdl
models/sprops/misc/sq_holes/superthin/hhole_30.mdl
models/sprops/misc/sq_holes/superthin/hhole_36.mdl
models/sprops/misc/sq_holes/superthin/hhole_42.mdl
models/sprops/misc/sq_holes/superthin/hhole_48.mdl
models/sprops/misc/sq_holes/superthin/hhole_54.mdl
models/sprops/misc/sq_holes/superthin/hhole_60.mdl
models/sprops/misc/sq_holes/superthin/hhole_66.mdl
models/sprops/misc/sq_holes/superthin/hhole_72.mdl
models/sprops/misc/sq_holes/superthin/hhole_78.mdl
models/sprops/misc/sq_holes/superthin/hhole_84.mdl
models/sprops/misc/sq_holes/superthin/hhole_90.mdl
models/sprops/misc/sq_holes/superthin/hhole_96.mdl
models/sprops/misc/sq_holes/superthin/qhole_102.mdl
models/sprops/misc/sq_holes/superthin/qhole_108.mdl
models/sprops/misc/sq_holes/superthin/qhole_114.mdl
models/sprops/misc/sq_holes/superthin/qhole_12.mdl
models/sprops/misc/sq_holes/superthin/qhole_120.mdl
models/sprops/misc/sq_holes/superthin/qhole_126.mdl
models/sprops/misc/sq_holes/superthin/qhole_132.mdl
models/sprops/misc/sq_holes/superthin/qhole_138.mdl
models/sprops/misc/sq_holes/superthin/qhole_144.mdl
models/sprops/misc/sq_holes/superthin/qhole_18.mdl
models/sprops/misc/sq_holes/superthin/qhole_24.mdl
models/sprops/misc/sq_holes/superthin/qhole_30.mdl
models/sprops/misc/sq_holes/superthin/qhole_36.mdl
models/sprops/misc/sq_holes/superthin/qhole_42.mdl
models/sprops/misc/sq_holes/superthin/qhole_48.mdl
models/sprops/misc/sq_holes/superthin/qhole_54.mdl
models/sprops/misc/sq_holes/superthin/qhole_60.mdl
models/sprops/misc/sq_holes/superthin/qhole_66.mdl
models/sprops/misc/sq_holes/superthin/qhole_72.mdl
models/sprops/misc/sq_holes/superthin/qhole_78.mdl
models/sprops/misc/sq_holes/superthin/qhole_84.mdl
models/sprops/misc/sq_holes/superthin/qhole_90.mdl
models/sprops/misc/sq_holes/superthin/qhole_96.mdl
models/sprops/trans/wheels_g/g_wheel15.mdl
models/sprops/trans/wheels_g/g_wheel20.mdl
models/sprops/trans/wheels_g/g_wheel25.mdl
models/sprops/trans/wheels_g/g_wheel30.mdl
models/sprops/trans/wheels_g/g_wheel35.mdl
models/sprops/trans/wheels_g/g_wheel40.mdl
models/sprops/trans/wheels_g/g_wheel45.mdl
models/sprops/trans/wheels_g/g_wheel50.mdl
models/sprops/trans/wheels_g/g_wheel55.mdl
models/sprops/trans/wheels_g/g_wheel60.mdl
models/sprops/trans/wheels_g/g_wheel65.mdl
models/sprops/trans/wheels_g/g_wheel70.mdl
models/sprops/trans/wheels_g/g_wheel75.mdl
models/sprops/trans/wheels_g/g_wheel80.mdl
models/sprops/trans/wheel_big_g/big_wheel15.mdl
models/sprops/trans/wheel_big_g/big_wheel20.mdl
models/sprops/trans/wheel_big_g/big_wheel25.mdl
models/sprops/trans/wheel_big_g/big_wheel30.mdl
models/sprops/trans/wheel_big_g/big_wheel35.mdl
models/sprops/trans/wheel_big_g/big_wheel40.mdl
models/sprops/trans/wheel_big_g/big_wheel45.mdl
models/sprops/trans/wheel_big_g/big_wheel50.mdl
models/sprops/trans/wheel_big_g/big_wheel55.mdl
models/sprops/trans/wheel_big_g/big_wheel60.mdl
models/sprops/trans/wheel_big_g/big_wheel65.mdl
models/sprops/trans/wheel_big_g/big_wheel70.mdl
models/sprops/trans/wheel_big_g/big_wheel75.mdl
models/sprops/trans/wheel_big_g/big_wheel80.mdl
models/sprops/trans/wheel_f/f_wheel15.mdl
models/sprops/trans/wheel_f/f_wheel20.mdl
models/sprops/trans/wheel_f/f_wheel25.mdl
models/sprops/trans/wheel_f/f_wheel30.mdl
models/sprops/trans/wheel_f/f_wheel35.mdl
models/sprops/trans/wheel_f/f_wheel40.mdl
models/sprops/trans/wheel_f/f_wheel45.mdl
models/sprops/trans/wheel_f/f_wheel50.mdl
models/sprops/trans/wheel_f/f_wheel55.mdl
models/sprops/trans/wheel_f/f_wheel60.mdl
models/sprops/trans/wheel_f/f_wheel65.mdl
models/sprops/trans/wheel_f/f_wheel70.mdl
models/sprops/trans/wheel_f/f_wheel75.mdl
models/sprops/trans/wheel_f/f_wheel80.mdl
models/sprops/trans/fender_a/a_fender30.mdl
models/sprops/trans/fender_a/a_fender35.mdl
models/sprops/trans/fender_a/a_fender40.mdl
models/sprops/trans/fender_a/a_fender45.mdl
models/sprops/trans/misc/antenna_32.mdl
models/sprops/trans/misc/antenna_64.mdl
models/sprops/trans/misc/antenna_96.mdl
models/sprops/trans/miscwheels/wt1spr_12.mdl
models/sprops/trans/miscwheels/wt1s_12.mdl
models/sprops/trans/miscwheels/wt1_12.mdl
models/sprops/trans/miscwheels/wt2_idler_12.mdl
models/sprops/trans/miscwheels/wt2_road_12.mdl
models/sprops/trans/miscwheels/wt2_roller_12.mdl
models/sprops/trans/miscwheels/wt2_sprocket_12.mdl
models/sprops/trans/stwheel/stwheel_8.mdl
models/sprops/trans/stwheel/stwheel_9.mdl
models/sprops/misc/axis_plane.mdl
models/sprops/misc/boxplane.mdl
models/sprops/misc/cube_from_x.mdl
models/sprops/misc/cube_from_y.mdl
models/sprops/misc/cube_from_z.mdl
models/sprops/misc/empty.mdl
models/sprops/misc/hexplane.mdl
models/sprops/misc/magicube_i.mdl
models/sprops/misc/magicube_o.mdl
models/sprops/misc/numberwheel.mdl
models/sprops/misc/oblong0_hq.mdl
models/sprops/misc/oblong0_lq.mdl
models/sprops/misc/oblong1_hq.mdl
models/sprops/misc/oblong1_lq.mdl
models/sprops/misc/oblong2_hq.mdl
models/sprops/misc/oblong2_lq.mdl
models/sprops/misc/triplane.mdl
models/sprops/misc/games/cards_clubs.mdl
models/sprops/misc/games/cards_diamonds.mdl
models/sprops/misc/games/cards_hearts.mdl
models/sprops/misc/games/cards_spades.mdl
models/sprops/misc/games/d10.mdl
models/sprops/misc/games/d12.mdl
models/sprops/misc/games/d20.mdl
models/sprops/misc/games/d4.mdl
models/sprops/misc/games/d6.mdl
models/sprops/misc/games/d8.mdl
# StephenTechno's Buildings
models/buildingspack/emptylots/lo64x32.mdl

View File

@ -85,7 +85,7 @@ local asmlib = trackasmlib; if(not asmlib) then -- Module present
------------ CONFIGURE ASMLIB ------------
asmlib.InitBase("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","8.732")
asmlib.SetOpVar("TOOL_VERSION","8.733")
asmlib.SetIndexes("V" ,1,2,3)
asmlib.SetIndexes("A" ,1,2,3)
asmlib.SetIndexes("WV",1,2,3)