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

#1
Hm. It works at first (I put a cEgo.Say command under the '!left_mouse_was_pressed'), but the verbcoin won't open and the command for when the left mouse button is released isn't working yet.
I think the verbcoin won't open because I may not have an 'active area' - I'm holding it down on a character and it doesn't work (maybe it refers to something else?).
The final else, for removing the left mouse button, I'm pretty unsure about. :|

Thanks so far for the help, this has been a lot more work than I anticipated
edit: (Obviously Khris' work)
#2

Hey guys. I'm coding for my game, and at the suggestion of Babar I'm simplifying the control scheme :P
I'm trying to figure out how to set it so that holding down the left mouse click opens up a GUI verbcoin (which has the options Look and Interact)

This is what I've got, under the 'function on_mouse_click(MouseButton button) {' command (I've commented out the original eMouseLeft script)

Code: ags

else if (mouse.IsButtonDown(eMouseLeft)){
    SetTimer(1, 40);
    if (IsTimerExpired(1)) {
      gVerbcoin.Visible = true;
      mouse.Mode = eModeInteract;
      mouse.UseModeGraphic(eModePointer);
    }
    else {
       SetTimer(1, 0);
       ProcessClick(mouse.x, mouse.y, eModeWalkto);
    }
  }

And I've written '  int timer=0;' at the top of the global script to set the value prior.

At the moment it just goes straight to the else command. I haven't got timer commands to work yet, so it's very likely that.
#3
Quote from: Crimson Wizard on Fri 08/08/2014 10:55:51
Quote from: Crimmy on Fri 08/08/2014 10:20:58
I'd appreciate it if someone could explain how I can disable the default GUI gIconbar from appearing, which might stop the critical error.
Open it in the Editor and set visibility to "Normal, initially off". Then search for "gIconbar.Visible = true" line in Global script and comment it out (adding "//" before the command).

Fantastic, thanks.
I just fixed the critical error too! I just swapped the graphics driver back lol.
Thanks a lot Crimson Wizard :smiley:
#4
So it should work but it isn't. Hm
DirectDraw 5 works, but I'm in the mood to spend the 10 or so minutes moving my work to my backup (DirectDraw 9) and seeing if the error shows up
It seems like DirectDraw 9 is a better long term choice, so I'll try out changing the icons.
I'd appreciate it if someone could explain how I can disable the default GUI gIconbar from appearing, which might stop the critical error.
#5
Quote from: Crimson Wizard on Thu 07/08/2014 18:51:06
Hi Crimmy.
According to the crash dump, this is some kind of internal error in the engine. It occurs when the game tries to redraw the gui button.

Unfortunately, it is impossible to see more with the dump alone. The only thing I may imagine is that you have deleted the sprite assigned to one of the icons and forgot to fix the assignment itself.
Will it be acceptable for you to PM me the game itself, so that I could run it under debugger and see what happens?

Sure. It's my first game, so do you want the project file or the built game file?
It might just be easier for me to redo what I did into my backup and test what works and what doesn't.
#6
Quote from: JonCausith on Thu 07/08/2014 17:58:09

The GUI bar shows up continuously at the top of the screen (default project), I mean that it only stopped working after I added some dialogue (as opposed to doing anything that directly relates to it).

My only two changes to the globalscript, which is I think the only thing that could interfere with it is this
Code: ags

function iMask_Look()
{
      Display("[filler text]");
}

function cSledge4_Talk()
{
      dDialog0.Start();
}

But that looks fine to me.
#7
Hey guys. First post, though I'm lurking the IRC a bit

I was doing dialogue and minor scripting and the game quits when I mouseover the GUI bar at the top. I am pretty clueless why, since no errors show up when the game runs :\

The error message Illegal Exception says:
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x005591B0;
program pointer is +379, ACI version 3.3.0.1162, gtags (2049,64)

The crash file is here - https://dl.dropboxusercontent.com/u/48084487/CrashInfo.3.3.0.1162.dmp

(C: Solution was changing the driver to 5 then 9 again)

-------------------
Side question, mostly irrelevant - how do I stop the GUI that shows up on mouseover from appearing?
SMF spam blocked by CleanTalk