Sujet n°9808
Posté par Baschv le 26 Mai - 18:26 (2011)
Titre : Problème du script API, ball1.png_équipe
Voila tout est dans le titre quasiment^^
J'oubliais: "Bonjour chers lecteurs, et bienvenue sur ce topic passionnant que je viens de créer =D"
(c'est bien comme ça? )
Donc voila, quand je joue et que je veux ouvrir la description d'un pokémon de mon équipe, un message d'erreur s'affiche
Spoiler

????? ' Pokemon_status*' ? 182 ??? Errno::ENOENT ????????
No such file or directory - Graphics/Pictures/ball1.png_équipe

edit: je tiens à préciser que j'ai copié les images et le script du projet original PSPDS0.3 et que je n'ai appliqué aucune modification dessus, c'est donc exactement la même chose dans les deux cas, mais le bug ne survient que dans mon projet ...

Posté par Pαlвσlѕку le 26 Mai - 21:45 (2011)
Tu as oublié de mettre à jour ton fichier data_ball.txt qui se trouve dans le dossier data.

Voilà ce que tu devrais avoir :

Code:
#-------------------------------------------------------------
# Fichier de données : balles de captures
# Pokemon Script Project - Krosk
# 31/12/07
#-------------------------------------------------------------
# $data_ball
#   [Nom, paramètre, sprite fermé, sprite ouvert, Couleur]
#   sprite fermé/ouvert : image au format png
#   paramètre : paramètres de capture
#   couleur : class Color
#-------------------------------------------------------------

$data_ball[1] = ["POKé BALL", 1, "ball1", "ballopen1.png", Color.new(255,210,233,255)]
$data_ball[2] = ["SUPER BALL", 1.5, "ball2", "ballopen2.png", Color.new(0,157,255,255)]
$data_ball[3] = ["HYPER BALL", 2, "ball3", "ballopen3.png", Color.new(255,242,0,255)]
$data_ball[4] = ["MASTER BALL", 99, "ball4", "ballopen4.png", Color.new(255,0,242,255)]
$data_ball[5] = ["FILET BALL", ["type", [3, 12], 3 ], "ball5", "ballopen5.png", Color.new(152,248,168,255)]
$data_ball[6] = ["FAIBLO BALL", ["level", "(40 - %d)/10.0" ], "ball6", "ballopen6.png", Color.new(152,248,56,255)]
$data_ball[9] = ["CHRONO BALL", ["time", "(%d+10)/10.0", 4 ], "ball9", "ballopen9.png", Color.new(216,96,80,255)]
$data_ball[10] = ["HONOR BALL", 1, "ball10", "ballopen10.png", Color.new(208,40,40,255)]
$data_ball[11] = ["LUXE BALL", 1, "ball11", "ballopen11.png", Color.new(248,216,104,255)]

Posté par Baschv le 27 Mai - 13:07 (2011)
Merci beaucoup ^^ ça marche nickel maintenant
au passage j'aime bien ce que tu fais =P( un peu de lèche n'a jamais fait de mal a personne xD)