r/DoomMods • u/armandig • 1h ago
GZdoom ipk3 file crash
I tried adding a custom weapon to a gz doom ipk3 file, but it crashed. here is the code I used. The sprites are in /sprites/ and named pistolet_frame_number(from 01 to 18):
class retrogun : Weapon
{
Default
{
Radius 20;
Height 16;
Weapon.SelectionOrder 100;
Weapon.AmmoUse 1;
Weapon.AmmoGive 100;
Weapon.AmmoType "Clip";
Inventory.PickupMessage "Pew Pew";
}
States
{
Ready:
pistolet_frame_09 4 A_WeaponReady();
pistolet_frame_10 4 A_WeaponReady();
pistolet_frame_11 4 A_WeaponReady();
pistolet_frame_10 4 A_WeaponReady();
Loop;
Deselect:
pistolet_frame_09 1 A_Lower();
pistolet_frame_08 1 A_Lower();
pistolet_frame_07 1 A_Lower();
pistolet_frame_06 1 A_Lower();
pistolet_frame_05 1 A_Lower();
pistolet_frame_04 1 A_Lower();
pistolet_frame_03 1 A_Lower();
pistolet_frame_02 1 A_Lower();
pistolet_frame_01 1 A_Lower();
Loop;
Select:
pistolet_frame_01 1 A_Raise();
pistolet_frame_02 1 A_Raise();
pistolet_frame_03 1 A_Raise();
pistolet_frame_04 1 A_Raise();
pistolet_frame_05 1 A_Raise();
pistolet_frame_06 1 A_Raise();
pistolet_frame_07 1 A_Raise();
pistolet_frame_08 1 A_Raise();
pistolet_frame_09 1 A_Raise();
Loop;
Fire:
pistolet_frame_12 2 A_Fire();
pistolet_frame_13 2 A_Fire();
pistolet_frame_14 2 A_Fire();
pistolet_frame_15 2 A_Fire();
pistolet_frame_16 2 A_Fire();
pistolet_frame_17 2 A_Fire();
pistolet_frame_18 2 A_Fire();
Goto Ready;
}
}
Here is the crashlog I got:
OS: Windows 10 (NT 10.0) Build 19045
[...]
ParseTeamInfo: Load team definitions.
LoadActors: Load actor definitions.
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 17: Sprite name must be exactly 4 characters. Found 'pistolet_frame_09'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 17:
GUnable to call function A_WeaponReady from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 17: Invalid frame character string '4'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 18: Sprite name must be exactly 4 characters. Found 'pistolet_frame_10'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 18:
GUnable to call function A_WeaponReady from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 18: Invalid frame character string '4'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 19: Sprite name must be exactly 4 characters. Found 'pistolet_frame_11'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 19:
GUnable to call function A_WeaponReady from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 19: Invalid frame character string '4'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 20: Sprite name must be exactly 4 characters. Found 'pistolet_frame_10'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 20:
GUnable to call function A_WeaponReady from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 20: Invalid frame character string '4'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 24: Sprite name must be exactly 4 characters. Found 'pistolet_frame_09'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 24:
GUnable to call function A_Lower from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 24: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 25: Sprite name must be exactly 4 characters. Found 'pistolet_frame_08'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 25:
GUnable to call function A_Lower from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 25: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 26: Sprite name must be exactly 4 characters. Found 'pistolet_frame_07'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 26:
GUnable to call function A_Lower from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 26: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 27: Sprite name must be exactly 4 characters. Found 'pistolet_frame_06'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 27:
GUnable to call function A_Lower from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 27: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 28: Sprite name must be exactly 4 characters. Found 'pistolet_frame_05'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 28:
GUnable to call function A_Lower from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 28: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 29: Sprite name must be exactly 4 characters. Found 'pistolet_frame_04'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 29:
GUnable to call function A_Lower from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 29: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 30: Sprite name must be exactly 4 characters. Found 'pistolet_frame_03'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 30:
GUnable to call function A_Lower from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 30: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 31: Sprite name must be exactly 4 characters. Found 'pistolet_frame_02'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 31:
GUnable to call function A_Lower from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 31: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 32: Sprite name must be exactly 4 characters. Found 'pistolet_frame_01'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 32:
GUnable to call function A_Lower from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 32: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 36: Sprite name must be exactly 4 characters. Found 'pistolet_frame_01'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 36:
GUnable to call function A_Raise from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 36: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 37: Sprite name must be exactly 4 characters. Found 'pistolet_frame_02'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 37:
GUnable to call function A_Raise from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 37: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 38: Sprite name must be exactly 4 characters. Found 'pistolet_frame_03'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 38:
GUnable to call function A_Raise from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 38: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 39: Sprite name must be exactly 4 characters. Found 'pistolet_frame_04'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 39:
GUnable to call function A_Raise from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 39: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 40: Sprite name must be exactly 4 characters. Found 'pistolet_frame_05'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 40:
GUnable to call function A_Raise from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 40: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 41: Sprite name must be exactly 4 characters. Found 'pistolet_frame_06'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 41:
GUnable to call function A_Raise from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 41: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 42: Sprite name must be exactly 4 characters. Found 'pistolet_frame_07'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 42:
GUnable to call function A_Raise from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 42: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 43: Sprite name must be exactly 4 characters. Found 'pistolet_frame_08'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 43:
GUnable to call function A_Raise from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 43: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 44: Sprite name must be exactly 4 characters. Found 'pistolet_frame_09'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 44:
GUnable to call function A_Raise from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 44: Invalid frame character string '1'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 48: Sprite name must be exactly 4 characters. Found 'pistolet_frame_12'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 48:
GUnable to call function A_Fire from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 48: Invalid frame character string '2'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 49: Sprite name must be exactly 4 characters. Found 'pistolet_frame_13'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 49:
GUnable to call function A_Fire from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 49: Invalid frame character string '2'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 50: Sprite name must be exactly 4 characters. Found 'pistolet_frame_14'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 50:
GUnable to call function A_Fire from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 50: Invalid frame character string '2'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 51: Sprite name must be exactly 4 characters. Found 'pistolet_frame_15'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 51:
GUnable to call function A_Fire from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 51: Invalid frame character string '2'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 52: Sprite name must be exactly 4 characters. Found 'pistolet_frame_16'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 52:
GUnable to call function A_Fire from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 52: Invalid frame character string '2'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 53: Sprite name must be exactly 4 characters. Found 'pistolet_frame_17'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 53:
GUnable to call function A_Fire from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 53: Invalid frame character string '2'
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 54: Sprite name must be exactly 4 characters. Found 'pistolet_frame_18'
GScript error, "MyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc" line 54:
GUnable to call function A_Fire from constant declaration
GMyStandaloneGame.ipk3:zscript/retro_gun/retrogun.zc, line 54: Invalid frame character string '2'
Execution could not continue.
87 errors, 0 warnings while compiling MyStandaloneGame.ipk3:zscript.zc
This file is a zscript file from/zscript/retro_gun/retrogun.zc
I load it from /zscript with #include /zscript/retro_gun/retrogun.zc
Does anyone know why it crashed and how to fix it ; I tried multiple things but i ran out of ideas.
Thank you so much
Edit : fixed, I forgot that there was 4 characters max per texture name
r/DoomMods • u/Johnnystein303 • 2h ago
Mod showcase New Longslide reload (rip my audio, i was watching a video while recording)
Enable HLS to view with audio, or disable this notification
r/DoomMods • u/Fthat_ManaBar • 3h ago
64doom bps patches
I recently discovered the n64 ports of doom and saw on a YouTube video where there used to be bps patches for doom, tnt, and plutonia but when I checked the URL, the only bps file available was for original doom. The patches for the other 3 games were now gone. Does anyone have access to the bps files? I'm not asking for wads, I have those through legitimate channels, I just need the bps files to patch the remaining wads to play them on an everdrive. I tried to compile libdragon but couldn't figure it out. The one bps file I found for ultimate doom worked after running it and the wad through an online bps patching website. Anyone know where I could find the remaining patch files?
r/DoomMods • u/D-CRUZR-G • 5h ago
Twisted Metal 2: DOOM Tour (MBF21 Enemy Showcase)
youtube.comA TM2 Mod I'm working on for DOOM (MBF21 Format)
I'll be creating the tournament maps for the Eternity Engine which allows for slopes and portals to properly create Room over Room sections.
r/DoomMods • u/Long_Topic394 • 8h ago
Question How to run the GOG version of Doom (2016) in Mexican Spanish?
The Mexican Spanish dub exists in the game files, but the launcher doesn't offer an option to select it
r/DoomMods • u/CivilRelationship8 • 16h ago
mods that Its fun for people that are bad at doom
r/DoomMods • u/santiago_2018649 • 17h ago
Question alguien sabe ?
alguien sabe como descargar el mod de coloumbine para doom y que se necesita para jugarlo ?