Search found 650 matches
- Sat May 06, 2017 4:24 am
- Forum: General
- Topic: Help with constructor
- Replies: 7
- Views: 5029
Re: Help with constructor
personally i find it easy to define them, as you would in a class or struct, since i can then look up to the top and easily see how/what i've defined, and don't forget to assign any variables, but I get what you're saying that it isn't necessary. I know what you mean, sometimes it's more convenient...
- Sat May 06, 2017 12:01 am
- Forum: General
- Topic: Help with constructor
- Replies: 7
- Views: 5029
Re: Help with constructor
First of all, this: myCube = { x = nil, y = nil, width = nil, height = nil } is functionally equivalent to this: myCube = {} ...and all that does is create a table called myCube. It's not a class definition; Lua doesn't have any concept of classes. And that's probably a good thing, because you never...
- Thu May 04, 2017 1:32 pm
- Forum: Libraries and Tools
- Topic: Error handler that asks user to report crash
- Replies: 26
- Views: 25009
Re: Error handler that asks user to report crash
It could work, but it's likely easier to set up a web page you can just POST the message to. That might be easier if you already have a web server set up, with a domain pointed at it, and a database installed. Then you just need a script to accept the posts and store them, and a script to view them...
- Wed May 03, 2017 7:59 pm
- Forum: Libraries and Tools
- Topic: Error handler that asks user to report crash
- Replies: 26
- Views: 25009
Re: Error handler that asks user to report crash
As far as I know you'll have to authenticate to any public smtp server if you want it to accept your email. That shouldn't be the case; after all I can send email from my gmail to your uberspace without knowing your password (and without gmail knowing it). It's been a few years since I've looked at...
- Wed May 03, 2017 12:22 am
- Forum: Libraries and Tools
- Topic: Error handler that asks user to report crash
- Replies: 26
- Views: 25009
Re: Error handler that asks user to report crash
That's convenient, never noticed that. The tricky part might be finding an email provider that still allows plain old SMTP connections. Some of the major ones only allow connections over TLS or other encryption, but I'm sure you can find one or two if you poke around (or set up your own, but it's a ...
- Tue May 02, 2017 7:51 pm
- Forum: Libraries and Tools
- Topic: Error handler that asks user to report crash
- Replies: 26
- Views: 25009
Re: Error handler that asks user to report crash
It is kind of nice to see exactly what's in the error report before it's sent, but I suspect you'd get more participation from automatic reports as peterrust suggests. You should be able to send the email programatically, behind the scenes, not with the user's email account but just by connecting to...
- Tue May 02, 2017 7:23 pm
- Forum: Libraries and Tools
- Topic: Löve Debugger
- Replies: 1
- Views: 2502
Re: Löve Debugger
Always interesting to see how library authors handle user input. For anyone else interested, the madness starts around line 228. Feels a bit like a game of "which cup is the ball in." Would really be nice if library authors didn't have to go through this insanity (or subject users to it).
- Tue May 02, 2017 6:51 pm
- Forum: General
- Topic: Fixing your bugs and issues for $5
- Replies: 10
- Views: 12501
Re: Fixing your bugs and issues for $5
After that maybe you can tackle the event delegation system that looks like it was conceived in 1992. I'll gladly pay the $5.
- Mon May 01, 2017 6:20 pm
- Forum: Support and Development
- Topic: Simple cellular automata doesn't seem right
- Replies: 1
- Views: 2308
Re: Simple cellular automata doesn't seem right
Try doing it in two passes. In the first pass, store the next value for each cell, but don't update the actual value yet. In the second pass, update the actual value from the "next value" you stored on the previous pass.
- Sat Apr 29, 2017 7:36 pm
- Forum: General
- Topic: Physics/Geometry Calculation
- Replies: 2
- Views: 2475
Re: Physics/Geometry Calculation
If your bodies can also rotate, you'll need to calculate torque as well as force for it to feel halfway decent. There are tons of articles on this, just google something like "torque rigid bodies." As for storing the vectors, keep in mind that functions can return multiple values in Lua, s...