Jump to content
Sign in to follow this  
ACES_KEVIN

Town names in wrp edit

Recommended Posts

Hey im workin a new island...

great new island

I was wondering how do u get town names to appear on the map for a new island in the game and in the editor. I have heard some about hpp files etc etc but can some1 please clear it up for me once and for all...

Please be fairly comprhensive!

Kevin

edit: ralphwiggum: pic size > 100kb!

Share this post


Link to post
Share on other sites

Not sure exactly what u mean, but if u want words to appear in mission editor map from wrpedit, the words have to created in the config files of your island.

Basically the command to ofp engine is 'class' - to inform the engine something new.

Rather than to go whole hog into C++ object orientated programming tutorial, the fastest way is to :-

1. Depbo an unofficial island

2. Look into the config file

3. change the names to the ones u want.

4. Play around with the co-ordinates to place it where u want the names to appear, eg - ( 0, 0 ) starts at the left hand bottom of mission editor and follows the map convention of starting ( x = height ( vertical axis), y = length ( horizontal axis) = meaning up then to the left in the case of (0, 0). If (1,2) means up 1 and left 2.

Another option is to place objects during wrpedit, eg - a signboard object named alicetown and when u move the mouse over the object in mission editor, alicetown name appears. ( didn't try this option as i have not use own objects on map yet, it worked for ofp objects though)

PS:- remember to acknowledge the guy's config file u used when u release the final island, its a courtesy for without them we would be nowhere. In my case i learnt it from Snypir's tutorial and tazman's DrNoisland.

Share this post


Link to post
Share on other sites

Thanks ill give it a try i figured it was somethin to that affect just was wonderin if i could figure it out without havin to depbo anothers work.....always been hesitant to do that ppl are so picky these days often when u give credit...

Kevin

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class Names

{

    class cityName1

    {

    name="My City 1";

    position[]={7500, 10500, 0};

    };

    class cityName2

    {

    name="My City 2";

    position[]={10500, 6500, 50};

    };

};

<span id='postcolor'>

Put this on your cpp. Use the x,y,z, coordinate on the bottom of wrpedit. Place your mouse over the city and use the xxxx,yyyy,zzzz to place in position[]={}.

Bye

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×