Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Crimson Wizard

#1501
The Rumpus Room / Re: *Guess the Movie Title*
Sat 27/10/2012 16:29:09
Yes! It's "Ran" by Akira Kurosawa.
Your turn.
#1502
Awww, that's pretty silly.
Can someone tell me, where can I download AGS 2.62, or, at least 2.62 manual?
I need to know how certain things worked before object-oriented methods were introduced.
#1503
The Rumpus Room / Re: *Guess the Movie Title*
Sat 27/10/2012 14:42:48
Quote from: miguel on Sat 27/10/2012 12:22:49
G.I. Samurai?
No.

Quote from: SnarkyPersonally I prefer that to cryptic clues
Well, Aqala already made a cryptic clue ;).
#1504
The Rumpus Room / Re: *Guess the Movie Title*
Fri 26/10/2012 23:31:25
Well, I thought that maybe someone saw that movie, but could not remember it from the first screenshot I posted. Some people did same thing in this thread before (posted more screenshots after some time).
If no one saw this movie, it does not make much sense though.
#1505
The Rumpus Room / Re: *Guess the Movie Title*
Fri 26/10/2012 20:24:05
Alright, I think I should post second shot... besides this movie has many good ones.



Now, isn't it a quintessence of samurai movies?  :=
(no, this blood didn't come from man who did harakiri, though)
#1506
The Rumpus Room / Re: *Guess the Movie Title*
Thu 25/10/2012 15:58:04
Hehe.
Spoiler

Not really a mask, not really a snow, and not really a man :D
[close]
#1507
The Rumpus Room / Re: *Guess the Movie Title*
Thu 25/10/2012 10:16:23
No, but starting from Iceboty V7000 you are on the right track. :)

Also, as an extra "hint"
Spoiler
that is not cocaine
[close]
.
#1508
The Rumpus Room / Re: *Guess the Movie Title*
Thu 25/10/2012 08:15:26
No. No. No.
And not even Cat Mask Runner.
#1509
The Rumpus Room / Re: *Guess the Movie Title*
Wed 24/10/2012 22:13:48
Yay! a guess. :)
Quote from: Ascovel on Wed 24/10/2012 21:28:47
Young Sherlock Holmes?
No. :(
#1510
The Rumpus Room / Re: *Guess the Movie Title*
Wed 24/10/2012 19:57:36
So, it's been almost a week. Either nobody can guess, or no one bothers :).
What do rules say for this situation, should I post another screenshot, or wait some more?
#1511
The Rumpus Room / Re: *Guess the Movie Title*
Thu 18/10/2012 18:40:24
Quote from: bustee on Thu 18/10/2012 10:02:58
Haha.. I thought that answer was a joke :D
Yeah, that movie is pretty quirky one :).

Anyway, guess the movie title:
#1512
The Rumpus Room / Re: *Guess the Movie Title*
Thu 18/10/2012 00:11:33
That's "Trolljegeren", the scene on bridge ,where the guy wears armor to get troll's blood.
#1513
The Rumpus Room / Re: Happy Birthday Thread!
Mon 15/10/2012 12:14:26
Quote from: Tabata on Mon 15/10/2012 04:50:40
Our formerly sock-puppet playing cat is growing up :wink:
Wait... now I see why she wanted to release The Sheep Quest 15th October :).
#1514
Quote from: Baron on Sat 13/10/2012 02:42:59
but I like your work around idea of just formatting another string when I need it and calling that instead of raw text.  It's the kind of quick and dirty fix that appeals to me
Dirty fix  ??? why do you think it is a fix? I see it as a common thing to do.
On other hand you could make a function that takes string with formatting characters and a monkey_05_06's Vector I've already mentioned before (which is basically a string which holds description of random variables inside):
http://www.adventuregamestudio.co.uk/forums/index.php?topic=37232.0

Quote from: Baron on Sat 13/10/2012 02:42:59
On a similar note, though, the thought had crossed my mind that I might want to add voice acting, but I don't think I'll be able to use the same commands.  i.e.
Code: ags
 cVillain.Talk ("&12 You'll never get your kittens back.  Never!"); 

wouldn't work for the same reasons (I haven't tested it, but it seems &12 functions kind of like %d in that it isn't actually part of the string).

I think there's huge misunderstanding. &12 IS a part of the string (as well as formatting characters like "%d" ARE part of the string). It is just that they are replaced inside Say command. That means that you can make a String variable and send it via 100 functions to Say command, like:
Code: ags

function SaySomething(String line)
{
   player.Say(line);
}

function OnSomeEvent()
{
   String s = "&12 Bla bla bla";
   SaySomething(s);
}


Similarly you may pass string with "%d" and other special characters, and the string will keep them all the way around.

Their replacement with variables - that what is done in String.Format, and implemented in exactly C++ as you say, although the implementation details aren't very related to this problem. You may make your own formatting function, eitehr with C++ formatting rules or your own rules, and replace special characters yourself.
The only problem here is to make the formatting function take any number of parameters of any types. AGS doesn't provide means for doing this, so if you want you'll have to find a workaround. Monkey's Stack (mentioned above) is one possible workaround.
#1515
In C++ it is done with "..." in parameter list, which means "any number of parameters of unknown types".
AGS can't do that. Also AGS does not have a way to translate unknown number of parameters to formatted string.

There are perhaps ways make your own string formatting utilities, using monkey_05_06's vector module, for example, to pass random number of values. But the question is: do you really must to pass all that params to your function?

Cannot you just prepare formatted string beforehand, and pass it?
That is instead:
Code: ags
 cVillain.Talk ("I'm going to take all %d of your precious kittens.", kitten_count); 

do
Code: ags

String s = String.Format("I'm going to take all %d of your precious kittens.", kitten_count);
cVillain.Talk (s); 



E: Ahaha, actually AGS CAN do that:
Code: ags

function aa(int x, ...)

Dunno how that will work though. And I don't see a way to GET those params when in the function.
#1516
Quote from: KodiakBehr on Sat 04/08/2012 21:44:50
Okay, when playing Cart Life, I noticed that the distant background was always fixed in position while the foreground buildings, etc, moved with the character.  How the heck did he do that?
Dunno how Cart Life's author did that, but there are two (relatively) simple options.
1) compose background of room objects and always update "distant" object's coordinates so that it is placed at same position relative to viewport.
2) draw on background surface.
Depending on your game it might be optimal to choose either first or second. Or combine both.
By the way, I find this question belongs to Advanced Technical forum.
Also check Parallax Scrolling module, I think it allows to do what you ask about a bit easier: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=33142.0
#1517
Okay, I see. Though I hoped there would be one correct option, so I wouldn't bother to make a choice myself :).
#1518
I remember year ago there was thread about correct english lanuage, but it's no longer active, so I thought I'd ask here.

There's something not really important perhaps, but still bugs me.
What would be correct way to name a program function that returns number of things - is it GetItemCount or GetItemsCount?
Same about naming a thing that is related to multiple objects: ManagedObjectPool or ManagedObjectsPool?
#1519
The Rumpus Room / Re: *Guess the Movie Title*
Thu 02/08/2012 16:10:55
The Core.
#1520
The Rumpus Room / Re: *Guess the Movie Title*
Wed 01/08/2012 11:08:43
Use golf club to put a ball into deaf girl's food and bring her attention.
SMF spam blocked by CleanTalk