Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/showpost.php on line 215

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/showpost.php on line 220

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 49

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 97

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 101

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 109

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 120

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 124

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 132

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 201

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/init.php on line 378

Deprecated: Assigning the return value of new by reference is deprecated in /home/pedrolito/www/colonization.fr/httpdocs/forum/includes/class_core.php on line 2518

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3451

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3584

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638

Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in [path]/includes/functions.php on line 3638
Forum Colonization.fr - Afficher un message - Projet de mod, caractéristique de terrain ...
Afficher un message
  (#2 (permalink)) Vieux
Robert Surcouf Robert Surcouf est déconnecté
Vétéran
 
Avatar de Robert Surcouf
 
Messages: 230
Tournois joués: 0
Tournois gagnés: 0
Par défaut Problème de programmation... S.O.S Xml - 25/10/2009, 21h52

Pour l'instant, les points 1 et 2 sont déjà programmés. Pour le point 3, j'ai encore quelques difficultés.

Est-ce que que quelqu'un peut m'aider à programmer en Xml?
D'abord, je n'arrive pas à programmer le coût en mouvement de 1/2.
Dans le fichier CIV4FeatureInfos.xml, j'ai essayé en vain deux solutions:

<iMovement>0.5</iMovement>
<iMovement>-1</iMovement>

Manifestement le "i" est pour "integer", donc l'ordinateur attend un entier, d'où son refus de mon "0.5". Le "-1" me semblait la solution parfaite, mais le jeu a planté (sans message d'erreur).
Quelqu'un peut me dire ce qu'il faut faire ?

Sinon, je me demande si j'ai bien fait de modifier le fichier en question, plutôt que de traiter les cases "vent" comme des aménagements ... Pour l'instant, les cases graphiquement sont extraordinairement moches, puisque j'ai repris les cases "glace". Les navires traversent littéralement la glace, ce qui donne un aspect atroce. Mais, dans tous les cas les caractéristiques de terrain sont codées à l'aide de fichier .nif. Or, je ne sais pas modifier les fichier .nif...
Graphiquement, ça a l'air plus simple de passer par les aménagements (et modifier CIV4ImprovementInfos.xml ), mais je ne sais pas modifier (non plus) les mouvements (ni dans un sens ni dans l'autre...)
Réponse avec citation