Hero6
http://www.hero6.org/forum/

WTF - What The Function?
http://www.hero6.org/forum/viewtopic.php?f=17&t=44
Page 1 of 1

Author:  robertkety [ Wed, 09 Apr 2014 18:15 ]
Post subject:  WTF - What The Function?

After some tinkering last week, I've decided that it's impractical for me to move forward without renaming some functions. Even with the existing comments, it's extraordinarily difficult to code while having to remember that I need inventory_item62a instead of inventory_item63a. I'll be spending some time going through the scripts and renaming these functions.

However, while I'm on the topic of updating code. I really think we should transition the existing "DisplayMessage()" calls to at least include a comment explaining what the message is. I'm hesitant to use the "character.say()" call, it doesn't always look great. "Display()" would probably be a better option; otherwise, let's just add some comments.

While we're on the topic of comments, anyone who wants to add functionality comments to anything in the code will be my personal hero.

I've started compiling these development requirements. I'll place them in a changes spreadsheet... a delta matrix if you will :lol: (No offense intended delta, just couldn't resist the pun)

Author:  deltamatrix [ Sun, 10 Aug 2014 03:19 ]
Post subject:  Re: WTF - What The Function?

only just saw this post. very funny.

Sadly the badly named functions like inventory_item62a inherit from the old AGS 2.x where those functions were automatically generated and you couldn't change them. When this project started, AGS 3 didn't exist and some questionable practices had to be nurtured.

This is where the badly needed code refactor gets painful.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/