News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
Modding Questions/Help / Automatic Helmet Put-on
« Last post by Flyable5090 on February 05, 2024, 08:11:38 PM »
Self explanatory title, i have uploaded file to https://github.com/isaamos/Auto-Helmet-Bully/ and there are instructions there (kinda)

There is a steam guide too with the same name

I found this code unfinished somewhere else. Then decided to finish by changing written code, also using ai to learn and fix things. Just wanted to share it, especially for those who will play the game very late like me
72
Mod Releases / PS4 buttons hud MOD
« Last post by Charor on February 02, 2024, 08:22:06 PM »
PS4 buttons hud MOD

https://bully-board.com/index.php?action=downloads;sa=view;down=257



This mod replaces button textures of Xbox 360 Controller with the DualShock 4 buttons

This mod uses external tga files to replace textures.
You can edit this files in any Graphics Editor to change buttons view if you like

There is a color buttons in 'color' folder if you dont like pale version

Enjoy!
73
Mod Releases / XBOX ONE buttons hud MOD
« Last post by Charor on February 02, 2024, 08:22:04 PM »
XBOX ONE buttons hud MOD

https://bully-board.com/index.php?action=downloads;sa=view;down=258



This mod replaces button textures of Xbox 360 Controller with the Xbox One buttons

Installation:
Unzip to the TXD folder (and don't forget to backup the original file)

This mod uses external tga files to replace textures.
You can edit this files in any Graphics Editor to change buttons view if you like
74
Mod Releases / Re: New Moves For Jimmy
« Last post by faithfulvibesyt on February 01, 2024, 05:14:52 PM »
when i installed the mod my game started crashing everytime i tried playing it (its a good mod tho)
75
Mod Releases / [PC] PS4 buttons hud MOD
« Last post by Charor on February 01, 2024, 07:17:15 AM »


This mod replaces button textures of Xbox 360 Controller with the DualShock 4 buttons

This mod uses external tga files to replace textures.
You can edit this files in any Graphics Editor to change buttons view if you like

There is a color buttons in 'color' folder if you dont like pale version

Enjoy!
76
Mod Releases / [PC] XBOX ONE buttons hud MOD
« Last post by Charor on February 01, 2024, 07:14:53 AM »


This mod replaces button textures of Xbox 360 Controller with the Xbox One buttons

Installation:
Unzip to the TXD folder (and don't forget to backup the original file)

This mod uses external tga files to replace textures.
You can edit this files in any Graphics Editor to change buttons view if you like
77
TUTORIALS / Re: [PS2][Tutorial] Sound MOD tutorial
« Last post by Charor on January 31, 2024, 12:36:49 AM »
Here is a proof of concept
First two cutscenes with russian voice over

its xdelta patch for USA iso (SLUS_212.69)

Unzip
Run DeltaPatcher.exe
Choose "Original file" your iso
Choose xDelta patch "Bully (USA).xdelta"
In settings ⚙ check "backup original file"
Press "Apply patch"
Wait for patched iso
78
TUTORIALS / [PS2][Tutorial] Sound MOD tutorial
« Last post by Charor on January 30, 2024, 11:33:39 PM »
This is a sound mod tutorial for PS2 version of Bully video game

-------------------------------
LONG STORY SHORT
-------------------------------
  • download PS2 sound kit.zip and extract it
  • Make sure .lst file is there with .bin (from ISO \AUDIO\PLAYLIST\)
  • Drag and Drop .bin file on export wav.bat
  • Edit wavs you want and delete unmodified wavs
    Modded audio must be same duration or shorter, same sample rate and channels as originals
  • Save as wav s16 pcm. Don't change names
  • Drag and Drop .bin file on import.bat
  • Replace original .bin with moded .bin in ISO
  • Done!

FOR THOSE WHO WANT TO DIVE DEEPER

------------------------------------
GENERAL INFORMATION
------------------------------------

audio\PLAYLIST\ folder contains some .bin files:
Sound for cutscenes and dialogs resides in Cuts.bin and Speech.bin files
Music is in Music.bin
Ambient sound, like birds, crowd noise, dogs, music class intro, preacher prayers etc are in Ambs.bin

Aside there is a .LST files with same name as .bins (Cuts.lst Music.lst etc)
Its a name list files. We will need them later
You can open them with notepad if you need to

.bin sound file contains .rsm (idstring RSTM) files
According to vgmstream Is a Rockstar Games RSTM
Compressed as Playstation 4-bit ADPCM


For all chimichanga we will need some tools:
  • quickbms - universal script based files extractor and reimporter
  • MFAudio - a tool allows you to play, convert, and downsample audio files that use some of the more common formats among PS2 games
------------------------------------------------
EXTRACT SOUND FOR MODDING
------------------------------------------------
to extract PS2 bins use PS2bin2ss2.bms
Make sure .lst file is there with .bin
Code: [Select]
// Bully Scholarship Edition PS2 ss2 extrctor
// Extract ss2 file or files from bin using this script
// use quickbms PS2bin2ss2.bms <<Dir>>.bin to extract ss2 files
open FDDE bin 0
open FDDE lst 1

get Dir BASENAME
idstring "Hash"
get FILES long
log MEMORY_FILE 0 0
log MEMORY_FILE2 0 0

for i = 0 < FILES
//file data
   get FILEHASH long
   get OFFSET long
   get DataSIZE long
//read filename from lst file
get NAME line 1
string NAME - 4
string NAME P "%DIR%/%NAME%.ss2"

//rstm header
log MEMORY_FILE OFFSET 0x800

math OFFSET + 0x800
math DATASIZE - 0x800

//PS ADPCM data
log MEMORY_FILE2 OFFSET DataSIZE

//audio settings from header
set Format long 0x10 // 0x01 PCM 0x10 4bit PS ADPCM (OKI ADPCM?)
set BitsPerSample long 16
GetVarChr SampleRate MEMORY_FILE 0x08 long
GetVarChr nChannels MEMORY_FILE 0xC long

//create ss2 header instead of rstm for MFAudio
set MEMORY_FILE binary "\x53\x53\x68\x64\x18\x00\x00\x00\x10\x00\x00\x00\x22\x56\x00\x00\x02\x00\x00\x00\x10\x00\x00\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x53\x53\x62\x64\xC0\xB9\x17\x00"
putvarchr MEMORY_FILE 0x08 Format long
putvarchr MEMORY_FILE 0x0C SampleRate long
putvarchr MEMORY_FILE 0x10 nChannels long
putvarchr MEMORY_FILE 0x14 BitsPerSample long
putvarchr MEMORY_FILE 0x24 DataSIZE long

   append
   log MEMORY_FILE 0 DATASIZE MEMORY_FILE2
   append
   get DATASIZE asize MEMORY_FILE
   log NAME 0 DATASIZE MEMORY_FILE

next i

As a result, we will get folder named as .bin name with .ss2 files in it
(script create ss2 header instead of rstm for correct MFAudio work)

.ss2 need to be decoded:
as i know, MFAudio can decode/encode .ss2
Code: [Select]
MFAudio.exe /II10 /OTWAVU "Speech\Algie_CHATTER_v2.ss2" "Speech\Algie_CHATTER_v2.wav"

Now you can edit this wavs in any audio editor you like
Modded audio must be same duration or shorter same sample rate and channels as original
Save as wav s16 pcm

--------------------------------------
COMPRESS SOUND BACK
--------------------------------------
use MFAudio again:
Code: [Select]
MFAudio.exe /OTRAWC "Speech\Algie_CHATTER_v2.wav" "import\Algie_CHATTER_v2.datAs a result we got our moded wavs PSADPCM encoded in import\ folder ready to be imported in .bin

----------------------------------------------------
IMPORTING MODDED SOUND BACK
----------------------------------------------------
Use PS2bin2dat.bms script with r and w options
Code: [Select]
quickbms -r -w PS2bin2dat.bms Speech.bin
Code: [Select]
// Bully Scholarship Edition PS2 sound dat extractor
// Extract dat file or files from bin using this script
// use quickbms PS2bin2dat.bms <<Dir>>.bin to extract dat files
// Mainly used for importing sound back to .bin
// Usage: quickbms -r -w PS2bin2dat.bms <<Dir>>.bin

open FDDE bin 0
open FDDE lst 1

get Dir BASENAME
idstring "Hash"
get FILES long

for i = 0 < FILES
//file data
   get FILEHASH long
   get OFFSET long
   get DataSIZE long
   
   math OFFSET + 0x800
   math DataSIZE - 0x7E0 // 0x800 - 0x20 fix for MFAudio raw import (+0x20 footer)
//read filename from lst file
get NAME line 1
string NAME - 4
string NAME P "import/%NAME%.dat"

log NAME OFFSET DataSIZE

next i
to import back sound dat file(s) from import folder to .bin (Speech.bin in example above)
.dat files must be named same as in .LST (i.e. Gordon_CONVC_v2.dat Isaacs_3-S01d_D5_PASS_v1.dat Handy_CFH_v2.dat)
.LST file must be near .bin file

Now you need to replace original .bin inside ISO with modded and test in game!

Easiest way to do that is open ISO in hex editor and rewrite file at its offset (LBA*2048)
i.e. for Cuts.bin LBA is 682568 offset 682568*2048=1397899264

Not sure is it correct way to replace file in PS2 iso. Maybe it will brake some crc or copyright protections.
Better use special PS2 tools for that.

Anyway, this method works on emulator for test purposes

UPD: tutorial updated - solved batch encode/decode with MFAudio
79
TUTORIALS / [PC][Tutorial] Sound MOD tutorial
« Last post by Charor on January 30, 2024, 11:00:07 PM »
This is a sound mod tutorial for PC version of Bully video game

-------------------------------
LONG STORY SHORT
-------------------------------
  • download PC sound kit.zip and extract it
  • Drag and Drop .bin file on export wav.bat (from \AUDIO\PLAYLIST\)
  • Edit wavs you want and delete unmodified wavs
    Modded audio must be same duration or shorter, same sample rate and channels as originals
  • Save as wav s16 pcm. Don't change names
  • Drag and Drop .bin file on import.bat
  • Done!


FOR THOSE WHO WANT TO DIVE DEEPER

------------------------------------
GENERAL INFORMATION
------------------------------------
audio\PLAYLIST\ folder contains some .bin files:
Sound for cutscenes and dialogs resides in Cuts.bin and Speech.bin files
Music is in Music.bin
Ambient sound, like birds, crowd noise, dogs, music class intro, preacher prayers etc are in Ambs.bin

Aside there is a .LST files with same name as .bins (Cuts.lst Music.lst etc)
Its a name list files.
You can open them with notepad if you need to

PC version:
.bin sound file is archive containing Sound Banks (.xsb idstring SDBK) and Wave Banks (.xwb idstring WBND)
This banks is microsoft's audio lib file types
We need Wave Banks cos they are containing raw wave data
Compressed as Microsoft ADPCM

For all chimichanga we will need some tools:
------------------------------------------------------
2.EXTRACT SOUND FOR MODDING
------------------------------------------------------
to extract PC wave data in usable format, we can use bin2wav.bms
Code: [Select]
// Bully Scholarship Edition PC wav extrctor
// Extract wav file or files from bin using this script
// use quickbms bin2wav.bms <<Dir>>.bin to extract wav files
// Edit wav. Keep same duration or shorter. Save as wav s16 pcm (Speech - mono, Cuts - stereo)

get Dir BASENAME
idstring "Hash"
get FILES long

// extract one file by name
//comment this block if you need all files
/* set Query string "3-R05A"
Findloc OFFSET string Query
goto OFFSET */
//------------------------------

for i = 0 < FILES
//move
Findloc OFFSET string "WBND"
set DataOFFSET long OFFSET
math OFFSET + 0x2c
goto OFFSET
//read info from header
get BankOFFSET long //0x800
get DataSIZE long
get Unk1 long //flags?
get WaveCount long
get FNAME string

math OFFSET + 0x6c
goto OFFSET
get AudioFormat long // binary32: BitsPerSample(1) BlockAlign(8) SampleRate(18) Channels(3) FormatTag(2)
// 0001 1000 0000 1010 1100 0100 0110 1010
// ||>>>>>>>> |>>>>>>>>>>>>>>>>>>>>>|>>>|format
// B|Align    |SampleRate           |channels
// format: 0-PCM; 1-XMA; 2-ADPCM; 3-WMA
//xmath Format "AudioFormat & 3"               //                     11 mask (2)
xmath numChannels "AudioFormat >> 2 & 7"     //                    111 mask (3)
xmath SampleRate "AudioFormat >> 5 & 262143" // 11 1111 1111 1111 1111 mask (18)
//xmath blockAlign "AudioFormat >> 23 & 255"   //              1111 1111 mask (8)
xmath BitsPerSample "AudioFormat >> 31 & 1"  //                      1 mask (1)
xmath BitsPerSample "8 * BitsPerSample + 8"  // BitsPerSample(PCM only): 0-8bit; 1-16bit
//print "AudioFormat=%AudioFormat|hex% %FNAME%\nnumChannels=%numChannels% SampleRate=%SampleRate% blockAlign=%blockAlign% BitsPerSample=%BitsPerSample%"

if WaveCount > 1
print "Multiwave Bank %FNAME%"
Break
endif

math DataOFFSET += BankOFFSET //+0x800

//write to wav file
callfunction WavHeader

// extract one file by name
if FNAME = Query
Break
endif

next i

startfunction WavHeader
log MEMORY_FILE1 0 0
log MEMORY_FILE2 0 0

//create wav header in memory
set MEMORY_FILE2 binary "\x52\x49\x46\x46\x72\x21\x1E\x00\x57\x41\x56\x45\x66\x6D\x74\x20\x32\x00\x00\x00\x02\x00\x02\x00\x22\x56\x00\x00\x10\x5E\x00\x00\x8C\x00\x04\x00\x20\x00\x80\x00\x07\x00\x00\x01\x00\x00\x00\x02\x00\xFF\x00\x00\x00\x00\xC0\x00\x40\x00\xF0\x00\x00\x00\xCC\x01\x30\xFF\x88\x01\x18\xFF\x64\x61\x74\x61\x20\x21\x1E\x00"

//audio settings
if numChannels = 2
set blockAlign short 140 //blockAlign 70(mono) or 140(stereo)
else
set blockAlign short 70
endif

//write settings to header
xmath WAVESIZE "DataSIZE + 0x46"
    putvarchr MEMORY_FILE2 0x04 WAVESIZE long
    putvarchr MEMORY_FILE2 0x16 numChannels short // mono-stereo
putvarchr MEMORY_FILE2 0x18 SampleRate long
    xmath BYTERATE "(SampleRate * BitsPerSample * numChannels) / 8"
    putvarchr MEMORY_FILE2 0x1c BYTERATE long // (Sample Rate * BitsPerSample * Channels)/8
    putvarchr MEMORY_FILE2 0x20 blockAlign short
    putvarchr MEMORY_FILE2 0x4a DataSIZE long

//append audio data
    log MEMORY_FILE1 DataOFFSET DataSIZE
append
    log MEMORY_FILE2 0 DataSIZE MEMORY_FILE1
append

//write to wav file
    get MF2Size asize MEMORY_FILE2
    string WavName P "%Dir%/%FName%.wav"
    log WAVName 0 MF2Size MEMORY_FILE2
endfunction

As a result, we will get folder named as bin name with wav files (MS ADPCM) in it

PC MSADPCM .wavs are ready to edit with any audio editor you like(i.e. audiacity)

Modded audio must be same duration or shorter same sample rate and channels as original
Save as wav s16 pcm

----------------------------------------
5.COMPRESS SOUND BACK
----------------------------------------
for PC we can use cli tool AdpcmEncode.exe from Microsoft DirectX SDK
After installation it will be in \Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\x86\
encode example:
Code: [Select]
AdpcmEncode.exe Speech\Algie_CHATTER_v2.wav import\Algie_CHATTER_v2.wavSpeech\Algie_CHATTER_v2.wav is s16 pcm wav
import\Algie_CHATTER_v2.wav is output file with MS ADPCM 128 samples/block compression
Don't forget to remove unmoded(MSADPCM) wavs from Speech (or whatever your .bin name is) folder
otherwise AdpcmEncode will decode them
As a result we got our moded wavs MSADPCM encoded in import\ folder
Now, we need to cut out a RIFF header with wav2dat.bms
Code: [Select]
// MSADPCM wav header cutter quickbms script
idstring "RIFF"
goto 0x14
get FORMAT short
 
if FORMAT != 2
print "not a Microsoft ADPCM"
print "REMOVE ALL UNMODIFIED WAVS BEFORE IMPORT. IMPORTED WAVS MUST BE S16 PCM"
exit
endif

get FNAME BASENAME
string FName P "import/%FName%.dat"

Findloc DataOFFSET string "data"
goto DataOFFSET
get data long
get DataSIZE long
SavePos DataOFFSET
math DataSIZE - 0x80 //cut tail just in case

log FNAME DataOFFSET DataSIZE
sound dat is ready to be imported in .bin
------------------------------------------------------
5.IMPORTING MODDED SOUND BACK
------------------------------------------------------
Use bin2dat.bms script with r and w options
Code: [Select]
quickbms -r -w bin2dat.bms Cuts.bin
Code: [Select]
// Bully Scholarship Edition PC audio dat extrctor (wav without header)
// Extract dat file or files from bin using this script
// use quickbms bin2dat.bms <<Dir>>.bin to extract dat files
// use quickbms -r -w bin2dat.bms <<Dir>>.bin to import dat files from "import" folder back to bin

get Dir BASENAME
idstring "Hash"
get FILES long

// extract one file by name. works on import too
//comment this block if you need all files
/* set Query string "1-04"
Findloc OFFSET string Query
goto OFFSET */
//------------------------------

for i = 0 < FILES
//move
Findloc OFFSET string "WBND"
set DataOFFSET long OFFSET
math OFFSET + 0x2c
goto OFFSET
//read info from header
get BankOFFSET long //0x800
get DataSIZE long
get Unk1 long //flags?
get WaveCount long
get FNAME string

if WaveCount > 1
print "Multiwave Bank %FNAME%"
Break
endif

math DataOFFSET += BankOFFSET //+0x800
string Name P "import/%FName%.dat"

//write to dat file
log Name DataOFFSET DataSIZE

// extract one file by name
if FNAME = Query
Break
endif

next i
to import back sound dat file(s) from import folder to .bin (Cuts.bin in example above)
dat files must be named same as in LST (i.e. 5-04.dat 1-09.dat 4-B1.dat)

Now you can test modded .bin in game!
80
Bully 1 Discussion / Re: Anyone Still Playing?
« Last post by Hayley on January 29, 2024, 12:50:43 PM »
absofuckinglutely not
Pages: 1 ... 6 7 [8] 9 10