Welcome to the Bitcave! Nerdiness, Jokes, Mods, Ideas, and coding!

Well, if I’m not mistaken, .luac (Lua Compiled) files aren’t actually Lua logic files… I believe it said that .luac files are more for UI logic and things, rather than, well, actual game logic.

i believe you are correct sir… at least, Google agrees with you…

.lua/.luac control mostly user interface - buttons, what to display, etc.

1 Like

Except in some cases. eg. Stonehearth where it controls pretty much everything due to how the modding works. You build the ai and everything out of it it seems like so it would in fact control game logic in Stonehearth. Besides I managed to get a decompiler working and although it doesn’t seem to work on every luac file in there it only fails on like one or two of them so it’s fine.

I just wanted to post here so I could say thanks for posting all the links about learning lua! I have been thinking of learning lua again. I learnt it back in 2008 but It’s been 4-5 years since I last used it and I only learned the basics which I have forgotten. :cake: and :candy: for you!

EDIT: Oops. 2008 not '09 :stuck_out_tongue:

1 Like

They have some minor APIs - not sure if they put them out or someone else did.

They mostly only convert format and so forth. They literally just left the Lua scripts sitting in the folders for you to play with. It makes it pretty easy to bounce around and figure out whats going on since 90% of the game seems to be injected using Lua. Very neatly typed out code - not commented but everything is named so well often you don’t need it.

Well it seems I came to the right place to learn coding…
I was wondering where I should start?, having no experience, I like the idea of modding Stonehearth but it would take awhile to learn so that may not be possible.

A good start would be to browse the forum here. Depending on what you would like to learn (especially which language), you will find some threads including learning resources…

2 Likes

Thanks, That’s next weekend all sorted…

Well coding is interesting… I feel my life being sucked away… oh and I’m using Codecademy to learn Java! what are the languages that i need to learn to mod stonehearth???
Thanks for the help!

1 Like

Depends of course on what you want to mod, but this would be Lua, JavaScript and HTML / CSS.

Okay thanks, might take some time… but it’s going to be a journey!

If you really want to learn it “only” for Stonehearth, maybe start with JavaScript and HTML / CSS. With this you can already start doing some modding and as your ideas become more complex, you can turn towards Lua.

For sure coding can be quite entertaining and rewarding (once it works what you want to code). So that’s not lost time if you ask me :wink:.

3 Likes

Greetings,

I started making my first steps in Lua thanks to this thread,so thanks for that;)

Also,i found this today,

https://love2d.org/

Bassicaly (if i understood correctly) you can make simple 2D games using Lua. I am in no position to try it or know good it is but it seems to be a cool way to use and test what you learn. So i am hoping to be able to make something in the months to come.

Also a question,does anyone have a link with a bunch of exercices for Lua,even better with “answers”? I want to test my measly knowledge but i don’t really know how:P

Thanks

1 Like

welcome aboard! :smile:

LÖVE is a neat little framework… i only toyed around with it a bit, when i revisited Lua last year… from what i’ve seen, there are a good number of helpful tutorials that can be leveraged to help folks gain familiarity with the language/platform…

Howdy.


I updated the first post, filled it with the stuff that’s been added to the thread since last I looked. I’m still somewhat on hiatus. New job is sweet, and I’ve been working on modding another game in the meantime, but I haven’t really had oodles of time to do stuff. I also just started fostering two cats, and, well, sleep no do cuz cat fu.

If anyone has questions about Lua or resources, feel free to reply! I have been reading everything, even if I haven’t been around much to reply.

I’ll hopefully be able to be in here a little bit more often as time wears on. (There are just a lot of initial projects with this employer that have taken, and will take, some time to complete. Once I’m done, I’ll be pretty much being paid to keep it from breaking though, which is nice.)

CodeAcademy Seems like they’ve revamped their site again, which is cool.

Also! I’ve been meaning to bring this up for a while! EDX courses can teach you stuff! Like college stuff. For free. If you’re super serial about modding or programming in general, and respond better to formal education than to video game hackwizardry, check it out.

See y’all soon,
Bits

5 Likes

oooh, they have indeed… thanks!

CodeAcademy and CodeSchool are two of my favorite places of edumacation… Rails for Zombies is the best… :wink:

1 Like

Okay guys,
I am learning HTML and CSS with CodeAcademy.
I was messing around with some code and I found I couldn’t get the to format the text into the centre
am I missing something?
Also why does html have to be in “AMERICAN”? The amount of times I have typed colour…
Should I post the code here? Am I asking a really stupid question?
Am I really annoyed that this stupid text editor that doesn’t have spell check that corrects i to I? Defiantly!

Your code might help if there was something wrong with it. Centering is one of the biggest failings of CSS though in that it’s stupidly difficult 99% of the time for something so seemingly obvious, the reason for it has to do with the history of html and how it was designed to go horizontally before vertically but basically it’s more complex than you’d like.

2 Likes

Primarily, in CSS, you should use “text-align:center” for inline elements and “margin: 0 auto” for block elements. If this doesn’t work there are other, less simple ways.

Yeah, I use hastebin.com, because it’s well, fast as heck. If you’d like to post a page or two of code, do it there, but ~6-10 lines is fine here.

@Xavion is correct about the reasoning behind HTML failing to center, and in case you were wondering why American English is the language of the language, Linksies.

2 Likes

I understand why, its just a pain for us non-american English speakers