Commit Graph

42 Commits

Author SHA1 Message Date
Glenn Maynard 2905beb755 parse fix 2005-09-07 02:03:08 +00:00
Glenn Maynard d16efc6684 better diags 2005-09-06 05:41:59 +00:00
Glenn Maynard f2984b0dcf support loading precompiled Lua chunks, for faster loading--compiling
Lua can be slow.
2005-09-05 05:32:08 +00:00
Glenn Maynard 6715dac653 Don't auto-quote command parameters (make it easier to parse commands
from other tools).
2005-09-04 23:54:07 +00:00
Glenn Maynard 8947fed4e8 don't auto-quote settext 2005-08-31 03:09:05 +00:00
Chris Danford fd8e1e61a7 cleanup 2005-07-25 07:39:29 +00:00
Glenn Maynard fc16f2625d LuaManager::RunScript -> LuaHelpers::RunScript.
(Functions in LuaManager can accidentally bypass locking semantics, so
they should be kept to a minimum.)
2005-06-16 06:00:39 +00:00
Glenn Maynard 1e02955e63 correct locking semantics for LuaReference (SGameplay commit in a moment) 2005-06-16 03:13:06 +00:00
Glenn Maynard f71ffd76c0 luaeffect 2005-04-28 10:19:40 +00:00
Chris Danford 1ce86551bd escape quotes in sring literals to fix error compiling "PlayCommand,Don't" 2005-03-22 00:56:25 +00:00
Chris Danford 2cc06cdc27 add 2nd parameter to ActorCommands 2005-03-01 21:56:28 +00:00
Glenn Maynard 8c31d9cdd9 fix string commands not being recognized as such if bordered by whitespace 2005-02-27 03:24:16 +00:00
Glenn Maynard 81bf2cf8ff add queuemessage 2005-02-27 03:21:18 +00:00
Glenn Maynard 185966bd35 settext takes a string 2005-02-24 01:31:21 +00:00
Chris Danford 42c5e2b3f9 allow specifying a Lua function for a command with "%funciton(self) self:blah end" 2005-02-23 19:15:24 +00:00
Glenn Maynard 8584cbc0d7 when compiling a script from a file, don't dump the entire contents of the
script to the log/dialog
2005-02-15 07:17:49 +00:00
Glenn Maynard 0a0ad8714c allow LuaManager::RunExpression to return a function
show the filename when a full script has an error
use LuaManager::RunExpression in LuaExpression
2005-02-15 02:15:26 +00:00
Glenn Maynard 831e7c1825 remove LuaManager::PushNopFunction(). Just compile an empty function;
it'll be tiny, anyway.
2005-02-15 01:49:03 +00:00
Glenn Maynard 11002ff5b2 ActorCommands is a LuaReference 2005-02-13 04:07:29 +00:00
Glenn Maynard 1ae82eeec0 er, don't define operator= in terms of operator= 2005-02-12 22:00:17 +00:00
Glenn Maynard a4de4c8c0d better function registration: store a reference, instead of making up a name 2005-02-05 23:03:20 +00:00
Glenn Maynard 965d5e663d incomplete g++ 3.4 compile fix 2005-02-05 21:40:36 +00:00
Chris Danford 9d760bbdea move common subscription code into templated class 2005-02-05 11:21:13 +00:00
Chris Danford e2da825c30 re-register all ActorCommands after resetting Lua 2005-02-05 10:15:15 +00:00
Glenn Maynard 2eb9e8837b don't bother parsing for empty commands 2005-02-02 03:36:46 +00:00
Glenn Maynard a449b838b3 Remove MAX_SIMULTANEOUS_LUA_FUNCTIONS. It's actually
"max lua functions ever"; we very quickly pass it.
2005-01-28 20:32:14 +00:00
Glenn Maynard b547efa5e7 have ActorCommands push themself 2005-01-28 20:08:29 +00:00
Glenn Maynard c108dce357 add copy ctor for ActorCommands. (This was an attempt to fix a crash,
and wasn't the problem, but is very important anyway; it's currently unused,
so untested.)
2005-01-28 19:54:52 +00:00
Chris Danford 8555a6da45 use Lua to execute commands
(needs cleanup)
2005-01-26 11:21:43 +00:00
Chris Danford ed19821e09 rename: ActorCommand -> Command
Make Command smaller and more generic.
Parse arguments on use, not in Command::Load.
2004-12-03 05:19:46 +00:00
Chris Danford e1da21f61c Let ActorCommand do the parsing for ModeChoice 2004-12-02 05:56:38 +00:00
Chris Danford bcbe615c0d Pass ActorCommand structures to Actor instead of unparsed command strings.
This way, we can potentially do the parsing early and not parse inside of Actor as the command is executing.
2004-11-06 23:13:47 +00:00
Chris Danford 6c855f0c93 "ParsedCommand" -> "ActorCommand" 2004-11-06 20:42:09 +00:00
Chris Danford 7e17fd9615 strip invalid characters when evaluating Actor command parameters 2004-11-06 06:00:58 +00:00
Chris Danford 4b29db0667 case convert only the first parameter of a command (so that contstants in the 2nd and later params don't get munged) 2004-11-06 03:51:06 +00:00
Chris Danford bc184683ca allow Lua expressions in ActorCommand parameters 2004-11-05 06:43:12 +00:00
Glenn Maynard aad73b53e9 (float) atof() -> strtof(), which computes in float instead of computing in
double and casting to float, which is silly
2004-08-10 20:57:59 +00:00
Glenn Maynard 211f9b852a use Dialog 2004-06-10 22:47:51 +00:00
Glenn Maynard c531e8b172 license update 2004-06-08 00:47:53 +00:00
Steve Checkoway 03499669bd fix warnings 2004-02-24 08:00:04 +00:00
Glenn Maynard ac6b436f72 warnings 2004-01-11 08:26:42 +00:00
Chris Danford 7c19bf4b6b add missing files 2004-01-10 20:43:56 +00:00