Перейти к содержимому

Фотография

Request: Automated creation of sound objects


  • Пожалуйста, авторизуйтесь, чтобы ответить
8 ответов в этой теме

#1
kamal_

kamal_
  • Members
  • 5 235 сообщений
I have some creative commons licensed wav files from freesound.org that I've converted to nwn2 format. And by some I mean 2500+. A tool to generate the placeable sound file from the wav would be incredibly handy, manually creating that many sound placeables would be extremely time consuming.

#2
Dann-J

Dann-J
  • Members
  • 3 161 сообщений
I've never looked at a sound blueprint in notepad, but I'm assuming it's probably some sort of binary format.

If they were just plain text (like an SEF file), then automating the process shouldn't be too hard. I've got a program called UltraEdit here at work that could probably do that sort of thing.

#3
Dann-J

Dann-J
  • Members
  • 3 161 сообщений
Bad news - UTS is a binary format, which makes batch processing in UltraEdit difficult. UltraEdit has a hex editing mode, but I've no experience using it (let alone creating batch scripts to automate things).

It sounds like you'll need a purpose-written application or toolset plugin.

#4
The Fred

The Fred
  • Members
  • 2 516 сообщений
I think the general NWN(2) formats work a bit like e.g. TLKs in that they have a header specifying the location and length of the various components. If you open a sound blueprint in Notepad or similar you will likely be able to see the name of the sound file and suchlike as plain text strings right there. Those could easily be replaced. However, if you change it to something of a different length it's likely to screw up the rest of the file, unless you change the header, which would require you to know which bits to change.

As I think I mentioned on the old thread, BioWare had documents on their NWN1 file formats at least (that's how even I managed to write TLK-editing software), and the sound blueprint format probably hasn't changed (at least not much) so if we could dig those out it might be fairly straightforward. Or if someone already knows how the format works. I don't.

#5
The Fred

The Fred
  • Members
  • 2 516 сообщений
Unfortunately those pages seem to have died with the rest of the old site. Someone might have them saved or something, though.

#6
The Fred

The Fred
  • Members
  • 2 516 сообщений
Aha!

(Blueprints are a type of GFF I think. A quick search also turns up some discussions on the NWN1 boards and some other stuff. It might be possible to edit with a plain GFF editor but I don't know if you can do bulk stuff like that).

#7
Saarun

Saarun
  • Members
  • 8 сообщений
See this excellent library set made by Skywing - I use it for batch modifications of NWN2 files (GFFs)

Сообщение изменено: Saarun, 08 Март 2012 - 10:21 .


#8
The Fred

The Fred
  • Members
  • 2 516 сообщений
Skywing's stuff is pretty cool, though I personally don't really know enough C++ to use it. What I think Kamal's looking for is indeed basically just a batch GFF modification, though, so it shouldn't be too hard to do.

#9
kamal_

kamal_
  • Members
  • 5 235 сообщений

The Fred wrote...

Skywing's stuff is pretty cool, though I personally don't really know enough C++ to use it. What I think Kamal's looking for is indeed basically just a batch GFF modification, though, so it shouldn't be too hard to do.

I've been looking at it, and I have no idea what to do with it.