Search found 115 matches

by Luther
December 7th, 2012, 6:44 pm
Forum: Lua Labs
Topic: Dugi's lua questions
Replies: 70
Views: 18591

Re: Dugi's lua questions

Then I wanted to add a tooltip using the code to the list_definition. I tried this (also some other variations, that didn't seem to help): dialog.grid.row[2].column.grid.row.column.grid.row[2].listbox.tooltip = "blablabla" But it is telling that ' attempt to index field 'grid' (a nil valu...
by Luther
December 3rd, 2012, 8:34 pm
Forum: Lua Labs
Topic: Dugi's lua questions
Replies: 70
Views: 18591

Re: Question: wml versus lua in matters of variable operatio

Question. I am trying to make a GUI, and I need a text (in label) to be separated into multiple lines. I have set characters_per_line to 30, but it is not getting separated. I have tried to limit the resolution of the window, but it just added a scrollbar. Any ideas? I haven't tried doing any GUI s...
by Luther
November 30th, 2012, 8:28 pm
Forum: Lua Labs
Topic: Dugi's lua questions
Replies: 70
Views: 18591

Re: Question: wml versus lua in matters of variable operatio

I'm jumping in here to suggest that if you want to make a complex add-on like an RPG, you should write as much of it as possible in Lua. That would help you organize your code better, and it reduces WML bloat. Here are some rules of thumb I've written in my own private set of coding standards: Lua i...
by Luther
August 29th, 2012, 5:18 pm
Forum: Release Announcements, Compiling & Installation
Topic: Wesnoth 1.10.4
Replies: 13
Views: 14400

Re: Wesnoth 1.10.4

I've been experiencing similar problems since at least 1.10 beta. Did you start using Gnome 3 recently? 2. When I press ctrl-F to go to full screen the whole thing locks up giving me a blank screen that is very hard to get out of. I'm not actually sure what I do to get out of it but hitting buttons ...
by Luther
July 10th, 2012, 12:00 am
Forum: WML Workshop
Topic: duel scenario endings
Replies: 10
Views: 1617

Re: duel scenario endings

The first problem (though I don't think it effects anything) is in _main.cfg. Remove the line that says '{~add-ons/Defense_of_Glenfire_Forest/maps}'. The scenario files should refer to the map files directly, so you don't need that in _main.cfg. When I tried to run the campaign, Wesnoth hung while c...
by Luther
July 9th, 2012, 8:28 pm
Forum: WML Workshop
Topic: duel scenario endings
Replies: 10
Views: 1617

Re: duel scenario endings

I don't see any obvious problems in your code. What actually happens when you try it?
by Luther
April 27th, 2012, 5:36 am
Forum: Scenario & Campaign Development
Topic: "Aeranor: Book I": A SP RPG Campaign for Wesnoth 1.10+
Replies: 32
Views: 8196

Re: "Aeranor: Book I": A SP RPG Campaign for Wesnoth 1.10+

It looks like most of those warnings are triggered by the CHECK_SCENARIO_ITEMS macro. In Lua, it would be easy to check if a variable exists before using it. I assume you know Lua, because I've seen you post in Lua Labs. Are you avoiding Lua for some reason, or would it be OK for someone to rewrite ...
by Luther
April 3rd, 2012, 3:13 pm
Forum: Release Announcements, Compiling & Installation
Topic: SVN CheckOut failed n'th Time in Sequence
Replies: 1
Views: 1520

Re: SVN CheckOut failed n'th Time in Sequence

I had this same problem. If I remember correctly, you can resume a failed checkout if you cd into the directory and do 'svn up'.
by Luther
March 28th, 2012, 6:33 am
Forum: Release Announcements, Compiling & Installation
Topic: Debugging Wesnoth in Eclipse
Replies: 2
Views: 1348

Re: Debugging Wesnoth in Eclipse

I don't know about Eclipse, but on the command line, you have to use 'scons build=debug' to compile the program. Otherwise, the executable won't have the symbols that the debugger needs in order to work. Look through Eclipse to see if it has a similar option for compiling.
by Luther
January 30th, 2012, 7:08 pm
Forum: Release Announcements, Compiling & Installation
Topic: Wesnoth 1.10.0
Replies: 39
Views: 18943

Re: Wesnoth 1.10.0

If you're downloading source for a project more than once, you're probably better off using a source control tool, which means you download one version*, then just download the changes between that an the next version. And the tool keeps track of any local changes for you. Thanks. I'll try SVN when...
by Luther
January 29th, 2012, 8:32 pm
Forum: Release Announcements, Compiling & Installation
Topic: Wesnoth 1.10.0
Replies: 39
Views: 18943

Re: Wesnoth 1.10.0

I've had a lot of trouble downloading the source tarballs recently, so I made a torrent for this version. It's available here: http://thepiratebay.org/torrent/6994440/wesnoth-1.10.tar.bz2 . Wesnoth is by far the biggest thing I ever have to download without bittorrent. I have a crappy Clearwire inte...
by Luther
January 5th, 2012, 7:44 pm
Forum: Lua Labs
Topic: Lua Questions
Replies: 28
Views: 6305

Re: Lua Questions

I'd like to make one thing clear about metatables: Their only essential purpose is to hold metamethods . The name of a metamethod always starts with two underscores (__index, __add, etc.). Almost all valid metamethods are listed at link #1 that 8680 gave above. The end result is to add functionality...
by Luther
January 1st, 2012, 8:30 am
Forum: Release Announcements, Compiling & Installation
Topic: 1.8.6 compile ‘lua_objlen’ was not declared in this scope
Replies: 3
Views: 2363

Re: 1.8.6 compile ‘lua_objlen’ was not declared in this scop

You can probably fix this by using Lua 5.1.4. I don't think 5.2 is compatible.
by Luther
December 30th, 2011, 8:48 am
Forum: WML Workshop
Topic: WML questions: invalid wml
Replies: 170
Views: 23637

Re: Question: macros in utils folder can't be found

Here's what I think is going on: The file variable_initialize.cfg seems to have been written on a Mac. Apparently, the Mac text file format does not include the regular newline character that Wesnoth would need to parse the file. In other words, Wesnoth sees the file as one long line, which happens ...
by Luther
October 28th, 2011, 4:09 am
Forum: Lua Labs
Topic: Sigurd's Lua Questions
Replies: 6
Views: 3799

Re: Sigurd's Lua Questions

In short, yes. The underscore is really a function name, and your double-bracket string gets passed as an argument to that function, so it should work fine. (Unless I totally misunderstand how translations work. :roll: ) EDIT: Actually, I think a separate program has to parse the Lua file to find ou...