loading custom ground textures via sides problems
Posted: Mon May 04, 2009 10:13 am
So I've tried to implement random ground textures through custom sides in order to allow for night and day maps. It has been successful and it has not. Here's what I've done I'm at school now so I don't have any files on me I will post them tonight. Here's what i've done see if there is any error.
I made a custom side in data_abc/sides and put a folder named "textures" with all my ground textures in it
I also made a .req folder with a day.req. In the day .req i put this
uctf
{
REQN
{
"texture"
"name of textures"
}
}
Then in the sidename.req I put this
uctf
{
REQN
{
"lvl"
"day"
}
}
I also put a clean.bat and munge.bat in the side folder
Munging the side I got a day.lvl in the right folder.
^this part so far i think is right
Now in my .lua under where I called for the customsky.lvl I also called for the customside so that each one contains 2 ReadDataFiles
I then deleted all the textures from the world 1 folder and copied the day.lvl to it's respective addon directory
There are also no errors in the bf2 error log or munge log
When I play the game there is no terrain ie no texture to terrain and when i turn or move the game crashes.
EDIT
Here's .lua
This is in script post load obviously script init is the next line
I made a custom side in data_abc/sides and put a folder named "textures" with all my ground textures in it
I also made a .req folder with a day.req. In the day .req i put this
uctf
{
REQN
{
"texture"
"name of textures"
}
}
Then in the sidename.req I put this
uctf
{
REQN
{
"lvl"
"day"
}
}
I also put a clean.bat and munge.bat in the side folder
Munging the side I got a day.lvl in the right folder.
^this part so far i think is right
Now in my .lua under where I called for the customsky.lvl I also called for the customside so that each one contains 2 ReadDataFiles
I then deleted all the textures from the world 1 folder and copied the day.lvl to it's respective addon directory
There are also no errors in the bf2 error log or munge log
When I play the game there is no terrain ie no texture to terrain and when i turn or move the game crashes.
EDIT
Here's .lua
Hidden/Spoiler: