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

#401
Anyway I got it working.  I will work on the code a bit more and then post it on my website for people to see.  Peace.
#402
Advanced Technical Forum / Re: Driving a car
Mon 02/05/2005 08:55:19
It's funny, I am working on remaking the PQ3 interface right now actually.  I'm having trouble.  I've got icons working for the interface, you can click to speed up, slow down, which in turn changes the speed of the road animation basically.  This is basically not working for me at all.

What I have, are four animations in one loop for the road.  At animation speed 5, it's a slow road.  At animation speed 1, it's a fast road.  But here's the problem:

Say you're driving along the road and an intersection is coming up.  Oh you're in animation speed 1, becuase you're driving at say 50mph.  You decide to slow down.  The way things are, slowing down equals playing the animation at speed 5 now.  But just then, you decide to speed up again!  Oh let's play animation at speed 1.  Then, like an ass, you slow down yet again!  Guess what? We never get to the intersection because the road animation keeps playing over and over from the beginning.

Is there another way to do the road, change speeds, do turns, u-turns, etc etc etc without coming across this awful problem?
#403
Hm ok I managed to get all the icons working for the Driving Interface.  The onMouseClick detects the clicks and changes the animation speeds of the road.  How would I do the intersections, changing directions and keeping track of where you are in the city??

If anyone can help with this it'd be appreciated greatly! I'm stumped!
#404
That's awsome, I almost have it working.  Only thing I need now is something to return the last normal gui cursor used before moving over the other areas.  Can I do something like - get mouse mode? set mouse mode?  I searched in the manual but I couldn't find anything.  I tried a pointer but that didn't seem to work either.
#405
Hey people.  Well, I am trying to make a similar driving interface to the one in PQ3 - basically I want to start with some basics and then redesign it some.   Though, I have a problem.   First I thought, well I'll make hotspots and when mouseover certain hotspots I'll change my cursor and then also change the click functions to affect my animation.

Unfortunately if you've ever played PQ3, you know that the cursor changes over the little road.  I tried making the road animation an object, and then use various conditionals to change the animation views to correspond to intersections - road speed etc.  But you can't mouseover a hotspot if an object is on top of it.  Is there another way to change the cursor over an object?

I'll keep working on it, please help if you can!
#406
Good news! So far, no crashes!  I will keep testing it though.  Thanks so much!
#407
Critics' Lounge / Re: demon sketch
Mon 25/04/2005 21:15:46
This is definetly very cool.  I wish I could see the wings better, but my monitor tends to be a bit on the dark side sometimes - so it could be that.  Could be more frightening/menacing?  That's my opinion though.
#408
Critics' Lounge / Re: What's in a name?
Mon 25/04/2005 21:07:51
Quote from: Farlander on Mon 25/04/2005 12:46:25
Quote from: InCreator on Mon 25/04/2005 10:27:37
This "shadow" and "darkness" -thing is sooo overused. It's quite hard to achieve any feeling with such words anymore.
cliche.

I agree... Lack of light should be better... XD

Seriously... :( Helm is right... ;)

I like, "The Opposing Force To Illumination" or "Swelling Brightness Takes A Holiday" or "It's Not The Sun We See In NightTime Glee"  whatever.  funny though.
#409
Here's what I know for sure.

When crash occurs:
1. Only when using my custom Restore GUI.  Updated code pasted below.
2. I make all the saves at exactly the same spot, first screen.  Doesn't matter what I call the save.
3. Restore random number of times to crash - it's sometimes the very first restore or sometimes it takes five or more restores to crash.
4. Crashes while testing a single saved game (for instance only one save file exists) as well as when testing multiple saved games (two or more saved files).

To point out, I'm only testing the Restore GUI and am still using the standard built-in AGS Save Dialog function for saving games.

Here's the game, when you run it, click Begin Afresh from the menu...it's the middle choice.  It will load a screen where you can do F5 to Save a game.  Then, hit F7 and reload, hit F7 and reload again, etc.  Check the code though, I wonder if it's something I'm doing wrong.:
http://www.360fusion.com/shabutie/Moosh%20Incarnation%2002.rar
#410
Hey - yah save games with screenshots is on, but I haven't implemented that into my custom gui or anything. 
#411
Hm I must just have had a really good luck streak of something.  It's crashing again, same as before....I saved it too, and then made SURE I deleted all save game files.  Then, I played the compiled game for a bit and naturally, I am afflicted with this again.  I should also add I end up with an AGS Save.999 file.  I haven't touched anything so unfortunately, problem's not solved :(

Is this a program bug or a Shabutie can't code right bug? I'm off to bed, tomorrow I will pull the rest of my hair out.
#412
GarageGothic:

You're the man!  Yup, I guess all it takes is one simple change and restoring a saved game from before the change can make things unstable.  Works fine now....  Thanks for all the help!
#413
Here it is:


---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x0046E64C ; program pointer is +6, ACI version 2.70.857, gtags (5,2)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.



But you know what?  It only crashes when I run my custom restore stuff.  If I run RestoreGameDialog();  then it will NOT crash.  This is a bummer, cuz I can't figure out how to fix it.  I tried reading some tutorials on GUIs but they will not work, and despite being supposedly backwards compatible, if I use the obsolete syntax all I get are errors and more errors.

I'm just not sure.  I kind of think that the problem lies in this:
Code: ags

int index = LoadList.SelectedIndex;


It doesn't make sense to set the selected item based on whatever is going on after I click a button.  But putting that in the SelectionChanged function for the Listbox doesn't seem to help either.  Maybe if I get some sleep it will make sense tomorrow.....

EDIT: 5,2 in the error above I'm guessing refers to my Gui and control object, ie. the Listbox...
#414
Thanks Strazer, unfortunately it's still happening.  Sometimes on the first try it crashes, other times it's fifteen restores before crashing...but it always crashes eventually.  Funny.  I might think this is a bug of some sort....I'll check the tech stuff out.
#415
Ok I don't know if this is a bug or a problem with my script.  Please help if you can!

First off, I load the Restore GUI like this:
Code: ags

if (keycode==365) gui[5].Visible = true;  // F7
			LoadList.FillSaveGameList();	


Looks fine, I see the list of games...cool.  And then I click a game, and I click OK which does this:

Code: ags

function LoadOK_Click(GUIControl *control, MouseButton button) {
  
  int index = LoadList.SelectedIndex;  
  if (button == eMouseLeft) {
		gui[5].Visible = false;
		RestoreGameSlot(savegameindex[index]);
   }
  
	else {}		
}


I might be missing something, it loads fine about four times...then the fifth time I try to restore a saved game - WHAM! Critical error and AGS is no longer among the living.  Is it incorrect code or something else?
#416
The Rumpus Room / Re: The MSPaint game
Mon 25/04/2005 03:17:32


This is why I don't use MSPaint very much...haha!

Now : Overweight Dog breaking into locked fridge
#417
Well I tried playing the game compiled, and it didn't skip until one spot, but then I did switch it to 16 bit (it was previously 32 bit) and it no longer skips.  Crazy but true! Thanks a bunch!
#418
Ok here's the thing, my mp3 file plays fine, until I decide to keep the music going and switch to another room.  It plays about 1 second of music twice, as opposed to playing it once smoothly.  What's going on? I looked through the manual but couldn't find it with search and I searched on the forums here too....anyone know why that happens?
#419
Critics' Lounge / Re: What's in a name?
Sat 23/04/2005 22:46:20
All of those names really strike me as boring.  I'm not saying I have a better name, I'm just telling you how they grab me.  If I had to pick one from the list it would be:

The Cycle Remaining.


Honestly, what is the game about? The titles are all very vague and don't seem as though they're even slightly hinting at a plot or point?  That's just my opinion.
#420
Critics' Lounge / Re: Finally - My website!
Sat 23/04/2005 22:34:44
Awesome, much better!  The only thing left to do is add some love to the very outside area.  Black webpages are very hard to do I must say, so my hat off to you for trying (even though I don't wear a hat).
SMF spam blocked by CleanTalk