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

#701
First of all allow me to explain what's wrong with the example code you give.   At runtime, AGS first executes user scripts that queue up commands that are later executed by the engine.  So when you put a SetViewport() function in a while loop, your script will continue executing while it iterates through the loop.   The engine will only see and execute the last SetViewport() command.  To achieve the scroll effect you seek it is necessary for your "while loop" to span multiple game scans.   This can be achieved using the repeatedly execute event as follows.

Create a GUI named gMsg that contains a label named gMsgLabel.   The add the following code to your room.  I don't have access to an AGS workstation at the moment so I can't test anything.  However, I think there is enough here to give you and idea of what needs to be done.

Code: ags

// Scroll Room variables
#define MAX_DELAY 1
int delay=0;
int xpos=0;

// Display message variables
#define MAX_MSG 10
#define MAX_MSGTIME 100
int msgtime=0;
int msgid=0;

function room_RepExec() {

   // Scroll Room
   delay++;
   if (delay>MAX_DELAY) {
      delay = 0;
      if (xpos<640) {
         xpos++;
         SetViewport(xpos, 0);
      }
   }

   // Enable message GUI
   if (msgid<MAX_MSG) gMsg.Visible = true;
   else gMsg.Visible = false;

   // Display Messages
   msgtime++;
   if (msgtime>MAX_MSGTIME) {
      msgtime = 0;
      msgid++;
      if (msgid=1) gMsgLabel.Text = "Message-1";
      else if (msgid=2) gMsgLabel.Text = "Message-2";
      else if (msgid=3) gMsgLabel.Text = "Message-3";
         :    
      else if (msgid=N) gMsgLabel.Text = "Message-N";
   }
}






#702
Quote
The one point where I do not follow or agree with Wright's argument is where he proposes a kind of meta-natural selection process that would give rise to the very principles of evolution by natural selection. This is problematic because the phenomenon of evolution by natural selection in a system with certain initial conditions can be deduced quite straightforwardly (just like the behavior of many algorithms can be proven logically). It is a logical necessity. So unless we're talking about a process by which logical and mathematical truths came to be evolved, the suggestion makes no sense. Where the fundamental axioms of math and logic in fact come from seems to be a question beyond our capabilities to grasp.

Snarky, Father George Coyne, former director of the Vatican Observatory, has an interesting take on this subject.  He suggests that our universe is fertile in that there is an abundance of opportunity for matter to come together in interesting and complex ways.   He explains that although such events occur by chance they are also inevitable.  Here is a link to his lecture "Dance of the Fertile Universe" and some other links posted earlier in this thread.   Also in the interview with Prof. Dawkins he explains how he has reconciled his religious and scientific beliefs.

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=38359.msg506390#msg506390

With regard to the Old Testament Fr. Coyne states that it reflects the beliefs of the divinely inspired people who wrote it.  IMHO, if one can get their head around this idea and accept it then one can benefit from those documented lessons/experience of humanity without surrendering one's intellect.   

The Dali Lama in his book, "The Universe in a Single Atom: The Convergence of Science and Spirituality" (very enjoyably and can be had for a couple of $ from Amazon)  talks about how traditional Buddhist cosomological beliefs are outdated.  He explains that at the time when these beliefs came into being they were a pretty good explanation of how universe worked based on what was known and could be observed.      He says that now (several thousand years later) we know more and have better tools of observation.   He claims that the traditional beliefs are the best the people of long ago could do with what they had to work with.  He warns that clinging to the traditional beliefs and disregarding all the knowledge and observations accumulated since that time discredits one's own faith/religion.

I agree with this notion and I believe that's what this and other religious threads are ultimately about.   It always seems to get down to the same boring old thing... Person A cites a ridiculous or illogical portion of the Bible as proof of God's non-existence.  Person B gives an equally ridiculous or illogical explanation or justification as proof of God's existence.   Then we go on to the next example blah, blah, blah....

Literal Believers
Wouldn't you agree that God's greatest gift to man is man's ability to think, reason, and contemplate "the meaning of life the universe and everything" (D.Adams)?  Then how big of sin would it be to close one's mind to the wonders and mysteries of the universe around us and fail to appreciate it's underlying beauty, eloquence, and simplicity?   

Un-Believers
Wouldn't you agree, now and all throughout history, for whatever reason(s), humanity, has had spiritual needs?     For example, most religions provide a basis for comforting the sick and dying, of how we should behave and treat each other, and how to live a happy, and fulfilled life (which brings us back to the sick and dying part).   Would you find the benefits that Christianity or other religions have to offer more accessible if there weren't "literal believers" running around saying "The Earth is 10000 years old and God put fish fossils on mountain tops to confuse dopey scientists!"?

#703
I don't trust Scottish politicians anymore than I trust ours (US).  It's very likely this was a payoff to Libya for access to petroleum and other trade deals and that it had nothing to do with prostrate cancer.   How much do you want to bet that the SOB in will not be dead in 3 months or even 3 years?   

http://health.usnews.com/usnews/health/articles/070817/17prostate.htm
Quote
Prostate cancer is usually a slow-growing disease, which means that many men who have a tumor will nevertheless die from something else, before the tumor spreads and becomes dangerous. Selecting the right treatment, therefore, requires considering both how quickly a particular tumor might kill and how much longer the patient, if cancer free, could expect to live.
#704
From the manual...
Quote
PauseGame ()

Stops the engine processing character movement and animation, and other game features. This has the same effect on the game as happens when a script-only interface is popped up. The processing will not resume until you call the UnPauseGame function.

Edit the GUI containing the textbox.  Set the Visibility property to "Pause game when shown".
#705
General Discussion / Re: A UFO theory.
Sun 16/08/2009 05:53:09
Mark, I'm not trying to be a jerk, I  just don't see how you measured/perceived distance from lens to object to be at a high altitude?   

Perhaps we know that aircraft operate at some range of altitudes and that they sometimes have lights.   So when we see lights moving in a night sky we have an unconscious expectation of where they ought to be. 
#706
General Discussion / Re: A UFO theory.
Sat 15/08/2009 22:57:48
You mean the one with two white spots moving around in the dark?   About the only thing that can be said is there are two white dots moving around in the dark against a background of the night sky.   Since there is no indication of how far away they are from the camera there is now way to know how big or small they are or how fast they are moving.   Oh, ... and the night sky looked quite lovely.
#707
Site & Forum Reports / Re: New AGS Website
Sat 15/08/2009 22:21:53
Quote from: Pumaman on Sat 15/08/2009 21:09:05
QuoteCurrently Pick of the month is in one column and show case is in another.  What if these were to span both columns.  For  "Pick of the Month" the text would appear in the left column and it's screen shot in the right column.  For "Showcase" there would  be one game in each column with both text and thumbnail.  A crappy example follows:

I like that idea -- I've changed the test page to look like this:
http://www.adventuregamestudio.co.uk/Newsite/Games.aspx
Yes exactly what I had in mind.  Looks really good.

Games Page - Help & Support Panel
What if this were made to look like the right panel on the home page with the followinf headlines/topics:

* Find Games
* Recent Comments
* Most popular Last Week

Forums Page - Forum Link
How about using a button, similar to the download button on the home page,  to link to the forum instead of a text link.

AGS Page - Help & Support Panel
Needs to be stylized to look a bit more like the panel on the home page.

Home Page
Quote
We could potentially give them a break and point them in that direction? Just a thought.
Upgrading to XP is the best advice for nearly everyone. Perhaps there could be a link to info that explains in more detail the pros/cons of upgrading to XP or /not upgrading to XP and using older versions of Ags?
#708
Quote
I've browsed the flat earth society forums recently.
Hehehe...Khris, I thought you were joking as I just couldn't believe there are still people like this around.   Even the Greeks knew the earth was a sphere and even had a pretty good idea of how big it was, 3500 or more years ago.  Anyway here the link for my fellow non-believers (non-believers in the Flat Earth Socity).

http://www.theflatearthsociety.org

Hmmmm, Khris is this is an elaborate hoax of yours to persuade us and to win an internet debate?   :=
#709
General Discussion / Re: A UFO theory.
Sat 15/08/2009 21:39:08
Quote
I don't remember saying humans couldn see anything other then visible light but I'm talking about cameras here.
Ok, let's suppose your camera could photograph an infrared image.  The image is still in the IR spectrum; how would you propose to view it? 

Quote
Since stars give off all kinds of light we should be able to see them no matter what.
This isn't true at all.  Different frequencies of light (EM radiation) interact differently with the interstellar medium.   Specific frequencies are selectively emitted or absorbed by gas or dust particles depending on what elements the gas/dust are composed of.  Also lower frequencies are less attenuated by dust pafrticles than higher frequencies. 

Quote
... and to be honest the rest of your reply didn't really have much bearing as far as I could see.
The rest of the post consisted of a brief description and examples of how and why IR astronomy is used.  For  example the Milkyway galaxy when viewed in visible has black areas void of stars.  This is because their visible light is blocked by dust.  IR light, however, can penetrate the dust and be seen by the Spitzer IR space telesope.  The linked image shows the results using a false color technique.
#710
General Discussion / Re: A UFO theory.
Fri 14/08/2009 09:19:35
Quote
Stars give off light (or rather, radiation, if you want to be technical) in the entire electromagnetic spectrum? Why wouldn't they show up on a video? 
You must be joking right?   := Ok, I'll bite...

First of humans can't see the entire electromagnetic spectrum, only a small portion of it.  Electromagnetic radiation that people can see is referred to as (surprise-surprise) visible light.  People can't see IR (Infra-Red) because it is not visible light.

Second of all even if humans could see IR, IR images would not show up on a photograph, film, or video unless the film or video recorder were sensitive to it.  There is no point in goingto the expense of making video recorders that are sensitive to IR because nobody would be able to see it any way. 

Thirdly, even if people could see IR and all video recorders could record it there would still not be very much to see because the earth's atmosphere filters out almost all of it. 

Wikipedia - "The principal limitation on infrared sensitivity from ground-based telescopes is the water vapour in the Earth's atmosphere, which absorbs a significant amount of infrared radiation. For this reason most infrared telescopes are built in very dry places at high altitude (above most of the water vapour in the atmosphere). Suitable locations on Earth include Mauna Kea Observatory at 4205 meters above sea level, the ALMA site at 5000 m in Chile and regions of high altitude ice-desert such as Dome C in Antarctic...."

Astronomers are able to make IR images visible to the human eye by using false colors (i.e. frequency shifting IR image into the visibe spectrum).  You can click here to see a false color IR image of the Milkyway captured by the Spitzer Space Telescope.
http://www.spitzer.caltech.edu/Media/mediaimages/zooms/ssc2006-02a/index.html

and some other images here
http://www.ipac.caltech.edu/Outreach/Edu/sform.html
#711
Site & Forum Reports / Re: New AGS Website
Thu 13/08/2009 05:42:28
Latest version is looking really nice.  Here are a couple of thoughts / ideas that may be of use.  This thread is rather long so I apologize if these thing have been brought up before, it's just what came to my mind when I reviewed the latest version.

Main Games Page 
Currently Pick of the month is in one column and show case is in another.  What if these were to span both columns.  For  "Pick of the Month" the text would appear in the left column and it's screen shot in the right column.  For "Showcase" there would  be one game in each column with both text and thumbnail.  A crappy example follows:

Pick of the Month


August 2009
Rockabilly Kid
Chosen by SSH

Rockabilly Kid won the "5 Years a MAGS host"
special edition of MAGS back in May and so
far opinion on this vignette has been pretty
positive, garnering 3 cups from the review
panel and in the high-seventies in user votes.
It's a fun little Lucasarts-style game and worth
a shot.

Showcase
New to AGS? Check out these great games to get you started! All sorts of games have been made
with AGS, but here is our pick of the best for you to try out:



Ben Jordan: Paranormal 
Investigator Case 3 - The         
Sorceress of Smailholm
       
The tiny Scottish village of         
Smailholm has seen better days.
Two local children have been murdered, ...     
Ben Jordan: Paranormal 
Investigator Case 6 - Scourge   
of the Sea People
               
Following Alice's near-fatal       
poisoning in Japan, the
paranormal investigating trio decides a
vacatio...   

AGS Page
Seems like the page ought to start with some kind of graphic, possibly the room editor screen shot or perhaps a collage od editor elements?

#712
Quote
... if they can replicate the human consciousness in computers...  What would this mean for religion though, proof that the human consciousness or soul is just the result of millions of cells working in tangent.
Yeah, but what if the newly created human consciousness also has religious beliefs? 

#713
Science is restricted to the domain of the physical/material world and has nothing to say about things such as beauty, good, evil, arrogance, stupidity, living a "fulfilled" life and all other non-physical aspects of being human.   The role of religion and philosophy is to help us understand humanity, rise above our nature and to improve our lot.

Attempting to prove/disprove the existence of God through a material/physical argument or to prove/disprove science through faith is an exercise in futility;  like eating soup with a fork.

Father George Coyne the retired Director of the Vatican Observatory and Prof. Richard Dawkins an atheist and renowned evolutionary biologist  have a thoughtful discussion in the following interview.

Prof Dawkins Interviews Father George Coyne

The Dali Lama also has some intersting things to say about the roles of science and religion in his book linked below.  I recommend the audio book as I found it a very entertaining listen.  

Dali Lama - "The Universe in a Single Atom: The Convergence of Science and Spirituality"

Here are also some other lectures given by Father Coyne that may be of interest.

Father George Coyne - Dance of The Fertile Universe
Father George Coyne - Evolution of Life in the Universe



#714
Here are a couple non-network shows you may like.   Episodes 9 & 10 of "Two Guys..." are a must see.

Two Guys Drinking at a Bar
Drawn by Pain
Stranger Things
#715
Just open the file, write a null character, and close the file.   
#716
Quote
If you don't you essentially killing five.
I disagree.  If I do nothing I have not killed anyone.  If the five die I am not the cause; they are the cause by their own actions and decisions.
#717
Creed:  All the people on the tracks have decided to take the risks associated with walking on train tracks.   The person who is alone is not in danger by luck or knowledge of the train schedule.   Either way it is not up to anyone, regardless of the numbers involved to decide to kill one person to save another.   In my view the pulling the switch is homicide.  The five people who are about to die are in this situation by their own actions and choice.   How is it moral or ethical to take another person's life so as to allow (5 or a million) others to avoid the consequences of their actions?

Miguel:  Being from the future I would realize that Marie Curie had died four years earlier and that Joe Pesci and Seal were not yet born.   I would also know that Gandhi died in 1948 and Mother Teressa died in 1997.  One couldn't be certain that the remaining individual is Hitler.   This leaves us with the original question.  

[edit]
TerranRich: Some of us Assclowns  have take the time to find out what  is actually in the bill before congress.   Here is a link to it.   

http://www.opencongress.org/bill/111-h3200/text

I am against it because it is a coercive, overly complicated mess.    It creates a huge bureaucracy that will determine what treatment one can and cannot receive for any given aliment.  People will be denied life saving drugs and treatments because they are too expensive and/or not effective 100% of the time.   Things that ought to be decided by doctor and patient will be decided by an unelected, resource limited bureaucracy. 


Ms. McCaughey,  former Lt. Governor of NY, has read the bill in it's entirety and offers her commentary in this ~10 min interview,  for those of you who are interested.   (Interview conducted by Fred Thompson former republican senator, presumably Ms. McCaughey  is also republican)   

Betsy McCaughey Interview 

#718
It could possibly be done with a dos script.  The script would launch AGS.  AGS would activate the mini game by writing something to a file that identifies which mini-game to run, save itself, and then exit.  Script would then run, read the file, and launch the mini-game identified by the file.   Mini game exits and script loops back to beginning to launch AGS and restore previous session.

A plug-in would be better.
#719
Perhaps I'm not understanding your question but why couldn't you just set the scaling to 100%?
#720
Probably the upgrade caused some of your script to break.  I don't think anything is wrong with the variables you defined.  Perhaps you can provide more details.
SMF spam blocked by CleanTalk