CAAD
http://foro.caad.es/

Errores en compilacion Inform 7 (build 5U92)
http://foro.caad.es/viewtopic.php?f=12&t=3139
Página 1 de 1

Autor:  Excessus [ 04 Jun 2009 20:26 ]
Asunto:  Errores en compilacion Inform 7 (build 5U92)

Buenas...

Hace un tiempo empecé una aventura con Inform 7 y la llevaba bastante avanzada hasta que me aburrí... ahora me ha vuelto a picar el gusanillo y me he bajado la última versión, la 5U92 y protesta con un centenar de cosas que hace poco estaban bien!

A ver si podeis echarme una mano porque no entiendo algunos problemas.

Por ejemplo :

Código:
The floor is backdrop in the prison cart. The floor can be broken or unbroken. The description is "The floor is made of strong wooden planks. [if the floor is broken]There is a gap on the floor now which you can use to escape.[otherwise] There is a loose table in the wooden door. You are confident that with a bit of effort, you can manage to break it out."


Da el siguiente error :

Citar:
Problem. In 'The floor can be broken or unbroken' , you proposed the new either/or property 'broken': but this already has a meaning.


Esto me parece de lo más básico... ¿qué hay de mal?

Gracias!

Autor:  grendelkhan [ 04 Jun 2009 23:43 ]
Asunto: 

Hola excessuss, Inform 7 ha cambiado drásticamente su forma de trabajar, muchos códigos de hace un año no funcionan en la nueva versión, igual tienes que tocar muchas cosas.

Acuerdate de incluir la nueva libreria Spanish del infsp7 tal que así al principio de tu código:
Código:
Include Spanish by Sebastian Arg.
Include Basic Screen Effects Sp by Emily Short.

Mírate el capítulo 4.6. New either/or properties de la ayuda de Inform 7, te propone cosas como éstas:

Código:
A dead end is either secret or ordinary.
A dead end can be secret.
A room is either indoors or outdoors.
A dead end is usually secret. A room is usually indoors.
The umbrella is carried by the player. The umbrella can be open. The umbrella is open.


Y te da un ejemplo compilable:

Código:
"Change of Basis"

A person is either awake or asleep. A person is usually awake.

[The important thing to note here is that it does not work to say "the player is either asleep or awake". This is because the player is not necessarily one specific person or thing during the game: the identity of the player can be changed, as we will see later.]

[So if we want to make rules about the properties of the player, we should attach these rules to the "person" kind (or, if they really need to belong only to the player, to the "player-character" kind). A player-character is a kind of person.]

Linear Algebra Class is a room. "The blackboard is covered with square arrangements of numbers. These are supposed to convey something to you, but mostly you're finding them soporific."

[Now a few rules about changing from one state to the other:]

Instead of sleeping: now the player is asleep; say "You drop off."

Instead of doing something other than waking up, waiting or sleeping when the player is asleep:
   say "Ssh! You're sleeping!"

Instead of sleeping when the player is asleep:
   say "Zzzz."

Instead of waking up when the player is asleep:
   now the player is awake;
   say "You come to suddenly, wiping drool from your lips."

Instead of doing something other than looking or sleeping when the player is awake:
   say "You'd really rather just sleep through this."

Test me with "wake up / sleep / look / z / sleep / wake up / look".
Part 0 - Library Card, Includes y Uses

Autor:  tesheñes [ 06 Jun 2009 23:54 ]
Asunto:  Re: Errores en compilacion Inform 7 (build 5U92)

hola excessus.

Excessus escribió:
...me he bajado la última versión, la 5U92


stop!
la ultima version es la 5Z71 (25 de abril de 2009)
Actualiza tus bookmarks a inform7.com y bajate la ultima version.

Excessus escribió:
Da el siguiente error :

Citar:
Problem. In 'The floor can be broken or unbroken' , you proposed the new either/or property 'broken': but this already has a meaning.


Esto me parece de lo más básico... ¿qué hay de mal?

Gracias!


Parece que ya has definido 'broken' anteriormente en tu codigo.

Página 1 de 1 Todos los horarios son UTC + 1 hora
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/