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

#1
General Discussion / Re: Organ Trail
Sun 13/11/2011 05:42:27
The final stage was excellent. Hooray for muscle memory.n :=
#2
Ello,

I've been browsing these forums for over 6 months now, but never really inserted myself into the community, other than the MS Paint game. I've tried my hand at making games a few times, but got lost in the sea of code. I've found that my main talents are making storylines and some graphics being with computer-type art, mainly working with pixels.

Hoping to get to know you all,

Sir Punchula the Bum [Insert occupation/purpose of existence here].
#3
The Rumpus Room / Re: The MSPaint game
Thu 19/08/2010 01:46:58
The worst hacker ever:


Next: "So help me, I will turn this nuke around."
#4
The Rumpus Room / Re: The MSPaint game
Thu 17/12/2009 04:28:34


Next: The ultimate sporting tailgate.
#5
The Rumpus Room / Re: The MSPaint game
Sun 01/11/2009 04:05:02




Next: How the war on drugs ends.
#6
Every time I try to run an AGS game in a window, my game "blinks", in that it freezes at a certain frame for a second, then rapidly blinks to the current frame and back to the first one. When I try to run the game in full screen mode, the game just freezes, and only shows the current frame when I minimize. When I restore the window, It freezes again.
 This problem hasn't always occurred; It started when I attempted to open an "rar" file containing an AGS game this morning with the wrong program, and has been going on since for every game I try to run.
 Is there some way I can fix this?

Edit: Rebooted my computer, it works now.
#7
Version 3.1.2, service pack 1
#8
Quote from: Pumaman on Wed 21/10/2009 21:23:05
Why are you trying to use the backup copy if the main copy is working?

This problem should not surface at all, let alone re-surface. Are you sure that the latest error you're getting is identical to the first one? Have you been using the "Send Error Report" button?

The error indicates that the game files haven't been saved properly. This should never happen, so I'm not sure why it's happening to you. Is the game on your hard drive, and not on a USB stick or anything like that?


-  My main copy isn't working; It had the same error as my backup does now.
-  I've compared the current error to the previous one up above; They're exactly the same, with the only exception being that deleting the "game.agf.user" file no longer solves the problem.
-  I didn't know there was a send error report button, where is it located?
-  And yes, I'm saving all of my files onto a hard drive.
#9
 Now the backup copy has the same Root element problem with the same message as above, but now deleting the "Game.agf.user" file doesn't solve the problem. Is there any other way I can fix this and keep the problem from resurfacing?
#10
Quote from: RickJ
Lufia has identified your problem while I was typing the code below.  It's a skeleton of the entire function.  You just need to fill in the blanks as to what happens in each of the conditions.

The first part is fine, but I get an unexpected parser error at "else" at the character events:

Code: ags

 //  Unhandled Character
   else if (what==3)  {   
   //
      else if (type==0) {  //  3    0   Look at character (The error is on this line.)
      Display("Someone is standing here.");
      }
      else if (type==1) {  //  3    1   Interact with character
      Display("Poking a stranger is likely to put you in a bad situation.");
      }
      else if (type==2) {  //  3    2   Speak to character
      Display("You get no response."
      }
      else if (type==3) {  //  3    3   Use inventory on character
      Display("Your generous offer is not accepted.");
      }
      else if (type==5) {  //  3    5   Pick up character
      }
      else if (type==6) {  //  3    6   Cursor Mode 8 on character
      }
      else if (type==7) {  //  3    7   Cursor Mode 9 on character
      }
      else  {                     //  Undefined
      }
   }


Does anyone know how I can fix that?
#11
Thanks, I finally got it working.

Edit: I thought I was in the clear, but I'm having another complication. I'm trying to use more than one unhandled event with this code:

Code: ags

function unhandled_event(int what, int type) {
  if (what == 2) {
    if (type == 0) {
      Display("It looks fine.");
    }
  }

else

  if (what == 2){
    if (type == 1){
      Display ("You have more important things to worry about at the moment.");
    }
  }
}


There are no compiling errors here, but when I attempt to interact with an unhandled object (as defined after the "else"), I don't receive a message; instead, nothing happens. Am I supposed to do this differently?
#12
This seems to work, but every time I insert this code:

Code: ags
 function unhandled_event(int what, int type) {
  if (what == 1) {
    if (type == 1) {
      Display("displaymessage");
    }

(Code entered as is)

The game refuses to run because of an open function missing a bracket, but the given line is at -10. I try to insert the bracket wherever I can, but the error either returns the same or says that I need to remove the bracket. What am I doing wrong?
#13
I think I have the first part covered, but I don't know what I need to put in the "..." after
Code: ags
else if (type ==2)
Can you clarify that for me, please?
#14
I'm trying to set up events in which a default message appears when I interact with something with no default event listed. The manual is telling me to use a "what" and "type" value, but I don't know how it works, and I can't find an example in any script I already have. I know that I'm supposed to use this command:

Code: ags
unhandled_event (int what, int type)


but I don't know how to implement it or where I need to place the display message. Could anyone clarify this for me?
#15
Thanks, that fixed the problem.
#16
Last night i saved and closed my game with no problems, only to discover this when i tried to load it back up today:

Quote
An error occured whilst trying to load your game. The error was:

Root element is missing.

Error details:
Code: ags
System.Xml.XmlException: Root element is missing.
 at System.Xml.XmlTextReaderImpl.Throw(Exception e)
 at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
 at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
 at System.Xml.XmlTextReaderImpl.Read()
 at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserve Whitespace
 at System.Xml.XmlDocument.Load(XmlReader reader)
 at System.Xml.XmlDocument.Load(String Filename)
 at AGS.Editor.AGSEditor.LoadUserDataFile(String fileName)
 at AGS.Editor.AGSEditor.LoadUserGameFile(String fileName)
 at AGS.Editor.Tasks.LoadGameFromDisk(String gameToLoad, Boolean interactive)
 at Ags.Editor.InteractiveTaskLoadGameFromDisk(String gameToLoad)

I'm don't know what this means, is there anyone who knows what I can do to fix this?
#17
I'm trying to have a situation in which i'm trying to get past a certain barricade by completing a certain task, but I can't figure out how to either insert a new walkable area after completing a task, or make an object non-walkable then move or remove it.
#18
I created this character with MS paint at it's lowest resolution.



If you have any ideas on how I can better this, please let me know.
Thanks in advance.
#19
I'm trying to make an object respond when I use an inventory item on it using this code:

Code: ags

function camera_UseInv()
{
if(cEgo.ActiveInventory = iblend;){

Display("Yes, it blends!");
}


My problem is that I keep having parser errors when i stick my parentheses to "cEgo", but when I remove them it asks me to place parenthesis on that line.
Is there some way i can fix this? I've scoured the manual but I can't seem to find the information I need.
#20
I'm trying to display a line of text in the display box, followed by an action(removing the object), then the character walking to a point, using this code:

Code: ags
function object_Interact()
{
cEgo.Walk(x, y);

  Display("Display text");
  Display("Display text");
  object.Visible = false;
  newobject.Visible = true;
}


My problem is that my character waits until the display text has finished before walking to the point instead of walking there beforehand. Is there a special command I have to enter to change the order?
SMF spam blocked by CleanTalk