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 - Crimson Wizard

#14301
Quote from: Trent R on Thu 16/04/2009 02:55:10
Ooops, sorry CW. I probably sounded a bit conceited before....

~Trent
No problem :)

Quote from: monkey_05_06
Although you probably do have a point that the dialog editor should have a better way of handling this (interpreting which lines are dialog script and ignoring all syntactical candy and which lines are script script (spaces first!) and detecting the appropriate information...).
Well, that's exactly what I meant.
#14302
Quite a small bug, but could be annoying sometimes.
In dialog scripts when there is a " ' " (apostrophe) symbol somewhere between "(" and ")" in character speech, as soon as I print ")", editor marks the ")" with a red colour as if there is some syntax mistake.

Example, that can cause this:

Code: ags

Ego: Okay, I will do this (actually I won't).

NOTE: you have to type ")", copy/paste doesn't reproduce the bug.


Also, just a remark: I found it a bit excessive that editor marks "(" / ")" pairs by yellow colour in character speech lines... only my opinion.
#14303
More info: I found myself able to avoid this crash by setting compatibility with Windows 98 mode for game executable.
#14304
Heh, if AGS was open source I could try build it and run with debugger :) but it is not.
So, can I help you somehow else in this, like providing more information about something?
#14305
Quote from: Trent R on Mon 12/01/2009 00:15:43
But I don't know what OS you have (I assume Crimson has XP because it is 'My' Documents)

Huh, no, I was talking about Vista, it's just that memorized that "My Documents" from earlier Win versions I used for so many years :)
Actual path was like:

C:\Users\Иван\Documents\AGS\MyGame (or whatever).

By the way, I tried starting the game on another machine that has XP installed (reproducing similar condition), and I got absolutely same error.
#14306
Well, "Иван" for instance (that's my user name in Windows), or "Мои документы" (= My Documents). I just do not know if copying this from forum thread to your machine will keep these characters as they are.
#14307
I guess there's a slight mistake in how GetTextHeight calculates number of lines needed for a text.

For example, if you write this:
Quote
int width = GetTextWidth(Text, Font);
int height = GetTextHeight(Text, Font, width); // here we use actual width of text as a width limit

- in this case value calculated will be equal to height of 2 lines, while there obviously should be 1 line.

If you make width limit 1 pixel larger it gives correct result:
Quote
int height = GetTextHeight(Text, Font, width + 1);


Also, I suggest to implement another function (unless it is already implemented and I am just not aware of it) that returns simply Font Height, that is if you wish to know a height of single line of text.
#14308
Looks like this is not needed; I investigated problem futher and finally managed to detect reason of the problem. It appears that this only happens when the path to compiled game includes non-latin characters.
That is, if path has only strict latin characters it works and play music normally, but if there's some folder named in other (cyrillic in my case) it crashes. This does not depend on game (I tried creating new game from Default template) and on music type (tried different mp3s, oggs, wavs).

Also, I think this did not happen in AGS 3.0.
#14309
It crashes anytime music from vox package is about to play. I tried both setting startup room music or playing music from room script after some delay, same results. It only works if I put MP3 file into Compiled folder and pay it using PlayMP3File function.


Crash dump:
http://www.fotomaterial.narod.ru/_temp/CrashInfo.3.11.1057.zip
(you will be redirected to another page to confirm you want to download the file; everything is in russian there, but you just need to find same link)
#14310
I met this bug in script editor only once and could not reproduce it no matter how long I tried.
Bug does not cause any crash nor annoyance though.

Error message I got:
QuoteError: Значение StartIndex не может быть меньше нуля.
Имя параметра: startIndex
Version: AGS 3.1.1.67

System.ArgumentOutOfRangeException: Значение StartIndex не может быть меньше нуля.
Имя параметра: startIndex
   в System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   в AGS.Editor.ScintillaWrapper.CheckFunctionForLocalVariables(Int32 currentPos, ScriptFunction func, String scriptExtract)
   в AGS.Editor.ScintillaWrapper.GetListOfLocalVariablesForCurrentPosition(Int32 currentPos)
   в AGS.Editor.ScintillaWrapper.FindLocalVariableWithName(Int32 startAtPos, String nameToFind)
   в AGS.Editor.ScintillaWrapper.GetFinalPartOfExpression(Int32 currentPos, ScriptStruct& memberOfStruct, Boolean functionsOnly)
   в AGS.Editor.ScintillaWrapper.ShowCalltip(Int32 openingBracketPos, Int32 parameterIndex, Boolean functionsOnly)
   в AGS.Editor.ScintillaWrapper.scintillaControl1_DwellStart(Object sender, DwellStartEventArgs e)
   в Scintilla.ScintillaControl.DispatchScintillaEvent(SCNotification notification)
   в Scintilla.ScintillaControl.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)

As you may notice, there are cyrillics there, perhaps because it uses some predefined system error text. I decided to leave it as is in sake of message authentity :), but in english that means following (approximate translation):
Quote
Error: Value of StartIndex cannot be less than zero.
Name of parameter: startIndex


Now, I did I get this error... it's interesting question. I was thinking of something and unintentionally dragging mouse over script text. When I selected all the text in editor window this bug happened. Since no crash occured I decided to check what could cause it and finally realized that this error message occurs when I place mouse cursor over function word in the first function definition in the script. It did not happen when I put cursor over function word anywhere else. When I cancelled selection I did earlier error was still happening each time I put cursor there.
After I closed script editor and opened it again, I could not reproduce this anymore.
#14311
Good time of the day to everyone.
I met this problem when launching my game in compiled form with digital music, game crashes and following error message appears:

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x004623C0 ; program pointer is +207, ACI version 3.11.1057, gtags (0,1)

It does not happen when I run game in debug mode, and since I believe it uses raw music files then, this all happens only when music package (*.vox) is being used.
Digital music consist of couple of MP3 files. I am using Windows Vista 32bit.
I do not know what else information I need to report; error message noted I may be asked to upload crash dump file, I have one, but currently I do not see the way I can upload it :)
SMF spam blocked by CleanTalk