Either my tiled STI is broken or im an idiot

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.
powerII
Prole
Posts: 11
Joined: Sat Dec 26, 2015 5:05 am

Either my tiled STI is broken or im an idiot

Post by powerII »

Hey! Im having trouble with my sti and im not too sure if it's me or the code in it. Im having the issue of sti.map not bring found and prior i had this issue where it said that init or something is nil. thanks in advance!!!
Attachments
gamek.love
(128.59 KiB) Downloaded 130 times
:megagrin: :awesome: :crazy: Beginner :megagrin: :3 :awesome:
bobbyjones
Party member
Posts: 732
Joined: Sat Apr 26, 2014 7:46 pm

Re: Either my tiled STI is broken or im an idiot

Post by bobbyjones »

Did you follow the tutorial I linked?
powerII
Prole
Posts: 11
Joined: Sat Dec 26, 2015 5:05 am

Re: Either my tiled STI is broken or im an idiot

Post by powerII »

Yea, the tutorial says require 'sti' but there is no sti.lua
:megagrin: :awesome: :crazy: Beginner :megagrin: :3 :awesome:
bobbyjones
Party member
Posts: 732
Joined: Sat Apr 26, 2014 7:46 pm

Re: Either my tiled STI is broken or im an idiot

Post by bobbyjones »

Make sure you have the whole folder next to your main.lua.
powerII
Prole
Posts: 11
Joined: Sat Dec 26, 2015 5:05 am

Re: Either my tiled STI is broken or im an idiot

Post by powerII »

Yea they're in the same folder
:megagrin: :awesome: :crazy: Beginner :megagrin: :3 :awesome:
bobbyjones
Party member
Posts: 732
Joined: Sat Apr 26, 2014 7:46 pm

Re: Either my tiled STI is broken or im an idiot

Post by bobbyjones »

Is there an STI/init.lua?
powerII
Prole
Posts: 11
Joined: Sat Dec 26, 2015 5:05 am

Re: Either my tiled STI is broken or im an idiot

Post by powerII »

i got some help and have the issue fixed but a new one has arisen, it says that setfenv requires a number but gets nil
:megagrin: :awesome: :crazy: Beginner :megagrin: :3 :awesome:
User avatar
giantofbabil
Prole
Posts: 32
Joined: Tue Dec 15, 2015 6:07 pm

Re: Either my tiled STI is broken or im an idiot

Post by giantofbabil »

powerII wrote:i got some help and have the issue fixed but a new one has arisen, it says that setfenv requires a number but gets nil
Have you looked at the example project for STI? I originally had problems with it but the code in the example set me straight.

Code: Select all

if enemy == lowerClassSaiyan and powerLevel > 9000 then
    love.graphics.print("What?! 9000?! There's no way that could be right!", 10, 200)
else
    love.graphics.print("You fool!", 10, 200)
end
bobbyjones
Party member
Posts: 732
Joined: Sat Apr 26, 2014 7:46 pm

Re: Either my tiled STI is broken or im an idiot

Post by bobbyjones »

The creator of STI use irc as their main form of communication (at least to me it seems that way.) It may be helpful to join the irc channel. #love on irc.oftc.net
powerII
Prole
Posts: 11
Joined: Sat Dec 26, 2015 5:05 am

Re: Either my tiled STI is broken or im an idiot

Post by powerII »

I definitely try using irc. Actually the creator of sti was the one who helped me. Private messaging is a very inefficient way of communicating.
:megagrin: :awesome: :crazy: Beginner :megagrin: :3 :awesome:
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot], zorg and 3 guests