Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the
ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
by Soosisya » Thu Jan 07, 2021 1:27 am
I've decided to convert my MENUDEF into ZScript menu. But I have no idea how's it done and where to start from. Do you know any mods where I can find custom ZScript menus? Maybe someone can just show me an example code of the menu?
-
Soosisya
-
- Joined: 31 Oct 2020
by m8f » Thu Jan 07, 2021 1:47 am
Doom Delta has ZScript menus.
It doesn't launch because of an error:
- Code: Select all • Expand view
Script error, "DoomDelta_v2.2.1.pk3:zscript/delta/hud_base.zsc" line 460:
Unknown identifier 'fullscreen'
Script error, "DoomDelta_v2.2.1.pk3:zscript/delta/hud_base.zsc" line 460:
Unknown identifier 'fullscreen'
but you can work around it by commenting out the line 460 in zscript/delta/hud_base.zsc. Doesn't seem to break anything.
-

m8f
- dreamer
-

-
- Joined: 29 Dec 2017
- Location: Siberia (UTC+7)
- Discord: m8f#0629
- Github ID: mmaulwurff
- Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit
by Soosisya » Thu Jan 07, 2021 4:15 am
m8f wrote:Doom Delta has ZScript menus.
It doesn't launch because of an error:
- Code: Select all • Expand view
Script error, "DoomDelta_v2.2.1.pk3:zscript/delta/hud_base.zsc" line 460:
Unknown identifier 'fullscreen'
Script error, "DoomDelta_v2.2.1.pk3:zscript/delta/hud_base.zsc" line 460:
Unknown identifier 'fullscreen'
but you can work around it by commenting out the line 460 in zscript/delta/hud_base.zsc. Doesn't seem to break anything.
I've looked inside this mod... OMG! I still don't know where to start from. Maybe you know something more simple?
-
Soosisya
-
- Joined: 31 Oct 2020
by m8f » Thu Jan 07, 2021 4:37 am
My script library
Lazy Points has a ZScript menu that contains top score points list. The menu is filled dynamically.
Menu-related files:
-
menudef;
-
zc_Top.zs: menu definition code.
I don't know if that library is relevant to you because I don't know what in particular you want to achieve with ZScript menus.
-

m8f
- dreamer
-

-
- Joined: 29 Dec 2017
- Location: Siberia (UTC+7)
- Discord: m8f#0629
- Github ID: mmaulwurff
- Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit
Return to Scripting
Who is online
Users browsing this forum: No registered users and 0 guests