Product Chat / [SOLVED] Custom Menu Images are not working properly

Author
Message
NewbieUser
4
Years of Service
User Offline
Joined: 27th Oct 2020
Location:
Posted: 27th Oct 2020 12:41
Hello,

I was working on level 2 of at least 10 levels of my game, so I'm obviously in very early in the development process. I did not like those default images on every test build, so I decided to put a pause on the level design and do the UI first. I have changed the Title Splash screen, game menu music, cursor and added that Visit Website button successfully. Then I moved on to title, loading, about, end and lost images. They do show up but like a cropped version of the original in the standalone build. I need those images to show up perfectly. Can someone please help me with that? I created a folder named "custom" in "C:\Program Files (x86)\Steam\steamapps\common\Game Guru\Files\titlesbank" and changed the text inside "style.txt" in the same directory from "default" to "custom". So, now my custom cursor, splash screen, music and website button work perfectly. Those 5 custom images do not. And I have tried a lot of things inside "setup.ini" to make it work. For example, changing these values:

disabledynamicres=0
fullscreen=1
width=-1
height=-1
depth=32
aspectratio=0

They are all of ".png" format. I would move on to changing designs for the buttons but I'm kinda discouraged by this thing that is bothering me for a week now. Any help would be very much appreciated. Apologies if this is not the right place to post this. I gave the test version to 2 different people and well, they have confirmed that it's not a problem with my PC only. Right now I'm using a fresh installation and untouched "setup.ini" of GameGuru. The problem still exists and I don't know how to fix it. Could really use some help here. I have also tried replacing the files in the default folder without changing anything inside "style.txt". I have a GTX 1050Ti and my screen resolution is 1920x1080, if anyone needs to know. Please help me fix those 5 images. Title Splash screen works fine. I made new images for these resolutions: 1024x768, 1152x864, 1280x720, 1280x800, 1280x960, 1366x768, 1440x900, 1600x900, 1600x1200, 1680x1050, 1920x1080, 1920x1200. I know there are 4 extra resolutions, I did try using just 8 but same problem, custom images are feeling like they're being cropped or something. So, I thought adding 4 extra resolutions would not hurt and maybe solve the problem but that did not work.

Thank you.

The author of this post has marked a post as an answer.

Go to answer

Attachments

Login to view attachments
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 27th Oct 2020 14:39
It's because the background images in the menu screens are animated, they drift from side to side. You need to disable the animation in the scripts. Don't ask me how though, somebody else will have to answer that.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 27th Oct 2020 15:57 Edited at: 27th Oct 2020 16:00
This post has been marked by the post author as the answer.
yh go to
Files/titlesbank/default/
open the script that relates to the image
i.e. loadgame.lua
and find something like
SetSpriteSize ( g_sprBackdrop, 110, 110 )
SetSpriteOffset ( g_sprBackdrop, 5, 5 )
change it to
SetSpriteSize ( g_sprBackdrop, 100, 100 )
--SetSpriteOffset ( g_sprBackdrop, 5, 5 )
then in the main(e) function you will see something like
-- move backdrop
SetSpritePosition ( g_sprBackdrop, math.cos(g_posBackdropAngle* 0.0174533)*5, math.sin(g_posBackdropAngle*0.0174533)*5 )
change it to
-- move backdrop
--SetSpritePosition ( g_sprBackdrop, math.cos(g_posBackdropAngle* 0.0174533)*5, math.sin(g_posBackdropAngle*0.0174533)*5 )

repeat for all images that are wrong
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 27th Oct 2020 16:00
there is a trial version (2 days) of Asset Manager, comes with Menu Creator this may help you fix your issue, if you already have your images and cursors setup then it will only take you about 5 mins https://forum.game-guru.com/thread/220932?page=3#msg2631995
Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-9700K @4.2GHz - 64GB DDR4 RAM - GeForce RTX 2070 SUPER 8GB - 2TB NVe, 1TB NVe, 2TB Hybrid Data Drive
Test PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Laptop - Helios 300 Predator - i7 7700HQ - 32GB - Nvidia GTX1060 6GB - 525GB M2 - 500 SSD - 17.3" IPS LED Panel - Windows 10 Pro x64
Asset Manager
NewbieUser
4
Years of Service
User Offline
Joined: 27th Oct 2020
Location:
Posted: 27th Oct 2020 20:11
Thank you all for your help, I really appreciate it. Thanks, smallg, that fixed the problem. I wonder why GameGuru doesn't already come with that. Anyways, I can finally move on to button design and then level design and missions. Thanks again.
PM

Login to post a reply

Server time is: 2024-11-23 12:42:34
Your offset time is: 2024-11-23 12:42:34