Custom Text Window GUI import problem

Started by Aquilo, Tue 24/01/2006 01:42:57

Previous topic - Next topic

Aquilo

Making myself ready for a game creation I am now making myself acquainted with the advanced possibilities of AGS and preparing and testing ready modules and things to import and not test them in the main project in order to keep the scripting "clean".
Now I have a curious problem with my custom GUI, please explain or redirect me if this problem has already been mentioned somewhere:

- I create a Custom Text Window GUI with all 8 side and corner buttons graphics and a background image. Then I check it out - everything works fine, and export it.
- Then I start a new game using the "Default" template. The resolution and bit depth are presizely the same with the debug game the GUI was created. Then I import my exported GUI (as I would do when main work begins from scratch). Then I import the same fonts I used for text. In the editor, everything is fine - the GUI imports nicely, a new folder is created in the Sprite Manager, and in the GUI editor all sprites for tile buttons and background are reassigned according to their new numbers - everything looks as it should be. Then I tick "Text windows use GUI" and supply the number my imported GUI now has in the GUIs list. Then I create a test room, save it, and when it goes to testing, a strange thing happens - when performing the same basic actions where a message should appear, a text box is obviously drawn, and text appears, but ALL the imported GUI graphics is substituted by other sprites - namely, by the blue cup, the pink poster and the key, which appear on the edges, corners and background where imported sprites should be. I check it out again in the GUI editor - every button backround image is set correctly for a corresponding sprite. Whatever I tried it does the same thing when running the game with an imported GUI :-[. What am doing wrong or forget to do, and what may be the problem? Any clue would be appreciated.

Ashen

I've had this problem with imported GUI graphics too, but I've got no idea what causes it (possibly it's to do with the graphics being in a new subfolder?). Just try re-assigning the graphics once you've imported them, that usually works for me.
I know what you're thinking ... Don't think that.

Aquilo

Yes, "dumb" reassigning (or re-importing) of every single sprite does it. That is why I am keeping every single graphic file which I import for further work - as a backup, just in case. Takes sometimes less time that trying to get to the core of the problem... I just wonder why it happens - everything is imported correctly and every single sprite is in its place in the GUI editor, AGS namely reassigns everything automatically by import. And then refuses to accept the results of its own work ::)

SMF spam blocked by CleanTalk