spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

Welcome, Guest. Please login or register.
10 Sep 2010, 12:28

Home | Help | Search | Games | Wiki | Login | Register


AGS Forums  |  Using AGS  |  Modules, Plugins and Technical FAQ (Moderators: Gilbet V7000a, Scorpiorus, strazer)  |  Topic: TEMPLATE: SCUMM VERBCOIN GUI v1.7.2 (for AGS 3.0.2+) « previous next »
Pages: 1 [2] 3 4 5 Print
Author Topic: TEMPLATE: SCUMM VERBCOIN GUI v1.7.2 (for AGS 3.0.2+)  (Read 14540 times)
Electroshokker
Member



« Reply #20 on: 08 Nov 2007, 18:11 »

That's a really cool Template, solid work!

Thanks.

You should be able to fix the resolution issue by removing the check for room 1.
It shouldn't matter if the code is called in every room.

Was planning on it.

A small suggestion: you're using many, many GetAtScreenXYs, especially in rep_ex.
Instead, you can put
Code:
Object*o=Object.GetAtScreenXY(mouse.x, mouse.y);
Hotspot*h=Hotspot.Get...
Character*c=...
InventoryItem*i=...
at the start of the function and use o, h, c, i afterwards. Will save a lot of typing and even a short deal of CPU time.

Hmm... I'll look into it.

I've noticed a bug: open the VerbCoin over anything, then move the mouse ENE, above the talk button. The coin will disappear although the cursor hasn't left it.

No, that's no bug. It's the custombutton1 which is sitting above the talk button. A little left-over from my personal game gui which has 4 buttons.

Just set all custombutton1 layout values to 1 to fix this, like I said above. Since there's no action defined for custombutton1, you leave the gui when moving over it.

Another thing I've noticed:
You're using checks for Hotspot.GetAtScreenXY(mouse.x, mouse.y) != null.
Those checks will never fail because it doesn't return null but hotspot[0].
It's a mean trap, and I fell for it a couple of times myself Smiley

Hmm... not sure of this one. I added all the checks because otherwise the game would crash constantly with null pointer errors. I'll check it out.


I'll update the template when I get around to it (maybe this weekend), right now my game project is the main priority again.
Logged
Khris
Member


x2, 5 cols

Play-testing: playing adventures since 1991Translating: esp. english to german

« Reply #21 on: 09 Nov 2007, 14:38 »

About the last issue:
It's no big deal if it's just used as a check to avoid null pointer errors.
However if it's important for the game mechanics whether there's an actual hotspot there or not, you have to change the check.
The hotspots are drawn and thus stored as image, the number is simply the color. No hotspot drawn = color 0 = hotspot 0.
So Hotspot.GetAtScreenXY will return hotspot[0] instead of null. It's in the manual, too.
Logged

 
Jing Kong Yim or Kim Yong Jil or however the Fick Fack Fuck you pronounce it
Electroshokker
Member



« Reply #22 on: 01 Dec 2007, 10:17 »

Template updated to v1.2

All outstanding issues have been adressed. Enjoy!
Logged
Electroshokker
Member



« Reply #23 on: 01 Dec 2007, 14:45 »

Since I was busy with it anyways... here's version 1.3 (download link in first post of this thread)

It adds double-click functionality to all hotspots/objects which have the 'act' property set to true.

Just thought you guys might find that useful... Wink The double-click speed is completely configurable, of course.

Code example given (try a single and a double click on the Advanced 3D Room hotspot)
Logged
khnum
Member

Music (no further info specified)Backgrounds (no further info specified)Character art (no further info specified)Scripting (no further info specified)Story design (no further info specified)Web design (no further info specified)
Translating (no further info specified)

« Reply #24 on: 02 Dec 2007, 11:08 »

I found a bug in your template: when the inventory is on screen, clicking on a point where there's no object, with a character, an object or an hotspot behind the inventory in that place, results in looking at it... i tried to make the inventory gui clickable (the background), but it didn't worked...

edit: another bug (at least i think it's a bug), the player character doesn't walk (yes, i made the walkable area)
« Last Edit: 02 Dec 2007, 11:11 by khnum » Logged
Electroshokker
Member



« Reply #25 on: 03 Dec 2007, 20:49 »

I found a bug in your template: when the inventory is on screen, clicking on a point where there's no object, with a character, an object or an hotspot behind the inventory in that place, results in looking at it... i tried to make the inventory gui clickable (the background), but it didn't worked...

So if I understand correctly, you're clicking on an empty patch of the inventory and the "look at" action is executed if there's something behind it.

This occurs if you didn't have the general option "Handle inventory clicks in script" set to true.

Please check on the general settings tab under inventory if "Handle inventory clicks in script" is set to "True". If it isn't, please change it. (If it is already, let me know, and I'll double-check my code.)

EDIT: ah, after checking I agree it IS a bug. I must have made a mistake with the latest code updates, as this shouldn't occur. Expect a fix later this week.

edit: another bug (at least i think it's a bug), the player character doesn't walk (yes, i made the walkable area)

Characters walking or not has nothing to do with my template code. It has everything to do with views and the latest engine updates. (Try adding a bunch of frames to the first 4 views.)

This is a game engine issue, and is mentioned (I believe) in the AGS 3.0 RC1 thread.

« Last Edit: 03 Dec 2007, 20:53 by Electroshokker » Logged
khnum
Member

Music (no further info specified)Backgrounds (no further info specified)Character art (no further info specified)Scripting (no further info specified)Story design (no further info specified)Web design (no further info specified)
Translating (no further info specified)

« Reply #26 on: 04 Dec 2007, 18:31 »

Expect a fix later this week.

Thanks  Grin
Anyway, could you also specify what the error was, since i already heavily modified your script to fit into my game, so i'd prefer resolving it myself (actually i know which line of script causes the error, but i didn't understand what's its function, so i didn't remove it)
Logged
Electroshokker
Member



« Reply #27 on: 16 Dec 2007, 11:13 »


Thanks  Grin
Anyway, could you also specify what the error was, since i already heavily modified your script to fit into my game, so i'd prefer resolving it myself (actually i know which line of script causes the error, but i didn't understand what's its function, so i didn't remove it)

Yes, the error was a few old lines of code that weren't supposed to be there. You've already found them (was easy enough), and they can be removed without any problems.

was removed:

Code:
else{
    ProcessClick(mouse.x, mouse.y, eModeLookat);
    clicked=0;
    timer=0;
}

in the
Code:
if (Mouse.IsButtonDown(eMouseLeft) == 0){
section
Logged
khnum
Member

Music (no further info specified)Backgrounds (no further info specified)Character art (no further info specified)Scripting (no further info specified)Story design (no further info specified)Web design (no further info specified)
Translating (no further info specified)

« Reply #28 on: 17 Dec 2007, 15:32 »

Man, sorry if i'm always complaining, but i found another bug in the inventory  Huh
If you click on an empty area, and then move the cursor over an object, the cursor mode switches to useinv (and the graphic changes, of course)
Logged
Pumaman
Mittician
Administrator

Member


I sense danger.


« Reply #29 on: 19 Dec 2007, 20:52 »

Good work with all the updates! Smiley

The latest version of this template has AudioManager plugin data embedded, which causes a warning message for people who don't have the plugin installed. I've removed it in the version that I'm including with AGS; it might be worth considering this for future versions of the template.
Logged
Electroshokker
Member



« Reply #30 on: 22 Dec 2007, 10:15 »

Man, sorry if i'm always complaining, but i found another bug in the inventory  Huh

I don't mind at all. Just happy someone is actually testing it thoroughly.  Wink

If you click on an empty area, and then move the cursor over an object, the cursor mode switches to useinv (and the graphic changes, of course)

Ok, I'll look into it. (I better hurry up, AGS 3.0 final is almost here  Shocked)
Logged
Electroshokker
Member



« Reply #31 on: 22 Dec 2007, 10:51 »

Version 1.5 is up.

Created without any plugins (just standard AGS 3.0 RC3), fixed the latest bug.
Logged
Dualnames
Member


Chasing the dream (with place-holder graphics)


« Reply #32 on: 22 Dec 2007, 19:08 »

Great to see you still working on it..
Logged

sentient
Member


« Reply #33 on: 22 Dec 2007, 21:46 »

Hello, sorry to be so green, but this looks just what I am after. Trouble is I have no idea how to use it! I have downloaded both files and copied them into the main adventure studio directory. I try import GUi, but it is not the right type of file for that. What do I do?
Logged
Pumaman
Mittician
Administrator

Member


I sense danger.


« Reply #34 on: 22 Dec 2007, 21:57 »

It's not a GUI, it's a new game template. That means that after putting the files into the AGS directory, you load the editor, choose "Start new game" and select it from the templates there.
Logged
sentient
Member


« Reply #35 on: 22 Dec 2007, 22:24 »

Ahh, thankyou very much.
Logged
Dualnames
Member


Chasing the dream (with place-holder graphics)


« Reply #36 on: 23 Dec 2007, 20:55 »

In case you want a not so cool but as cool as CMI search for Scumm Remixed at the forums... you'll end up with my "module". Though I suggest this one..my scripts were based on Electroshockers work.. and he motivated to work on this..
Logged

riseryn
Member


Play-testing (no further info specified)Translating: english->french

« Reply #37 on: 08 Apr 2008, 16:02 »

Hi
i'm trying to use your template but can't understand the way it works.

I have created a hotspot hRock and a function hRock_Look() in the room script file.
But i have no output when using the look button.

Code:
// room script file
function hRock_Look()
{
Display("Just a rock.");
}

which is the correct way to set an interaction?
I find (or maybe understand) nothing about it in the template or in the documentation.

I'm using ags 3.01 final

thanks

EDIT:
ok finally i managed to understand that I have to put the name of the function in the corresponding hotspot event Smiley
« Last Edit: 08 Apr 2008, 16:14 by riseryn » Logged
subspark
Member


I have the wisdom of a much younger man.

Play-testing: This reflects my experience as a professional. Need a hand? Sure!Voice acting: This reflects my experience as a professional. Need a hand? Sure!Music: This reflects my experience as a professional. Need a hand? Sure!Backgrounds: This reflects my experience as a professional. Need a hand? Sure!Character art: This reflects my experience as a professional. Need a hand? Sure!Animation: This reflects my experience as a professional. Need a hand? Sure!
Proof reading: This reflects my experience as a professional. Need a hand? Sure!Story design: This reflects my experience as a professional. Need a hand? Sure!Translating: This reflects my experience as a professional. Need a hand? Sure!

« Reply #38 on: 08 Apr 2008, 20:44 »

Congrats on the new release Electroshokker!!

Cheers,
Paul.
Logged

     
Adlanto - A bold step into a valley of forgotten worlds - Coming Soon to Steam in August 2015!       Indiana Jones and the Fountain of Youth - Indy is back!
S
Member


« Reply #39 on: 09 Apr 2008, 21:37 »

Apologies in advance if my ignorance is caused by being too lazy to read stuff I should've read, like readmes etc., but I have a problem with the Verb Coin, and I suspect it might be an issue of resolution (my game is 800 x 600). The GUI won't display its three buttons when I click certain hotspots and objects, mainly those that are close to the right and the bottom of the screen - basically making it impossible to interact with those objects and hotspots.
Logged
Pages: 1 [2] 3 4 5 Print 
AGS Forums  |  Using AGS  |  Modules, Plugins and Technical FAQ (Moderators: Gilbet V7000a, Scorpiorus, strazer)  |  Topic: TEMPLATE: SCUMM VERBCOIN GUI v1.7.2 (for AGS 3.0.2+) « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.192 seconds with 16 queries.