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

#301
Quote from: WHAM on Thu 24/03/2011 18:07:54
Is it possible to do something similiar with character ID?

There's no own function for this, but you can do with the retrieved Character object whatever you want, for example get its ID:
Code: ags

int charid = -1;
Character* chr = Character.GetAtScreenXY(x, y);
if (chr != null) charid = chr.ID;

This should give you the idea, I mean, ID. The condition is necessary because if there's no character there, the object is null and trying to access its ID would get you a NullPointerException.
#302
Everything that should work (including parallel downloading/installing/browsing) seems to work fine here (WinXP, and after applying JJS' solution).

At this time the only thing that bothered me was the maximizing functionality, as it makes the window cover the whole screen instead of only the whole desktop (so it's actually a full screen mode, and not a maximize function), and that when maximized, the restore button is still showing a maximize icon.
#303
I've got an entry finished!

Well, I have not not used the standard space synthies (at least I generated them on my own), but I have a picture along with my track, so one extra point off, but another one added, or whatever.

Okay, here is the tune, if you want to call it a tune, and this is the accompanying picture:



The (in my opinion) interesting thing about it is that I drew the image, and made a program that interprets the image as a sound and converts it into a wave file. Every 16 pixel in x direction give a second, and the y direction gives a frequency spectrum, where the brightness of the pixel is the intensity/amplitude of a sine wave with the given frequency.

The picture kind of tells a "story" from left to right, and so does the song: There's a lonesome spaceship travelling through space first, then shots, escalation, a second spaceship is hit!, and then a deserted panet comes in view, with some abandoned houses, and there is no life... or is it? :D

Fun fact: While I worked on this, the shuffle function selected Prodigy's "Out of Space" to play - coincidence? Or a sign from an angel?
#304
Maybe not the best way, but you could just check if the destination is on a non-restricted walkable area. Something like this:

Code: ags
function cEgo_Talk()
{
cChar1.Say("C'mere!");
int destination = GetWalkableAreaAt(cChar1.x-GetViewportX() + 30, cChar1.y-GetViewportY());
if (destination != 2 && destination != 0)
  cEgo.Walk(cChar1.x + 30, cChar1.y, eBlock);
else
  cChar1.Say("Oh I forgot, he can't walk here.");
}


So, instead of getting as close as he can, which would be preferable, cEgo wouldn't walk at all. But this should solve the problem.
#305
General Discussion / Re: Japan Quake
Tue 22/03/2011 14:13:11
Quote from: zabnat on Tue 22/03/2011 13:07:04
Quote from: TomatosInTheHead on Tue 22/03/2011 12:49:20
brought up memories of the Chernobyl disaster and its consequences for the region. Though I think only few people feared for their own health, but imagined crowded Tokio soon being in a same situation as some small village near the Chernobyl plant 25 years ago.
You mean Pripyat? Is a city with a population of 50 000 considered a small village in Germany? ;D
I admit I'm far from well-informed about that... let's just state that Tokio's a bit bigger ;)
#306
General Discussion / Re: Japan Quake
Tue 22/03/2011 12:49:20
Yes, in Germany the media covered the problems at the Fukushima power plant quite largely, and the (actually pro-nuclear-energy) government shut down the 7 or 8 oldest nuclear power plants of the country in a hurry (in fact, they did a 180° turn in only half a day). There was also the side effect that Geiger counters in Germany are temporarily sold out (but hearing that Iodine pills are sold out in some parts of the US and people broke out in tears when they got none, this seems relatively harmless.).

But from what I've seen watching the Japanese NHK live stream, they also spent a lot of time covering everything that happened in the power plant, so I feel that there was not that much of a difference in the amount of media coverage, but more in the reception and maybe the amount of "what could happen?" scenarios brought up. The magical term "nuclear meltdown" ("Kernschmelze") was probably the most-mentioned these days, and brought up memories of the Chernobyl disaster and its consequences for the region. Though I think only few people feared for their own health, but imagined crowded Tokio soon being in a same situation as some small village near the Chernobyl plant 25 years ago.

Afterall, the media coverage is also an issue of news and new pictures. Once the pictures and videos of earthquake, tsunami, and destroyed buildings were all seen, there was nothing new. Watching a rescue team wandering through debris is boring, so they cut the coverage mostly down to mentioning the current official and expected death tolls, and showed videos of exploding reactor shells, water being thrown on the reactors, and TEPCO officials stating their latest efforts instead.
At least until the situation stabilized, then the whole topic got boring too and now the news focusses on Libya and the question whether it was the right decision of the German government not to vote "Yes" in the UN security council.
#307
I suspect this to be an issue with the Windows search order.

Normally, any exe or dll executed from a program should be searched in different places in the following order:
   1. The directory from which the application loaded.
   2. The current directory.
   3. The system directory.
   4. The 16-bit system directory.
   5. The Windows directory.
   6. The directories that are listed in the PATH environment variable.
or the current directory even after the windows directory (at 5th position)
(source: http://msdn.microsoft.com/en-us/library/ms682586%28VS.85%29.aspx)

However, this order seemed to have been changed in some newer versions of windows, so that system directories and paths in the PATH variable are searched even before any local directory is searched (source: http://weblogs.asp.net/pwilson/archive/2003/06/24/9214.aspx)
Now I don't know if "local" means only the current directory or also the directory the application is loaded from (which may be different), and I don't know what applies for Win7, as these sources talk about XP and Win Server 2000 and 2003.

But if TWC writes its path into the PATH variable, and winsetup.exe searches paths in the PATH variable before it searches its own directory for a file named game.exe because Windows says so, it would find TWC's game.exe first, and start it (and TWC doesn't like executed this way for some reason and throws this error message).

So, maybe look whether the TWC directory is in the PATH variable, and try adding the path to Nelly (which, btw, is the cutest game I've played, ever) in front of the PATH variable, so that it's searched first.
#308
Quote from: Iceboty V7000a on Tue 22/03/2011 01:34:06
I think this is highly possible, as Google search alone can crawl inside pdf files. To make it a little bit safer, maybe said email portion could be made by using a bitmap picture instead of text (provided you have control over the pdf creation process).
If you convert it into a picture, you can make a vector graphic as well (with some "turn text into path" function in a vector graphics program), would look nicer (ideally indistinguishable from normal text) in a pdf.

Or maybe you can use this trick: instead of writing your email address aliisthebest@example.com, write something like aliisthebest@e.x.a.m.p.l.e.com, then give all inserted characters the same color as the background and a font size of 1, or whatever is the smallest possible font size. Any crawler should not be able to distinguish between the visible and invisible characters.
#309
Quote from: cosmicr on Tue 22/03/2011 04:10:08
Hoping to get in on the next one - make it easy please  ;D
If it's something like "make a background using only one color!" I'm in, too! :=
#310
Idea Mad
Atmosphere SookieSock
Design oraxon
Composition SookieSock
Functionality Mad
Technique oraxon

Nice entries altogether!
#311
I guess you have a misplaced parentheses there:
Quote from: stepsoversnails on Mon 21/03/2011 09:32:16
if (GetWalkableAreaAt(cEgo.x-GetViewportX()+40 ,cEgo.y-GetViewportY()+20==0)){
   Display ("There's not enough room here.");

It should be:
Quote
if (GetWalkableAreaAt(cEgo.x-GetViewportX()+40 ,cEgo.y-GetViewportY()+20)==0){
   Display ("There's not enough room here.");


Otherwise the boolean expression "... == 0" is interpreted as an integer (0 or 1), and the result of the GetWalkableAreaAt() function is interpreted as a boolean (zero = false, non-zero = true) in the if statement.
#312
General Discussion / Re: Desperate for gas?
Mon 21/03/2011 15:16:06
I sometimes pass gas, but I'd never steal it!

Joke aside, I also think reporting it to the police won't help, better report it to your car insurance if you have one.
But maybe ask your neighbors whether they've had similar issues, if there are more cars damaged, the police can probably put some more effort in investigating this...
#313
Don't forget the X and Y, it's part of the function name ;)

(Though I would expect the wiki search to find also the partial name, but as I see, it doesn't. GetViewportX() and GetViewportY() are described here)
#314
Quote from: barefoot on Sun 20/03/2011 12:38:30
Secondly... I'm trying to remember where chars hotspots are.. is it somewhere in their lower half?

Bottom center pixel, I think.
#315
Er, something along the lines of this?

Code: ags
cHead.ChangeRoom(cBody.Room);
cHead.x = cBody.x - 50;


Where 50 is the distance and should be the same as the distance where the animation ends.


And I like the idea of separating body parts, hope to see the finished game with this feature! :)
#316
General Discussion / Re: Html help?
Mon 14/03/2011 17:29:03
Something like this (additional image is only the green part)?

If yes, here's the code:
Code: ags

<!-- css code -->
#container {position:fixed;}
#container #coffee {display:none; left:8px; top:10px; position:absolute;} 
#container:hover #coffee {display:inline;} 

<!-- html code -->
<span id="container">
<img src="cup.png">
<img id="coffee" src="greencoffee.png">
</span>


edit: as for the link, replace span by a and add css code to make the link frame disappear, that should work.
#317
The repeatedly_execute function itself is like a non-blocking (infinite) while loop (already including a Wait(1)), so you can remove your while loop and turn it just into an if statement.
#318
Quote from: Pinback on Thu 10/03/2011 12:39:24
Sounds like an interesting topic- please excuse this ultra noobish question but with so many choices I can't seem to find a simple, reliable and free way to upload music for quick listening. Emphasis on simple. Anyone got any suggestions?

I think www.soundcloud.com might be good for that, though I've never tried it myself, only listened to stuff that other people uploaded there.
#319
All you Maggots did some really good games there over the past year!
Sadly, I haven't played them all (not even half of them), and haven't got the time to do it over the next few weeks, so I'll have to pass the voting on this one. :( But next year! And then hopefully with my very own entry/-ies in the list :=
#320
I would have wanted a bit more responses for wrong actions, like when
Spoiler
I tried waking up my beloved wife with boiling instead of cold water
[close]
there was no feedback at all, so I didn't know directly if I just missed the hotspot.
Also, the rooms where the floor and walls have the same color (as in the second screenshot) should have at least the edges outlined, it felt like there was some open space beyond the telephone.
Speaking of the very simplistic graphics, I was surprised to see a working mirror in the bathroom. It seems there was put more effort in the game than meets the eye.

As to the story, I'm not easily offended by black humour and know no taboos when it comes to that, since it's humour after all, so I took the game as a moderately provocating satire. Here I was positively surprised that it was more subtle (in the dialogues, especially) than I had expected upon my first impression. I also liked that there was
Spoiler
a twist in the end. (Should I put this in spoiler tags? I don't know.)
[close]

(btw, remember that game where you could shredder your goldfish in a sink? Animal cruelty can be fun, too! Why not domestic voilence? What's evil is the reality, not the imagination)

My recommendation: Download it if you want to criticize it. You've probably seen a lot of deadly violence against cartoon figures, it doesn't hurt more too see it against a bunch of female pixels.
SMF spam blocked by CleanTalk