This sample
The following Tri-related samples are contained in the try folder.
try / sample_dse
sample_dse2.ftd
Tri-relationship
- Add the DSE-based instruction "DSEFREQUENCY" and "DSEGETFREQUENCY"
"DSEFREQUENCY", int1, int2, int3
int1: SoundID
int2: frequency (frequency)
int3: frame value (frame)
This is the instruction to change the frequency.
Increasing the frequency is high sound, playback speed becomes faster,
to lower the sound level is low, the playback speed will be slower.
minimum and maximum can be set frequency depends on the execution environment.
"DSEGETFREQUENCY", int1, int2
int1: SoundID
int2: acquisition mode (mode)
This is the instruction to get the frequency.
I will return the frequency to _stat.
Please acquisition mode by specifying the following values.
0: the current frequency (current frequency)
1: original frequency (source frequency)
- Added command "SETSCRIPTADDRESS" you want to change the execution position of script
"SETSCRIPTADDRESS", "label1", int2, int3
"Label1": label (label)
int2: script ID (script ID)
int3: control option (option)
Control option sets the following values.
0: goto
1: gosub
& 2: Clear the stack in the case of goto (clear stack)
I will change the execution position of any of the script ID.
Position will be specified by the label.
It becomes a temporary subroutine jump If you specify the gosub.
Script ID was created in the script ID "ADDSUBSCRIPT", or I will specify the main script (ID0).
This is because it is possible to rewrite the position information of another script ID not running,
Please note that to induce unexpected behavior or errors in some cases.
For example, it remains the target script remained the information on the stack and fall out in the goto in the middle of a loop.
This operation is repeated and finally stack will result in an error overflow.
In this case, you can be avoided by clearing the stack information in & 2.
In addition, harder control flow of the script when intensive this instruction is to understand.
Thus Force jump by this instruction should be kept to a necessary minimum.
- Add the argument to "PLAYERDESTROYED" and "TIMEREND", subroutine jump to be able to change
"PLAYERDESTROYED", int1, "label2", int3
"TIMEREND", int1, "label2", int3
Option sets the following values.
0: Game Over (gameover)
1: Clear (try complete)
2: Jump to the specified label (jump to label, GOTO)
3: to subroutine jump to the specified label (jump to label, GOSUB)
The script ID Specifies the script ID that you created in "ADDSUBSCRIPT".
If you omit you can specify 0 main script (ID0) is specified.
Setting with these instructions and jump process is performed will be discarded.
Please re-set again if you want to jump again.
These subroutine jump can be performed to jump even during stop / wait.
In this case, you return to again stop / wait state Returning with "RETURN".
- Change the interior of the stack management
I was in to check the factors to gain on the stack.
It becomes mismatch error if the factors do not match.
And after system variable _cnt of subroutine jump under the influence of this change,
Even after another loop I can now get the current loop value.
- Various adjustments and other minor fixes
I do not remember much.
Editor relationship
- Fixed a bug that when you change some of the kinds of parts after the enemy read in core system parts error occurs
This bug might have had much since I have added effector system.
Register the sprite definition to Loading No. 1000 and later from the outside, and tried to be able to use force to test. Because there is not much flexibility, and likely to feature tri-limited.
Though those of surfaceviewview the same level of "recommend the naming convention" was shiver be in the sprite-related code does not fix it because it is cumbersome ~Tsu!
Tri-encryption (ftb format) will be added in the next version FRAXY. Since ish It was possible even ModdedTryLauncher if only encryption is subtly hole in the fact that the standard implementation. Such as the pack of the resources are going not to implement in order to avoid the troublesome thing.
Third tweet:
あとトライで変数内容をファイルに書き出すとかもできるようになります。 用途はハイスコアの保存など。
You'll be able to even Toka write the variable contents to a file after try. Such applications save high scores.
Tri-of file input and output and encryption, custom sprite, such as a string drawing processing editor,
Debugging is insufficient for this time have added a number of complex and large processing of scale while sober.
It would help us if you would be reported to the If you have trouble plate.
MakeFTB is a tool that converts the FTD to FTB.
Since the conversion is a done even a little cumbersome fraxy.exe, it tried separately prepared to be able to easily create.
Please download it if necessary.
... You might be in the body shipped from the next because the size after compression was about 160KB.
Here is the changelog:
This sample
The following Tri-related samples are contained in the try folder.
try / sample_table
sample_table.ftd ... hash table operations
try / sample_fcs
sample_fcs.ftd ... custom sprite
Tri-relationship
- Add the hash table-based instruction
Hash tables are managed together a plurality of data, is an associative array that can be output as a file.
Table is only one, you will not be able to manipulate multiple tables at the same time.
Please use if you want to mainly save high scores and various states.
"TABLEINIT", int1
int1: TableSlot
I initialize the table.
TableSlot will affect the distribution of hash values.
Higher access speed will increase the output file size instead of stable large.
"TABLESAVE", "str1", "str2"
"TABLELOAD", "str1", "str2"
"Str1": FileName
"Str2": EncryptKey
This is the input and output for the instruction of the table.
EncryptKey is the key for encryption.
Save and Load will always need the same key.
"TABLEADD", "str1", val2
"Str1": Key
val2: Value (int, double, str)
I will write a value to the table.
Reading and writing of value is accessed using the Key.
you will overwrite If you specify a Key that already exists.
"TABLEGET", "str1", var2
"Str1": Key
var2: Variable to receive the value.
I will assign a value to a variable.
The type of the variable is changed to match the value.
"TABLEREMOVE", "str1"
"Str1": Key
I will delete the value from the table.
- Add the items that can be obtained in getinfo
type, param: details
62,0: whether replay (is replay: 0 = no, 1 = yes)
- Added command to disable replay
"DISABLEREPLAY"
There is no argument.
It is not possible to activate after the disabled.
- Add a custom sprite
Custom sprite is a feature that users to add any sprite, you want to use with effector like.
Please refer to the text and sample of customsprite folder detailed description.
This feature is intended for use in the Tri.
"FCSLOAD", "str1"
"Str1": FileName
I will read the custom sprite file.
At the same time you will not be able to handle multiple files.
Minute that had been loaded before will be erased by the initialization.
- Fixed a bug that there is a case in which error occurs during replay save
Because an error has occurred when using the characters that can not be used as a file name tri name,
Was modified to remove the can not be used characters.
- Add the input and output of the FTB
FTB is what you compile the Tri-of FTD, is encrypted.
I use MakeFTB, or the fraxy.exe to create the FTB.
· MakeFTB
FTD → This is the FTB-only tool of.
You must be downloaded separately from the body.
After starting, please drag and drop the file you want to compile.
When you press the Compile is compiled results will be output.
If successful compilation of the log is displayed, the file of Output is generated.
To pass the file name on the command line argument and then output it to compile the file.
Output destination is in the same directory as the input.
Input file only file of FTD format, but it does not matter even if the extension is different.
· Fraxy.exe
If you pass the following command on the command line argument is output by compiling the "filename".
fraxy.exe make "filename"
Output destination is in the same directory as the input.
Input file only file of FTD format, but it does not matter even if the extension is different.
Replay will not be able to play the replay that you recorded in FTD order to be treated separately each FTD and FTB at FTB.
(And I'm writing, but it is renewable and be rewritten tri file name in the replay in fact)
Editor relationship
- Add a reading of custom sprite
fcs file and drag-and-drop or, you can read by selecting the file from the Misc of sprite.
Sprite will be registered on or after No. 1000.
This feature is intended for use in the Tri.
- Change the string drawing process
string drawing instead of using more memory is faster.
Convenience of this change, the string to be displayed in the edit window will be almost all bags character.
If something trouble occurs, please the Font_Cache of edit.cfg to 0.
Other
- Balance adjustment of equipment of players
Tri-relationship
- Improved display the number of rows in the debug log is often slow problem
- Fixed a bug that there is a case in which error occurs when the Tri-FTD check Editor relationship
- Modified to display the size in the title bar at the time of the change the size of the editor of the edit window Other
- Adjust the log output of the error