|
| 04 Aug 2012 01:38 PM |
| I feel like Scripting Helpers isn't the right place for this, they're more for helping with short hundred or less line scripts that are fairly simple functions or methods. I'd love to hear some of the ways you keep your code organized in large, complex games. Especially since some data has to be physical in the game, others in other heirarchies, and being able to return to a game and add features without having to go through a mess. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 01:39 PM |
| Creating a function dump is a good idea to keep track of every function and what it does |
|
|
| Report Abuse |
|
|
lucas668
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 6183 |
|
|
| 04 Aug 2012 01:39 PM |
| Most of my games have one big script for handling everything, with it being organized in functions and tables. Then I just run a big loop that runs the game's logistics by calling those functions. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 01:43 PM |
The key to being productive while scripting is to have a good editor that does all the work for you.
I've realised this while using Sublime Text 2. It literally reads my mind. |
|
|
| Report Abuse |
|
|
lucas668
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 6183 |
|
|
| 04 Aug 2012 01:44 PM |
| I like Roblox Studio, but it needs autocompletion stuff. Then I'd love it. <3 |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 01:47 PM |
@lucas668
Roblox Studio's script editor is the perfect example of a bad editor to write code.
It doesn't even have automatic indentation. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 01:48 PM |
'It doesn't even have automatic indentation.'
Good thing :)
I like Studio how it is without the annoying popups that tell you all of variables and stuff. |
|
|
| Report Abuse |
|
|
lucas668
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 6183 |
|
|
| 04 Aug 2012 01:50 PM |
| I hate auto-indentation, whenever I come to the end of a function or loop and want to put an end I have to backspace until I get where I want the end to be... |
|
|
| Report Abuse |
|
|
Legend26
|
  |
| Joined: 08 Sep 2008 |
| Total Posts: 10586 |
|
|
| 04 Aug 2012 01:52 PM |
"I've realised this while using Sublime Text 2. It literally reads my mind."
true dat
It cuts down so much on scripting time since you don't have to write out all the variable names manually. |
|
|
| Report Abuse |
|
|
geicogeko
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 2727 |
|
|
| 04 Aug 2012 01:57 PM |
Of those of you who use sublime text 2, who paid for it?
[::Legal Lizard::] |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 01:59 PM |
"I hate auto-indentation, whenever I come to the end of a function or loop and want to put an end I have to backspace until I get where I want the end to be..."
Sublime Text 2 unindents it automatically for you to the right spot. ;) |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 02:00 PM |
"Of those of you who use sublime text 2, who paid for it?"
I think the developer definitely deserves the price, but I don't have $60 to give to him, so I didn't pay. |
|
|
| Report Abuse |
|
|
geicogeko
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 2727 |
|
|
| 04 Aug 2012 02:08 PM |
I had to wait a long time before I had 60 bucks too.
[::Legal Lizard::] |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 02:15 PM |
The only thing I'm worrying about is that, when the stable version gets released, it might actually require us to pay, or at least require us to pay after a certain period of time.
The developer hasn't mentioned that this would be the case anywhere, though. |
|
|
| Report Abuse |
|
|
lucas668
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 6183 |
|
| |
|
|
| 04 Aug 2012 02:19 PM |
@lucas668
Meh...
The developer did an amazing job and he definitely deserves to be paid.
However, if I don't have the money to pay it, then I WILL use a pirated version.
If I do have the money, however, then I will pay, of course.
It's not like the developer will lose anything, since I couldn't have paid him anyway. |
|
|
| Report Abuse |
|
|
Sorcus
|
  |
 |
| Joined: 29 Nov 2010 |
| Total Posts: 3775 |
|
| |
|
| |
|
geicogeko
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 2727 |
|
|
| 04 Aug 2012 03:23 PM |
Pay, all the cool trolls are doing it.
[::Legal Lizard::] |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 03:58 PM |
Sublime 2 sounds interesting, I'll look into it. But that's really just for ease with typing, which isn't a problem for me. I was looking more for how to be organized and easily editable with Lua, without OOP. (A bit over my head at the moment). Is it worth looking into OOP? |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 04:04 PM |
| By editable I mean features of the game being changed or added later after development (well, during, it's really an ongoing effort). |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 04 Aug 2012 04:19 PM |
| OOP is definitley worth looking up. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 04:54 PM |
| I have a feeling it will be hard to correspond well with physical data, in something like a respawning humanoid. But maybe that's just my inexperience with the format. Would you happen to know of any good ways to learn Lua OOP? |
|
|
| Report Abuse |
|
|