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 - Lufia

#21
QuoteOne reason is probably that with AGS, one practically never creates something dynamically.
Eh. Fair enough. I was jusk asking out of curiosity.

Well, thanks.
#22
I don't think I was explaining myself very clearly, so I'll give a concrete example in Ruby.
There is a Bitmap class which can either load an image from the cache or draw a box in which to draw text or images, and stuff. To create a new bitmap object, you do it like that :
@mysprite = Bitmap.new
with @mysprite being an instance of the Bitmap class.

Now, the new funtion of the bitmap class either takes one or two arguments :
Code: ags
@mysprite = Bitmap.new(filename) # Load an image from the cache
@mysprite = Bitmap.new(width, height) # Draw an empty box

width and height are integers, filename is a filename. new isn't defined by putting default values in a list of arguments. It's defined something like that :

Code: ags
class Bitmap # start class definition
  def new(*args) # start method definition
    if args.size == 1 # If there is only one argument
      # Go get image
    elsif args.size == 2 # If there are two arguments
      # Draw box
    end
  end
end


That's useful to create stuff dynamically without having to specify a fixed number of elements, for example.
Come on, that's stuff used in RPG Maker, there has to be an equivalent here. :p

Oh, thanks for the tip about using 0 as a replacement for null, monkey.
#23
That's specifying default values, not making the arguments optional. I know in Ruby I can make a function take a pointer to an array as an argument, without said array having a fixed size. Then my function can take a variable number of arguments without having to specify any default values. I wondered if there was an equivalent in AGS scripting.
#24
You put commas between the different arguments.

function myFunction(int a, bool b, Character* c) {
blah blah blah
}

That makes me wonder how you'd do optional arguments.
#25
Well, does gPanel exist ? Maybe you deleted or renamed it. You might as well Ctrl + F it in your scripts to see if you're doing anything weird to it at some point.
#26
QuoteSince I started using 7 something between like 20 and 80 percent of the time when I'm trying to load a webpage it just fails. Regardless of browser. Network is the same. Windows Firewall is turned off. Software settings are the same. Troubleshooter does not detect any issues.
As that didn't happen to me, I think I can safely say that "fuck up your internet" is not a standard option of Windows 7. :p

Are you tested-it-with-another-computer certain that this isn't a network problem? Or maybe your network card's driver is in need of an update. That's the best I can offer, troubleshooting-wise.
#27
General Discussion / Re: HOWTO - RTFM
Fri 15/01/2010 21:25:37
Using either the Index or Search feature, locate a keyword relating to you're question/problem
::)

I'm all for wrinting pretentious and condescending articles, but one should at least make sure one doesn't make such moronic mistakes, for fear of instantly losing one's credibility.

Pretty funny, though.
#28
How do you decide whether an OS is "bad" ? I've had Windows 7 for some time now, and all the problems I've had were my own fault. Ergonomy-wise, I find it better than XP.

To the topic creator, cleaning up your disk could be a good idea. Run scandisk, defrag, eventually check the disk's integrity...
#29
Sorry, what? Why can't you put "Una mujer" in the description field if you want to display that?
#30
Site & Forum Reports / Re: New AGS Website
Thu 07/01/2010 20:44:56
Quote from: Ryan Timothy on Thu 07/01/2010 16:09:33
I haven't read through this thread since it was first created, so I can't remember what stuff we had in the beginning for ideas.  But this is the design that was voted for by most people, and will be the new page.  Designed by Loominous and Darth (and I believe formatted into a website form by CJ):  http://www.adventuregamestudio.co.uk/Newsite/Home.aspx
Yeah, that's what's linked in the first post too. And I reiterate : I find the color scheme dreadful. But if it's been decided by a vote, I'm not going to start an uprising to convince people my opinion is better than theirs. I'll stick to whining it was better before once the new site goes online. >.>
#31
Site & Forum Reports / Re: New AGS Website
Thu 07/01/2010 12:58:46
Are the mockup pages in the first post still representative of the new style ? With the blue external luor around everything, I think it ends up looking like some cheap livejournal. -_-' I've a problem with the whole color scheme, actually, which makes everything look quite bland.

But it's probably too late to convince anybody to try something different ?
#32
Completed Game Announcements / Re: !
Fri 18/12/2009 22:37:52
Fun little game. The 6 panel layout was a sweet idea and the puzzles were cool. I wouldn't call them hard, though, it was just about recognizing the pattern, which can take from 2 seconds to 2 hours depending on how much attention you're paying.  ;D

I'm not a sucker for the retro look and music, though. I've nothing against a limited palette as such but I prefer something in less bright colors, or a gradient. Well, the style worked anyway, so yeah.
#33
Nah, that was a bitmap font, drawn pixel by pixel. Fonforge uses raster graphics. There are two encoding for Cyrillic in there actually: ISO 8859-5 and KOI8-R ; that means you should be able to type the Russian characters correctly in a text editor using this font, I guess.

The glyph editor looks easy enough to use. I'm just not sure what size to set, but if you have a font I can open and edit, I'll just use that as a model.
#34
Granted, I don't know much about ttf and how AGS handles them, but to have Russian characters actually display, I think you'll have to replace latin characters with the russian ones. For example, using an Arial font, é gets displayed while Å" doesn't. I think AGS stops at the first 256 unicode characters, the usual place for cyrillic is out of bounds.

I don't know anything about fontforge myself, but I'd be willing to give you a hand.
#35
That was a sweet little game. ^^
#36
Well, monkey gave you the way to do that. What's the problem ?
#37
General Discussion / Re: Beggars and stuff eh?
Fri 04/12/2009 11:29:42
Well, each time I see beggars on the streets, I'm reminded on how I always seem to stumble on one or more in the alcohol section of the nearby supermarket when I go hunt for dinner. (I pick my shopping hours shittily, apparently.) Thus, I don't feel bad at all when I don't give money away to them. I'll gladly share food if I've any on me, though.

Apparently, most beggars are also nutcases but aren't intitutionalised because that just costs too much money.
#38
Just wanted to chirp in to say that if you're travelling through France with any flag sewn to your backpack, you're carrying a gigantic "obnoxious" tag around with you. That's the main stereotype about Americans around here, "loud and obnoxious" (and fat).

I don't really care about accents.
#39
Bug at the end:
in room19.asc, line 232
set MusicMasterVolume: invalid volume - must be between 0 and 100
I downloaded the game yesterday, it says v1 in the filename. I don't really feel like playing through 1.1 just to know if the credits won't play either in that one...

I'm on a laptop, everything ran smoothly.

Nice game, very enjoyable. My only complaint is the difference in volume between the different and voices and SFX. If I pushed the volume enough to hear McCarthy and Michael, Sarah's voice was too loud and the grandfather clock was deafening... The setup gui helped a little for the last one, though.
#40
You said "iCheese_look".

Is that a typo and you meant 'iCheese_Look" like in your code or is there really a problem here ? Try deleting the function in the events pane then clicking on the button with the three dots, it should link to the function properly.
SMF spam blocked by CleanTalk