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 10721 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 3
« Reply #40 on: 16 Apr 2022, 06:44 »
Updated to Beta 3
(use download links in the first post)

Common:
 - Discontinued "Windows Game Explorer" support in both Editor and Engine.

Editor:
 - Editor will now create an empty spriteset file (acsprset.spr) if one is missing in the game project. Any existing sprite descriptions in the project will be kept, letting user to reimport these from sources.
 - Added "File -> Restore all sprites from sources" menu command.
 - Added "Apply" button on editor's Preferences dialog.
 - Fixed blank rooms not assigned a default mask resolution.

Script API:
 - Added GUIControl.Transparency property. This lets change individual transparency to any gui controls.
 - Made Overlay.Width and Height properties settable, that let you freely scale existing Overlay.
 - Added readonly Overlay.GraphicWidth and GraphicHeight properties that let read original overlay's graphic size (in exchange for Overlay.Width and Height).

Engine:
 - Engine now renders GUI controls as separate textures when using hardware accelerated renderers. This may significantly improve perfomance in the high-resolution games and games with large number of GUI elements on screen.
 - Fixed on_key_press not called sometimes.
 - Fixed special engine key combos not working if the new style key handling was on.
 - Fixed non-clickable controls stealing mouse clicks.
 - Fixed ListBox items drawn over scrollbar in gui clipping mode.
 - Fixed TextBox duplicating letter input.
 - Fixed 16-bit sprite pixel corruption in 32-bit games.

Linux:
 - Fixed engine failing to find game data in paths other than current working dir.
« Last Edit: 16 Apr 2022, 06:49 by Crimson Wizard »

Re: AGS 3.6.0 - Beta 3
« Reply #41 on: 16 Apr 2022, 19:55 »
There appears to be a bug with b3, or a change in implementation that has rendered my BackgroundImages for GUIs to be completely transparent (or non-existent, not sure which). I can confirmed that all of my GUI windows have a proper BackgroundImage set. This was working fine with b2. Am I missing something obvious?

(FWIW - the Modem Dialer window uses a button with a background image as a background, not a GUI.BackgroundImage, which is why it appears correct)

Screenshot:
« Last Edit: 16 Apr 2022, 19:56 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 3
« Reply #42 on: 16 Apr 2022, 19:58 »
There appears to be a bug with b3, or a change in implementation that has rendered my BackgroundImages for GUIs to be completely transparent (or non-existent, not sure which). I can confirmed that all of my GUI windows have a proper BackgroundImage set. This was working fine with b2. Am I missing something obvious?

(FWIW - the Modem Dialer window uses a button with a background image as a background, not a GUI.BackgroundImage, which is why it appears correct)

Screenshot:

Please, can you give have some info about the game: color depth, which renderer do you run, and so on?

EDIT: actually yes, it does not work and displays a black rectangle instead of the image. This version is not working, I will have to fix and re-release.

EDIT2 it happens with some GUI but not the others, I am not exactly sure why yet.
« Last Edit: 16 Apr 2022, 20:09 by Crimson Wizard »

Re: AGS 3.6.0 - Beta 3
« Reply #43 on: 16 Apr 2022, 20:07 »
Game is in 32-bit mode (sprites are imported in 32 bit mode as well), and behaviour is consistent across all renderers (OpenGL/D3D9/SDL2).
GUI Alpha rendering style: proper alpha blending
GUI controls clip their contents: false
Pixel-perfect click detection: true
Sprite alpha rendering style: proper alpha blending
When player interface is disabled, GUIs should: Display normally

I re-imported the affected background images just in case there was a problem with the sprite file, but this had no effect. Background displays properly in-Editor.

Update: I have https://vga256.com/ags/test-noguibg.zip created a demo project for your convenience here which has a white background PNG image used for the GUI.
« Last Edit: 16 Apr 2022, 20:15 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 3
« Reply #44 on: 16 Apr 2022, 20:13 »
This happens if the image has an alpha channel.

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 3
« Reply #45 on: 16 Apr 2022, 20:45 »
@vga256, here's the engine with a fix, please tell if it works:
https://www.dropbox.com/s/0lnc6banecf0nti/acwin--3.6.0-beta3-guifix.zip?dl=0

Re: AGS 3.6.0 - Beta 3
« Reply #46 on: 16 Apr 2022, 20:50 »
@vga256, here's the engine with a fix, please tell if it works:
https://www.dropbox.com/s/0lnc6banecf0nti/acwin--3.6.0-beta3-guifix.zip?dl=0

Yep, that fixed it. Thanks!

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 3
« Reply #47 on: 16 Apr 2022, 20:55 »
We definitely need more testers. This mistake was made by a most recent change which I forgot to double check with all possible variants. Too bad that I dont have a good test game which would group similar functionality, like everything related to GUIs.
Or perhaps I should post temporary builds here to let someone try, instead of making a release?

Re: AGS 3.6.0 - Beta 3
« Reply #48 on: 16 Apr 2022, 21:10 »
Happy to test out new early 3.6.x builds for you as I am using it exclusively. (Or can just send you my current AGS project which is extremely GUI-heavy).

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 3
« Reply #49 on: 16 Apr 2022, 22:09 »
Please note: the Beta 3 has been reuploaded with a fix

The download links are all the same. I apologize for inconvenience.

Did this mostly because this was found within 24 hours; for any further problems i'd be making new releases as proper.

Pajama Sam

  • Sam's The name
Re: AGS 3.6.0 - Beta 3
« Reply #50 on: 17 Apr 2022, 03:35 »
Not that I like to harp on this but do you think you might soon allow dragging folders in the sprite menu?If i'm being annoying just say the word and i'll zip my lip. :X

Hobbes

  • Swashbuckler
AGS 3.6.0 - Beta 3
« Reply #51 on: 17 Apr 2022, 03:52 »
Updated to latest beta yet again! So far, things seem to be running smoothly on my end. Once we're out of beta, I'm happy to compile an empty MacOS AGS (Silicon & Intel) application for people to stick their games into. I've got them right now, but not much use for the wider community I think, since we're in beta.

Keep up the great work! (As always)

eri0o

Re: AGS 3.6.0 - Beta 3
« Reply #52 on: 17 Apr 2022, 04:11 »
Hey Hobbes, can you test if the binary here works for you? https://cirrus-ci.com/task/6135298751987712 (it's the one named ags, the others are unreleased things for now)

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 3
« Reply #53 on: 17 Apr 2022, 04:14 »
Not that I like to harp on this but do you think you might soon allow dragging folders in the sprite menu?

Do you mean dragging around the list, or drag & drop whole folders from the file explorer to import sprites?

abstauber

  • Cavefish
  • Mittens Knight
  • still mowing the lawn
    • Best Innovation Award Winner 2021, for contributions to the ready-to-use UI designs and elements that mimic the most iconic designs we all know and love, most notably Tumbleweed Verbs and 9-verb MI Style UI, as well as additional UI helper modules such as CustomDialogGUI and ButtonHelper.
    • abstauber worked on one or more games that won an AGS Award!
    •  
    • abstauber worked on one or more games that was nominated for an AGS Award!
Re: AGS 3.6.0 - Beta 3
« Reply #54 on: 17 Apr 2022, 22:39 »
I just started porting my quite old game project from AGS 3.4 to 3.6b3.

It already compiles, but crashes with the following exception.
Since I replaced a lot of Viewports and System.ScreenHeights, I can't exactly tell you, what did cause this crash.

Code: [Select]
An exception 0xC0000094 occurred in ACWIN.EXE at EIP = 0x0050A95E; program pointer is +373, ACI version 3.6.0.23, gtags (663,20)


I hope it still somewhat helps.

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 3
« Reply #55 on: 17 Apr 2022, 23:25 »
Code: [Select]
An exception 0xC0000094 occurred in ACWIN.EXE at EIP = 0x0050A95E; program pointer is +373, ACI version 3.6.0.23, gtags (663,20)

0xC0000094 is "division by zero". "program pointer is +373" is around the gui controls drawing. I think "gtags" should contain ID.

Does it still crash? If yes, may I have a compiled game for a test?

EDIT: Hmm, the only suspicious division i could find is in Slider, when MaxValue - MinValue = 0
« Last Edit: 17 Apr 2022, 23:27 by Crimson Wizard »

abstauber

  • Cavefish
  • Mittens Knight
  • still mowing the lawn
    • Best Innovation Award Winner 2021, for contributions to the ready-to-use UI designs and elements that mimic the most iconic designs we all know and love, most notably Tumbleweed Verbs and 9-verb MI Style UI, as well as additional UI helper modules such as CustomDialogGUI and ButtonHelper.
    • abstauber worked on one or more games that won an AGS Award!
    •  
    • abstauber worked on one or more games that was nominated for an AGS Award!
Re: AGS 3.6.0 - Beta 3
« Reply #56 on: 17 Apr 2022, 23:40 »
I've just PM'ed the link to the project. It could also be very possible that I did something stupid, as I haven't spent much time porting the code yet.
Oh and the keyboard controls seem to be different now too. At least the arrow keys don't work anymore.
Thanks for looking into this.

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 3
« Reply #57 on: 18 Apr 2022, 00:00 »
I've just PM'ed the link to the project. It could also be very possible that I did something stupid, as I haven't spent much time porting the code yet.

The above is not a scripting mistake, but a engine error. Program should not crash like that even if script is wrong.

Oh and the keyboard controls seem to be different now too. At least the arrow keys don't work anymore.

If the "General Settings -> Backwards Compatibility -> Use old-style key handling" is set to true, then nothing should change; so there may be a engine bug too.

Pajama Sam

  • Sam's The name
Re: AGS 3.6.0 - Beta 3
« Reply #58 on: 18 Apr 2022, 02:27 »
Quote
Do you mean dragging around the list, or drag & drop whole folders from the file explorer to import sprites?
Yes ,I meant to say to drag and drop whole folders within  the sprite panel(as in to be able to organize the sprite folders).
« Last Edit: 18 Apr 2022, 16:30 by Pajama Sam »

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 3
« Reply #59 on: 18 Apr 2022, 04:39 »
Code: [Select]
An exception 0xC0000094 occurred in ACWIN.EXE at EIP = 0x0050A95E; program pointer is +373, ACI version 3.6.0.23, gtags (663,20)


So, this happens when any gui control has width or height = 0.
There's a temp fixed build here (installer and archive):
https://cirrus-ci.com/task/4575886656667648