tfbscript 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tfbscript-0.1.0 → tfbscript-0.1.1}/PKG-INFO +1 -1
- {tfbscript-0.1.0 → tfbscript-0.1.1}/pyproject.toml +1 -1
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/__init__.py +16 -1
- {tfbscript-0.1.0 → tfbscript-0.1.1}/.gitignore +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/FORMAT.md +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/LICENSE +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/NOTES +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/README.md +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/demo.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/diff_ai.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/find_occurance.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/__main__.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/ansi.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/arena.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/binary.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/debug.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/__init__.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/app.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/fonts/ms-sans-serif/MS Sans Serif.ttf +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/fonts/ms-sans-serif/license.txt +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/fonts/ms-sans-serif/readme.txt +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/fonts/ms-sans-serif-bold/MS Sans Serif Bold.ttf +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/fonts/ms-sans-serif-bold/license.txt +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/fonts/ms-sans-serif-bold/readme.txt +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/fonts.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/search.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/style.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/widgets.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/__init__.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/base.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/block.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/enums.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_behavior_implementation.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_change_membership.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_check_fov.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_check_membership.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_check_message.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_check_reference.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_check_value.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_comment.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_control.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_create_variable.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_cut_scene.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_dec_value.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_displace.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_find_subset.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_find_variable.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_for_each.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_if_else.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_inc_value.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_loop_value.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_move_from.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_move_to.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_play_animation.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_play_sound.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_prescript.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_print.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_remove.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_reset.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_run_as_player.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_send_message.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_set_behavior.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_set_reference.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_set_value.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_shutdown.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_slide_value.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_spawn_actor.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_startup.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_stop_sound.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_teleport_to.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_turn_to.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/opcodes/op_use_camera.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/payload.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/reference.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/rhs.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/script.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/string_table.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/supercoolscript.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/test.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/tests/test_example_scripts.py +0 -0
- {tfbscript-0.1.0 → tfbscript-0.1.1}/tfbscript_pseudocode.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tfbscript
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Parser and decompiler for TFB script (.ai) files used by Madagascar - The Game (2005)
|
|
5
5
|
Project-URL: Repository, https://github.com/MaxStache/madagascar-game-asset-tools
|
|
6
6
|
Project-URL: Issues, https://github.com/MaxStache/madagascar-game-asset-tools/issues
|
|
@@ -6,7 +6,22 @@ from tfbscript.reference import Reference
|
|
|
6
6
|
from tfbscript.rhs import Rhs
|
|
7
7
|
from tfbscript.script import ScriptFile
|
|
8
8
|
from tfbscript.string_table import StringTable, StringTableEntry
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
from typing import TYPE_CHECKING
|
|
11
|
+
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from tfbscript.editor import open_editor, editor_from_filepath
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __getattr__(name: str):
|
|
17
|
+
# The editor pulls in Qt, which needs a display stack (libEGL etc.).
|
|
18
|
+
# Import it on first use so parsing works on headless machines too.
|
|
19
|
+
if name in ("open_editor", "editor_from_filepath"):
|
|
20
|
+
from tfbscript import editor
|
|
21
|
+
|
|
22
|
+
return getattr(editor, name)
|
|
23
|
+
raise AttributeError(f"module 'tfbscript' has no attribute {name!r}")
|
|
24
|
+
|
|
10
25
|
|
|
11
26
|
__all__ = [
|
|
12
27
|
"BinaryReader",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/fonts/ms-sans-serif/MS Sans Serif.ttf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/fonts/ms-sans-serif-bold/license.txt
RENAMED
|
File without changes
|
{tfbscript-0.1.0 → tfbscript-0.1.1}/src/tfbscript/editor/fonts/ms-sans-serif-bold/readme.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|