# Lua in cataclysm

**URL:** <https://discourse.cataclysmdda.org/t/lua-in-cataclysm/5428>\
**Category:** The Toolbox\
**Created:** [March 14, 2014, 12:01pm UTC](https://discourse.cataclysmdda.org/t/lua-in-cataclysm/5428 "2014-03-14T12:01:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LazyCat-rus](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@LazyCat-rus](https://discourse.cataclysmdda.org/u/LazyCat-rus)\
**Post date:** [March 14, 2014, 12:01pm UTC](https://discourse.cataclysmdda.org/t/lua-in-cataclysm/5428/1 "2014-03-14T12:01:57Z")

</div>

I have couple questions about lua files in cataclysm\_code.

First  
lua/autoexec.lua  
class\_definition.lua  
generate\_bindings.lua  
Is these file are shared or used related? This is important cause i am working on this [https://github.com/CleverRaven/Cataclysm-DDA/pull/6225](https://github.com/CleverRaven/Cataclysm-DDA/pull/6225) and almost finished. I need to know in which dir put this files.

Second  
What is main.lua file? user-related or shared?
