Why is document.MyCharacterMess a string?
The sequencers use loadstring() internally (util-seq.lua), so you
need to supply the namespace as a string. This happens all over
the place with action/callbacks.
more flexible this way (one can redefine, nil or whatever such functions)
It is like
On 2-10-2012 02:30, Andre Caldas wrote:
I am trying to redefine the ’open_read_file’ callback.
[...]
direct callback access is disabled. There are usually some layers
of abstraction on top of them, different ones for different
callbacks. Mapping them all is a huge effort, so best refer to
the
Hello, Hans!
Shall I simply do something like this?
[...]
this is not the recommended way .. better do somethign like this:
[...]
function document.MyCharacterMess(str,filename)
Loved your function naming! :-)
What is this str?
if file.nameonly(filename) == ward then
I am trying to redefine the ’open_read_file’ callback.
[...]
utilities.sequencers.appendaction(textfileactions,
system,document.MyCharacterMess)
All I want is to get the full path (or path relative to
lfs.currentdir()). Is textfileactions the action I should trap?
Also, shall I use after or
Am 02.10.2012 um 13:41 schrieb Andre Caldas andre.em.cal...@gmail.com:
I am trying to redefine the ’open_read_file’ callback.
[...]
utilities.sequencers.appendaction(textfileactions,
system,document.MyCharacterMess)
All I want is to get the full path (or path relative to
Hello, Andre!
Andre Caldas wrote:
function document.MyCharacterMess(str,filename)
What is this str?
This is a function that takes two variables; the first one it calls
'str', the second one 'filename'. Example:
function f(a, b)
return a/b
end
function(8,2) -- 4, not 0.25
I do not know
···date: 2012-10-02, Tuesday···from: Andre Caldas···
function document.MyCharacterMess(str,filename)
What is this str?
The raw file content as a Lua string. You can examine the
arguments you get like so:
···
On 2-10-2012 13:41, Andre Caldas wrote:
I am trying to redefine the ’open_read_file’ callback.
[...]
utilities.sequencers.appendaction(textfileactions,
system,document.MyCharacterMess)
All I want is to get the full path (or path relative to
lfs.currentdir()). Is textfileactions the action I
On 2-10-2012 14:13, Philipp Gesang wrote:
Why is document.MyCharacterMess a string?
The sequencers use loadstring() internally (util-seq.lua), so you
need to supply the namespace as a string. This happens all over
the place with action/callbacks.
more flexible this way (one can redefine,
Hello!
I am trying to redefine the ’open_read_file’ callback.
I am getting this error:
callback ’open_read_file’ is frozen
Why is it frozen? Can I unfreeze it?
André Caldas.
___
If your question is of interest to
···date: 2012-10-01, Monday···from: Andre Caldas···
I am trying to redefine the ’open_read_file’ callback.
Hi André,
direct callback access is disabled. There are usually some layers
of abstraction on top of them, different ones for different
callbacks. Mapping them all is a huge effort, so
On 1-10-2012 21:11, Andre Caldas wrote:
Hello!
I am trying to redefine the ’open_read_file’ callback.
I am getting this error:
callback ’open_read_file’ is frozen
Why is it frozen? Can I unfreeze it?
because it's the only way we can guarantee some features working well
(but one can plug in
I am trying to redefine the ’open_read_file’ callback.
[...]
direct callback access is disabled. There are usually some layers
of abstraction on top of them, different ones for different
callbacks. Mapping them all is a huge effort, so best refer to
the source.
In your case the function
13 matches
Mail list logo