Page 1 of 2

ZKVN - Visual Novel Engine for ZDoom

PostPosted: Tue Jan 13, 2015 9:24 pm
by The Zombie Killer
What is ZKVN?
ZKVN is an easy to use visual novel engine for ZDoom and GZDoom. Zandronum 2.0 is supported as well, however automatic word wrap is not supported.
Rather than regular ACS, ZKVN is written in C, and compiled using DavidPH's GDCC.

ZKVN started development as the visual novel system for HDoom, and eventually branched off into its own project, that could be used for other mods as well. Therefore, without HDoom, ZKVN wouldn't exist.
Be sure to check out HDoom if you don't mind seeing demon ladies in lewd situations, it's very well done and the team are a great group of people. Once it starts to get its story going it's only going to get better.

For more information, check out the GitHub page

Stuff that's been added since 1.0
  • Like the use key, attack and alt attack can now advance dialogue
  • New "VN_HUD_WRAP_W" setting in language, for more control over word wrap
  • Ability to change UI and graphic positions on the fly
  • Ability to change the "fade time" for graphics
  • Automatic word wrap
  • Customizable graphic and UI sizes
  • Customizable graphic and UI positions
  • Voice acting support
  • Customizable colors for text

Stuff I'm hoping to add
  • Fade transitions for portraits if I can be bothered to implement it when I release 1.2
  • Ability to have two dialogue UI graphics, mainly for the RPG battle system that I MIGHT add to the project
  • A semi-working RPG battle system (maybe)

Where do I get it?
You can download ZKVN from its GitHub page below:
ZKVN on GitHub

Follow the instructions on the GitHub page in order to compile the source code and get a build.

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Wed Jan 14, 2015 2:55 am
by Nash
Sweet! I've always been thinking about using DECORATE and LANGUAGE to make user-editable quest and dialog systems, as well as an inventory system that won't require recompiling the core ACS... but I've never actually gotten around to write the code for it. Thanks for sharing! Maybe I can finally learn GDCC with this and make the painful switch... =D

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Wed Jan 14, 2015 3:41 am
by RV-007
Whatever it is, it's generic and allows player to view character closeups/dialogue screens/images w/o the strife dialogue text background overlay to interfere. That's a good thing. Of course, if I missed something, feel free to provide feedback. A job well done, tzk.

Although don't look @ me for making a visual novel sample (can't write in that level)! I can only see that a certain image debriefing display of "key" items/words/etc will be generically useful. The best common use I could see in zdoom visual novel is aimed towards the character + dialogue. Yes, of course, someone will eventually point out the possibility of writing up a mature novel, but I can't say I care too much to think about contemporaries/best_sellers/etc. Typing in the early morn may not be a good/healthy thing.

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Thu Jan 15, 2015 11:47 pm
by zrrion the insect
I will have to look at this later. The thing looks promising to me, but I would like to ask, is it possible to pass text/the graphic names directly from decorate to the scripts as opposed to using the language lump?

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Fri Jan 16, 2015 3:45 am
by The Zombie Killer
Nash wrote:Thanks for sharing! Maybe I can finally learn GDCC with this and make the painful switch... =D

No problem! And haha, you might wanna join #else#if on the EsperNet IRC, it's a very helpful place if you want to learn how to use GDCC

RV-007 wrote:A job well done, tzk.

Thanks!

zrrion the insect wrote:The thing looks promising to me, but I would like to ask, is it possible to pass text/the graphic names directly from decorate to the scripts as opposed to using the language lump?

Sadly not. If ACS scripts supported strings as parameters, then it would've been possible.

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Fri Jan 16, 2015 1:12 pm
by Ed the Bat
The Zombie Killer wrote:Sadly not. If ACS scripts supported strings as parameters, then it would've been possible.

But they do. I use them all the time.

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Fri Jan 16, 2015 1:43 pm
by Nash
Ed the Bat wrote:
The Zombie Killer wrote:Sadly not. If ACS scripts supported strings as parameters, then it would've been possible.

But they do. I use them all the time.


Example?

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Fri Jan 16, 2015 1:45 pm
by Ed the Bat

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Fri Jan 16, 2015 3:19 pm
by Nash
Doesn't work through DECORATE...

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Fri Jan 16, 2015 3:26 pm
by Ed the Bat
That's a shame. Though, it would seem to me that it has to be a limitation of DECORATE itself, since I've demonstrated that ACS, on its own, can certainly do it. After all, it's my understanding that every variable in ACS is an int, converted as necessary by the engine (floats being bit-shifted, and strings being matched up to an indexed list).

Incidentally, what did the string come out as for you? Mine said "compass", which I believe is referencing a bit of data from a mod that I have previously run (but wasn't running at the time); it's well known that ACS will spout garbage when it isn't finding the right string.

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Fri Jan 16, 2015 3:27 pm
by Nash
No text, it's just empty. If I open the console, I see a bunch of empty lines. I don't have anything autoloaded.

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Fri Jan 16, 2015 3:31 pm
by Ed the Bat
I had forgotten about my autoloads. My mistake. Still, it stands that the script is clearly not being given the correct string to show. In all honestly, I'm a little surprised it could come up blank, as opposed to just pulling any kind of random garbage. I once played a mod that had an indexing error in an array of strings, so when out of bounds, it would print "CAMTEX".

Normally, I would say it's worth making a feature suggestion that DECORATE be adjusted to allow passing strings, but I have no idea how simple or difficult that would be, if the devs would find it worth their time, or if it would be shunted aside anyhow since Doomscript is supposedly around the corner.

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Fri Jan 16, 2015 10:03 pm
by The Zombie Killer
v1.1 released. Check the OP for changelog.

Oh and for those that are curious to how much you can customize the engine without editing the source, check this out:
Spoiler:

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Sun Jan 25, 2015 11:13 pm
by The Zombie Killer

Re: ZKVN - Visual Novel Engine for ZDoom

PostPosted: Sun Jan 25, 2015 11:33 pm
by Nash
Congratulations! Always cool to see our little corner of game modding getting some outside exposure.