OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Terox on 06 Feb 2005, 22:50:25
-
I have created an island as part of a mod, using wrptool v0.950
The island .wrp file isnt in an external .pbo file
it is located in the mod\worlds folder.
The mod config has been edited, so that it is listed in the class cfgworlds
It derives from the defaultworld
class zm_desert:DefaultWorld
{
access=3;
description="test Island";
icon="_training.paa";
worldName="..\Zeusmod\Worlds\zm_desert.wrp";
// worldName="zm_deserttest.wrp";
plateFormat="ML$ - #####";
plateLetters="ABCDEGHIKLMNOPRSTVXZ";
startTime="12:00";
startDate="10/4/95";
startWeather=0;
startFog=0.0;
forecastWeather=0;
forecastFog=0.0;
seagullPos[]={8897,4349,100};
ilsPosition[]={0,0,0};
ilsDirection[]={0,0.08,1};
ilsTaxiIn[]={};
ilsTaxiOff[]={};
centerPosition[]={9735,3964,0};
cutscenes[]={"..\Zeusmod\Worlds\Isle_Intros\intro"};
class Sounds
{
sounds[]={};
};
class Animation
{
vehicles[]={};
};
class Names
{
};
};
The mod config has been edited, so that the island class is listed in the cfgworlds list
eg
class zm_desert
{
};
The island loads ingame
however
I cannot get it to display the surface textures, it shows plain white
Having read through the various posts that have raised issues on this, most of them point to issues with the .wrp file not being able to load the texture because the texture isnt in the addons folder etc
My sa.paa file, which is the base texture, is placed in a zm_isle.pbo
This texture is mapped in wrptool
I have followed the .wrptool manual in setting up my folders paths for the directories and textures.
The textures display within wrptool
however i cannot get this texture to load ingame.
my best guess is that internally within the config, i have to assosciate the .pbo file with the island class
Unlike most islands, our islands configs are going to be held within the main config
so when it comes to looking at how others have done it, there doesnt seem to be a similar example
where am i going wrong ????
-
I don't know about WrpTool, but, in WrpEdit the texture paths are listed thus:
For example
cain\jp.paa
So the texture is in the Cain.pbo and is called jp.paa.
I imagine if you have your textures in a folder called zm_isle, and this folder is in the WrpTool path, then when you place the island in game you must have a zm_isle.pbo in your Addons folder or your mods Addon folder, and this PBO should also contain these textures.
If I have misunderstood your problem please say.
Planck
-
thats exactly what i have, but the island doesnt load the terrain textures ingame, i just get plain white everywhere, apart from the sea of course
when setting up wrptool, it asks you to give the root directory, where all your p3d and texture files are located.
Not every folder, just your root folder
it then allows you to add textures or objects in the texture & objects browser
these are specifically mapped to individual files, pathed from your root folder
my root folder path
d:\games\operationflashpoint\zeusmod
you cannot manually edit this path to say
..\zeusmod
or
\bis\zeusmod
-
Try this first:
Take a copy of your texture PBO, and put it into the standard Addons folder...........see if that fixes it.
Planck
-
thx for the input, i managed to fix the problem
although it doesnt make it clear in the manual, the root folder needs to be pointed to the folder that is 1 level up from the .pbo file
eg mod\addons
amazing that such a small missing statement in the manual has caused me hours of work
-
Glad you got it fixed ;D
Planck
-
I don't know what manual you got there, but the one I read devoted 2 pages on stressing that you have to get this right. ::)
Now I do admit that this part of the manual is, not optimally written (big understatement), but it certainly was mentioned.
Good luck on the rest of the work on the island, hope it turns out nice!