Jump to content
  • Advertisement
Sign in to follow this  
Zack Lyons

.lua files: are they .thn files?

This topic is 5012 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I code a game called Freelancer. However one thing I have come across are .thn files. But when they are decompressed, they become .thn.lua files. So I was wondering if these are actually the same as .lua files. Here is some of the coding from one file. duration=24.937 entities={ { entity_name="Scene_Untitled_3", type=SCENE, template_name="", lt_grp=0, srt_grp=0, usr_flg=0, spatialprops={ pos={ 0, 0, 0 }, orient={ { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } } }, up=Y_AXIS, front=Z_AXIS, ambient={ 128, 128, 128 } }, { entity_name="Mk_Main_Object", type=MARKER, template_name="", lt_grp=0, srt_grp=0, usr_flg=0, spatialprops={ pos={ 0, 0, 0 }, orient={ { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } } }, userprops={ main_object="main_object" } }, { entity_name="li_elite_2", type=COMPOUND, template_name="li_elite", lt_grp=0, srt_grp=0, usr_flg=0, flags=LIT_DYNAMIC, spatialprops={ pos={ 0, 0, 0 }, orient={ { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } } }, userprops={ category="Spaceship" } }, { entity_name="Camera_1", type=CAMERA, template_name="", lt_grp=0, srt_grp=0, usr_flg=0, spatialprops={ pos={ -66.252411, 24.841164, -84.241539 }, orient={ { -0.852302, 0, 0.523049 }, { 0.07763200000000001, 0.988924, 0.1265 }, { -0.5172560000000001, 0.148422, -0.842862 } } }, cameraprops={ fovh=35, hvaspect=1.85, nearplane=0.2, farplane=1000 } }, { entity_name="Monitor_1", type=MONITOR, template_name="", lt_grp=0, srt_grp=0, usr_flg=0 }, { entity_name="Path_1", type=MOTION_PATH, template_name="", lt_grp=0, srt_grp=0, usr_flg=0, spatialprops={ pos={ 0, 0, 0 }, orient={ { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } } }, pathprops={ path_type="CV_CROrientationSplinePath", path_data="OPEN, {-66.252411,24.841164,-84.241539}, {-0.270998,0.020223,0.959699,0.071617}, {-49.315800,18.285315,-107.532921}, {-0.173131,0.006851,0.984105,0.038942}, " } }, { So are these .lua files?

Share this post


Link to post
Share on other sites
Advertisement
What's the best way to learn C without much hassle then? Because I have 6 days a week school, and I do most of the coding for my Freelancer mod, so there's not much time left over for me to learn more coding languages.

Share this post


Link to post
Share on other sites
Actually, I suggest just taking a look at the Lua book. It covers the basics of the language in Part 1:

http://www.lua.org/pil/

Share this post


Link to post
Share on other sites
If you're just wanting to code lua code, you don't need to learn C. I just assumed you already knew it, and was saying the cross over isn't too hard. Programming In Lua should tell you all what you need to know.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!