SUIT not working
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 2
- Joined: Tue Mar 22, 2016 2:40 pm
SUIT not working
I've just started to get into some of the libraries that löve has to offer. I've installed HUMP and SUIT, HUMP is working but I'm having problems with SUIT. I'm following a tutorial that is on the SUIT docs site and it says at the start that suit = require 'suit' but the suit file isn't with the library anymore. Just wondering if there was an update to the library and the doc site has not been updated or theres something I'm doing wrong anyway help would be greatly appreciated thanks.
Re: SUIT not working
I had something similar with Shine before..
I assume you have to put the "suit" folder in the root of the game folder, along with the "main.lua".
This is because when you use " suit = require 'suit' " it will actually look for the "init.lua" inside the suit folder and then load it.
I could be wrong, since i have not used this lib, what does it do anyways?
I assume you have to put the "suit" folder in the root of the game folder, along with the "main.lua".
This is because when you use " suit = require 'suit' " it will actually look for the "init.lua" inside the suit folder and then load it.
I could be wrong, since i have not used this lib, what does it do anyways?
https://github.com/Sulunia
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: SUIT not working
You put SUIT's files in any folder, and since there's an init.lua file in there, you require the folder. Simple as that. In the example, the folder was called suit, and it was next to main.lua, though you can of course nest it more depending on how you want to structure your folders.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
-
- Prole
- Posts: 2
- Joined: Tue Mar 22, 2016 2:40 pm
Re: SUIT not working
Thank you zorg I'll give that a try now and Sulunia SUIT helps with creating menus so it has a bunch of options for buttons and other GUI things.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests