Does a Gui's transparency hit the FPS ? I mean, in my game, when a menu is appearing, I place a white 45% transparency GUI under it to have a cleaner view of the menu. When this GUI is here, I have the feeling that the game is laging. The mouse is not moving smoothly. Is it normal ?
GUI updates were implemented in a very unoptimal way in AGS. This was improved in 3.5.1 to some degree (the latest 3.5.1 Patch 3 has another step of improvement).
Hmm, OK, I see !
Is it possible for me to update my AGS version ?
When I click on Help -> About AGS, it says "AGS build 3.5.0.24".
Is it possible for me to update it ? And how, please ? I hope so, but I don't want to lose all I have done so far !
You can download the version here (https://www.adventuregamestudio.co.uk/forums/index.php?topic=59376.0), then open your project with it.
Quote from: Baguettator on Mon 20/09/2021 13:08:02
Is it possible for me to update it ? And how, please ? I hope so, but I don't want to lose all I have done so far !
You should always make backups, not only if you update your projects to new versions of AGS.
Thanks ! The problem is I downloaded the 3.5.1 version, loaded my game, saved it, tried to launch it but got a serious error :
Error: analyse de "\Well, I would have tried, but it's not great... It's the last time I'm going to do this kind of thing, I promise!\"" - Séquence d'échappement \W non reconnue.
Version: AGS 3.5.1.10
System.ArgumentException: analyse de "\Well, I would have tried, but it's not great... It's the last time I'm going to do this kind of thing, I promise!\"" - Séquence d'échappement \W non reconnue.
à System.Text.RegularExpressions.RegexParser.ScanCharEscape()
à System.Text.RegularExpressions.RegexParser.Unescape(String input)
à System.Text.RegularExpressions.Regex.Unescape(String str)
à AGS.Editor.Components.TranslationsComponent.CompileTranslation(Translation translation, CompileMessages errors)
à AGS.Editor.Components.TranslationsComponent.AGSEditor_PreCompileGame(PreCompileGameEventArgs evArgs)
à AGS.Editor.AGSEditor.PreCompileGameHandler.Invoke(PreCompileGameEventArgs evArgs)
à AGS.Editor.AGSEditor.CompileGame(Boolean forceRebuild, Boolean createMiniExeForDebug)
à AGS.Editor.Components.BuildCommandsComponent.TestGame(Boolean withDebugger)
à AGS.Editor.Components.BuildCommandsComponent.CommandClick(String controlID)
à AGS.Editor.ToolBarManager.ToolbarEventHandler(Object sender, EventArgs e)
à System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
à System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
à System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ScrollableControl.WndProc(Message& m)
à System.Windows.Forms.ToolStrip.WndProc(Message& m)
à AGS.Editor.ToolStripExtended.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
So I can't rebuild my game (made a back up before in case of).
Any idea ?
You seem to have a typo in your translation, it shows you have "\W" sequence there. The backslash (\) is a special character that converts following char in a special way, for example \n is a linebreak. \W is not a correct sequence.
Maybe you meant something else there, or this backslash is there by mistake.
Judging by the \" in the end of the line, maybe you meant to have \" in the beginning as well.
Hmm ok I see, I corrected this in the translation file (was missing a ").
But the 3.5.1 can't launch my game though, there is an error at the game start :
Loading game failed with error :
Script link failed
Runntime error : cannot resolve import , key = -1
?
Seems strange because I managed to launch the game with my backup with the 3.5.0.
Please try doing Build -> Rebuild all files.
If that does not work, I'd like to see your game project, that would be easier to find what's wrong. I've never seen anyone getting that particular error before.
That's what I just did, it didn't work !!
How can I send you my game project ?
Quote from: Baguettator on Mon 20/09/2021 14:49:38
How can I send you my game project ?
You may upload to any file hosting, such as dropbox, mediafire and so on, then PM me a link (I am not sharing the games with anyone but the engine developers if that's necessary).
Sent by MP ;)
Thanks !!
So far I found only that there's something wrong happening during compilation with "Fiche_Personnage" module. The running game errors in "Struct_Personnage" but maybe it's related to same error.
I will continue investigating.
Hmm, these two scripts are linked, so it won't be strange if the error is linked too.
I have really no idea of what is happenning... Good luck, and thanks a lot for your help !
BTW, this is strange, you said your AGS is 3.5.0.24? I tried that and it also has error, although the "key" parameter in error is slightly different.
Yes !
I don't know if the game I sent you is already "upgraded" to 3.5.1 or not. If you managed to open it with 3.5.0, so it should not be.
As far as I know, maybe this error occurs when I forget to delete an import of a variable, whereas I deleted the variable in the main script.
But I had a look for that kind of thing, but didn't see anything...
Have you seen anything else ?
EDIT: ah, nevermind, I see you already have the if/else problem fixed. So this is something else.
Well, I'm sorry, but even if I change that, it doesn't work for me :(
Note that I already got this error, that's why I change to a new "if" for the number 75, and it works perfectly well.
No, the problem is elsewhere, and the key is still -1 in the error message...
This is very strange, because the game is running with 3.5.0.24, but not with the 3.5.1...!!
It was not running with 3.5.0.24 for me either.
Regarding if/else, so what I found is that you have to split if/else not at ID == 75, but at ID = 74. Then compiler works correctly. I am not certain why it stops working after 74 elses, not 75, and also why does not it report error earlier. Maybe some condition in compiler works incorrectly.
Unfortunately that does not fix the import error.
Sad :(
This kind of error message is not well known ? It doesn't mean something precise ?
CW, If it's something that is compiler related, I wonder what would happen running with Fernewelten's compiler. Hopefully it would either work or give a different error.
Found it, through extensive debugging. I already had a slight guess, but now confirmed it.
This is again a problem with using attributes inside the same scripts which defined them. In your case, it's in "Struct_Personnage.asc", line 496, where you use attribute Zombivant instead of protected variable zombivant. There are also similar uses of this attribute below.
I will look if it's possible to make engine report some additional info in case of an import error, like the line number or something at least.
EDIT: ok, seems to be possible, I will be releasing a new patch for 3.5.1 soon anyway, it will include better error messages for messed import (with script name and line).
(it's impossible to report the variable name now, because compiled scripts do not save them)
Oh yeah, great !!! I thought I had corrected all of these errors, it happenned a few week ago the same problem (but I didn't remember the exact error message, I don't know if it was the same...).
The strange thing is : why the game is launched with 3.5.0.24, but not with the 3.5.1 ?
By the way, thanks you a lot !!!!
Quote from: Baguettator on Tue 21/09/2021 13:09:51
The strange thing is : why the game is launched with 3.5.0.24, but not with the 3.5.1 ?
I cannot answer this, maybe there's a mistake in compiler than manifestates differently or is ignored by the engine completely depending on some other factors.
OK I see.
By the way, I tested wuth the 3.5.1, and yes I can confirm : the game is not lagging anymore while the transparent GUI is appearing !