Möan.lua - A simple messagebox system.
Re: Möan.lua - A simple messagebox system.
Here's a screenshot of a MenuLayout. Inner and outer padding are customizable.
- yetneverdone
- Party member
- Posts: 448
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Möan.lua - A simple messagebox system.
Woah. Thats cool. Cant wait for that lib of yours
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Re: Möan.lua - A simple messagebox system.
I noticed that for some reason the first message cannot move the camera
- holywyvern
- Prole
- Posts: 8
- Joined: Wed Apr 05, 2017 7:06 pm
- Contact:
Re: Möan.lua - A simple messagebox system.
Loving this one, it's pretty usefull for any visual novel or rpg game one may want to make.
(wich is what I plan ) and I like the RM's windowskin compatibility, wich is always a plus.
(wich is what I plan ) and I like the RM's windowskin compatibility, wich is always a plus.
Re: Möan.lua - A simple messagebox system.
hey guys i am trying to use moan in my project but when it gets to the message box code it crashes can someone help with this
here is the error
and here is the code
anyways thanks if you can help
here is the error
Code: Select all
Error
Syntax error: joycon.lua:7: unexpected symbol near '<'
Traceback
[C]: at 0x7fa82417f230
[C]: in function 'require'
main.lua:3: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
Code: Select all
require("lovesplash/lovesplash")
require("Moan")
joycon = require("joycon")
state = "lovesplash"
function love.draw()
if state == "lovesplash" then
lovesplash.draw()
else if state == "menu" then
Moan.speak("Title", {"Hello world!", "It's me;--Möan.lua"})
end
end
end
function love.update(dt)
if state == "lovesplash" then
lovesplash.update(dt)
if lovesplash.done() then
state = "menu"
end
end
end
function love.keypressed()
if state == "lovesplash" then
lovesplash.stop()
else if state == "exit" then
love.event.quit()
else
end
end
end
function love.mousepressed()
if state == "lovesplash" then
lovesplash.stop()
else if state == "exit" then
love.event.quit()
else
end
end
end
- yetneverdone
- Party member
- Posts: 448
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Möan.lua - A simple messagebox system.
Learn to read error messages. It says "in joycon", the moan library is not the issue. Check for that < operatorTitanor wrote: ↑Sat Jun 30, 2018 6:21 am hey guys i am trying to use moan in my project but when it gets to the message box code it crashes can someone help with this
here is the errorand here is the codeCode: Select all
Error Syntax error: joycon.lua:7: unexpected symbol near '<' Traceback [C]: at 0x7fa82417f230 [C]: in function 'require' main.lua:3: in main chunk [C]: in function 'require' [C]: in function 'xpcall' [C]: in function 'xpcall'
anyways thanks if you can helpCode: Select all
require("lovesplash/lovesplash") require("Moan") joycon = require("joycon") state = "lovesplash" function love.draw() if state == "lovesplash" then lovesplash.draw() else if state == "menu" then Moan.speak("Title", {"Hello world!", "It's me;--Möan.lua"}) end end end function love.update(dt) if state == "lovesplash" then lovesplash.update(dt) if lovesplash.done() then state = "menu" end end end function love.keypressed() if state == "lovesplash" then lovesplash.stop() else if state == "exit" then love.event.quit() else end end end function love.mousepressed() if state == "lovesplash" then lovesplash.stop() else if state == "exit" then love.event.quit() else end end end
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Re: Möan.lua - A simple messagebox system.
sorry wrong error log i already deleted the joycon library
Code: Select all
Error
main.lua:10: attempt to call field 'speak' (a nil value)
Traceback
main.lua:10: in function 'draw'
[C]: in function 'xpcall'
- yetneverdone
- Party member
- Posts: 448
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Möan.lua - A simple messagebox system.
That means that the "speak" function of Moan is nil (not a function or doesn't exist). Try browsing the Moan file and search for the "speak" variableTitanor wrote: ↑Sat Jun 30, 2018 8:15 am sorry wrong error log i already deleted the joycon libraryCode: Select all
Error main.lua:10: attempt to call field 'speak' (a nil value) Traceback main.lua:10: in function 'draw' [C]: in function 'xpcall'
Actually, aftwr checking the repo. It should be
```
local Moan = require("moan")
```
Not
```
require("moan")
```
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Re: Möan.lua - A simple messagebox system.
I checked it too and Moan.lua declares a global Moan table. OP's Moan.speak call should work as is with the current Moan.lua from the repo.yetneverdone wrote: ↑Sat Jun 30, 2018 8:53 am Actually, aftwr checking the repo. It should be
```
local Moan = require("moan")
```
Not
```
require("moan")
```
Code: Select all
require('Moan')
Moan.speak('Test', { 'test' })
Who is online
Users browsing this forum: No registered users and 0 guests