karai17 / Simple-Tiled-Implementation

Tiled library for LÖVE
Other
853 stars 121 forks source link

How to actually "require" sti.lua #275

Closed Jacinto73 closed 8 months ago

Jacinto73 commented 1 year ago

Hi, I I'm new to GitHub, new to programming, new to ALL of this so I'm sure my question will seem inane but I've been at it for hours and still completely baffled. All I want to do is use require to include the STI module as in the examples. But I can't find an actual sti.lua anywhere. Even under the actual STI directory there's a plugins dir, atlas.lua, graphics.lua, init.lua, and utils.lua. But in all the examples & the tutorial it simply says require sti at the top. I don't know how to "clone repositories" or even what that means. Usually when I come here, there's a file I need and I just download it and move on with my life. I apologize for having to ask something that must seem obvious to you all, but could someone please take a moment to tell me what I'm doing wrong? Would really appreciate it.

Thanks

karai17 commented 1 year ago

in the lua world, lua typically searches for sti.lua and sti/init.lua. you can download sti as a zip file from github and then extract the sti directory into your game directory and then require "sti" should find it. if you put the sti directory in a subdirectory such as libs, you would instead require "libs.sti"

hope that helps!

On Thu, Dec 22, 2022, 16:29 Jacinto73 @.***> wrote:

Hi, I I'm new to GitHub, new to programming, new to ALL of this so I'm sure my question will seem inane but I've been at it for hours and still completely baffled. All I want to do is use require to include the STI module as in the examples. But I can't find an actual sti.lua anywhere. Even under the actual STI directory there's a plugins dir, atlas.lua, graphics.lua, init.lua, and utils.lua. But in all the examples & the tutorial it simply says require sti at the top. I don't know how to "clone repositories" or even what that means. Usually when I come here, there's a file I need and I just download it and move on with my life. I apologize for having to ask something that must seem obvious to you all, but could someone please take a moment to tell me what I'm doing wrong? Would really appreciate it.

Thanks

— Reply to this email directly, view it on GitHub https://github.com/karai17/Simple-Tiled-Implementation/issues/275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEQD7FO3YA2AY4FBP2MY2LWOS23PANCNFSM6AAAAAATHC62YE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Jacinto73 commented 1 year ago

Okay, I THINK I have it now. Or, at least, I'm getting different errors now. Thanks so much for the reply. Back to working on the tutorial now...

karai17 commented 1 year ago

if you need any more help, feel free to join the moonscript discord, lots of folks there who are able to help with love, lua, etc~

https://discord.gg/utjDZRRQ

On Thu, Dec 22, 2022, 18:59 Jacinto73 @.***> wrote:

Okay, I THINK I have it now. Or, at least, I'm getting different errors now. Thanks so much for the reply. Back to working on the tutorial now...

— Reply to this email directly, view it on GitHub https://github.com/karai17/Simple-Tiled-Implementation/issues/275#issuecomment-1363419798, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEQD7C2F7SN2MTDTLEWLZLWOTMNDANCNFSM6AAAAAATHC62YE . You are receiving this because you commented.Message ID: @.***>