Author Topic: Help needed :)  (Read 2516 times)

brlmnd

  • Jr. Member
  • **
  • Posts: 58
  • Living for a better world.
    • View Profile
Help needed :)
« on: July 30, 2015, 08:09:50 pm »
I have designed few maps and now I want to push forward and make a dungeon, but first I want to have the lltp dialog box, the menu, the health bar, the mana bara and to be able to select the items I want to use(also the item i`m using, they are showed on the left side of the screen).

I have watched the Tutorial 5, where Christopho is showing how to do it, but the quest is not loading at all.

The error i`m getting is: Error: In on_finished: [string "main.lua"]:21: attempt to call method 'start_game' (a nil value)

Quest is here: https://www.dropbox.com/sh/4heq8ftb3sg1kty/AADRKVvTzyzvn9s-Fzx67qIFa?dl=0

Big thank you for making this available!:)
« Last Edit: July 30, 2015, 08:17:24 pm by brlmnd »

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: Help needed :)
« Reply #1 on: July 31, 2015, 01:23:10 pm »
As the error message says, there is no start_game() method on game_manager. If y look at the main.lua of chapter 5, I don't call such a function.

brlmnd

  • Jr. Member
  • **
  • Posts: 58
  • Living for a better world.
    • View Profile
Re: Help needed :)
« Reply #2 on: July 31, 2015, 01:32:09 pm »
I have removed the start_game() from main.lua, but still not working.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: Help needed :)
« Reply #3 on: July 31, 2015, 01:58:07 pm »
You removed it but did you replace it by some code that start a game? Like the main.lua of chapter 5?
Do you have an error message?

brlmnd

  • Jr. Member
  • **
  • Posts: 58
  • Living for a better world.
    • View Profile
Re: Help needed :)
« Reply #4 on: July 31, 2015, 11:45:28 pm »
OMG is working again, I`ve copyed the code from chap5 :D mail.lua.. it works now.. but in the error.txt is bigger :)) check this out

Error: In on_started: [string "main.lua"]:23: attempt to index global 'game' (a nil value)
Error: In on_finished: [string "main.lua"]:21: attempt to index global 'game' (a nil value)
Error: Failed to load script 'main': [string "main.lua"]:20: 'then' expected near 'exist'
Error: In main: attempt to call a string value
Error: Failed to load script 'main': [string "main.lua"]:20: 'then' expected near 'exist'
Error: In main: attempt to call a string value
Error: In on_finished: [string "main.lua"]:21: attempt to index global 'game' (a nil value)
Error: In on_finished: [string "main.lua"]:21: attempt to index global 'game' (a nil value)

brlmnd

  • Jr. Member
  • **
  • Posts: 58
  • Living for a better world.
    • View Profile
Re: Help needed :)
« Reply #5 on: August 01, 2015, 12:20:21 am »
I think i`ll move the maps to a more complete quest editor, which one do you recommend? ZSDX or Mercuris Chest?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: Help needed :)
« Reply #6 on: August 01, 2015, 12:32:19 am »
ZSDX.