STEAM GROUP
Crowbar [Source Engine Modding Tool] CrowbarTool
STEAM GROUP
Crowbar [Source Engine Modding Tool] CrowbarTool
1,104
IN-GAME
7,095
ONLINE
Founded
26 October, 2013
Language
English
This topic has been locked
Pte Jack 7 Mar, 2018 @ 7:00am
[DONE][REQ] Crowbar v0.55 - Feature Suggestion/Request
Good work on the GMA extractor Zeq. However, I do have a suggestion/request to make.

https://i.imgur.com/PmkaRrP.png

This should apply to both VPK and GMA extractions, especially if doing multiple file (which multi file selections currently doesn't seem possible from the file browser) or folder/subfolder extractions.

The reason behind this is that (especially where GMAs are concerned) models can use the same paths and filenames under their parent folders. Combinng files like this most likely means that something is being dropped. For example there might be 7 different GMod Scouts GMA in the addon folder. All 7 use a path of models\player\scout.mdl and their materials under materials\models\player\scout and all have the same VMT\VTF filenames. These are located under their parent folders (which make them distinct for use in game together), however, (it looks like) Crowbar is merging every model into distinct Models, materials, models, sound, particles, lua , etc folders. This must mean Crowbar is deciding which files to drop and which to keep.

Also when I port these models to another program (such as SFM), having the files extract to a distinct parent older makes it easier to just grab and move the parent into game and create a mod folder.

Last edited by ZeqMacaw; 11 Oct, 2019 @ 6:50am
< >
Showing 1-4 of 4 comments
ZeqMacaw 7 Mar, 2018 @ 7:36am 
Planned.

EDIT: Just to clarify, I was thinking each package (VPK or GMA) file should gets its own folder, not just the models as indicated in the image.

Example: Two Scout GMA files, scout1.gma and scout2.gma would unpack to:
<output_folder>\scout1\materials\scout.vmt <output_folder>\scout1\models\scout.mdl <output_folder>\scout2\materials\scout.vmt <output_folder>\scout2\models\scout.mdl
Last edited by ZeqMacaw; 25 Mar, 2018 @ 5:08pm
Pte Jack 7 Mar, 2018 @ 7:50am 
Actually, I was thinking a folder based on the actual GMA name. For example, if I had stormtroopers in these 2 packages that used same folder/filename structures

star_wars_ea_battlefront_2_-_first_order_stormtrooper_playermodel_pack_v1.3_1232265546.gma
and
star_wars_a_new_hope_(sunthero)_-_imperial_stormtrooper_playermodel_&_npc_795752378.gma

(Flipping authors anf their naming conventions) ...

Crowbar would create 2 folders

One being
star_wars_ea_1232265546
and the other being
star_wars_a_n_795752378

Using a certain number of characters and the GMA file designation "should" make the folder disctinct enough for use.

Edited, let me add a third GMA where there would be a problem though

star_wars_ea_battlefront_2_-_first_order_stormtrooper_playermodel_pack_v1.2_1232265546

This would cause a problem because the gma designations are the same and the prefix is the same.

The 3 folders would end up like this

star_wars_ea_1232265546
star_wars_a_n_795752378
star_wars_ea_1232265546

1 and 3 are different versions of the same model pack, one update the other and that isn't discovered until you hit v1.3 and v1.2 in the GMA filename.

Like I said earlier, flipping author file naming conventions and GMA DUPES.

(so my suggestion would have to be taken to another level of duplicate folder checking (dag it))

Edit 2:

This is why I use
call "%var%" extract -file "%~f1" -out "%~n1"
which equates to
gmad.exe extract -file (filename passed) -out (folder = filename in)

in my Gmad.bat file. this creates individual folder based on the filename passed to gmad for each gma processed. This way there are no duplicate folders created because each filename is distinct (or it wouldn't exist in the multi drop or folder being processed)
Last edited by Pte Jack; 7 Mar, 2018 @ 8:27am
ZeqMacaw 11 Oct, 2019 @ 6:50am 
Done as of Crowbar 0.61.
Pte Jack 11 Oct, 2019 @ 8:57am 
Kewl
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: 7 Mar, 2018 @ 7:00am
Posts: 4