Product Chat / Editing out buttons on the main menu

Author
Message
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 5th Sep 2016 19:06
Didn't know where to put this tbh so i hope its in the right place, looking for some help if anyone can or point me to a Vid etc etc if there's one. What im trying to do is edit out the save load buttons on the main menu and swapping it for a website link or credits button. Ive tried a few methods and had poor results i even tried using 1.0.0.1 but that only messed it up as the sounds went etc etc anyone have any idea how to do this please?
Intel i5 4950 Quad core 3.3ghz
8gb Ram
Nvidia NVS 315 1gb
and a well fed mouse on a wheel

When Reality is broken. Game designers can fix it and make it more realistic
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 27th Sep 2016 23:58
Alas there is no LUA command to launch another executable or external HTML web link. You would have to create your own menu app and launch the GG game direct from there to have this functionality at present (a little mess I know). You can of course remove buttons from any of the GG menus easily by editing the scripts in titlesbank but remember to copy and rename the default folder, and edit the copy after redirecting the title setting file to your new folder, this way when an update arrives it does not erase your changes.
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 28th Sep 2016 14:10
Quote: "Alas there is no LUA command to launch another executable or external HTML web link"


I beg to differ


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 28th Sep 2016 14:29
I would still love to know how you did that ..
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 28th Sep 2016 14:40
usually it will be something on the lines of os.execute([command]) within lua script.
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
FPSC to GameGuru Tools: SegAutoWelder, Entity+Weapon Welder
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 28th Sep 2016 15:08
For all the LUA scripts I have created, I am still a novice, and still amazed at what the community can create with the same language. I have lost count of the number of times I've seen something in the progress board and said "but I've not added that yet..."
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 4th Oct 2016 18:13 Edited at: 4th Oct 2016 18:16
@Dvader lol totally amazing i did get it to launch a website only problem was it looped opening about 100 until i killed the process :/
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 4th Oct 2016 19:49
make 2 new png files to replace the button with.
i.e.
Quote: "credits.png"
and
Quote: "credits-hover.png"

place them in
Quote: "titlesbank\default"

now copy and backup title.lua (found in same folder)
then open the original and replace line 60
Quote: "elseif i == TITLE_LOADGAME then strButtonName = "load-game""

with
Quote: "elseif i == TITLE_LOADGAME then strButtonName = "credits""

(or change "credits" to match the name of the first png file you created above - *technically you could just replace the "load game" png's and skip this step but it would be weird to name them load game when it says credits inside... this way is more complete? )
now find line 103
Quote: "SwitchPage("loadgame")"

and replace it with
Quote: "os.execute("start https://forum.game-guru.com/thread/216290")"

(replace the url with the desired url obviously)
and now recreate your standalone (or simply do all steps above in the standalone folder in the first place but you would need to do it again next time you create a standalone)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 4th Oct 2016 20:46
wow lol cheers smallg i'll have a go at that better finish the new game and back up first tho m8 i have a tendency to wreck things lol
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Login to post a reply

Server time is: 2024-11-24 22:49:03
Your offset time is: 2024-11-24 22:49:03