CTCCoco Posted October 25, 2011 Posted October 25, 2011 It really matter if you use multiple scripts or if you just use one (one for client-side, and one for server-side) for everything? Thanks for the help.
karlis Posted October 25, 2011 Posted October 25, 2011 just for better finding of something, and so if something doesn't work you can turn it off, and restarting something wont cause whole reset. its really recommended to at least use few groups( interface, vehicle, player, login, etc systems, utilities)so you don't get lost. also you have to separate gamemodes from maps, to swap maps w/o stopping gamemode.
eAi Posted October 25, 2011 Posted October 25, 2011 Karlis, you're answering a different question - he's asking if there's a benefit to having multiple script files, not multiple resources. So, no, it doesn't matter from a technical sense - as far the Lua is concerned they may as well all be one file. The benefit to splitting it up is that it makes it easier to find what code you're after, and generally lets you separate different areas of your code from each other. You'll probably find your code easier to understand if you split it up, especially if you come back to it in 6 months time!
CTCCoco Posted October 25, 2011 Author Posted October 25, 2011 Karlis, you're answering a different question - he's asking if there's a benefit to having multiple script files, not multiple resources.So, no, it doesn't matter from a technical sense - as far the Lua is concerned they may as well all be one file. The benefit to splitting it up is that it makes it easier to find what code you're after, and generally lets you separate different areas of your code from each other. You'll probably find your code easier to understand if you split it up, especially if you come back to it in 6 months time! Thank you all for the help. I will do what you say.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now