POSTAL 2

POSTAL 2

Go POSTAL your way.
The world of Paradise (and beyond!) at your fingertips. Use the same tools as RWS to create your own weapons, maps, skins, mods, and any other content your heart desires, and then piss on it all!
Les mer
Enkay  [utvikler] 15 20. mai 2014 kl. 17.54
New guide: Texture and sound replacements via script
I've uploaded a new guide for Workshop developers who want to replace textures and sounds. Using this guide you can create your own scripted replacements, and eliminate the requirements for end users to install your mod manually!

http://steamcommunity.com/sharedfiles/filedetails/?id=261974024

If you already have a texture or sound pack uploaded, I highly suggest you follow this guide to script your texture and sound replacements. We will be cracking down on "manual install" workshop mods because they defeat the purpose of the Steam Workshop.

If you have any questions on scripting your texture and sound replacements, do not hesitate to ask. Myself or one of the members of the community or dev team will be glad to help.
< >
Viser 111 av 11 kommentarer
A-Mod 5 21. mai 2014 kl. 6.51 
Kamek, thanks)).
prawdziwy 666 21. mai 2014 kl. 10.56 
I think that AssetReplacer uc should be added to WorkshopSample
Sist redigert av prawdziwy 666; 21. mai 2014 kl. 10.57
SamSerious 1 21. mai 2014 kl. 12.12 
Interesting. I will check it out. But you guys really need to allow us to use mods with already existing saved games. Starting a new game just to be able to select a new skin,model,sound mod kinda sucks. Thanks.
Sist redigert av SamSerious; 21. mai 2014 kl. 12.12
Nickel Jackal 2 21. mai 2014 kl. 19.22 
That's great! Thank you.
SamSerious 1 22. mai 2014 kl. 3.16 
Tried your tutorial. Finally managed to make it visible in-game workshop tab. Selected my mod, started new game, modified sounds dont work for sht. I only tested the line below just for the pistol sound. Nothing.

// Pistol.
if (PistolWeapon(Other) != None)
{
NewSound = ReplaceSound(PistolWeapon(Other).FireSound);
if (NewSound != None)
PistolWeapon(Other).FireSound = NewSound;
}

I also had to remove one } for SoundThings block and add another 1 to this new Pistol block, so it would be 2 } for both blocks. Otherwise the UCC compiler would give me an error about : unexpected if } bla bla and could not compile.


I archived my package for someone to look at it and maybe give me an advice or two.
http://www.megafileupload.com/en/file/533133/258927227-rar.html

If you put it in the Workshop content folder, it will be visible in-game but the no modified sounds will work. So i also included the raw .uc file to look at it and see possible mistakes made by me.

I cant believe how hard and susceptible to errors this is for such simple tasks. It's beyond my imagination what would take to compile something even more "complex" than replacing a sound or texture.
Sist redigert av SamSerious; 22. mai 2014 kl. 3.47
Enkay  [utvikler] 15 22. mai 2014 kl. 15.06 
mcquade, did you remember to add in the sounds in the default properties block?

Here is a working example that replaces the pistol fire sound for a fart. I've taken the code from the tutorial and changed just the default properties block: http://pastebin.com/BySEsjv3
SamSerious 1 23. mai 2014 kl. 1.25 
Of course. I added a line for each sound i replace. Anyway to test my suspicion, i added the fart sound to the pistol fire. It worked. Obviously a default sound.

This only leads me to one conclusion. The script has no idea where to look for the modified new sound. But it's obvious by default it should look into the workshop content folder.

One example.

SoundReplace[0]=(OldSound=Sound'WeaponSounds.pistol_fire',NewSound=Sound'WeaponSounds.pistol_fire')}

The new modified weaponsounds.utx being located in WorkshopContent\258927227\Sounds folder. I even gave it a custom name thinking maybe it conflicts with the original file. Still doesnt works.
Enkay  [utvikler] 15 24. mai 2014 kl. 13.47 
You're trying to use a WeaponSounds.utx package when one already exists. The game can't differentiate between the two. If it could we wouldn't have to go through all this.

Export your custom sounds to a new package with a different name, and reference that package instead.
Nickel Jackal 2 24. mai 2014 kl. 23.49 
Maybe I can't replace rectangle textures.
Square textures like Timb.sign.rc_ahead(256x256>1024x1024),Timb.sign.rs_hitchhiking(128x128>1024x1024) works very well.
But rectangle textures like Zo_Industrial-HD.Other.zo_electrical_box(512x256>2048x1024),STV-3.stuff.bruegel-procession(512x256>1024x512 or 2048x1024),STV-3.stuff.Opening(256x128>1024x512) doesn't work.
I did same way of these and I checked rectangle textures are normally replaced when direct overwrite original textures.
Sist redigert av Nickel Jackal; 24. mai 2014 kl. 23.50
SamSerious 1 26. mai 2014 kl. 0.58 
Opprinnelig skrevet av Kamek:
You're trying to use a WeaponSounds.utx package when one already exists. The game can't differentiate between the two. If it could we wouldn't have to go through all this.

Export your custom sounds to a new package with a different name, and reference that package instead.

I already wrote that i did and it doesnt work.

LE: ok it looks like i had to first copy my modified sound package to the Sounds folder in Postal2Editor so the script can be compiled properly. The compiler didnt showed any errors when doing it wrong (having the uax package in totally different folder).

Now it finally works! THANKS!

LE2: the sound for machinegun, shotgun doesnt seem to work. Made it like this :
// Shotgun.
if (ShotgunWeapon(Other) != None)
{
NewSound = ReplaceSound(ShotGunWeapon(Other).FireSound);
if (NewSound != None)
ShotGunWeapon(Other).FireSound = NewSound;

}

// Machinegun.
if (MachinegunWeapon(Other) != None)
{
NewSound = ReplaceSound(MachineGunWeapon(Other).FireSound);
if (NewSound != None)
MachineGunWeapon(Other).FireSound = NewSound;
}


I followed your instructions using notepad++ and i cannot even find the shotgun_ejectshell. Any tips?
Sist redigert av SamSerious; 26. mai 2014 kl. 8.07
Nickel Jackal 2 31. mai 2014 kl. 21.55 
I understand what textures can effect.
If "Staticmesh propaties>Display>Skins>+ mark" is like "[0]Texture 'aa.bb.cc'" can replace,nothing written on that cannot replace.
Sist redigert av Nickel Jackal; 31. mai 2014 kl. 22.26
< >
Viser 111 av 11 kommentarer
Per side: 1530 50

Dato lagt ut: 20. mai 2014 kl. 17.54
Innlegg: 11