lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Title: Message
Paul..My Man..
Im cooking on gas now...it was all a matter of getting my head around the stack system....
 
Here a Q..
 
Is it possible to store off the current 'table address' held in the stack, so I can quickly push it back later?
 
I thought I could do this with lua_topointer(...) but I could not find a push equiv. (if indeed this was returning the correct value!)
 
-----Original Message-----
From: Paul Tankard [mailto:Paul.Tankard@gamezlab.co.uk]
Sent: 25 September 2003 14:55
To: Lua list
Subject: RE: First post: Hierarchal Data storage...

This may help you for accessing tables within tables and so on..
 
http://lua-users.org/lists/lua-l/2001-05/msg00182.html
 

-----Original Message-----
From: Dave Owens [mailto:DaveO@climax.co.uk]
Sent: 25 September 2003 14:19
To: Lua list
Subject: RE: First post: Hierarchal Data storage...

Naaa, Im totally lost here.. prob Ive got is small timeframe...so Im learning LUA by apllication (YUK!!)
 
 
Is there anywhere on the net that provides a good step by step LUA tutorial, instead of throwing a lot of jargon at me that I dont need to know...
 
 
My main task is as below..
 
Creation of hierachal 'config' data which can be accessed via 'C', in the final form of... LuaInt->GetInt("Game.speech.volume");
 
I really loved LUA, until I tried to get the C API up and running :P
 
Taken me an hour to realise the luaL_loadfile(...) seems to load the script...parse(run) it, and clear it again, whereas I seem to need something like..lua_dofile(...)
Akk..my head...my confusion...