having trouble running slab!

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
bad-radish
Prole
Posts: 1
Joined: Tue Sep 08, 2020 8:55 pm

having trouble running slab!

Post by bad-radish »

hello everyone! im writing a data entry tool to help people design/balance/print card/board game components. lua and slab seemed like the best way to get the features i needed without overly complicating everything (its a relatively simple project after all!).

first of all im pretty much new to both love2d and lua. so i dont exactly know how any of this works.

im trying to run slab's most basic example code, which can be found here:
https://github.com/coding-jackalope/Slab

jack says slab "utilizes the Love 2D API". from my understanding, love is an engine more than an api. so do i need to run love to get this to work, or is there a way to run slab in a lua program otherwise?

i also tried running the main.lua file that comes with slab's files (do i need these files to run slab? i tried installing slab with luarocks but i dont think it worked out - cant remember. you can tell i have no idea what im doing lol.) anyway so this main.lua file with slab throws an error because of what appears to be a bug when you are configuring to UseLuaFS. "Contents, Error = love.filesystem.read('string', Path)" complains - from what im reading its because Path is a string, not a number? which sounds very very wrong lol. again, not a lot of experience with lua lol. i tried installing luaFS i /think/. thought it went well, maybe not! i have no idea lol.

the point of choosing slab was to keep things simple - RIP that plan lmao.

anyway, if anyone could help me get some example code with slab running, i would be immensely grateful!
Attachments
Selection_033.png
Selection_033.png (13.88 KiB) Viewed 5131 times
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: having trouble running slab!

Post by pgimeno »

Löve is a framework; it provides an API. Slab is designed to be used by programs that are made for Löve.

love.filesystem.read supports a second optional string argument starting in version 11.0. Maybe you're using an older version?
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests