lunatic-works / nova Goto Github PK
View Code? Open in Web Editor NEWProgrammer-friendly framework for visual novels (VN) / text-based adventure games (AVG) on Unity
License: MIT License
Programmer-friendly framework for visual novels (VN) / text-based adventure games (AVG) on Unity
License: MIT License
哈喽,今天晚上摸了会 把LogWindow的改成LoopScrollRect实现了下 https://github.com/qiankanglai/Nova/tree/scroll
我自测了下发现了两个比较蛋疼的问题:
Unity版本:2021.3.6f1
提示Compilation error
#16 目前不太清楚什么情况下会发生,但是比较频繁
我们目前使用的Lua运行库为ToLua#,它使用的Lua语言版本为LuaJIT,与Lua 5.1完全兼容,Lua 5.2的特性只有一部分兼容
built_in.lua
开头的地方禁止了读取没有定义的全局变量,会报错Attempt to read undeclared global variable
我们的Lua parser支持Unicode字符。比如你把字符串'abc'
外面的英文引号打错成了中文引号‘abc’
,parser就会把它当成一个叫做‘abc’
的变量,不会在parsing时报错,而会在运行时报变量没有定义的错
macOS上load
的行为似乎与Windows上不同。如果出现报错bad argument #1 to 'load' (function expected, got string)
,可以试试把load
换成loadstring
目前preload系统使用正则表达式来识别show
之类的函数,具体可以看DialogueEntryPreprocessor.cs
。函数的参数如果是字符串,必须用单引号或者双引号(而不是方括号)来表示,否则无法识别
hi~ 最近在学习使用Nova,我在新增ch5.txt后将ch1末尾改为@<| jump_to 'ch5' |>
,发现在章节选取页面只有第一章到第三章的索引,第四章和第五章丢失了;另一方面注意到Tools下有不少工具但wiki中似乎没介绍到
想了解下Nova开发时的工作流程是怎样的,比如新增章节、新增动画等等
谢谢~
请问外部小游戏做成预制体后,导入框架显示脚本丢失该怎么解决
不论是将Live2D移动到 Nova/Sourecs 目录下,还是手动创建Live2D的asmdef文件并在Nova.asmdef文件中引用,打包时指向同一个错误:
Script updater for Library\Bee\artifacts\1900b0aP.dag\Nova.dll failed to produce updates.txt file
初步猜测与项目依赖相关,但暂时未找到解决方案
如果在Unity Editor中开始游戏时闪退,先检查一下是不是硬盘满了
然后可以试试清空存档:在Unity Editor的上面的菜单中,点击Nova -> Clear All
如果演出方面遇到任何奇怪的问题,也可能需要清空存档
打包给别人测试时,也可能需要在别人的电脑上清空存档,存档和快捷键设置的位置详见:
https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html
其他设置的位置详见:
https://docs.unity3d.com/ScriptReference/PlayerPrefs.html
(但是在游戏全部做完之后,打包给别人玩,别人之前也没有玩过测试版,那么正常情况下肯定不用清空存档,否则就是bug,请告诉我们)
如果用Unity Editor上面的那个按钮退出游戏模式,一般会有空引用之类的报错,不用管它。如果在游戏中正常退出游戏,应该没有报错,否则就是bug,请告诉我们
如果打开Unity Editor时出现报错Library/PackageCache/com.unity.render-pipelines.universal ...
,建议升级Unity到最新的小版本(不用改2020/2021/2022的大版本),不方便的话也可以在package manager里降级URP到推荐的版本
如果build时Scripting Backend是Mono,并且游戏安装路径中有中文,可能会出现LuaRuntime
的问题,用IL2CPP就不会有这个问题,详见mono/mono#7117
我是在amd的显卡和cpu环境中进行的打包和运行,在编辑器状态下我可以正常使用,但是在导出后只有黑屏,在关闭的时候会弹出是否关闭的提示语,帮帮我
请问生成了font asset并且创建了新的material后,又怎么设置更换字体呢?
Hi 最近摸鱼时候了解了下Nova 可能想用来和朋友一起移植一款AVG。看代码过程中遇到了一些问题or建议 希望能一起讨论下
Example/Colorless
里挪出,我试了下最新版本其实可以直接跑(而且我看了下目前master分支用的是Resources这个机制,确实子文件夹是可以直接获取的)从上手角度来说,能做到开箱即用肯定更加舒服绝大多数Unity能做的gameplay都可以加到Nova里
关于这个其实是我目前比较头疼的地方,譬如希望加入一些特殊玩法的话,和Nova本身如何结合比较合适?例如某个chapter需要打俄罗斯方块,这时候Nova本体部分如何暂停、游戏完成后如何交互更新一些状态信息等?
对照着txt,播放到这一句后就无法继续了,关闭了警告弹出框后,鼠标左键没有任何效果。
系统:MacOS 10.15.6
Unity版本:2021.3.14f1
clone from master后没有人工修改version,直接让unity完成的版本升级,然后打开main scene播放至此
是我哪里操作不对吗,感谢。
我希望能添加一个LIve2D的控制器,我在原有SpriteController的基础上复制了一份,并在里面追加了一个LoadLive2D的公开方法,也在graphics.lua中追加了一个函数,但是他提示我说field or property LoadLive2D does not exist,意思是找不到这个方法,我是漏了什么操作吗?
Hello!
I'm a graphic designer and I like to support open source projects. I would like to design a logo for your project if you interested, I will be happy to work with you! :)
Best Regards
Baran Pirinçal
Graphic Designer
Unity 版本:2020.3.21f1
macOS 版本:macOS Monterey 12.1
CPU:Apple M1
打包为 Intel 架构时运行正常,而 Intel + Apple Silicon 架构时启动游戏后闪退。
打开 Player.log 查看日志显示 libtolua 不兼容。
Player.log
Fallback handler could not load library /Users/yaqinking/Documents/github/Nova/Builds/NovaExample.app/Contents/Frameworks/MonoEmbedRuntime/osx/libtolua
System.DllNotFoundException: tolua
at (wrapper managed-to-native) LuaInterface.LuaDLL.luaL_newstate()
at LuaInterface.LuaStatePtr.LuaNewState () [0x00000] in <b64c230601c2480ebd3dde688c74d236>:0
at LuaInterface.LuaState..ctor () [0x000e9] in <b64c230601c2480ebd3dde688c74d236>:0
at Nova.LuaRuntime.Init () [0x00014] in <b64c230601c2480ebd3dde688c74d236>:0
at Nova.LuaRuntime.get_Instance () [0x0009d] in <b64c230601c2480ebd3dde688c74d236>:0
at Nova.ScriptLoader.ForceInit (System.String path) [0x0001d] in <b64c230601c2480ebd3dde688c74d236>:0
at Nova.ScriptLoader.Init (System.String path) [0x00009] in <b64c230601c2480ebd3dde688c74d236>:0
at Nova.GameState.Awake () [0x00000] in <b64c230601c2480ebd3dde688c74d236>:0
Exception: Nova - New Game Object: LuaRuntime methods should be called after Init().
Nova/Sources 文件夹下的脚本无法引用Live2D的命名空间,如果想接入Live2D的话有其他什么办法吗
是否可以实现
在调试环境下可以跑起来正常运行,但是打成exe以后进入游戏出现unity标志后就闪退了
unity版本: 2020.3.5f1c1 (548653c6c3de)
Nova的大佬你们好:
非常nice的工程,我发现了一个问题不知道是不是都会出现
<|
show(陈高天, 'normal', {0, -0.3, 0.4})
|>
show
也可以显示角色立绘,gaotian
对应的就是Hierarchy里的Characters/Gaotian
ParserException: Syntax error while parsing lazy execution block.
characterName: , displayName: , dialogue:
stage: Default, code:
__Nova.action_coroutine = coroutine.start(function()
__Nova.coroutineHelper:AcquireActionPause()
action_before_lazy_block('')
-- Begin original code block
show(陈高天, 'normal')
-- End original code block
action_after_lazy_block('')
__Nova.coroutineHelper:ReleaseActionPause()
end)
Nova.DialogueEntryParser.ParseDialogueEntries (System.Collections.Generic.IReadOnlyList`1[T] chunks) (at Assets/Nova/Sources/Core/ScriptParsing/DialogueEntryParser.cs:206)
Nova.ScriptLoader.AddDeferredDialogueChunks (Nova.FlowChartNode node) (at Assets/Nova/Sources/Core/ScriptParsing/ScriptLoader.cs:233)
我debug 看到是个regex解析问题 ,但是我看一章也用了这个markdown的问题
([^
]*)` 我在网上的regex c#版也试了 应该是正常的 ,求助如何解决
我用的是2021.3.16f1c1这个版本
已在TXT中改过版本号
打开示例的时候显示的是无法加载Shader
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.