PDA

View Full Version : TRNG - Using the savegame Panels


KurtisandLara
22-08-09, 04:41
Requires, NG Center and TRNG.
By following this tutorial i assume you know the basics of NG Center

http://i240.photobucket.com/albums/ff210/TjOblivion/save.jpg
The picture above shows you what im going to be teaching you today. The green box shows statistics, like what weapons you have, how many flares, medipacks (big or small) you have, also how far you've traveled.
The Pinkish - redish box shows the savegame you've highlighted.

From 1.2.0.8 version, trng is able to support a new Savegame Panel to load or save the game.
You have to use the script command SavegamePanel to choose background image and layout to use.

With the new savegame panel you have different advantages:

1) You can have an image for each savegame selected, in this way for the player will be more easy look for a specific savegame.
2) You can have more than 15 savegame slot, but you can choose freely the number of savegames managable in same moment. (Max 100 savegame slots)
3) For each selected savegame the player may see informations about some internal values of that savegame: number of medipack, available weapons, secrets, distance ect.
4) You can create your custom backbground image and choose between 7 different layouts, where for "layout" we mean the disposition of different zones: savegame list, savegame image and (optional) savegame info.

I made this tutorial for some people who get confused when scripting, after awhile of studying the script and everything you'll actually find...this is easy.
Ok so we have to start with, downloading the stuff we need.
Go here (http://www.trlevelmanager.net/ng.htm) and hold down CTRL + F and then type in Savegame Panel and hit enter.
Download the Savegame_Panel.zip its 8.8 MB in size.

Unzip the file to whereever you want and open NG Center. (ussually found in Program Files -> NG Center. its the default location.)
Once in NG Center, locate the tab called "Strings". Find the dropdown named "Strings".
In the dropdown menu click on ExtraNG, Now click on Add new extra strings 4 times.
Make the strings look like this:
0: @Format_Savegames.txt
1: Arial
2: Courier
3: New Courier
Now go to the file we just downloaded. And go into the scripts folder. And copy the file that is named "Format_Savegames". Paste that TXT file in the scripts folder in the TRLE folder. Go back to the scripts folder in the downloaded file and open the Sript.txt, text file.
In there find the script that says (or just copy mine)

; ------ STUFF for SavegamePanel -----------
ColorRGB= 1, 0,255,255 ;yellow: color for panel title
ColorRGB= 2, 255,255,255 ;white: color for savegame list
ColorRGB= 3, 128,255,128 ;light green: color for savegame infos

;font used for the title of panel ("load game" or "Save game")
WindowsFont= 1, Arial, WFF_BOLD+WFF_CENTER_ALIGN, 40, 1, IGNORE

;font used for info text
WindowsFont= 2, Courier, WFF_LEFT_ALIGN+WFF_FORCE_FIXED_PITCH, 25, 3, IGNORE

;font for savegame list
WindowsFont= 3, New Courier, WFF_LEFT_ALIGN+WFF_FORCE_FIXED_PITCH, 28, 2, IGNORE

SavegamePanel= SPF_NO_TIME_IN_LIST +SPF_PRELOAD_BKG_IMAGE, 2, 30,20, SPL_LEFT_IMAGE_BOTTOM_INFO, @Format_Savegames.txt, 3, 2, 1
;-------- end STUFF for savegame panel -----------
Put that whole script right there in the the Title level.
Now right below that put this:

;enable saving screenshot in savegames for all levels
Customize= CUST_INNER_SCREENSHOT, QSF_SIZE_320x240+QSF_TRUE_COLOR

Now if you have never made any script changes to your title level it should look like this:


; ------ STUFF for SavegamePanel -----------
ColorRGB= 1, 0,255,255 ;yellow: color for panel title
ColorRGB= 2, 255,255,255 ;white: color for savegame list
ColorRGB= 3, 128,255,128 ;light green: color for savegame infos

;font used for the title of panel ("load game" or "Save game")
WindowsFont= 1, Arial, WFF_BOLD+WFF_CENTER_ALIGN, 40, 1, IGNORE

;font used for info text
WindowsFont= 2, Courier, WFF_LEFT_ALIGN+WFF_FORCE_FIXED_PITCH, 25, 3, IGNORE

;font for savegame list
WindowsFont= 3, New Courier, WFF_LEFT_ALIGN+WFF_FORCE_FIXED_PITCH, 28, 2, IGNORE

SavegamePanel= SPF_PRELOAD_BKG_IMAGE, 7, 30,9, SPL_CENTRAL_IMAGE, IGNORE, 3, 2, 1
;-------- end STUFF for savegame panel -----------

;enable saving screenshot in savegames for all levels
Customize= CUST_INNER_SCREENSHOT, QSF_SIZE_320x240+QSF_TRUE_COLOR

LoadCamera= 84246,-533,78233,81622,-1514,78208,40 ;src x,y,z target x,y,z, room
Level= DATA\TITLE,104


Now go build your script.
You shouldn't get any error messages.
Now go back to that downloaded file. And open the folder named "PIX". In there find Image2. Copy it, Name go to your main TRLE folder and create a a new folder and name it PIX.
Go in the folder and paste your image.
Open it with paint or any program and just go to file and hit save as and save it as a BMP (on paint click save as and save it as 24 BIT BMP.)
Overwrite the previous Image2 which was a JPEG.
Now convert your title level and go ingame. Go to any level or even on the title screen go to load game and it should be there.

Thank you :)
If you have any questions, comments or info to be added to this tutorial please PM me ~Kurtisandlara