dMr LFS entry screens

Started by OldBloke, July 07, 2008, 10:48:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

OldBloke

I have been playing around with the excellent race pictures that Kev has posted and have converted some of them for use as LFS entry screens.

http://lfs.deadmen.co.uk/dmr_entry_screens.zip (5.3MB)

If, after you've unzipped and viewed them, you want to use any of these then simply go to your LFS folder and rename the file ...

/data/pic/bkg_entry.jpg

to

/data/pic/bkg_entry_orig.jpg

then copy the file you want to use to /data/pic and rename it to ...

/data/pic/bkg_entry.jpg

To return to the original entry screen delete /data/pic/bkg_entry.jpg and then rename the file ...

/data/pic/bkg_entry_orig.jpg

to

/data/pic/bkg_entry.jpg
"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

Aquilifer

#1
Great idea! :D

However I improved the idea a bit. Say what if you want a new pic on every lfs start? No worry, follow the instuction below...

1. Copy-paste the file below to LfS home directory named e.g startpic.bat

2. Generate a folder "custom" for your custom pics into e.g the folder "lfs/data/pic" (so that you have then folder lfs/data/pic/custom)

3. Make a safe copy of the original pic (bkg_entry.jpg) just in case if something goes wrong.

4. Copy all the custom entry pics (Oldie's set etc) into the custom folder

5. Rename the custom pics with running numbers like (NO leading zeroes!)
bkg_entry_0.jpg,
bkg_entry_1.jpg,
bkg_entry_2.jpg,
...
Start the numbering from 0 and don't skip any numbers. (unfortunately because of dumbass nature of batch files this is bit necessary)

6. Create a shortcut (e.g into the start program list) for the startpic.bat file. After the creation set in the propertion/shortcut/target... add the following two params and . See examples...

This starts the lfs with a random custom pic from 8 pics (numbered 0,...7)
E:\games\lfs\startpic.bat random 8
This starts the lfs with the next custom pic from 11 pics (numbered 0,...10)
E:\games\lfs\startpic.bat next 11

7. You can change the looks of the shortcut icon in properties/shortcut/change icon and by selecting the LFS.exe with the browse option.

8. Start the game from the just created shortcut in the future

startpic.bat

@echo off

call pic_num.bat

if "%1" == "random" (
   set /a LFS_PIC_NUM=%RANDOM%
)
if "%1" == "next" (
   set /a LFS_PIC_NUM=%LFS_PIC_NUM%+1
)
set /a LFS_PIC_NUM=%LFS_PIC_NUM%%%%2


copy /Y data\pic\custom\bkg_entry_%LFS_PIC_NUM%.jpg data\pic\bkg_entry.jpg
echo set LFS_PIC_NUM=%LFS_PIC_NUM% > pic_num.bat

start lfs


NOTE1: If you change the paths you need to make relevant changes in the bat file
NOTE2: The bat file will create a second bat file named pic_num.bat into the lfs folder (to save the current pic number)
NOTE3: It might show a short error/warning text at the first startup because there is not pic_num.bat file yet. Not dangerous, just ignore.

Doorman

What clever old Finn you are! :D










     

Aquilifer

Small update:

If you don't want that the command prompt remains active at the background when LFS starts, you can add "start" in front of the lfs line (that means "start lfs"). The startpic.bat updated accordingly in the previous post.

delankster

superb !!
have chosen the lx4 pic but may try rotating pics when i have a bit more time.

great work:thumbsup:
It is better to stay quiet and act the fool, than to say something and remove all doubt
[EMAIL=delankster@deadmen.co.uk]delankster@deadmen.co.uk[/EMAIL]