Please Backup your files and do this to the copy.
Also this is not 100% but it works
UPDATES ON THIS WILL BE POSTED SOON WITH A BETTER REG AND LOGIN SYSTEM
Now lets get started
This is what we will be adding today.
Now the first thing we will be doing is changing the screen when you get into the game
Go ahead and open up this
PlatinumArtsSandbox2.5 - Copy\data\lang\en\menus.cfg
In menus.cfg You are going to want to Search this
Code: Select all
guibutton "Exit The Game" quit exit
Code: Select all
guilist [
guibutton "Toggle Editmode (e)" "edittoggle"
guibutton "Load Map" "showgui maps; MODE = (getmode); mode (getmode); initmapgui"
guibutton "Load Custom Map" "showgui loadmap"
guibutton "Multiplayer" "showgui multiplayer"
guibutton "Help" "showgui help"
guibar
guibutton "Options" "showgui options"
guibutton "Jukebox" "showgui jukebox"
guibutton "Change Skill Level" "showgui skilllvl"
guibutton "About" "showgui authors"
guibutton "Exit The Game" quit exit
If not skip to Option 2.
OPTION 1
(DELETE SOME POINTLESS THINGS AND THINGS FOR EDITING THE GAME)
So to make it cleaner you want to delete some pointless things.
I deleted this
Code: Select all
guibutton "Change Skill Level" "showgui skilllvl"
guibutton "Jukebox" "showgui jukebox"
guibutton "Toggle Editmode (e)" "edittoggle"
guibutton "Load Map" "showgui maps; MODE = (getmode); mode (getmode); initmapgui"
guibutton "Load Custom Map" "showgui loadmap"
guibutton "Multiplayer" "showgui multiplayer"
Now skip past option 2 since you did this
OPTION 2
So you dont want to delete them so what you will do is just Add the things i add above Toggle Edit mode (E)
----------------------
So after you have deleted those or keep them We are now going to want to start adding the Login and register Menu
So above one of the buttons one line of those codes you are going to add this
Code: Select all
guibutton "Login" "showgui login"
Now for the register
Add this under the Login code
Code: Select all
guibutton "register" "showgui reg"
IF DELETED
Code: Select all
guibutton "Login" "showgui login"
guibutton "register" "showgui reg"
guibutton "Options" "showgui options"
guibutton "About" "showgui authors"
guibutton "Exit The Game" quit exit
Code: Select all
guibutton "Login" "showgui login"
guibutton "register" "showgui reg"
guibutton "Toggle Editmode (e)" "edittoggle"
guibutton "Load Map" "showgui maps; MODE = (getmode); mode (getmode); initmapgui"
guibutton "Load Custom Map" "showgui loadmap"
guibutton "Multiplayer" "showgui multiplayer"
guibutton "Help" "showgui help"
guibar
guibutton "Options" "showgui options"
guibutton "Jukebox" "showgui jukebox"
guibutton "Change Skill Level" "showgui skilllvl"
guibutton "About" "showgui authors"
guibutton "Exit The Game" quit exit
Alright so now if you go in the game you will see those 2 buttons but they do nothing atm if you click on them.
Now lets go ahead and add the LOGIN Menu
Go ahead and search (CTRL + F)
Code: Select all
newgui scratchpad
add this
Code: Select all
newgui login [
guititle "Login"
guibar
guitext "Username:"
guifield username 18
guitext "Password:"
guifield password 18
guibutton "Login" "showgui UserMenu"
]
Gutititle = This is the title of the GUI
guibar = makes a bar separating them
guifield = This creates a text box and 18 = How many chars you can put in
guibutton = This makes a clickable button
Now for the register
Right under this ] of the login you are going to add
Code: Select all
newgui reg [
guititle "register"
guibar
guitext "Username:"
guifield username 18
guitext "Password:"
guifield password 18
guitext "Email:"
guifield email 30
guibutton "Submit" "showgui login"
]
Now you notice here
Code: Select all
guibutton "Login" "showgui UserMenu"
But we have no user menu.
This is also optional It will just create a new menu.
You can see at the end of the video
Right under the barracks add this
Code: Select all
newgui UserMenu [
guititle "Welcome to the Game"
guibar
guitext "Welcome to the game. Please choose a option"
guibutton "Play" [sp "dalton"]
guibutton "Options" "showgui options"
guibutton "Website" "showgui options"
guibutton "Exit" quit exit
]
Now this will create that last menu.
Now to make the PLAY BUTTON WORK to go to your map
You are going to want to replace the word DALTON with your map name.
Save and thats it. Have fun