First Time using SciTE problems with running program

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
User avatar
FlyinRabidUnicornPig
Prole
Posts: 3
Joined: Mon Jan 06, 2014 12:45 am

First Time using SciTE problems with running program

Post by FlyinRabidUnicornPig »

So I decided to use SciTE, as it would be easier to just press f5 and instantly open my project up, instead of changing windows and dragging the folder to a shortcut.
The problem is, after I figured out how to make it work, and fixing an error with FSAA, it won't load anything... It doesn't even go to a print statement I have at the beginning of conf.lua. It still works fine just dragging and dropping into the shortcut I have.

Any ideas? Thanks in advance

conf.lua:

Code: Select all

function conf(t)
    print("Hi!")
    t.window.fsaa = 2 --So it runs on my weird craptop
end
the last part of lua.properties for SciTE:

Code: Select all

# compatible with LuaBinaries for Lua 5.1; will work on both platforms.
##command.compile.*.lua=luac5.1 -o "$(FileName).luc" "$(FileNameExt)"
# Lua 5.1
##command.go.*.lua=lua5.1 "$(FileNameExt)"
# Lua 4.0
#command.go.*.lua=Lua-4.0.exe -c -f "$(FileNameExt)"

command.go.main.lua="C:\Program Files\LOVE\love.exe" "$(FileDir)"
Gravy
Citizen
Posts: 80
Joined: Sun Jan 22, 2012 10:15 pm
Location: CA, USA

Re: First Time using SciTE problems with running program

Post by Gravy »

This is not an answer to your question, but instead of dragging the folder onto Love, I find it easier to use a terminal window and type "love filename". You only have to actually type it once, since you can just press 'up' afterwards. I'm not sure if Windows is good at this, but autocomplete makes the typing very quick in Linux and OSX.

EDIT: Just a stab in the dark, but maybe you need to append a slash to the end of FileDir?
User avatar
klis
Prole
Posts: 9
Joined: Mon Jan 27, 2014 4:07 pm
Contact:

Re: First Time using SciTE problems with running program

Post by klis »

Hi there! I too got this problem and resolved it. Just follow this step.

1. Add love to your system path
2. replace this

Code: Select all

command.go.main.lua="C:\Program Files\LOVE\love.exe" "$(FileDir)"
with this

Code: Select all

command.go.main.lua="love.exe $(FileDir)"
:)

Code: Select all

Class = require('libs.hump.class')
Play = Class{}
function Play:myGames()
	return 'https://indrajith.dev'
end
Post Reply

Who is online

Users browsing this forum: Semrush [Bot], Todespreis and 8 guests