Auto Load Title Screen Changer for Conquests + New Screens!

Set you're right. There remained a problem.
And for the same exact reason as last time. I didn't have the time to create a bunch of graphic files and test things. So for the 2nd time I just typed it. Illustrating once again why programmers lean so heavily on their testers.

But this time I did it right. I did properly test this script.

-------------------------------------------
@rem Bjørn's Civ3 Titlepage Script v1.1
@rem echo off

echo ---------------------------
echo.
echo.
echo Launching Civilization 3 Conquests . . .
echo.
echo Do not close this window!
echo ---------------------------

set /a count=3
rem the count is the number of files in your titlescreen DIR. The image in x_title.pcx is not counted.
set targetFile=
set artdir=.\art
set titlesdir=.\art\titlescreens

:main
copy %artdir%\x_title.pcx %titlesdir%\temp.pcx
copy %titlesdir%\1.pcx %artdir%\x_title.pcx
for /l %%a in (2,1,%count%) do call :calc %%a

rem put all commands that come after the loop here
copy %titlesdir%\temp.pcx %titlesdir%\%count%.pcx
civ3conquests.exe
attrib conquests.biq -r

rem this goto is to skip the :calc once you are done with the loop.
Goto :end

:Calc
set /a targetFile=%1-1
copy %titlesdir%\%1.pcx %titlesdir%\%targetFile%.pcx
Goto :end

:end
 
hIdDeN_eViL said:
strange.... none of the scripts should loop.... conquest is the last command.


@bjornlo
just once more so i can get it right...

so u get all ur pics, put them into art\titlescreens\
number them,
use one of them as art\x_title.pcx

and thats it?


oh and why is it that in the above script that count=6, when you only mentioned 4 titlescreens?

Seth was right, and I was sloppy (again... the shame of it all).
Yes you are right.
Copy all the images into art\titlescreens except for the one you designate as x_title.pcx in \art
That is all there is.
I assume the file names are 1.pcx, 2.pcx, 3.pcx, 4.pcx and so on. But you can easily modify the script to take any file name that begins or ends in a number.
The example had 4 and the sample script listed 6 because I was lazy and sloppy.


To have 6 looping images
set count to = 5
since the 6th image will be x_title.pcx
to have 10,000 looping images
set count to = 9999

I hope this helps,

Shamefully yours,
-Bjørn
 
Nwoll,

Your previous problems, I can take responsibilty for (and do applogize for).

But this time Seth and the others shamed me into making 100% certain I tested it first.

make sure your paths and file names are correct.

You said you have more then 5 images.
Ok here is what your tree structure should look like for 7 images.

\art\titlescreens\1.pcx
\art\titlescreens\2.pcx
\art\titlescreens\3.pcx
\art\titlescreens\4.pcx
\art\titlescreens\5.pcx
\art\titlescreens\6.pcx
\art\x_title.pcx (this is your 7th image)

To accomodate this number of images you must edit the script, changing just 1 line.
set /a count=6

count must be set to the number of files you place in your titlescreens dir.
Next you must comment out the part that launches civilization, so you can run the script a bunch of times to test things.
To test things myself, I used a changed my script so that every .pcx was a .gif. I then made a bunch of gifs where the contents was a single number. So 1.gif was a black and white image with a 1 and 2.gif had a "2" in it and so on. This made it simple to just see what was being copied to where.
 
I still can't get it to work. :blush: I don't know what I'm doing wrong exactly, it shouldn't be THAT hard. :blush: Yet, I can't get it right so far.

I've copy pasted the script from post #42.

I've checked and made sure my titlescreens are found in D:\Civ 3\Conquests\Art\TITLESCREENS\

and I had changed it to use the full pathnames also.
I even made sure i changed the names to 1,2,3,4,5 .pcx


I'm getting errors that it cannot find the target files when the copy commands execute.. ??
 
Ok it works, I changed it back to the set artdir=.\art
set titlesdir=.\art\titlescreens

I think MY problem is DOS and the way the dirs are named in windows... like there's a space between CIV and the 3 in my D:\Civ 3\Conquests\Art

I dunno.. I really thank you for your help and support. IT MEANS A LOT TO THOSE WHO ARENT COMPUTER/DOS SAVVY.

oops caps.. Thank you sincerely, this is tops love the art provided which is what prompted me to use it. Beautfiul.
 
Back
Top Bottom