Raised This Month: $12 Target: $400
 3% 

[batch] Particle list extractor


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-09-2019 , 08:15   [batch] Particle list extractor
Reply With Quote #1

Purpose:
Intended for retrieving list of particle effect names from any .pcf file.
Required:
dmxconvert.exe (valve tool), you can find it in SDK, or Authoring tools of some games.
How to use

- (optionally) if you have no *.pcf files, and you want to extract default game *.pcf,
firstly, you need to find (extract) them. Example for Left 4 dead:
- Download and run GCFScape: http://nemesis.thewavelength.net/?p=26
- open \steamapps\common\Left 4 Dead\left4dead\pak01_dir.vpk file in GFScape
- Right click on "particles" folder => Extract => e.g., to \steamapps\common\Left 4 Dead\left4dead\particles folder
- Download and unpack attached archive
- Right click on convert_pcf.cmd => Edit =>
- Set correct full path to folder, where dmxconvert.exe is located:
Code:
set "binpath=D:\Steam2\steamapps\common\Left 4 Dead 2\bin"
- Set correct full path to folder, where you placed *.pcf files:
Code:
set "pcfpath=D:\Steam2\steamapps\common\Left 4 Dead\left4dead\particles"
Save.
- Run (double click) convert_pcf.cmd
Result:
Spoiler


For reference:
[OB] Full Particle List
Valve: List of L4D Particles
Valve: List of L4D2 Particles
Attached Files
File Type: zip PCF_Extractor.zip (7.6 KB, 445 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 02-01-2020 at 17:16.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 12-09-2019 , 11:50   Re: [batch] Particle list extractor
Reply With Quote #2

Here is a plugin 'particles tester', you can use with above generated txt file.
Command sm_passific - to open menu with particle list.

Limitation: game cannot precache all particles at once, so you need remove some from the list to be able to test last particles in that list.
Attached Files
File Type: zip particle_tester.zip (21.9 KB, 337 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 12-09-2019 at 11:50.
Dragokas is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 12-11-2019 , 07:48   Re: [batch] Particle list extractor
Reply With Quote #3

There is a built-in particle editor in Source 2007+ games (as an alternative option): https://developer.valvesoftware.com/...article_Editor
kadet.89 is offline
Send a message via Skype™ to kadet.89
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 12-11-2019 , 12:05   Re: [batch] Particle list extractor
Reply With Quote #4

Build-in particle Editor is sucks, because e.g. for L4D it show many such things that when applied in a real game they looks differently or contains missing texture or cannot be precached.
That's why I wrote runtime version of particle tester to ensure you will not be deceived by valve tool.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 12-11-2019 at 12:06.
Dragokas is offline
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 01-17-2021 , 20:17   Re: [batch] Particle list extractor
Reply With Quote #5

Good drakogas nice tool!!

Last edited by foxhound27; 06-13-2021 at 22:11. Reason: :D
foxhound27 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-05-2021 , 18:15   Re: [batch] Particle list extractor
Reply With Quote #6

Very useful tool Dragokas. Thanks for sharing.

This helped me a lot while I was searching for specific particle attributes.

Just a note, I had to create a new ".cmd" file and copy+paste your script, otherwise, the script wouldn't open to run (Windows 7).
__________________
Marttt is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-06-2021 , 02:23   Re: [batch] Particle list extractor
Reply With Quote #7

Why? That's pure ANSI. Give me your version for comparison.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-06-2021 , 14:56   Re: [batch] Particle list extractor
Reply With Quote #8

Here is a zip with both files, although seems that the binary is the same (I did a compare using WinMerge -> binary comparison).

But for me only works after doing copy-paste from the original file. Anyway, maybe is just an issue at my end. Thanks for the support Dragokas
Attached Files
File Type: zip compare.zip (1.3 KB, 189 views)
__________________
Marttt is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-07-2021 , 01:12   Re: [batch] Particle list extractor
Reply With Quote #9

Perhaps, you have some SmartScreen Policy related to blocking some executables with alternate stream (downloaded from internet).
https://winaero.com/batch-unblock-fi...in-windows-10/
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 02-07-2021 at 01:13.
Dragokas is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode