PDA

View Full Version : How to do smaller mappacks (less download)



sttte93
13th March 2017, 18:13
Hi all,
a few days ago i discovered this very useful thread from IzNoGoD, and i would like understand, step by step (with your helps), how to do it for me and, why not, for others.

(The default guide is here -> https://killtube.org/showthread.php?1571-Smaller-mappacks-less-download)

My first problem is :

Create a folder "stock" in said folder, copy all (including localized_english) iwds from your cod2 directory to there and extract them in such a way the C:/JH2/stock/maps folder exists (extract on the spot, not to a subdir)

Like this?

1294

IzNoGoD
13th March 2017, 19:08
yes.

10char

sttte93
13th March 2017, 20:37
Ok, thank you.
Now:

Edit all your soundaliases so they have a proper loadspec for every sound file (is technically not entirely needed, but the script is instructed to throw warnings if improper loadspecs are used which makes the output quite unreadable)

U mean the first (red) line or the second (blue) line?

1295

IzNoGoD
13th March 2017, 22:19
Go read a stock soundalias file.

sttte93
13th March 2017, 23:03
Go read a stock soundalias file.

From soundaliases/iw_multiplayer2.csv

1296

kung foo man
14th March 2017, 00:31
The red line is the "definition" of the .csv file, while the blue line is the actual data. So which one do you need? Both.

Count the position until "loadspec" in the definition in your red line example. Which position has it? 16

Now count the 16th position in the actual data. Which string is that? mp_shipment

16 is highly arbitrary, so you need to recount it for every map .csv file. And make sure that the actual data value for "loadspec" is always set to the name of the current map ($mapname.csv)

That's what the Python script will check for later:



elif row[loadspec_index] != mapname:
print(mapname, "has invalid loadspec for", row[0])

sttte93
14th March 2017, 18:59
Ok, thank you kung foo man, done.

Now i'm here:

Look through the scripts of your maps to see if any additional xmodels or images are used.
- If any additional xmodels are used, store their names in a mapname.txt files (do this per-map) in the add_models folder, layout (taken from jm_pier_2.txt)

I don't have maps with xmodels folders, but if i will add one, the correct syntax for <mapname.txt> will be:

xmodel/namefile1
xmodel/namefile2
...
...

?

- Do the same for images the scripts use, store in same manner in add_shaders.

I my current maps, in images folders have only the loadscreen_mapname.iwi

I need to create a <mapname.txt> and add :

loadscreen_mapname

? Or is not require?

IzNoGoD
14th March 2017, 22:52
Not if the loadscreen is referenced in the .csv.

Why dont you just TRY it and see what's actually in the packs.

sttte93
15th March 2017, 21:14
I got this :

1297

kung foo man
15th March 2017, 22:10
Install 7-Zip: http://www.7-zip.org/

Then either add C:\Program Files\7-Zip\ to your PATH variable: https://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10

Or just copy C:\Program Files\7-Zip\7z.exe into your C:\JH2\packs folder.

IzNoGoD
16th March 2017, 00:10
https://i.gyazo.com/73caec3e35b76243e71425bb698f8b33.png

OP missing first and third item at the very least.