Jibble

There is a new version of the forums ready for testing. Please post here if you're willing to help test! We could also use the help of coders!

Author Topic: AGS 3.6.0 - Beta 9  (Read 11430 times)

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: AGS 3.6.0 - Beta 1
« Reply #20 on: 27 Mar 2022, 21:22 »
3. For the masks toggled by the Debug(2, n), is there a way to adjust their size (e.g. to make them full screen)?

I cannot guess what does this mean, are they not overlaying correctly? Could you post a screenshot?

I tried adjusting General Settings > Rooms > Default mask resolution, but it had no effect.

This setting means the mask's granularity relative to the room background, i.e. 1:1, 1:2 etc, the larger the second value is the less precise the mask is.
This affects every interaction with the mask: hotspot clicks, pathfinding on walkable area, and so on.
« Last Edit: 27 Mar 2022, 21:31 by Crimson Wizard »

Re: AGS 3.6.0 - Beta 1
« Reply #21 on: 27 Mar 2022, 22:10 »
Quote
3. For the masks toggled by the Debug(2, n), is there a way to adjust their size (e.g. to make them full screen)?

I cannot guess what does this mean, are they not overlaying correctly? Could you post a screenshot?

Sure, here's a screenshot: https://drive.google.com/file/d/1HK2B1U6ct4WUo2w1x2lAr-zaZBPLsxga/view?usp=sharing

The mask is in the top-left quarter of the screen.  I'm trying to make it full-screen, as in 3.5.1.

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: AGS 3.6.0 - Beta 1
« Reply #22 on: 27 Mar 2022, 22:34 »
Sure, here's a screenshot: https://drive.google.com/file/d/1HK2B1U6ct4WUo2w1x2lAr-zaZBPLsxga/view?usp=sharing

The mask is in the top-left quarter of the screen.  I'm trying to make it full-screen, as in 3.5.1.

I'm thinking that this error happens if mask resolution in the room is 1:2, half of the background size, and engine forgets to scale the debug image to the room's size.
« Last Edit: 27 Mar 2022, 22:45 by Crimson Wizard »

Stranga

  • Check out my games via my website link!
    • I can help with making music
    • I can help with story design
Re: AGS 3.6.0 - Beta 1
« Reply #23 on: 27 Mar 2022, 23:53 »
Thanks, @CrimsonWizard for the fix and for finding that script mistake too, all fixed and working perfectly!

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: AGS 3.6.0 - Beta 1
« Reply #24 on: 28 Mar 2022, 02:54 »
@greg, I think i fixed the debug overlay here:
https://cirrus-ci.com/task/4631982184333312

Re: AGS 3.6.0 - Beta 1
« Reply #25 on: 28 Mar 2022, 03:23 »
Quote
@greg, I think i fixed the debug overlay here:

Yep, that fixed the debug overlay issue. Thank you!

Hobbes

  • Swashbuckler
AGS 3.6.0 - Beta 1
« Reply #26 on: 31 Mar 2022, 15:29 »
Woohoo! Updated just now. Thank you so much for this! I've been quietly updating from every 3.6.0 alpha version and great to see we're in beta. My game's working & compiling great! (Mac M1 native even, very excited!)

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: AGS 3.6.0 - Beta 2
« Reply #27 on: 01 Apr 2022, 00:23 »
Updated to Beta 2
(use download links in the first post)

Editor:
 - Fixed saving of 16-bit sprites with "Sprite storage optimization" enabled.

Script API:
 - Extended Button.Animate() to have blocking style, direction and starting frame parameters.

So now it is
Code: Adventure Game Studio
  1. Button.Animate(int view, int loop, int delay, RepeatStyle=eOnce, BlockingStyle=eNoBlock, Direction=eForwards, int frame=0);
Note that the default value for BlockingStyle is eNoBlock, unlike for characters and objects, because historically button animations were nonblocking.

Engine:
 - In the new key input mode, only key state is only updated once a game frame. This prevents situations when, for example, calling IsKeyPressed during one script callback may return different results without explicit engine updates (Wait calls) in between.
As one of the consequences, this means that the following code will no longer work:
Code: Adventure Game Studio
  1. while (!IsKeyPressed(eKeySpace)) { }
  2.  
And must be:
Code: Adventure Game Studio
  1. while (!IsKeyPressed(eKeySpace)) { Wait(1); }
  2.  

 - 24-bit wav PCM support, comes with the new sound library.
 - Fixed repeatedly execute callback was called numerous times in one frame right after any blocking action.
 - Fixed some mp3 sounds were not playing a bit of sound in the end.
 - Fixed AudioChannel.Position return value was incorrect right after successful Seek.
 - Fixed 1 extra chunk of sound from the old position could be played after Seek.
 - Fixed room debug overlays were not scaled properly if room masks resolution is other than 1:1.
 - Fixed missing log group letter id for "script" ('s') used in config and command line.
« Last Edit: 01 Apr 2022, 00:27 by Crimson Wizard »

Re: AGS 3.6.0 - Beta 2
« Reply #28 on: 01 Apr 2022, 20:21 »
Excellent news. Thanks CW, eri0o and team!

Pajama Sam

  • Sam's The name
Re: AGS 3.6.0 - Beta 2
« Reply #29 on: 09 Apr 2022, 06:27 »
Is the number of objects per room increased in this version?

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: AGS 3.6.0 - Beta 2
« Reply #30 on: 09 Apr 2022, 14:42 »
Is the number of objects per room increased in this version?

No, I would have noted that in the changes.

Maybe i could look into increasing it while this version is still in beta; but right now I'm busy on some perfomance improvements, so maybe later...
« Last Edit: 09 Apr 2022, 15:04 by Crimson Wizard »

Re: AGS 3.6.0 - Beta 2
« Reply #31 on: 11 Apr 2022, 17:04 »
Found a new bug in 3.6.0b2 - labels no longer "pass through" clicks to GUI elements below (lower z-order), even though their "Enabled" and "Clickable" properties are set to false (you also get the same behaviour when Enabled is true). Demo project here. Drag away the label from the button to make the button function again. Drag label back over top of button to block clicks.
« Last Edit: 11 Apr 2022, 17:06 by vga256 »

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: AGS 3.6.0 - Beta 2
« Reply #32 on: 11 Apr 2022, 18:37 »
Found a new bug in 3.6.0b2 - labels no longer "pass through" clicks to GUI elements below (lower z-order), even though their "Enabled" and "Clickable" properties are set to false (you also get the same behaviour when Enabled is true).

Fixed, should be available as this temp build here (when it finishes building):
https://cirrus-ci.com/task/5006924272893952

Re: AGS 3.6.0 - Beta 2
« Reply #33 on: 11 Apr 2022, 19:26 »
Works great. Thanks for the quick fix CW.

Re: AGS 3.6.0 - Beta 2
« Reply #34 on: 15 Apr 2022, 17:11 »
Hi, I did test it works fine. Maybe you should add the mirror function under the hotspot options and the region sound property or options. Would do great. Thanks guys.

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: AGS 3.6.0 - Beta 2
« Reply #35 on: 15 Apr 2022, 17:23 »
Maybe you should add the mirror function under the hotspot options and the region sound property or options.

Please elaborate?

Re: AGS 3.6.0 - Beta 2
« Reply #36 on: 15 Apr 2022, 21:01 »
Hi, I mean maybe the under the hotspot options or region options (property window), there could be some functions to make a mirror from the hotspot. For example "İs hotspot a mirror? true / false" and "Which region number ?  Region number : 1". Of course inside the room the right hotspot and region should be selected.

And inside the region properities we may choose, if there is a walk sound for the specified region number, like "Walk sound : True/ False", "Character Name : cEgo" "Walk sound number: 1". Something like that. A different sound for each region, when character walk on those regions.

Thanks for considering.

Re: AGS 3.6.0 - Beta 2
« Reply #37 on: 15 Apr 2022, 22:15 »
Hi, I mean maybe the under the hotspot options or region options (property window), there could be some functions to make a mirror from the hotspot. For example "İs hotspot a mirror? true / false" and "Which region number ?  Region number : 1". Of course inside the room the right hotspot and region should be selected.

And inside the region properities we may choose, if there is a walk sound for the specified region number, like "Walk sound : True/ False", "Character Name : cEgo" "Walk sound number: 1". Something like that. A different sound for each region, when character walk on those regions.

Thanks for considering.

This seems like functionality that not be added in-engine, but via scripting. Recommendation: Add a Custom Property (-> Room -> Properties ... -> Edit Schema -> R-Click and Add New Property) called "IsMirror" or "Mirror" of Boolean type. Add a checkmark for Hotspots. Then this can be checked/set in your Room script via hHotspotWhatever.GetProperty("Mirror") and SetProperty("Mirror"). The same can be done for Walk sounds in specified Walkable Areas.

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: AGS 3.6.0 - Beta 2
« Reply #38 on: 15 Apr 2022, 22:27 »
Hi, I mean maybe the under the hotspot options or region options (property window), there could be some functions to make a mirror from the hotspot. For example "İs hotspot a mirror? true / false" and "Which region number ?  Region number : 1". Of course inside the room the right hotspot and region should be selected.

Are you speaking of making a visual effect that shows the character in a mirror?

This is of course not a problem of adding a property, but a much bigger problem of designing and coding such feature. Something like that has to be thoroughly planned first (what is expected from this function, how it is implemented technically, and so on). It's not even clear what should be shown in such "mirror", as the AGS rooms are not 3D, and engine has no idea about perspective, and objects opposing a "mirror".

Personally, I think in 2D games effects like that are better done with a script. Right now the mirror may be scripted, for example, using second character hiding under walk-behinds and showing in a certain gap. That's much easier to script such custom effect in a couple of rooms, rather than figuring out how to make a universal mirror function in the engine, that would suit everyone.


On the other hand, the region (or rather walkable area?) sounds seem like something that may be considered in the future, as right now game authors have to edit view frame sounds at runtime to achieve different walking sounds. Or at least something that would help to script this easier. Again, this is something that has to be thought through very well, there will be number of questions on how to do this, as sounds have to be played on particular animation frames only, and different sounds may be wanted for different characters.
« Last Edit: 15 Apr 2022, 22:45 by Crimson Wizard »

Re: AGS 3.6.0 - Beta 2
« Reply #39 on: 15 Apr 2022, 23:11 »
Thanks Crimson Wizard.

Maybe the mirror plugin could be inserted somehow as a property option. But I think the AGS came a long way already.

Thanks for your efforts.

 ;)