Custom Locations: HowTo

Create you own locations, boards, graphics...
Jerome
Site Admin
Posts: 1035
Joined: Tue Apr 04, 2006 7:43 pm
Location: Munich, Germany
Contact:

Custom Locations: HowTo

Post by Jerome » Tue Dec 22, 2009 5:51 pm

Last Update: 24/12/2009 12:21

Hi Everybody!

This is a small guide explaining how to create a custom location of you own. I will update this article as often as necessary, modifying the date at the top when I do so.

If there is any question regarding custom locations creation, please use this thread! :wink:

A location is completely defined inside its file "custom_location_X.loc", situated inside the media/models directory. The X in the name is for its ID, which can be between 0 and 9, meaning that the game is able to handle 10 different locations at the same time.

So you could start with making a copy of "custom_location_0.loc" named custom_location_1.loc, and work on it.
You can start editing the custom_location_1.loc file now, a lot of parameters can be set. You can edit it with any text editor, this is a simple text file.
Be aware, Y is the UP direction, X FRONT (when facing waves) and Z SIDE. Units are Meter and Radian for angles.

You could edit the image file "custom_location_1.png" situated inside the media/materials/textures. This image is the one that can be seen inside the locations menu.

PRESS "I" during the game to show the information window showing the camera position, this helps when identifying precise coordinates.



*************** 3D OBJECTS ******************

You have to create 3D objects for your scene, using for example Blender which is free. You will need to create a landscape object (ground of the landscape, players will be walking on it) and all other objects of the environment.

To create objects you will need to:
-Download and install Python 2.6.4 (Blender needs it): http://www.windsurfing-the-game.com/MMX ... -2.6.4.msi
-Download and install Blender 2.49b (use "installation directory for user data" when asked for it):
http://www.windsurfing-the-game.com/MMX ... indows.exe
-Download and install the mesh exporter for blender (extract the files inside the directory .blender/scripts):
http://www.windsurfing-the-game.com/MMX ... Export.zip
-Download and install the xml converter for the game (converts xml into mesh format, can be called directly from inside Blender if you set it inside the preferences from the xml exporter!):
http://www.windsurfing-the-game.com/MMX ... onvert.rar

2 very good tutorials for starters should be followed for this:
http://www.windsurfing-the-game.com/MMX ... N-v1.0.pdf
http://www.windsurfing-the-game.com/MMX ... N-v1.1.pdf
from http://www.blendercourse.com/English.aspx


Basically the steps are as follows:
Create model in blender -> Export as .mesh + .material -> copy the .mesh inside "models", .material inside "materials/scripts" and your textures inside "materials/textures" -> copy and paste a new "New Object" block inside the .loc file and set parameters for it -> Play!

Mesh Objects should be saved inside the models directory
->Materials for objects or sky should be saved inside the materials/scripts directory (example: shorebreakcoast inside the file "shorebreakcoast.material", NoonSkyBox4 inside "Sky.material")
->Textures for those materials are situated inside the directory materials/textures
->Shader programs used by those materials should be placed inside the materials/programs directory

Try to use very unique names for all your objects or materials to avoid future conflicts with other locations!



*************** SKYDOME ******************

A very good tool for creating skydomes, Terragen:
http://www.windsurfing-the-game.com/MMX ... ll0943.msi


Use the OGRE3D homepage and the BLENDER tutorials if you need more help... 8)
Last edited by Jerome on Thu Dec 24, 2009 1:27 pm, edited 10 times in total.

George Levandis
Posts: 156
Joined: Wed May 13, 2009 2:51 pm
Location: Volos-Greece
Contact:

Post by George Levandis » Tue Dec 22, 2009 7:39 pm

Hi Jerome.Do we have to own a 3d modeeling program such as bledner in order to create our location?If yes,could you tell a bit more about the meshes?

GEO 8)

Jerome
Site Admin
Posts: 1035
Joined: Tue Apr 04, 2006 7:43 pm
Location: Munich, Germany
Contact:

Post by Jerome » Tue Dec 22, 2009 10:12 pm

Yes, Blender with its exporter. I will add something about this.

umpljn
Posts: 207
Joined: Sat Sep 05, 2009 7:54 pm
Location: Essen, Germany
Contact:

Post by umpljn » Tue Dec 22, 2009 10:23 pm

yes this would be very nice: I like this .loc file and its functions but now i have to know how to change something on the landscapes

George Levandis
Posts: 156
Joined: Wed May 13, 2009 2:51 pm
Location: Volos-Greece
Contact:

Post by George Levandis » Tue Dec 22, 2009 10:49 pm

It wold be better if you could make a step to step instruction guide.I think it would be much better.I still don't know how to edit and customize the loc file.Also it would be perfect if you could make a video in blender if it is possible.

GEO 8)

Jerome
Site Admin
Posts: 1035
Joined: Tue Apr 04, 2006 7:43 pm
Location: Munich, Germany
Contact:

Post by Jerome » Tue Dec 22, 2009 10:54 pm

The loc file has some explanation inside it.
A video will be difficult, but a small guide should come tomorrow. :wink:

George Levandis
Posts: 156
Joined: Wed May 13, 2009 2:51 pm
Location: Volos-Greece
Contact:

Post by George Levandis » Tue Dec 22, 2009 10:57 pm

Jerome wrote:The loc file has some explanation inside it.
A video will be difficult, but a small guide should come tomorrow. :wink:
How i can see the explanation from the loc file?

Jerome
Site Admin
Posts: 1035
Joined: Tue Apr 04, 2006 7:43 pm
Location: Munich, Germany
Contact:

Post by Jerome » Tue Dec 22, 2009 10:59 pm

The loc file is a text file, it can be edited with any text editor, e.g. the notepad.

George Levandis
Posts: 156
Joined: Wed May 13, 2009 2:51 pm
Location: Volos-Greece
Contact:

Post by George Levandis » Tue Dec 22, 2009 11:02 pm

Thanks,and now what i have to edit.The meshes,the materials?

dvorak12
Posts: 1
Joined: Wed Dec 23, 2009 10:43 am

Post by dvorak12 » Wed Dec 23, 2009 10:45 am

Huuuuum, the same in french please !

umpljn
Posts: 207
Joined: Sat Sep 05, 2009 7:54 pm
Location: Essen, Germany
Contact:

Post by umpljn » Wed Dec 23, 2009 12:27 pm

if cann not speak english very well then usw google translater

umpljn
Posts: 207
Joined: Sat Sep 05, 2009 7:54 pm
Location: Essen, Germany
Contact:

Post by umpljn » Wed Dec 23, 2009 7:33 pm

hey jerome one question when i am exporting my landscape im always getting alot of mesh.xml but i only need one mesh.xml to convertinto mesh so how can i export all elements into one mesh

Sam
Posts: 19
Joined: Sat Apr 25, 2009 11:39 pm

Post by Sam » Thu Dec 24, 2009 2:05 am

when i edit the location text file in notepad i cannot save it after it has been edited

umpljn
Posts: 207
Joined: Sat Sep 05, 2009 7:54 pm
Location: Essen, Germany
Contact:

Post by umpljn » Thu Dec 24, 2009 12:20 pm

what operating software are you using when you are using vista or windows7 it could be posible that you havent the rights to edit this files but you can cahnge it when you are clicking the right button of your mouse then clicking attitudes. after this Security an when you are clicking this you can edit your sucess mode and change it to full sucess

Jerome
Site Admin
Posts: 1035
Joined: Tue Apr 04, 2006 7:43 pm
Location: Munich, Germany
Contact:

Post by Jerome » Thu Dec 24, 2009 1:19 pm

umpljn wrote:hey jerome one question when i am exporting my landscape im always getting alot of mesh.xml but i only need one mesh.xml to convertinto mesh so how can i export all elements into one mesh
You could either merge all objects together then export them (save your work first) or use the mesh to be walked on as the landscape, and the other meshes as extra objects. There is a maximum of 100 objects for the whole scene, though... :roll:

Post Reply