change the timeatbuild script and the assoiated texture

This commit is contained in:
zombie maniac 2023-10-02 02:39:43 -04:00
parent a9c278c533
commit 78feaf4799
Signed by: nbrooks211
GPG key ID: F43C85C0DF0C334E
11 changed files with 646 additions and 376 deletions

88
devworld.bak Normal file
View file

@ -0,0 +1,88 @@
// entity 0
{
"classname" "worldspawn"
// brush 0
{
brushDef
{
( 64 -480 0 ) ( 64 -608 0 ) ( -128 -480 0 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_concrete/asphalt12 0 0 0
( -672 1024 0 ) ( -864 1024 0 ) ( -672 1024 -64 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_concrete/asphalt12 0 0 0
( 1024 -896 -32 ) ( 1024 -896 -96 ) ( 1024 -1024 -32 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_concrete/asphalt12 0 0 0
( -128 -608 -64 ) ( 64 -608 -64 ) ( -128 -480 -64 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_concrete/asphalt12 0 0 0
( 192 -1024 -64 ) ( 192 -1024 0 ) ( 384 -1024 -64 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_concrete/asphalt12 0 0 0
( -1024 -704 -96 ) ( -1024 -576 -96 ) ( -1024 -704 -32 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_concrete/asphalt12 0 0 0
}
}
// brush 1
{
brushDef
{
( 640 1024 416 ) ( 640 512 416 ) ( -384 1024 416 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( 512 1024 256 ) ( -512 1024 256 ) ( 512 1024 0 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( 512 1024 256 ) ( 512 1024 0 ) ( 512 512 256 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( -480 512 96 ) ( 544 512 96 ) ( -480 1024 96 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( -528 1016 0 ) ( -528 1016 256 ) ( 496 1016 0 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( -512 512 0 ) ( -512 1024 0 ) ( -512 512 256 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
}
}
// brush 2
{
brushDef
{
( 640 1024 96 ) ( 640 512 96 ) ( -384 1024 96 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( 512 1024 160 ) ( -512 1024 160 ) ( 512 1024 -96 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( -32 1024 96 ) ( -32 1024 -160 ) ( -32 512 96 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( -480 512 0 ) ( 544 512 0 ) ( -480 1024 0 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( -528 1016 -96 ) ( -528 1016 160 ) ( 496 1016 -96 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( -512 512 -96 ) ( -512 1024 -96 ) ( -512 512 160 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
}
}
// brush 3
{
brushDef
{
( 640 1024 96 ) ( 640 512 96 ) ( -384 1024 96 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( 512 1024 160 ) ( -512 1024 160 ) ( 512 1024 -96 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( 512 1024 160 ) ( 512 1024 -96 ) ( 512 512 160 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( -480 512 0 ) ( 544 512 0 ) ( -480 1024 0 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( -528 1016 -96 ) ( -528 1016 160 ) ( 496 1016 -96 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
( 16 568 -96 ) ( 16 1080 -96 ) ( 16 568 160 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_brick/bricks07 0 0 0
}
}
// brush 4
{
brushDef
{
( -512 64 160 ) ( -512 -64 160 ) ( -512 64 392 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_dev/tiles05_orange 0 0 0
( -512 64 160 ) ( -512 64 392 ) ( -520 64 160 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_dev/tiles05_orange 0 0 0
( -512 -216 8 ) ( -520 -216 8 ) ( -512 -344 8 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_dev/tiles05_orange 0 0 0
( -520 -64 392 ) ( -520 -64 160 ) ( -520 64 392 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_dev/tiles05_orange 0 0 0
( -520 -320 56 ) ( -512 -320 56 ) ( -520 -320 -176 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_dev/tiles05_orange 0 0 0
( -520 -64 392 ) ( -520 64 392 ) ( -512 -64 392 ) ( ( 0.009765625 0 -0 ) ( -0 0.009765625 0 ) ) zombietextures_dev/tiles05_orange 0 0 0
}
}
// brush 5
{
brushDef
{
( -280 64 8 ) ( -280 -64 8 ) ( -512 64 8 ) ( ( 0.0097560976 0 -0 ) ( -0 0.0097560976 0 ) ) zombietextures_dev/tiles05_gray 0 0 0
( -280 64 8 ) ( -512 64 8 ) ( -280 64 0 ) ( ( 0.0097560976 0 -0 ) ( -0 0.0097560976 0 ) ) zombietextures_dev/tiles05_gray 0 0 0
( -128 -216 8 ) ( -128 -216 0 ) ( -128 -344 8 ) ( ( 0.0097560976 0 -0 ) ( -0 0.0097560976 0 ) ) zombietextures_dev/tiles05_gray 0 0 0
( -512 -64 0 ) ( -280 -64 0 ) ( -512 64 0 ) ( ( 0.0097560976 0 -0 ) ( -0 0.0097560976 0 ) ) zombietextures_dev/tiles05_gray 0 0 0
( -176 -320 0 ) ( -176 -320 8 ) ( 56 -320 0 ) ( ( 0.0097560976 0 -0 ) ( -0 0.0097560976 0 ) ) zombietextures_dev/tiles05_gray 0 0 0
( -512 -64 0 ) ( -512 64 0 ) ( -512 -64 8 ) ( ( 0.0097560976 0 -0 ) ( -0 0.0097560976 0 ) ) zombietextures_dev/tiles05_gray 0 0 0
}
}
// brush 6
{
brushDef
{
( -504 64 256 ) ( -504 -320 256 ) ( -512 64 256 ) ( ( 0.0078125 0 1.5 ) ( 0 0.125 64 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -472 -64 256 ) ( -480 -64 256 ) ( -472 -64 128 ) ( ( 0.125 0 193 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -504 96 256 ) ( -504 96 128 ) ( -504 -288 256 ) ( ( 0.0078125 0 1.5 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -512 -320 128 ) ( -504 -320 128 ) ( -512 64 128 ) ( ( 0.0078125 0 1.5 ) ( -0 0.125 193 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -512 -192 128 ) ( -512 -192 256 ) ( -504 -192 128 ) ( ( 0.125 0 64 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -512 -320 128 ) ( -512 64 128 ) ( -512 -320 256 ) ( ( 0.0078125 0 255.5 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
}
}
}

View file

@ -77,12 +77,24 @@ brushDef
{
brushDef
{
( -504 64 256 ) ( -504 -320 256 ) ( -512 64 256 ) ( ( 0.0078125 0 1.5 ) ( 0 0.125 64 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -472 -64 256 ) ( -480 -64 256 ) ( -472 -64 128 ) ( ( 0.125 0 193 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -504 96 256 ) ( -504 96 128 ) ( -504 -288 256 ) ( ( 0.0078125 0 1.5 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -512 -320 128 ) ( -504 -320 128 ) ( -512 64 128 ) ( ( 0.0078125 0 1.5 ) ( -0 0.125 193 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -512 -192 128 ) ( -512 -192 256 ) ( -504 -192 128 ) ( ( 0.125 0 64 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -512 -320 128 ) ( -512 64 128 ) ( -512 -320 256 ) ( ( 0.0078125 0 255.5 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -504 128 256 ) ( -504 -256 256 ) ( -512 128 256 ) ( ( 0.0078125 0 2 ) ( 0 0.125 64 ) ) zombietextures_dev/creditsee 0 0 0
( -472 0 256 ) ( -480 0 256 ) ( -472 0 128 ) ( ( 0.125 0 193 ) ( 0 0.0078125 2 ) ) zombietextures_dev/creditsee 0 0 0
( -504 160 256 ) ( -504 160 128 ) ( -504 -224 256 ) ( ( 0.0078125 0 2 ) ( 0 0.0078125 2 ) ) zombietextures_dev/creditsee 0 0 0
( -512 -256 128 ) ( -504 -256 128 ) ( -512 128 128 ) ( ( 0.0078125 0 2 ) ( -0 0.125 193 ) ) zombietextures_dev/creditsee 0 0 0
( -512 -128 128 ) ( -512 -128 256 ) ( -504 -128 128 ) ( ( 0.125 0 64 ) ( 0 0.0078125 2 ) ) zombietextures_dev/creditsee 0 0 0
( -512 -256 128 ) ( -512 128 128 ) ( -512 -256 256 ) ( ( 0.0078125 0 255 ) ( 0 0.0078125 2 ) ) zombietextures_dev/creditsee 0 0 0
}
}
// brush 7
{
brushDef
{
( -504 0 256 ) ( -504 -384 256 ) ( -512 0 256 ) ( ( 0.0078125 0 2 ) ( 0 0.125 64 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -472 -128 256 ) ( -480 -128 256 ) ( -472 -128 128 ) ( ( 0.125 0 193 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -504 32 256 ) ( -504 32 128 ) ( -504 -352 256 ) ( ( 0.0078125 0 2 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -512 -384 128 ) ( -504 -384 128 ) ( -512 0 128 ) ( ( 0.0078125 0 2 ) ( -0 0.125 193 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -512 -256 128 ) ( -512 -256 256 ) ( -504 -256 128 ) ( ( 0.125 0 64 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
( -512 -384 128 ) ( -512 0 128 ) ( -512 -384 256 ) ( ( 0.0078125 0 255 ) ( 0 0.0078125 2 ) ) zombietextures_dev/overlay_datetime_image 0 0 0
}
}
}

View file

@ -1,7 +1,10 @@
# Generated by Q3Map2 (ydnar) -convert -format obj
newmtl textures/zombietextures_dev/overlay_datetime_image
Kd 1.000000 0.989027 0.987205
Kd 1.000000 1.000000 1.000000
map_Kd ../textures/zombietextures_dev/overlay_datetime_image.png
newmtl textures/zombietextures_dev/creditsee
Kd 1.000000 1.000000 1.000000
map_Kd ../textures/zombietextures_dev/creditsee.png
newmtl textures/zombietextures_dev/tiles05_gray
Kd 1.000000 1.000000 1.000000
map_Kd ../textures/zombietextures_dev/tiles05_gray.png

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bcbhxi5gohwcx"
path.s3tc="res://.godot/imported/creditsee.png-84592ea874650eb50228d8df26a6ffa7.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/zombietextures_dev/creditsee.png"
dest_files=["res://.godot/imported/creditsee.png-84592ea874650eb50228d8df26a6ffa7.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -9,25 +9,36 @@ def overlay_text_on_image(background_image_path):
# Get the current UNIX time
unix_timestamp = time.time()
unix_time_str = f"UNIX Time: {unix_timestamp}"
unix_time_str = f"{unix_timestamp}"
# Get the current system time
system_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
system_time_str = f"System Time: {system_time}"
system_time_str = f"{system_time}"
# Get date formated as 23d365
systemzdate = datetime.datetime.now()
systemzyear = systemzdate.year % 100
systemz_day_of_year = systemzdate.timetuple().tm_yday
systemz_time_str = f"a{systemzyear}d{systemz_day_of_year}"
# Use a built-in font (or replace with your own font path)
fnt = ImageFont.truetype("DejaVuSans.ttf", 14)
fntz = ImageFont.truetype("DejaVuSans.ttf", 16)
# Calculate text position (centered)
unix_time_bbox = d.textbbox((0, 0), unix_time_str, font=fnt)
system_time_bbox = d.textbbox((0, 0), system_time_str, font=fnt)
systemz_time_bbox = d.textbbox((0, 0), systemz_time_str, font=fntz)
unix_time_width, unix_time_height = unix_time_bbox[2] - unix_time_bbox[0], unix_time_bbox[3] - unix_time_bbox[1]
system_time_width, system_time_height = system_time_bbox[2] - system_time_bbox[0], system_time_bbox[3] - system_time_bbox[1]
systemz_time_width, systemz_time_height = systemz_time_bbox[2] - systemz_time_bbox[0], systemz_time_bbox[3] - systemz_time_bbox[1]
img_width, img_height = img.size
d.text(((img_width - unix_time_width) / 2, (5 * img_height / 10) - unix_time_height / 2), unix_time_str, font=fnt, fill="white")
d.text(((img_width - system_time_width) / 2, (2 * img_height / 3) - system_time_height / 2), system_time_str, font=fnt, fill="white")
d.text(((img_width - unix_time_width) / 2, (1 * img_height / 6) - unix_time_height / 2), unix_time_str, font=fnt, fill="white")
d.text(((img_width - system_time_width) / 2, (3 * img_height / 6) - system_time_height / 2), system_time_str, font=fnt, fill="white")
d.text(((img_width - systemz_time_width) / 2, (5 * img_height / 6) - systemz_time_height / 2), systemz_time_str, font=fnt, fill="white")
# Save the image with the overlay text
img.save('overlay_datetime_image.png')

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://ddwcc66qktd2p"
uid="uid://cb1ewq6vnm2kv"
path="res://.godot/imported/timebackground.png-75619337b6c8a475357636678c4a16e3.ctex"
metadata={
"vram_texture": false

Binary file not shown.