简体   繁体   English

遵循LevelHelper教程时出现Nil访问错误

[英]Nil access error when following LevelHelper tutorial

I started to make a game on Corona SDK with the help of Level Helper and Sprite Helper. 我开始借助Level Helper和Sprite Helper在Corona SDK上进行游戏。 I have used this video tutorial and all things have been done exactly like in the video, but I have this error. 我已经使用了此视频教程,并且所有操作都与视频中的操作完全一样,但是我遇到了此错误。 I don't understand why. 我不明白为什么。

File: ...DK Projects/Runner/LevelHelper/LevelHelperLoader.lua  
Line: 743

stack traceback:  
    [C]: ?  
    ...DK Projects/Runner/LevelHelper/LevelHelperLoader.lua:743: in function 'createAllNodes'  
    ...DK Projects/Runner/LevelHelper/LevelHelperLoader.lua:150: in function 'instantiateObjects'  
    ...slav/Documents/Corona SDK Projects/Runner/level1.lua:34: in function <...slav/Documents/Corona SDK Projects/Runner/level1.lua:29>  
    ?: in function 'dispatchEvent'  
    ?: in function 'gotoScene'  
    ...heslav/Documents/Corona SDK Projects/Runner/menu.lua:22: in function '_onRelease'  
    ?: in function '?'  
    ?: in function <?:371>  
    ?: in function <?:218> 

Attempt to index field 'lhNodes' (a nil value)

Can you please tell me what I've done incorrectly? 您能告诉我我做错了什么吗?

This usually means that a SpriteHelper document is missing from your project or your LevelHelper API is outdated and was not generated using LevelHelper. 这通常意味着您的项目中缺少SpriteHelper文档,或者您的LevelHelper API已过时并且不是使用LevelHelper生成的。

Please use www.gamedevhelper.com forum for LevelHelper related questions where I get notified and can reply instantly. 请使用www.gamedevhelper.com论坛上有关LevelHelper的问题,我会得到通知并可以立即答复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 电晕SDK错误:当我尝试转到新场景时,“?:0:表索引为零” - Corona SDK Error: “ ?:0:table index is nil ” when I try to go to a new scene 为什么我在尝试运行纱线开始时遇到以下错误 - Why am i getting the following error when trying the run Yarn start 报错:当我使用StartServiceCtrlDispatcher(entrytable)时出现访问冲突 - Report error:access violation when I use StartServiceCtrlDispatcher(entrytable) nil搜索数据模型资源时的路径 - nil Path when searching for Data model resource C# 中的 Canon EDSDK 教程“找不到 Canon Dll”错误 - Canon EDSDK Tutorial in C# "Canon Dll's not found" error 为什么uitextfield成为第一响应者后永远不返回nil? - why does the uitextfield never return nil when it becomes first responder? 当我尝试使用 XOM 教程解析 XML 时“找不到合适的 SAX2 解析器” - “Could not find a suitable SAX2 parser” when i try parsing XML with XOM Tutorial 无法为 API 26 安装 SDK。错误:以下软件包不可用 - Cannot install SDK for API 26. Error: The following packages are not available 如何修复使用Phonegap的facebook android sdk集成的以下错误 - how to fix the following error for facebook android sdk integration using Phonegap 随机错误经常发生:尝试将nil与数字Corona SDK进行比较 - Random error occurs every so often: attempt to compare nil with number Corona SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM