Page 1 of 2

Pk3-Validator

Posted: Tue Feb 07, 2012 10:42 am
by madpew
Hello everyone,

I read some topics about Map-Validation and the Mapping-Suite and stumbled across a tool I did some time ago that I didn't finish because I gave up mapping.
To keep things short here's the deal:

The Pk3-Validator currently
    unpacks the pk3,
    checks the naming of the pk3 in regard of the mapname
    checks for .aas, .bsp, levelshot, minimap, readme, .arena, .rad
    can autogenerate-arena file by looking at the entities in the bsp
    checks for files included that should not be distributed: .map .ase .md3 .qc thumbs.db
    checks textures for power of 2 dimensions
    checks the bsp to include intermission spawn, locationnames, spawnpoints, sounds and surfacesounds
alot more features were planned (checking for unused assets, checking for missing assets,...)

BUT, it's written in C# and therefore Windows-Platform only.
Now here's the question:
Is anyone interested in such a tool and is there any need to make it multiplatform?

Best regards, madpew

To clear things up here's the output when running the map ut4_orbital_sl through this tool (with additional info turned on)
Spoiler: show
pewMapValidator - v. 1.0
___ Checking 'ut4_orbital_sl.pk3'
|
( ) REQUIRED FILES
|
|-ERR- '/maps/ut4_orbital_sl.aas' missing.
| '-- No Bot-support?
|-ERR- '/maps/ut4_orbital_sl.rad' missing.
| '-- No Bumpmapping? Use Bumpy Compiler.
|-ERR- Wrong Naming: 'ut4_orbital_sl.txt' should be 'readme.txt'
|
( ) BSP COMMON ENTITIES
|
|-ERR- Intermission Spawn missing.
| '-- This Spawn is used when the map is over and the scoreboard shown.
|
( ) BSP SURFACE SOUNDS
|
|
( ) TEXTURES POWER OF 2
|
|-ERR- 'textures/esa_O/022301431074R980_N.jpg' failed. (294x259)
|-ERR- 'textures/esa_O/Aircos0002.jpg' failed. (48x48)
|-ERR- 'textures/esa_O/Aircos0002_S.jpg' failed. (256x180)
|-ERR- 'textures/esa_O/br2.jpg' failed. (330x256)
|-ERR- 'textures/esa_O/Buttons0022_S.jpg' failed. (85x128)
|-ERR- 'textures/esa_O/cell3.jpg' failed. (47x249)
|-ERR- 'textures/esa_O/cell4.jpg' failed. (47x47)
|-ERR- 'textures/esa_O/cm53bh_713400g.jpg' failed. (256x317)
|-ERR- 'textures/esa_O/crate5.jpg' failed. (504x504)
|-ERR- 'textures/esa_O/door.jpg' failed. (353x294)
|-ERR- 'textures/esa_O/doorexit.jpg' failed. (353x294)
|-ERR- 'textures/esa_O/DoorsIndustrial.jpg' failed. (512x590)
|-ERR- 'textures/esa_O/emiliebresse.jpg' failed. (256x192)
|-ERR- 'textures/esa_O/graph.tga' failed. (256x159)
|-ERR- 'textures/esa_O/graph2.tga' failed. (256x192)
|-ERR- 'textures/esa_O/holog.jpg' failed. (232x511)
|-ERR- 'textures/esa_O/instinct2.jpg' failed. (31x33)
|-ERR- 'textures/esa_O/iss_virus.jpg' failed. (256x197)
|-ERR- 'textures/esa_O/Kr0t4L_icon.jpg' failed. (768x256)
|-ERR- 'textures/esa_O/Leather0072_S.jpg' failed. (265x256)
|-ERR- 'textures/esa_O/MetalBlock.jpg' failed. (384x512)
|-ERR- 'textures/esa_O/MetalBulkheads0008_2_S.jpg' failed. (512x191)
|-ERR- 'textures/esa_O/MetalPlates0222_2_S.jpg' failed. (256x208)
|-ERR- 'textures/esa_O/MetalRollup0062_S.jpg' failed. (256x462)
|-ERR- 'textures/esa_O/monitor1.jpg' failed. (369x239)
|-ERR- 'textures/esa_O/monitor2.jpg' failed. (369x239)
|-ERR- 'textures/esa_O/monitor3.jpg' failed. (369x239)
|-ERR- 'textures/esa_O/monitor4.jpg' failed. (369x239)
|-ERR- 'textures/esa_O/monitor5.jpg' failed. (369x239)
|-ERR- 'textures/esa_O/monitor6.jpg' failed. (369x239)
|-ERR- 'textures/esa_O/monitor7.jpg' failed. (369x239)
|-ERR- 'textures/esa_O/monitorX.jpg' failed. (369x280)
|-ERR- 'textures/esa_O/noexit.jpg' failed. (254x238)
|-ERR- 'textures/esa_O/panel1.jpg' failed. (192x256)
|-ERR- 'textures/esa_O/panel2.jpg' failed. (256x205)
|-ERR- 'textures/esa_O/panel3.jpg' failed. (512x182)
|-ERR- 'textures/esa_O/pinup_t.jpg' failed. (300x450)
|-ERR- 'textures/esa_O/restricted.jpg' failed. (256x186)
|-ERR- 'textures/esa_O/trim1.jpg' failed. (427x176)
|-ERR- 'textures/esa_O/trim2.jpg' failed. (256x321)
|-ERR- 'textures/esa_O/Various0062_S.jpg' failed. (512x460)
|-ERR- 'textures/esa_O/Various0213_S.jpg' failed. (256x168)
|-ERR- 'textures/esa_O/Various0215_S.jpg' failed. (213x256)
|-ERR- 'textures/esa_O/Various0216_S.jpg' failed. (256x68)
|-ERR- 'textures/esa_O/Various0377_S.jpg' failed. (256x291)
|-ERR- 'textures/esa_O/Various0440_S.jpg' failed. (139x256)
|-ERR- 'textures/esa_O/Various0482_S.jpg' failed. (512x325)
|-ERR- 'textures/esa_O/Various_1.jpg' failed. (209x385)
|-ERR- 'textures/esa_O/Various_2.jpg' failed. (208x335)
|-ERR- 'textures/esa_O/Various_3.jpg' failed. (362x81)
|-ERR- 'textures/esa_O/Various_4.jpg' failed. (215x39)
|-ERR- 'textures/esa_O/Various_5.jpg' failed. (132x116)
|-ERR- 'textures/esa_O/Vents0055_D.jpg' failed. (218x512)
|-ERR- 'textures/esa_O/Vents0149_S.jpg' failed. (512x198)
|-ERR- 'textures/esa_O/w1.jpg' failed. (579x279)
|-ERR- 'textures/esa_O/wall1.jpg' failed. (487x407)
|-ERR- 'textures/esa_O/XRayChest0013_S.jpg' failed. (512x617)
|-ERR- 'textures/esa_O/XRayHands0001_S.jpg' failed. (256x319)
|-ERR- 'textures/esa_O/XRayHead0007_S.jpg' failed. (256x317)
|-ERR- 'textures/photorealistic_objets/object018.jpg' failed. (128x194)
|-ERR- 'textures/ut_house/rt_lightside_01.tga' failed. (32x80)
|-ERR- 'textures/ut_house/trim_cementwall2.jpg' failed. (256x48)
|-ERR- 'levelshots/ut4_orbital_sl.jpg' failed. (1024x768)
|-ERR- 'models/mapobjects/multiplant/bannanaleaf.tga' failed. (128x368)
|-ERR- 'models/mapobjects/multiplant/batleaf.tga' failed. (192x408)
|-ERR- 'models/mapobjects/multiplant/batleaf2.tga' failed. (192x408)
|-ERR- 'models/mapobjects/multiplant/batleaf2veins.tga' failed. (192x408)
|-ERR- 'models/mapobjects/multiplant/fern.tga' failed. (192x368)
|-ERR- 'models/mapobjects/multiplant/leaf1.tga' failed. (128x352)
|-ERR- 'models/mapobjects/multiplant/leaf2.tga' failed. (96x320)
|-ERR- 'models/mapobjects/multiplant/leaf3.tga' failed. (96x352)
|-ERR- 'models/mapobjects/multiplant/palmfrond.tga' failed. (128x384)
|-ERR- 'models/mapobjects/multiplant/pleaf1.tga' failed. (160x272)
|-ERR- 'models/mapobjects/multiplant/pleaf3.tga' failed. (202x283)
|-ERR- 'models/mapobjects/palm1/palm1.tga' failed. (208x352)
|
( ) "DO NOT DISTRIBUTE"-FILES
|
|-ERR- MD3-File(s) detected.
| '-- Those are not needed for distribution. Models are baked into the Bsp.
|-ERR- QC-File(s) detected.
| '-- Those are not needed for distribution. Models are baked into the Bsp.
|-ERR- Useless file(s) 'thumbs.db' detected.
| '-- system-files storing thumbnails of files for faster preview.
|
( ) Finished in 0,75 seconds.
'-- With 82 Errors.
:-(

Re: Pk3-Validator

Posted: Tue Feb 07, 2012 11:03 am
by johnnyenglish
There's definitely a lot of demand for a tool such as this, I'm guessing that a lot of current mappers use a linux brand or mac as well as windows. We can probably run a vote to find out the numbers.

Re: Pk3-Validator

Posted: Tue Feb 07, 2012 11:20 am
by Rylius
If you post the code I can adapt it for the mapping suite, otherwise I'd write my own validator anyway - your decision :)
Feel free to make it multiplatform, but I can relief you of the work :D
Sweet tool nethertheless!

PS: I could turn it standalone too if people want

Re: Pk3-Validator

Posted: Tue Feb 07, 2012 11:57 am
by madpew
Problem solved. Thanks for the feedback anyways.
I gave the code to Rylius.
Thanks in advance for his efforts.
Best regards, madpew

Re: Pk3-Validator

Posted: Tue Feb 07, 2012 12:43 pm
by xandaxs
I'll damn sure use this!

Re: Pk3-Validator

Posted: Tue Feb 07, 2012 5:18 pm
by HappyDay
Yes, very useful tool. A colored output would be cool though (maybe it is colored, idk)

Re: Pk3-Validator

Posted: Tue Feb 07, 2012 5:54 pm
by nemNEMnem
Is this a console-programm? i mean are u starting it with "C:/pk3validater.exe" -validate "C:/helo.pk3"
If yes, send it to me and i will put it into the MP3

a mappacker AND a packvalidater :D

Re: Pk3-Validator

Posted: Tue Feb 07, 2012 6:41 pm
by Fleuv
Nicee, may add a code/abbility for map.pk3 minus zpak.pk3

johnnyenglish wrote:There's definitely a lot of demand for a tool such as this, I'm guessing that a lot of current mappers use a linux brand or mac as well as windows. We can probably run a vote to find out the numbers.


Windows ofc<3

Re: Pk3-Validator

Posted: Tue Feb 07, 2012 7:25 pm
by xandaxs
you should always have zpak as you don't know what's changing in urt hd..

Re: Pk3-Validator

Posted: Tue Feb 07, 2012 8:59 pm
by theRipper
do you guys not use mappacker?