Community Forum

Problem with PDA

Forum Overview >> Editor

CategoryEditor
Created03.06.2013 22:53


Cosmin Cristea (Unknown) 03.06.2013 23:01
Hello
I'm a problem with the PDA or the map i'm not sure but i have made the PDA for the map and i have savede the i3d file but she not need to be save...and the editor or the game shouldn't to open the map can yours to help me plz???
sorry my bad englsh.
In french :
Bonjour
J'ai un probleme avec le PDA ou avec la map je n'suis pas sur car j'ai fait le PDA sur la carte et une fois que j'ai fait la camera je n'aurait pas du sauvergarder mais malheuresment je l'ai fait...et l'editeur et le jeux ne veut pas ouvrir la map pouriez vous m'aider svp???
In Roumanian
Salutari
Am o problema cu PDA-ul sau cu mapa caci cand am facut PDA ul nu trebuia sa salvez cu aceea camera facuta in editor si din greseala am salvat sia cum nici editorul nici jocul nu vrea sa-mi deschida mapa ma puteti ajuta va rog???

Cosmin Cristea (Unknown) 03.06.2013 23:01
Hello
I'm a problem with the PDA or the map i'm not sure but i have made the PDA for the map and i have savede the i3d file but she not need to be save...and the editor or the game shouldn't to open the map can yours to help me plz???
sorry my bad englsh.
In french :
Bonjour
J'ai un probleme avec le PDA ou avec la map je n'suis pas sur car j'ai fait le PDA sur la carte et une fois que j'ai fait la camera je n'aurait pas du sauvergarder mais malheuresment je l'ai fait...et l'editeur et le jeux ne veut pas ouvrir la map pouriez vous m'aider svp???
In Roumanian
Salutari
Am o problema cu PDA-ul sau cu mapa caci cand am facut PDA ul nu trebuia sa salvez cu aceea camera facuta in editor si din greseala am salvat sia cum nici editorul nici jocul nu vrea sa-mi deschida mapa ma puteti ajuta va rog???

Sven2157 (Unknown) 04.06.2013 04:13
The pda_map.dds is relevant to your map_dem.png used to create the terrain; as well as the number set within the editor for: Units per pixel. I have found that these two maps MUST be the exact same, for the PDA to display your position correctly.

I have also found in the LUA file, that you can adjust the size of both the PDA, and the map for resetting the vehicles, available by hitting ESC Key( sorry I don't know what the key is for a French keyboard )

Have a look in your LUA file, and find these two lines:

- self.missionPDA:loadMap(Utils.getFilename("pda_map.png", self.baseDirectory), X_POS, Y_POS);
- g_inGameMenu:setMapViewsMap(Utils.getFilename("pda_map.png", self.baseDirectory), X_POS, Y_POS);

Note that X_POS and Y_POS will need to be numbers YOU set, that are approximately your maps size in pixels. So if your map is 2048px X 2048px, and your terrain is set to 1 unit per pixel, your lines will need to be:

- self.missionPDA:loadMap(Utils.getFilename("pda_map.png", self.baseDirectory), 2048, 2048);
- g_inGameMenu:setMapViewsMap(Utils.getFilename("pda_map.png", self.baseDirectory), 2048, 2048);

Either way, adjusting those numbers will make the map bigger( or smaller ) when viewing them in the PDA and ESC menu.

Hope that helps! ;-)

Sven2157


In French( translate.google.com ):

Les pda_map.dds est pertinent pour votre map_dem.png utilisé pour créer le terrain, ainsi que le nombre fixé à l'intérieur de l'éditeur pour: Unités par pixel. J'ai trouvé que ces deux cartes doivent être exactement la même, pour le PDA pour afficher votre position correctement.

J'ai aussi trouvé dans le fichier LUA, vous pouvez ajuster la taille à la fois du PDA, et le plan pour réinitialiser les véhicules, disponibles en appuyant sur ESC (désolé je ne sais pas ce que l'essentiel est pour un clavier français)

Jetez un œil dans votre fichier LUA, et de trouver ces deux lignes:

  - Self.missionPDA: LoadMap (Utils.getFilename ("pda_map.png", self.baseDirectory), X_POS, Y_POS);
  - G_inGameMenu: setMapViewsMap (Utils.getFilename ("pda_map.png", self.baseDirectory), X_POS, Y_POS);

Notez que X_POS et Y_POS devront être des numéros que vous définissez, qui sont à peu près la taille de votre carte de pixels. Donc, si votre carte est 2048px X 2048px, et votre terrain est fixé à 1 unité par pixel, vos lignes devront être:

  - Self.missionPDA: LoadMap (Utils.getFilename ("pda_map.png", self.baseDirectory), 2048, 2048);
  - G_inGameMenu: setMapViewsMap (Utils.getFilename ("pda_map.png", self.baseDirectory), 2048, 2048);

De toute façon, en ajustant ces chiffres fera la plus grande carte (ou plus petit) lors de leur visualisation dans le PDA et le menu ESC.

Hope that helps! ;-)

Sven2157

Cosmin Cristea (Unknown) 04.06.2013 07:53
NO the PDA is at right format but the problem is that: I create a camera in the i3d of the map and y have saved....
Look y have using this tutorial:http://www.farming-simulator.info/index.php/topic,3400.0.html
but at the step 6 i haven't read and y have closed and saved and now y can't to open the map on the game or the editor ...
I have uploaded here the i3d of the map(just i3d):http://www.superupload.com/?d=HJGFMXJ1
Can you do so that the map to open in the editor again??
please please please please please please please please please please please please....

PS:I have made this topic in english,french,and roumanian but y'm from roumanian and y speek these 3 language ;)
PS²:The ESC key in french is echap ;)

Cosmin Cristea (Unknown) 04.06.2013 09:49
Anyone???

Cosmin Cristea (Unknown) 04.06.2013 11:32
appears when I open it:http://s24.postimg.org/tdr8di2ol/F_r_titlu.png

Cosmin Cristea (Unknown) 04.06.2013 11:32
[url=http://postimage.org/][img]http://s24.postimg.org/tdr8di2ol/F_r_titlu.png[/img][/url]
[url=http://postimage.org/index.php?lang=french]hébergement gratuit d'images[/url]

Sven2157 (Unknown) 04.06.2013 15:04
Quote=Cosmin Cristea (cosmincoco)
"please please please please please please please please please please please please...."

This is completely unnecessary, and quite frankly, very immature. So is posting every hour! If you want help, ask like an adult and then wait patiently! If someone can help, they will post.

Now, I downloaded the map( 119MB ), but ALL the files are missing. When I try to load it in the editor, it shows a bunch of errors, then crashes my editor. I believe that your file is corrupt. You should work with a back up.

Cosmin Cristea (Unknown) 06.06.2013 07:13
Sorry
Now,I have uploaded the map here with all the filles: http://speedy.sh/djk64/SampleModMap.zip
You can to help me now please???

Sven2157 (Unknown) 09.06.2013 08:18
Downloading it... I will let you know what I find. ;-)

Sven2157

Sven2157 (Unknown) 10.06.2013 15:35
Ok ...

I got it to load ... You have A LOT of problems in this map; outdated shader.xml's, texture issues, models with incorrect UV indexes, etc, etc ...

However, to get it to load again:
- Download and install Notepad ++( http://notepad-plus-plus.org/download/v6.3.3.html ).
- Once installed, right click the map.i3d file, and choose 'Edit with Notepad++'.
- In the file bar, click 'Search >> Go to...'
- In the box type 1875179.

This will take you to where the 'GARAJ MASINI&SERVICE' transform starts. Do you know what an AMPERSAND is? It is this symbol: & <-- that is what won't let the map open! You can't have these symbols in the XML file, WITHOUT the proper encoding; in this case they are called HTML ENTITIES.

You can learn about HTML ENTITIES here: http://w3schools.com/html/html_entities.asp

So that ampersand( & ) symbol, needs to be written like this: &amp;

Note: The semi-colon( ; ) must be at the end! The editor now, should display it properly, but won't think the ampersand( & ) is part of the code for the map.

So the whole thing looks like this:

<TransformGroup name="garaj masini&amp;service" translation="192.189 217.079 51.0404" nodeId="21907">

Save it, and then open your map.

Hope that helps! ;-)

Sven2157

*** EDIT ***
In case you have a hard time with that, I have uploaded the map to my web server. Here is the link to get your FIXED map back:

http://170thclan.com/tk0hUploads/SampleModMap.zip - ( 414MB )

Sven2157

Cosmin Cristea (Unknown) 10.06.2013 21:44
OOO Thank,very thank "Sven2157"
The map it's corectly running now :D
But i know she have a lot of errors the map but it's just shaders and y gonna to convert this ...
Now what's your name y have make you on the specialy thanks on the map ;)

cosmincoco

Sven2157 (Unknown) 10.06.2013 21:50
You are welcome! ;-) ( and thank you for being patient! ). There is A LOT of work there; it would have been a shame to have lost it all. NOW BACK IT UP! LOL! ;-)

Sven2157 will be fine.

Let me know if you need anything else!

Sven2157

Cosmin Cristea (Unknown) 10.06.2013 21:57
Ok
I wish to thank you again for your help ... not everyone would have done
A bag of thanks: D


Note: Log in to post. Create a new account here.