Page 2 of 12

Re: A message system

Posted: Tue May 29, 2012 7:47 pm
by KingRecycle
I'd like to see more of this. I would love to use it in projects.

Re: A message system

Posted: Wed May 30, 2012 2:24 pm
by litearc
@Roland_Yonaba: I'll add that in next.
@T-Bone: A face-pic option would work best if the message box is a certain size. Right now, that changes with the number of lines, but I'll add in an option where you specify the number of lines the message box holds and it handles the rest. Then it'll be easy to add face-pics.
@KingRecycle: As you wish! Just implemented "choices".

Re: A message system

Posted: Wed May 30, 2012 2:31 pm
by TechnoCat
Hey, I like this quite a lot more than my Message in a Bottle library.
I love me some self-typing text dialogs.
Also, how did you do the colors?

Re: A message system

Posted: Wed May 30, 2012 2:38 pm
by Roland_Yonaba
litearc wrote:@Roland_Yonaba: I'll add that in next.
Nice!
I like the way you added "choices" feature by the way...
Why not setting up a Github?

Re: A message system

Posted: Wed May 30, 2012 4:04 pm
by litearc
@TechnoCat: Thanks! This is geared more towards RPGs, so scrolling text is important. I really like the look of Message in a Bottle, though. I might have different window skin options and have one like that. The colored text and other features are parsed and processed when the message is created. The text is separated into "blocs", which are blocks of text of one color. Then, when the message plays, the text is displayed on a per bloc instead of a per character basis, which greatly reduces the processing demand. Hope that helps.

@Roland_Yonaba: I've never used github. Since this is a small project and only I'm working on it, I'm not sure of the use. The source code is available to you either way. The next release will be in a few weeks and like before, will have simple examples for all the features.

Re: A message system

Posted: Wed May 30, 2012 4:30 pm
by TechnoCat
litearc wrote:@Roland_Yonaba: I've never used github. Since this is a small project and only I'm working on it, I'm not sure of the use. The source code is available to you either way. The next release will be in a few weeks and like before, will have simple examples for all the features.
If you think it will greatly slow you down, don't use it. (for now)

But, the use of it is so we can subscribe to it and see changes more easily by email or RSS reader. We also can fork it and submit pull requests along with bug reports with inline discussion. It really brings the community to your code. http://bitbucket.org is also a good one.

Hardon Collider is a pretty good example. https://github.com/vrld/HardonCollider
See all changes to the code: https://github.com/vrld/HardonCollider/commits/master
See specific changes to changeset: https://github.com/vrld/HardonCollider/ ... b2de00bb85
Someone helping out by suggesting new ideas: https://github.com/vrld/HardonCollider/issues/14
Code written by someone else is being pulled into the main repo: https://github.com/vrld/HardonCollider/pull/8
Issues are neatly organized into open and closed categories: https://github.com/vrld/HardonCollider/ ... state=open

Github has a lot more to offer too.

But still, the bottom line is if you think it will slow you down, go ahead and not do it.

Re: A message system

Posted: Wed May 30, 2012 4:38 pm
by Ref
Very interesting project.
Afraid I'm not too good at explainations so just created a temporary 'LOVE' to show what I'm suggesting.
All changes are commented.
Just thought that the window location should be more easily modified and that it's size should reflect what is being displayed.
Got the width to work but I'm sure you can do a better job on height.
Great idea!

Re: A message system

Posted: Wed May 30, 2012 4:38 pm
by Roland_Yonaba
litearc wrote: @Roland_Yonaba: I've never used github.
A couple of days ago, i would have said : "me too".
Anyway I tried it, and now I can't live without. :ultraglee:
litearc wrote: Since this is a small project and only I'm working on it, I'm not sure of the use.
Well don't say that. It maybe small, but it stands for a purpose, and does it well. A *lot* of people use Löve without having a account on that board, and might be interested in this. Plus, Github let people monitor your progress, commit after commit. Experienced people could help, giving comments, tips on the source.
But I'm not saying "do this now!"... but just "would you please consider that ? "
litearc wrote: The next release will be in a few weeks and like before, will have simple examples for all the features.
Great! :neko:
TechnoCat wrote: Hardon Collider is a pretty good example. https://github.com/vrld/HardonCollider
See all changes to the code: https://github.com/vrld/HardonCollider/commits/master
See specific changes to changeset: https://github.com/vrld/HardonCollider/ ... b2de00bb85
Someone helping out by suggesting new ideas: https://github.com/vrld/HardonCollider/issues/14
Code written by someone else is being pulled into the main repo: https://github.com/vrld/HardonCollider/pull/8
Issues are neatly organized into open and closed categories: https://github.com/vrld/HardonCollider/ ... state=open
Hey, how come i'm not in your list ? :ultrahappy: https://github.com/Yonaba

Re: A message system

Posted: Wed May 30, 2012 6:09 pm
by coffee
Github offers more options and features but there's one thing that could make a big point for Bitbucket. All project with free accounts in GIT must be open-source. That's fine for example keep public libraries but if eventually you need do some private repository (closed-source project, only for backup remotely a project or even something that you don't want yet to release now) you can do it for free in Bitbucket and so have public/private projects with same account.
Roland_Yonaba wrote: A couple of days ago, i would have said : "me too".
Anyway I tried it, and now I can't live without. :ultraglee:
BTW some (not-boring) git tutorials advised?

Re: A message system

Posted: Wed May 30, 2012 6:38 pm
by litearc
Wow, ok, you guys convinced me! I'll try to put it up by the next release. I'm still new to lua and learning, so if people actually spend time looking through my code, it'd be really helpful.

@Ref: I hadn't implemented it the message box function in the first release. It's in there now and the dimensions are automatically set based on the width of the longest line and the number of lines. Thanks though.