Search found 63 matches

by ixokai
Wed Apr 21, 2010 12:56 pm
Forum: Help Forum
Topic: luasql in mudlet
Replies: 45
Views: 26340

Re: luasql in mudlet

First, can this thread *not* be a generic place where all questions related to the db frontend go? Its extremely hard to follow entirely separate conversations in a multi-page thread, especially when said conversations don't relate directly to the original topic(luasql, as opposed to the db frontend...
by ixokai
Thu Apr 15, 2010 7:19 pm
Forum: Help Forum
Topic: luasql in mudlet
Replies: 45
Views: 26340

Re: luasql in mudlet

Basically (I had a longer post explaining details :( but Chrome crashed), db:add takes a variable number of arguments. The first is the sheet to add a record to; each successive is one individual record. It does not take a "array like table" containing a set of records to add at once. But!...
by ixokai
Tue Mar 30, 2010 12:54 am
Forum: Help Forum
Topic: Mudlet Databases
Replies: 17
Views: 10474

Re: Mudlet Databases

You do it all manually; Lua is extremely bare-bones. There's no convenient handling of just about anything: you iterate over 'em a bunch. The data-types are *extremely* minimalistic. Now, that said, Mudlet provides a number of utility functions to make such things happier in our LuaGlobal.lua. And o...
by ixokai
Tue Mar 30, 2010 12:42 am
Forum: Help Forum
Topic: Mudlet Databases
Replies: 17
Views: 10474

Re: Mudlet Databases

The "db" frontend is a wrapper around LuaSQL, and is not meant for providing direct SQL access. In fact, it goes out of its way to keep the reality of the database away from you -- though it could use work on a number of rough spots. Its intended for people who don't really know databases,...
by ixokai
Fri Mar 19, 2010 5:54 pm
Forum: Help Forum
Topic: Database error - gsub
Replies: 6
Views: 4541

Re: Database error - gsub

First, the result of db:get_database is a database instance. Calling it "results" is going to lead to a lot of confusion. display()'n it will lead to more-- that's not even supported. Second, I think your whole problem is just that display. I rewrote it to debug as: local testsdb = db:crea...
by ixokai
Fri Mar 12, 2010 9:35 pm
Forum: Help Forum
Topic: Newb question
Replies: 22
Views: 13571

Re: Newb question

I have my own newb question. Two, actually. Say I make a temporary trigger; tempTrigger(2, send("oi")) How exactly would I go about disabling this with killTrigger()? I don't know how to get the ID of a temporary trigger so I can turn it off before it fires. As others have said, store the...
by ixokai
Thu Mar 11, 2010 7:00 pm
Forum: Help Forum
Topic: Database error - gsub
Replies: 6
Views: 4541

Re: Database error - gsub

There's a couple different ways you could approach the problem. One, is you could just create a north/south/east/west field as you show here-- that may be workable, if you're on a MUD with very consistant exit-naming. Another would be to add a separate sheet, like: local roomdb = db:create("Aet...
by ixokai
Thu Mar 11, 2010 5:00 pm
Forum: Help Forum
Topic: Database error - gsub
Replies: 6
Views: 4541

Re: Database error - gsub

My first question is: exits = { { "", "" } }, marks = { "" }, What are you trying to do here? You can't use tables as the default / data-type of a sheet column. It only supports basic types-- strings and numbers basically, though timestamps are sort of Special Numbers t...
by ixokai
Sun Feb 07, 2010 1:54 am
Forum: Help Forum
Topic: Crashing in OS X?
Replies: 2
Views: 2551

Re: Crashing in OS X?

What version are you using?

1.0.5.3? Note that the header/title isn't a reliable way to determine this, its basically what version did you download to install.
by ixokai
Fri Feb 05, 2010 2:35 am
Forum: Mudlet Development
Topic: Idea: Grey out disabled items
Replies: 6
Views: 5610

Re: Idea: Grey out disabled items

+1