Urban Terror Forums: Removing this type of messages ?!?...and move these ones to the middle of the HUD ? - Urban Terror Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Removing this type of messages ?!?...and move these ones to the middle of the HUD ? Rate Topic: -----

#16 User is offline   AJSB Icon

  • Group: Members
  • Posts: 8
  • Joined: 01-April 09
  • LocationPortugal

Posted 17 November 2009 - 12:42 PM

That's really i9nteresting !

But how is the .pk3 file created by me loaded ?!? do i just need to put that file in same directory/folder than
the other .pk3 files with the maps ?!?

How does UrT knows where to search the custom WAV that i specify ? does i only need to keep the internal folder structure of my pk3 the same structure as the other pk3's so that this works automatically : "play sound\misc\nowUsingLR300" ?


TIA,
AJSB

This post has been edited by AJSB: 17 November 2009 - 12:43 PM


#17 User is online   mitsubishi Icon

  • Group: Members
  • Posts: 8,235
  • Joined: 01-January 05

Posted 17 November 2009 - 01:09 PM

mp3 is probably not supported, unless iourt was released at a point mp3 was in (it's not now). it's possible.

#18 User is offline   ObScUrE Icon

  • Group: Members
  • Posts: 511
  • Joined: 27-September 08

Posted 17 November 2009 - 01:48 PM

a *.pk3 file is a simple zip file you have to zip your wave files in a directory and rename it to *.pk3 at the end.

Example:

mysounds.pk3 (sounds\mywave.wav)
Posted Image
Posted Image
~In the meantime I'll practice on dishonorable throats~

#19 User is offline   AJSB Icon

  • Group: Members
  • Posts: 8
  • Joined: 01-April 09
  • LocationPortugal

Posted 17 November 2009 - 02:40 PM

Yes, i did discovered that already but the issue here is now how to call with play command the WAV sound files in that pk3/ZIP file....
In your example the pk3 file has a folder "sounds" with a file called "mywave.wav" in it.

I tried to make a file called ut_ajsbSNDpak.pk3 with a folder inside called "soundAJSB" with a file in it called lz300ump45.wav.

Then i put that pk3 file in same folder where are the maps and used: "play soundAJSB\lz300ump45"

But nothing happened....i opened the console and it was written there that it couldn't find the lz300ump45.wav file.


Then i moved the pk3 file to the q3ut4 suffolder where are the UrT binaries like ioUrbanTerror.386 , ioUrbanTerror.exe etc. launched again, sames tests and still no luck and console continues to say that it can't fine the WAV file. Tried again putting the pk3 file directly in same folder than the binaries and still nothing...


I'm sure that i'm missing something, but have no clue of what it is :( ???

Where i'm supposed to put this pk3 ? and can you give an example of how to call the custom WAV file from inside the custom pk3 file using the "play" command ?

TIA,
AJSB

#20 User is offline   ObScUrE Icon

  • Group: Members
  • Posts: 511
  • Joined: 27-September 08

Posted 17 November 2009 - 06:46 PM

The q3ut4 folder is the correct one.
You did it all right here and for me it works.
have you used the default zip function from windows?
Posted Image
Posted Image
~In the meantime I'll practice on dishonorable throats~

#21 User is offline   AJSB Icon

  • Group: Members
  • Posts: 8
  • Joined: 01-April 09
  • LocationPortugal

Posted 18 November 2009 - 02:01 AM

It's working !!! 8)


Here are the full details...

1st of all, i'm using Linux, but that wasn't the real issue....it only made necessary attention to a detail...

OK, i was using "Ark" to make the ZIP file but suddenly i remembered (thanks to your attention call about if i was using the zip function of windows) that when i read in the Net that a pk3 (or a pk4 , FWIW...) is simply a renamed ZIP file, that you need to make the ZIP file with WinZip .

So i downloaded a old version of WinZip (8.0 is my recommendation because more recent ones are not good with WINE) and proceed to make the ZIP....but there was a catch...

In "Ark" you can select a subfolder to archive all files in it and in the ZIP file it only stores the path from that subfolder on like we want/need in this situation (i.e. soundAJSB in my example) but in "WinZip 8.0" we only have the option to store the full path (i.e. because i'm using Linux that means: home/my_account/any_other_folder_eventually/soundAJSB)...sure, this will work but then with "play" command the path will be too long not to mention that i'm revealing my account name in this computer.



My solution ?

1st, create a temp ZIP file with "Ark" (i.e. test.zip) selecting the files with "Add Folder", this way the stored path in the ZIP file is simply soundAJSB like i wanted.

2nd, exit "Ark" and open the temp ZIP file with "WinZip 8.0" , open the "File" menu and select "Rename Archive" .
With "Rename Archive" you gonna create a new ZIP file with the final name for it that you want (i.e. ut_ajsbSNDpak.zip (the .zip extension is automatic)) with the correct ZIP structure that will be understood by UrT.
Exit "WinZip".

Finally, rename final ZIP file changing extension manually from .zip to .pk3 and it's done !
(i.e. from ut_ajsbSNDpak.zip to ut_ajsbSNDpak.pk3).
Now simply move the pk3 file to correct folder needed by UrT, q3ut4 , and it will work .


Now i can get rid of all those pesky text messages (except the ones from Chat that i prefer to keep and that don't interfere with the minimap ) about kill, hit,etc. and put back the minimap where it bellongs, position 1.

Thanks for all your help/info ObScUrE 8-)


AJSB

This post has been edited by AJSB: 18 November 2009 - 02:11 AM


#22 User is offline   AJSB Icon

  • Group: Members
  • Posts: 8
  • Joined: 01-April 09
  • LocationPortugal

Posted 18 November 2009 - 02:37 AM

Ok, i celebrated too soon :-(

It now works if i open console and use /devmap or /map (used not to work in any case)...if i go instead online, it still not work....console restarts to say that it can't find the WAV file just like used to say.

Any ideas about what could be this final problem ?!?

TIA,
AJSB

This post has been edited by AJSB: 18 November 2009 - 02:57 AM


#23 User is offline   ObScUrE Icon

  • Group: Members
  • Posts: 511
  • Joined: 27-September 08

Posted 18 November 2009 - 06:28 AM

is your wav file in 16bit(22khz) Mono?

here something I found:
search1
search2

This post has been edited by ObScUrE: 18 November 2009 - 06:29 AM

Posted Image
Posted Image
~In the meantime I'll practice on dishonorable throats~

#24 User is offline   AJSB Icon

  • Group: Members
  • Posts: 8
  • Joined: 01-April 09
  • LocationPortugal

Posted 18 November 2009 - 09:00 AM

I checked and double checked, yes, my WAV files are 16bit MONO 22050 hz....but the problem continues.
My .pk3 audio files made with WinZip work now just fine if i launch the maps via console with /devmap or /map , but when i go online to play in any server, the WAV files files no longer work and console gives errors no matter the map that the server to what i connect is using.


TIA,
AJSB

This post has been edited by AJSB: 18 November 2009 - 09:00 AM


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Cethin skin by Eric Colon.
logo