Page 1 of 1
Loading screens refuse to load...
Posted: Sat Sep 04, 2010 4:46 am
by DarthFannel
I came across this weird problem, following the loadscreen tutorial for one screenshot is ok, I make a common.req, plus I name the pic loadscreen.tga, I munge the stuff and call "dc:Load\\common.lvl" on my LUAs, the pic loads just fine.
Then I wanted to make the individual loadscreen method instead, my map only has conquest but I wanted to use two different pics for CW and GCW, so I made RV3c_con.req and .tga plus RV3g_con.req and tga, calling the respective files in them.
Example of REQ
Code: Select all
ucft
{ REQN
{
"texture"
"RV3c_con"
}
}
Example of LUA
Code: Select all
...
function ScriptInit()
ReadDataFile("dc:Load\\RV3c_con.lvl")
ReadDataFile("ingame.lvl")
...
Munged and copied the .lvl files to my mods LOAD folder... and then, nothing, the screens never show, unless I am missing something I am pretty sure I followed both tutorials and it should work.
Anyone have a clue?
Re: Loading screens refuse to load...
Posted: Sat Sep 04, 2010 5:01 am
by lucasfart
In your .req file, the REQN should be on a seperate line before the first bracket. And another problem with your req is the fact is the name of your texture isn't RV3c_con, its loadscreen.
All in all, your .req should look like this:
Code: Select all
ucft
REQN
{
{
"texture"
"loadscreen/loadscreen.tga" --i'm not sure whether you need .tga on the end or not
}
}
Also, your lua should be calling
ReadDataFile("dc:Load\\
common.lvl").
Making seperate loadscreens for different era's doesn't mean changing the common.lvl in any way. To make multiple pictures, create more then 1 load folder(so make a load2 folder etc for however many you want, and then call the respective folders common.lvl depending on what pic you want.
Re: Loading screens refuse to load...
Posted: Sat Sep 04, 2010 9:02 am
by Jendo7
I've got several loadscreens in my upcoming map, and I thought you have to name the .req files differently. I have a hunt one called BNE_hunt.lvl, and a seperate common.lvl, otherwise the different modes will reference the same loadscreen. Just munge them seperately as you have to reference loadscreen in the .req file like lucusfart shows, but without .tga at the end.
Actually it should look like this:
and reference the .lvl file differently in each seperate era.lua, as in your case:
Code: Select all
ReadDataFile("dc:Load\\RV3c_con.lvl")
ReadDataFile("dc:Load\\RV3g_con.lvl")
This way you can put them all in the same load folder
lucasfarts way probably works also, I haven't tried that, though.
Re: Loading screens refuse to load...
Posted: Sat Sep 04, 2010 5:48 pm
by DarthFannel
@Jendo7
I am using your method, that's the main problem, it doesn't show any screens; I'll try the other way around but it was supposed to work.
Re: Loading screens refuse to load...
Posted: Sat Sep 04, 2010 9:04 pm
by MrCrayon
You don't need tga unless it's name is tga.
Re: Loading screens refuse to load...
Posted: Sat Sep 04, 2010 11:54 pm
by Jendo7
DarthFannel, if you still can't get it to work you might need to do a manual clean of the load folder in the _BUILD directory, and just delete loadscreen.texture in the MUNGED/PC folder. That's what I did every time I added a new one, and it worked perfectly. Just remember to munge each loadscreen.tga seperately, so move the previous one and it's .req file to another folder on the desktop.
Re: Loading screens refuse to load...
Posted: Sun Sep 05, 2010 12:29 am
by lucasfart
Jendo7 wrote:I've got several loadscreens in my upcoming map, and I thought you have to name the .req files differently. I have a hunt one called BNE_hunt.lvl, and a seperate common.lvl, otherwise the different modes will reference the same loadscreen. Just munge them seperately as you have to reference loadscreen in the .req file like lucusfart shows, but without .tga at the end.
Actually it should look like this:
and reference the .lvl file differently in each seperate era.lua, as in your case:
Code: Select all
ReadDataFile("dc:Load\\RV3c_con.lvl")
ReadDataFile("dc:Load\\RV3g_con.lvl")
This way you can put them all in the same load folder
lucasfarts way probably works also, I haven't tried that, though.
Really? I'll have to try your way, but i thought it HAD to be called common.lvl, doesn't it?
Re: Loading screens refuse to load...
Posted: Sun Sep 05, 2010 12:32 am
by AQT
The name of the .lvl does not matter, it just needs to be in the Load folder.
Re: Loading screens refuse to load...
Posted: Sun Sep 05, 2010 3:28 am
by DarthFannel
@AQT
Still the images don't load from anything not called common.lvl, there must be something missing in the tutorial, some kind of .req or other file, I followed both tutorials to a T and still can't think what's wrong.
Re: Loading screens refuse to load...
Posted: Sun Sep 05, 2010 4:09 am
by AQT
The name of the .lvl doesn't matter but the name of the TGA always has to be loadscreen. That's probably your problem. And don't forget to manual clean as Jendo mentioned everytime you want to munge a new loadscreen .lvl; VisualMunge is a little picky about that.
Re: Loading screens refuse to load...
Posted: Sun Sep 05, 2010 5:36 am
by lucasfart
Yeah, you'll need to delete/move the current loadscreen.tga out of your data_*** folder, and rename the next one to loadscreen.tga. Repeat this for all your loadscreens.
Re: Loading screens refuse to load...
Posted: Sun Sep 05, 2010 2:14 pm
by DarthFannel
NOW that makes a lot more sense, thanks, I'll try that.