Skip to content

Commit

Permalink
Test level from trenchbroom
Browse files Browse the repository at this point in the history
  • Loading branch information
olvior committed Aug 31, 2024
1 parent 84572c5 commit 05ec758
Show file tree
Hide file tree
Showing 11 changed files with 1,140 additions and 15 deletions.
26 changes: 13 additions & 13 deletions example_mods/mods-unpacked/olvior-TestLevel/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "TestLevel",
"name_pretty": "Test Level",
"namespace": "olvior",
"version_number": "1.0.0",
"description": "A test example level",
"dependencies": [],
"incompatibilities": [],
"authors": ["olvior"],
"tags": ["level"],
"description_rich": "Long mod description goes here",
"incompatibilities": [],
"download": "https://github.com/olvior/bloodthief-mod-loader/releases/download/v0.1.1/olvior-TestLevel.zip",
"repo": "https://github.com/olvior/bloodthief-mod-loader/tree/main/example_mods/mods-unpacked/olvior-InifiteBlood"
"name": "TestLevel",
"name_pretty": "Test Level",
"namespace": "olvior",
"version_number": "1.0.0",
"description": "A test example level",
"dependencies": [],
"incompatibilities": [],
"authors": ["olvior"],
"tags": ["level"],
"description_rich": "Long mod description goes here",
"incompatibilities": [],
"download": "https://github.com/olvior/bloodthief-mod-loader/releases/download/v0.1.1/olvior-TestLevel.zip",
"repo": "https://github.com/olvior/bloodthief-mod-loader/tree/main/example_mods/mods-unpacked/olvior-InifiteBlood"
}
4 changes: 4 additions & 0 deletions example_mods/mods-unpacked/olvior-TestLevel/mod_main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ func _ready():
var level_config = load(path_to_dir + "/proper_config.tres")
level_config.scene_path = path_to_dir + "/proper.tscn"
GameManager._level_configs.append(level_config)

level_config = load(path_to_dir + "/tbconfig.tres")
level_config.scene_path = path_to_dir + "/tbmap.tscn"
GameManager._level_configs.append(level_config)
2 changes: 1 addition & 1 deletion example_mods/mods-unpacked/olvior-TestLevel/proper.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ points = PackedVector3Array(-2, 4.5, -3.75, -2, -4.5, -3.75, 2, -4.5, -3.75, 2,
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_y8ow1"]
points = PackedVector3Array(-2, 4.5, -3.75, -2, -4.5, -3.75, 2, -4.5, -3.75, 2, 4.5, -3.75, -2, 4.5, 3.75, -2, -4.5, 3.75, 2, -4.5, 3.75, 2, 4.5, 3.75)

[node name="Node3D" type="Node3D"]
[node name="Super Cool Level!!" type="Node3D"]
script = ExtResource("1_yoqyc")
config = SubResource("Resource_r82l5")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ level_index = 2
scene_path = "res://mods-unpacked/olvior-TestLevel/proper.tscn"
display_name = "Super Cool Level"
leaderboard_name = "my_level"
next_level_name = ""
next_level_name = "tbTest"
achievement_for_beating = ""
hex_medal_time_secs = 20.0
blood_medal_time_secs = 30.0
Expand Down
19 changes: 19 additions & 0 deletions example_mods/mods-unpacked/olvior-TestLevel/tbconfig.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[gd_resource type="Resource" script_class="LevelConfig" load_steps=2 format=3 uid="uid://dfduhebfxswys"]

[ext_resource type="Script" path="res://scripts/resource_defs/level_config.gd" id="1_ky381"]

[resource]
script = ExtResource("1_ky381")
level_name = "tbTest"
level_index = 2
scene_path = "res://mods-unpacked/olvior-TestLevel/tbmap.tscn"
display_name = "Trenchbroom Test"
leaderboard_name = "tbTest"
next_level_name = ""
achievement_for_beating = ""
hex_medal_time_secs = 5.0
blood_medal_time_secs = 10.0
bone_medal_time_secs = 15.0
is_automatically_unlocked = true
display_in_level_select = true
use_retro_shader = false
Binary file not shown.
26 changes: 26 additions & 0 deletions example_mods/mods-unpacked/olvior-TestLevel/tbmap.exr.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[remap]

importer="2d_array_texture"
type="CompressedTexture2DArray"
uid="uid://dwlxdhxpx2oir"
path="res://.godot/imported/tbmap.exr-3debdef0bfbdda3716f7cf8f8636029f.ctexarray"
metadata={
"vram_texture": false
}

[deps]

source_file="res://mods-unpacked/olvior-TestLevel/tbmap.exr"
dest_files=["res://.godot/imported/tbmap.exr-3debdef0bfbdda3716f7cf8f8636029f.ctexarray"]

[params]

compress/mode=3
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/channel_pack=1
mipmaps/generate=false
mipmaps/limit=-1
slices/horizontal=1
slices/vertical=1
Binary file not shown.
514 changes: 514 additions & 0 deletions example_mods/mods-unpacked/olvior-TestLevel/tbmap.tscn

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions example_mods/mods-unpacked/olvior-TestLevel/tbmap2.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[gd_scene load_steps=2 format=3 uid="uid://c8ytvhbs1vjkf"]

[ext_resource type="PackedScene" uid="uid://dhy2lak2xclva" path="res://scenes/player.tscn" id="16_yniqy"]

[node name="Node3D" type="Node3D"]

[node name="Player" parent="." instance=ExtResource("16_yniqy")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.25, 3.25, -0.75)
554 changes: 554 additions & 0 deletions example_mods/mods-unpacked/olvior-TestLevel/tbmapbackup.tscn

Large diffs are not rendered by default.

0 comments on commit 05ec758

Please sign in to comment.