Glenn Maynard
afa611c36d
fix error handling
2006-10-09 01:15:09 +00:00
Glenn Maynard
40b8df3488
attribute update
2006-10-09 00:59:30 +00:00
Glenn Maynard
3cae60d6fd
Currently, expression handling in XML is spotting and inconsistent.
...
Each actor type needs to evaluate attributes; only a few do. Strings
are handled with the "@foo()" notation.
Instead, after loading an XML file for loading as an actor,
precompile all XML attributes as Lua expressions.
The primary difference to code is:
- previously, Attr="string" would act as a string if it was being
read as one. Now, specify Attr='"string"'. Attr="@string" is
a shorthand. (note that @strings will not be parsed as Lua
strings, so can not use Lua escape characters)
- previously, Attr="@func()" would evaluate func(), and the value
of the attribute would be the return value of the function. This
was only supported for a few attributes. Now, say Attr="func()",
and this will work for all fields.
- Attributes of other types are unchanged, except that all attributes
may be Lua expressions, eg. Width="SCREEN_WIDTH".
- Attributes names ending with "Command" are special, like metrics.
Prefix "%" to disable this.
This brings XML handling in line with metric handling. (This is an intermediary
step; I have another idea that follows from this that should eliminate the annoying
"'foo'"/"@foo".)
2006-10-09 00:49:30 +00:00
Glenn Maynard
2e3b047880
fix demo
2006-10-09 00:38:27 +00:00
Steve Checkoway
0a88ac65f2
Narrow the Load() interface--there's no need to expose the initial offset or the returned offset. Call InitEntities() to make sure those are set up.
2006-10-08 23:44:58 +00:00
Glenn Maynard
6322ded0dc
move command parsing into LuaHelpers. It's not Actor-specific other
...
than a few compatibility hacks.
2006-10-08 22:24:15 +00:00
Steve Checkoway
b06cb5a268
LUA_USE_MACOSX
2006-10-08 21:05:06 +00:00
Steve Checkoway
4d8564e803
LUA_USE_LINUX
2006-10-08 21:04:22 +00:00
Glenn Maynard
5c1ffb5c6a
simplify
2006-10-08 04:29:09 +00:00
Glenn Maynard
fc255b06eb
simplify, remove unused
2006-10-07 23:14:58 +00:00
Glenn Maynard
3709ae28fc
move CourseDifficulty names into the course loader/writer; they're
...
retained there for compatibility but not used anywhere else
2006-10-07 23:12:40 +00:00
Glenn Maynard
4ccea4e87b
phase out separate course difficulty names
2006-10-07 22:49:04 +00:00
Glenn Maynard
b4102e79c6
phase out separate course difficulty names
2006-10-07 22:42:47 +00:00
Glenn Maynard
a0d37ae44f
fix gcc compile
2006-10-07 22:34:31 +00:00
Glenn Maynard
78a91ba878
revert. You brought back a type I've been trying to remove.
2006-10-07 22:33:24 +00:00
Steve Checkoway
df5d19bd97
Cleanup.
2006-10-07 11:41:52 +00:00
Jason Felds
72cf10f1a5
VC8 fix: inline if wasn't working. Old code is still commented in there.
2006-10-07 11:36:13 +00:00
Jason Felds
ec5479a283
Remove RageSoundReader_Resample_Fast.* from compilation.
2006-10-07 11:12:23 +00:00
Steve Checkoway
73663c4f8a
CourseDifficulty.
2006-10-07 10:49:53 +00:00
Steve Checkoway
64cf91a6bc
Make CourseDifficulty its own enum.
2006-10-07 10:49:04 +00:00
Steve Checkoway
0600ff5a1c
Invalid.
2006-10-07 09:46:11 +00:00
Glenn Maynard
617e8b5335
FOREACH_ENUM2 -> FOREACH_ENUM
2006-10-07 08:56:58 +00:00
Glenn Maynard
30fd6d77b4
maybe workaround g++ 3.3 weirdness
2006-10-07 08:56:12 +00:00
Steve Checkoway
dff1ed1c05
Remove files.
2006-10-07 08:28:51 +00:00
Glenn Maynard
82f51bc3d4
more generic type-punning helper
2006-10-07 08:17:15 +00:00
Glenn Maynard
586c1fc497
unused
2006-10-07 08:15:50 +00:00
Glenn Maynard
f226138ff8
update
2006-10-07 08:06:57 +00:00
Glenn Maynard
e4ca9a11c2
remove BasicType hack. With bound enums, we don't need this,
...
we get automatic range checking, and preferences don't become
invalid if we change enums internally.
2006-10-07 08:06:21 +00:00
Glenn Maynard
37affa93b6
simplify BoostAppPriority -> g_bNeverBoostAppPriority
2006-10-07 08:04:02 +00:00
Glenn Maynard
92e21b0c2f
don't need to validate enums anymore
2006-10-07 08:00:19 +00:00
Glenn Maynard
2c99c407ce
update
2006-10-07 07:58:16 +00:00
Glenn Maynard
f6fbecda6d
ditch RageSoundReader_Resample_Fast
2006-10-07 07:56:42 +00:00
Glenn Maynard
3bff96cec1
ditch RageSoundReader_Resample_Fast. It's not (practically) much
...
faster than Good, and the sound quality is worthless.
2006-10-07 07:54:53 +00:00
Glenn Maynard
4bb479a445
standard enums for some preference types
2006-10-07 07:43:18 +00:00
Glenn Maynard
44bd9f7582
fix stack imbalance
2006-10-07 07:42:25 +00:00
Glenn Maynard
0acad3b003
remove unused
2006-10-07 06:28:07 +00:00
Glenn Maynard
8d44405523
use ToString and FromString
...
on invalid value, default to default
2006-10-07 06:26:40 +00:00
Glenn Maynard
d882f21348
make ToString and FromString templates
2006-10-07 06:21:39 +00:00
Glenn Maynard
0493bc75a9
standard enums for some preference types
2006-10-07 05:52:45 +00:00
Glenn Maynard
1bd59aef01
Invalid
2006-10-07 04:49:44 +00:00
Glenn Maynard
11c9cfc30a
ElementCategory_Invalid
2006-10-07 04:45:08 +00:00
Glenn Maynard
4e83c166b9
simplify
2006-10-07 04:40:14 +00:00
Glenn Maynard
de6ca466d2
more enum standardization
2006-10-07 04:39:48 +00:00
Glenn Maynard
2ce839e4eb
Invalid
2006-10-07 04:25:28 +00:00
Glenn Maynard
8a4ddd1515
Invalid
2006-10-07 04:13:43 +00:00
Jason Felds
064a411962
INVALID -> Invalid
2006-10-07 04:02:10 +00:00
Glenn Maynard
cb746be4c3
Invalid
2006-10-07 03:43:41 +00:00
Glenn Maynard
b67e57864e
Invalid
2006-10-07 03:32:16 +00:00
Glenn Maynard
0e1dffeba5
simplify
2006-10-07 02:32:22 +00:00
Glenn Maynard
357f3ee135
update
2006-10-07 01:23:35 +00:00