Jump to content

Visual Novel Core (With lua/json support)


0xcds4r

Recommended Posts

Hello, world!

I'm developing a visual novel engine.


It already has a number of basic functions, loading lua, json and etc.
I want to make something unique and modern, and most importantly, that everything works stably on all operating systems (Win, Android, Linux and etc.

 

Source codehttps://github.com/0xcds4r/VisualNovelCore/tree/main/stable

0.6-stable build (Source + test build for windows)https://forums.fuwanovel.net/topic/26303-visual-novel-core-06-stable-engine-for-2d-visual-novels-with-luajson-support-download-demosource-code/

Scene Editor (alpha-test)https://forums.fuwanovel.net/topic/26287-visual-novel-core-with-luajson-support/?do=findComment&comment=538025

 

Project is open-source and actively developed.

If anyone is interested, then support my project on itch.iohttps://0xcds4r.itch.io/visual-novel-core/community

 

Thank you for your attention.

Edited by 0xcds4r
Link to comment
Share on other sites

0.5-stable is almost ready, the update will include a number of fixes and optimization.

Also made some changes to the API to offload the engine and make it more stable.

Added functionality for rendering initialization in lua.

Added the ability to change the application icon and its title.

The ability to set render flags directly in lua scripts has been added, the flag system has also been rewritten in the engine itself, which greatly simplifies adding and disabling flags.

Title and icons:

PXjZeu.png

Flag system updated and added in lua:

45Eakv.png

cVrOUs.png

API updates:

rwTkND.png

aZgJtv.png

Link to comment
Share on other sites

I put together a small scene editor, it will allow you to quickly create scenes and generate them in output.json

Download exe (win): https://drive.google.com/file/d/1WevpJ9L-Nqa5w027eFM4rDVt5je7HJLD/view?usp=sharing

Source code: https://github.com/0xcds4r/VisualNovelCore/tree/main/scene_editor

 

v1.0 (ALPHA-test)

jJAne9.png

t6iulF.png

Edited by 0xcds4r
Link to comment
Share on other sites

About scripting in 0.6-stable

Now scripting will be much easier, you can create your own lua libraries and include them using

@include 'path/to/Script'

 (see 'screenshot 1' for details)

 

The includes work even if the script is included with other includes.

Please note that the first @include also applies to those that go further (see 'screenshot 2').

 

screenshot 1

screenshot 2

Also, all scripts are loaded automatically from the 'scripts/' folder, however, if there is another folder in the scripts folder, then scripts will not be loaded from it, you need to do it manually:

VN.__load__('path/to/,  'Script')

 

Link to comment
Share on other sites

@method import in 0.6-stable

In the new version 0.6-stable, it will be possible to import methods from lua scripts, and in addition to simple methods, you can import static methods that are used by the class.

The logic behind this system is that you can only import individual functions, not the whole script.

For the import function, you need to use the following syntax:

Quote

@method 'path/to/Script, just_function_without_class, Class.function_with_class, other_function'

The beauty of this is that you can import functions with ','

 

tNYvka.png

64faZK.png

Edited by 0xcds4r
Link to comment
Share on other sites

In 0.6-stable now you can safely import python modules directly into your lua script and interact with their functionality

Usage #1:

Quote

@pyimport 'here_py_module_name'

Usage #2:

Quote

@pyimport 'here_py_module_name:interaction_name'

CzjWfM.png

Edited by 0xcds4r
Link to comment
Share on other sites

VNCore v1.0.0-RC Announcement

I myself would like to know what will be in this release version.

Nevertheless, something is already being added and improved both within the core and within the lua framework.

For example, input fields have already been added as a render instance, a rather useful thing, of course, you can create it in 0.6-stable by writing scripts, but this is very long and dreary, so 1.0.0 will have its own class for this.

I would also like to refactor the entire code in order, without changing the general structures and api much, fix errors and other exceptions.

I would also like to add a built-in scene editor to simplify their creation, but I think it will take a lot of time, all this will probably be in the form of a separate lua library.

Looking forward to December :)

https://itch.io/t/2795975/vncore-v100-rc-announcement

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...