Author Topic: Menu de game-over + inventaire en 1.6  (Read 70 times)

Lucifer

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Mon site
Menu de game-over + inventaire en 1.6
« on: January 14, 2018, 07:04:56 pm »
Bonsoir à tous !
Alors, je crée un jeu avec Solarus, mais je voudrais coder un menu de game-over ainsi qu'un inventaire, car quand je l'allume, ça me fait :
Code: [Select]
Info: Solarus 1.6.0
Info: Opening quest 'C:/Users/Hpo/Desktop/The legend of Zelda Hyrule Adventure'
Info: Sound volume: 100
Info: Music volume: 100
Info: Joypad support enabled: true
Info: 2D acceleration: yes
Info: Turbo mode: no
Info: Video mode: normal
Info: LuaJIT: yes (LuaJIT 2.0.3)
Info: Language: fr
Info: Lua console: yes
Info: Simulation started
Error: In on_started: scripts/menus/pause_submenu.lua:39: No value with key 'save_dialog.yes' in strings.dat for language 'fr'
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
Error: In on_finished: scripts/menus/pause_inventory.lua:84: attempt to call method 'get_hud' (a nil value)
Info: Simulation finished

pour l'inventaire, et pour le game-over, je redémarre juste...
Pourriez-vous m'aider, s'il vous plaît ?
En attente de votre réponse,
Lucifer
« Last Edit: January 14, 2018, 07:06:58 pm by Lucifer »

froggy77

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Menu de game-over + inventaire en 1.6
« Reply #1 on: January 14, 2018, 09:30:44 pm »
Cela va être difficile de t'aider sans voir le contenu des fichiers en question, si tu ne connais pas quelques bases du lua et si tu ne comprends pas les messages d'erreur qui sont pourtant dans un anglais assez simple.
Que veulent dire, selon toi, ces lignes d'erreur?
Quote
Error: In on_started: scripts/menus/pause_submenu.lua:39: No value with key 'save_dialog.yes' in strings.dat for language 'fr'
Error: In on_draw: scripts/menus/pause_submenu.lua:110: attempt to index field 'caption_text_2' (a nil value)
« Last Edit: January 14, 2018, 09:35:02 pm by froggy77 »

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1055
    • View Profile
Re: Menu de game-over + inventaire en 1.6
« Reply #2 on: January 14, 2018, 09:39:59 pm »
D'après le premier message d'erreur, je dirais que tu as oublié de mettre en place une langue.

sol.language.set_language("fr")

Finkatore

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Menu de game-over + inventaire en 1.6
« Reply #3 on: January 15, 2018, 11:29:20 am »
If I did not read it, I would not benefit from it.

Lucifer

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Mon site
Re: Menu de game-over + inventaire en 1.6
« Reply #4 on: January 15, 2018, 05:36:02 pm »
Maintenant, ça me fait ça :
Code: [Select]
Info: Solarus 1.6.0
Info: Opening quest 'C:/Users/Hpo/Desktop/The legend of Zelda Hyrule Adventure'
Info: Sound volume: 100
Info: Music volume: 100
Info: Joypad support enabled: true
Info: 2D acceleration: yes
Info: Turbo mode: no
Info: Video mode: normal
Info: LuaJIT: yes (LuaJIT 2.0.3)
Info: Language: fr
Info: Lua console: yes
Info: Simulation started
Info: Language: fr
Error: In on_started: scripts/menus/pause_submenu.lua:72: attempt to call method 'set_custom_command_effect' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_draw: scripts/menus/pause_inventory.lua:195: attempt to index field 'cursor_sprite' (a nil value)
Error: In on_finished: scripts/menus/pause_inventory.lua:84: attempt to call method 'get_hud' (a nil value)
Info: Simulation finished
pour l'inventaire, j'ai pris les ressources de zelda xd2