Page 1 of 1
CMD table.
Posted: 03 Sep 2012, 17:05
by smoth
What builds this table?
Re: CMD table.
Posted: 03 Sep 2012, 17:12
by jK
engine?
Re: CMD table.
Posted: 03 Sep 2012, 17:53
by smoth
CMD is kinda hard to track down via find in files. I'll get the latest source and try later today. If anyone else can narrow my search down I'd appreciate it.
Re: CMD table.
Posted: 03 Sep 2012, 22:10
by FLOZi
Not entirely clear what you're after without context, but
https://github.com/spring/spring/blob/d ... nstCMD.cpp
Re: CMD table.
Posted: 03 Sep 2012, 22:42
by smoth
in lua there is a table CMD
it stores command name and id, so a made up example:
PATROL_FOR_YORDLES with an id 9001
in cmd there are 2 entries for this command
PATROL_FOR_YORDLES = 9001,
9001 = PATROL_FOR_YORDLES,
Re: CMD table.
Posted: 03 Sep 2012, 22:46
by FLOZi
Then my link is what you're after, or at least the starting point.
Re: CMD table.
Posted: 04 Sep 2012, 03:41
by smoth
yeah definitely the bit I wanted
#define PUSH_CMD(cmd) LuaInsertDualMapPair(L, #cmd, CMD_ ## cmd);
LuaInsertDualMapPair(L, #cmd, CMD_ ## cmd); is in the lua utilities file blah blah etc.
good I can complete that part.