Search found 16 matches

by DGM
Thu Sep 27, 2018 2:37 pm
Forum: Support and Development
Topic: [SOLVED] os.rename function causing crash
Replies: 2
Views: 2116

[SOLVED] os.rename function causing crash

[smacks forehead]

Right. Moving the string declarations out of the load function fixed it. Thanks.
by DGM
Thu Sep 27, 2018 1:06 pm
Forum: Support and Development
Topic: [SOLVED] os.rename function causing crash
Replies: 2
Views: 2116

[SOLVED] os.rename function causing crash

I want to write a utility that creates some files and directories but places them into the same folder as the program rather than into the save directory. After some research I figured the easy way to do this was to create what I wanted in the save folder and then call os.rename to move it where I n...
by DGM
Sun Mar 25, 2018 8:20 pm
Forum: Support and Development
Topic: Love2d selectively refusing to recognize my functions
Replies: 8
Views: 5331

Re: Love2d selectively refusing to recognize my functions

Okay, I think I'm getting it now. Thanks, guys.
by DGM
Fri Mar 23, 2018 9:25 am
Forum: Support and Development
Topic: Love2d selectively refusing to recognize my functions
Replies: 8
Views: 5331

Re: Love2d selectively refusing to recognize my functions

You're not storing the value as timepiece.time, but as a local object returned by timepiece:create. One solution that would work would be to call the :increment and :draw functions of timepiece not with a colon, but with a dot, and to explicitly pass in t1; that would work. I'm definitely missing s...
by DGM
Tue Mar 20, 2018 1:35 pm
Forum: Support and Development
Topic: Love2d selectively refusing to recognize my functions
Replies: 8
Views: 5331

Re: Love2d selectively refusing to recognize my functions

You seem to be wanting to create a class, but have no functionality to let your object inherit the class's functions. I was working my way towards that, yes. There are a bunch of different ways to go about making a class, this is probably the worst of them all. Fair enough, but right now I'm just t...
by DGM
Tue Mar 20, 2018 7:01 am
Forum: Support and Development
Topic: Love2d selectively refusing to recognize my functions
Replies: 8
Views: 5331

Love2d selectively refusing to recognize my functions

Greetings all, I have some simple programming experience but am new to Lua and Love2d. I created a simple counting program to get familiar with the basics. I made 3 functions: timepiece:create () - sets a counter, called in the load function. timepiece:increment () - adds 1 to the counter, called in...