I have a simple interatction with one of my inventory items you first get A pet rock (inv item 1) and Yorrik (inv item 2) both for all intents and purposes are the exact same item. When you look at the pet rock this code executes:
DisplaySpeech(0, "This is my pet rock, Yorrik.");
DisplaySpeech(0, "Doesn't he have the cutest little smile?");
LoseInventory(1);
AddInventory(2);
This works, normally, now the petrock is named Yorrik which has similar code without the Add and Lose inventory lines... The strange behavior is when the PC is near the right side of the screen. on the first line where it should say "This is my pet rock, Yorrik. all you see is the period and nothing else, while the second line displays normally...
Any idea why this is doing it
This is version 2.56d (waiting patiently for the 2.6 release version to be finalized ;))
Anyway thanks in advance.
It seems AGS has a strange behavior displaying a speech message when the (inventory) GUI is shown. :P
Anyone have a workaround I can use for it, its really rather annoying...
(second thought is that it might not be a period it is showing, but the top left side of the T... either way its not displaying correctly)
could this have anything to do with having a custom inventory GUI? They are set to disable when not in use.
Just wondering... maybe this should be moved to Tech forum so CJ can see why it does this.
Thanks.
Maybe you could try turning off the GUI before doing your little script above, then turn it back on afterwards (if you want it back on)...
Yeah, it displays a message at the wrong position.
QuoteJust wondering... maybe this should be moved to Tech forum so CJ can see why it does this.
Imforming CJ may be a good idea.
Ok, that did it, now I just have to remember to do that with all of my inv interactions :)
Thanks.
I suggest starting a new post in the Tech forum, referencing this thread (just paste the URL)
It would be interesting to see if it does the same for Display when "Display as speech" is set...?
Also, it might be handy if you have a version of your game you can give the URL for in case CJ wants a download...
I think there were various bug reports on 2.56 about the text positioning, IIRC.
EDIT: Also worth a quick try of backing up your game and then using the latest beta version, in case CJ has actually already fixed it: I couldn't see it in the changelist but you never know... (actually the 2.56d changelist seems to say that thsi issue is fixed, but maybe CJ missed the inventory GUI special case)
Hey I'm having the exact problem! :D
its not only with displayspeech or anything. Any messages it shows make it all wierd, i was using global messages.
InventoryScreen(); is to turn the thing on, whats the code to turn it off?
Alynn, can you take a screenshot of the problem?
AGS has some code to move speech text around the screen to stop GUIs overlapping it, but it's possible this is screwing up if your inventory GUI is shaped a certain way.
I had the same problem.
I just did what was suggested above and turned off the GUi first, like:
GUIOff(1);
DisplaySpeech(XXX, "It's a pet rock.");
GUIOn(1);
Ok this is with the option When interface disabled turn GUI's off (if it is left as grayed out or state not changed and so on the text appears behind the inv gui) Now Dont worry about he colors, I toned down the colors when I saved it as BMP (before converting it to JPG)... Dont worry about the graphics or the extra GUI in the upper left, this is my test room where I play with scripts and what not... anyway here we go
Inventory screen on:
(http://groups.msn.com/_Secure/0QAALAxETAGKe4nFzQe8VxTAbZX5xUjrW1j5Uy8D0HA*JT5Jm0KolFM5bbs4UzMX3ld6cbFHlQKm0a5DAWaAEb2HVuB8z0c5fzowLAwBw2Ck/GUIOn.jpg?dc=4675451680716927941)
First line of speach:
(http://groups.msn.com/_Secure/0SwDPAnwX3JBTm!fI7yivNUJjJr0n5GnIwBYAIHRFNajDt69RXnaDfXKszASEWu3TioPIJ8VUHQvfwl6g8QR7tv9Wi5XRirL4cfNmPDyGlI73n1y*qpg7Dg/GUIautoOffSpeach.jpg?dc=4675451680679175178)
Second line of speach:
(http://groups.msn.com/_Secure/0TADdAq4XwaJTm!fI7yivNUJjJr0n5GnIGzValsK44DTGdYAWuOKL!MKWiRGfLMAiKmD*QZWNn3V8BmCnRWhC4YXiPwCaAS7WpMI!tZlWzD0DeSVQ15qN2A/GUIautoOffSpeach2.jpg?dc=4675451680694112120)
Ah I see - thanks for spotting it, it's a nasty one.
Could you try this new engine, see if it fixes it:
http://www.agsforums.com/acwin.zip
It seems to do the trick in my tests.
i may have mis-read. my problem is: (when a message is shown) the thing did fix the problem thx
(http://dan2552.port5.com/images/problem.JPG)
OFF-TOPIC: *mental note* my next isometric project will be with 3D prerendered graphics. Hot dang!