I have some compiling issue of the original soundoptions.qb due to theses kind of line :
Code: Select all
:i $current_soundtrack$ = $$
Code: Select all
:i if ($current_soundtrack$ = $$)
Code: Select all
:i default
Code: Select all
:i $current_soundtrack$ = $$
Code: Select all
:i if ($current_soundtrack$ = $$)
Code: Select all
:i default
Is this pretty much similar to the routine that I originally did with THUG2's skater_sfx.qb a few months ago?%.gone. wrote: You can create unique checksums place their string in the qb and store their hex checksum somewhere along with the original hex checksum.
Code: Select all
$GetRandomValue$ $Name$ = $track_number$$a$ = %i(0,0) $b$ = %i(10,000000010)$integer$
:i $PlayTrack$%GLOBAL%$track_number$
Code: Select all
:i $track_number$ = %i(10,000000010)$integer$
:i $PlayTrack$%GLOBAL%$track_number$
It is the exact method I suggested you use.Skater1014 wrote:Is this pretty much similar to the routine that I originally did with THUG2's skater_sfx.qb a few months ago?%.gone. wrote: You can create unique checksums place their string in the qb and store their hex checksum somewhere along with the original hex checksum.
(I've been helping them out with the decompiling/compiling via PM.)
Make a unique key, replace the ffffffff with text, search the compiled script for your unique keys hex value and replace it with ffffffff.Catarax wrote:For the blank variable, using "$ffffffff$" fix it. (for THUG2).
%i(10,000000010)Catarax wrote: I have some trouble with the random integer code on THUG2.
Play nothingCode: Select all
$GetRandomValue$ $Name$ = $track_number$$a$ = %i(0,0) $b$ = %i(10,000000010)$integer$ :i $PlayTrack$%GLOBAL%$track_number$
Play the related track.Code: Select all
:i $track_number$ = %i(10,000000010)$integer$ :i $PlayTrack$%GLOBAL%$track_number$
Don't understand what's wrong, thanks.
Code: Select all
:i $GetRandomValue$ $Name$ = $track_number$$a$ = %i(0,0) $b$ = %i(10,0)$integer$
:i $some_value$ = %GLOBAL%$track_number$
:i $PlayTrack$%GLOBAL%$some_value$
From my understanding, when randomize music tracks is set, the game builds a list of the tracks in a random order.Catarax wrote: However, when I use $PlayTrack$, at the end of the track, another one is picked from the broken random soundtrack list.
This is not the function "skiptrack"/"SkipMusicTrack" used at that moment, i have no control.
So my questions are :
- When PlayTrack is used, does the next track is defined already before the new track launched?
- Is there a name to the function probably used when a track ends?
Code: Select all
:i function $skip_track$
:i $skiptrack$
:i endfunction