Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Nejde spustit hra  (Read 8217 times)

0 Members and 1 Guest are viewing this topic.

B-i-g-b-o-s-s

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
    • View Profile
Nejde spustit hra
« on: May 24, 2005, 02:15:58 PM »

Uz docela dost sem mel hotovy z me hry tak jsem chtel vyzkouset jestli sem neudelal nekde nejakou chybu tak jsem si chtel vyzkouset jestli mi to funguje tak jsem pustil hru zeptalo se me to jako vzdycky na hardware a kdyz jsem to chtel spustit tak nic cerna obrazovka a vyplo se to. Neví nekdo cim to muze byt?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Nejde spustit hra
« Reply #1 on: May 24, 2005, 02:23:14 PM »

Pokud hru spoustis z ProjectManu, podivej se do logu (wme.log v adresari s projektem). Pokud spoustis uz zkompilovanou hru, zapni si v ni debug mod (jak na to je popsano TADY) a pak se podivej do logu (wme.log v adresari hry). V tom logu nejspis objevis chyby typu "nepodarilo se otevrit soubor xxx", coz znamena, ze nekde pouzivas napr. plnou cestu misto relativni a tak podobne.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

B-i-g-b-o-s-s

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
    • View Profile
Re: Nejde spustit hra
« Reply #2 on: May 24, 2005, 06:24:26 PM »

Do logu uz sem se dival ale tam sem nic neobjevil. Zadny error proste nic dokonce se to tam ani nezapise.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Nejde spustit hra
« Reply #3 on: May 24, 2005, 06:27:12 PM »

Tak pak jsou dve moznosti, budto se divas do spatnyho logu nebo nemas zapnutej debug mod.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

B-i-g-b-o-s-s

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
    • View Profile
Re: Nejde spustit hra
« Reply #4 on: May 24, 2005, 06:32:23 PM »

Sem měl vypnutej debug mod. To mě fakt nenapadlo.Tohle mi to hlásilo.

19:30: Syntax error in ITEMS definition
19:30: Error parsing ITEMS file 'items\items.items'
19:30: Error loading GAME definition
19:30: Error parsing GAME file 'default.game'
19:30: Error loading game file. Exiting.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Nejde spustit hra
« Reply #5 on: May 24, 2005, 06:44:19 PM »

Aha, takze chybka v items.items, nejaka ta chybejici/prebyvajici zavorka ci uvozovka..
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

B-i-g-b-o-s-s

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
    • View Profile
Re: Nejde spustit hra
« Reply #6 on: May 28, 2005, 03:37:13 PM »

Byla chyba v items už mi to šlape
Logged

B-i-g-b-o-s-s

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
    • View Profile
Re: Nejde spustit hra
« Reply #7 on: September 04, 2005, 04:21:49 PM »

mám zase stejný problém ale tentokrát mi to v logu píše
17:19: Fatal: Stack underflow

nějak sem nepochopil co to znamená
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Nejde spustit hra
« Reply #8 on: September 05, 2005, 07:37:32 AM »

mám zase stejný problém ale tentokrát mi to v logu píše
17:19: Fatal: Stack underflow

nějak sem nepochopil co to znamená
Hm, to se ti nejspis podarilo narazit na nejakou chybku ve skriptovacim enginu. Muzes mi poslat skript, ktery tuhle chybu zpusobuje?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

B-i-g-b-o-s-s

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
    • View Profile
Re: Nejde spustit hra
« Reply #9 on: September 05, 2005, 01:53:30 PM »

Mělo by to dělat něco z tohohle hlavně v tý druhý půlce po tom pasdialogue tam to vždycky spadne

Code: [Select]
on "Talk"
{
  actor.GoTo(339, 487);
  actor.TurnTo(DI_UP);
  Game.Interactive = false;
 
  Sleep(100);

    if(Statehospoda.b==3)
     {

        if(Statehospoda.bb==1)
          {
           actor.Talk("/bla0123/");
           this.Talk("/bla0127/");
           actor.Talk("/bla0128/");
           this.Talk("/bla0129/");
           this.Talk("/bla0130/");
     actor.Talk("/bla0131/");
          }
        else
          {
           actor.Talk("/bla0132/");
           this.Talk("/bla0127/");
           actor.Talk("/bla0128/");
           this.Talk("/bla0129/");
           this.Talk("/bla0130/");
           actor.Talk("/bla0131/");
          }
     }
     
     
     
    if(Statehospoda.b==1)
     {

         if(Statehospoda.bb==1)
          {
           actor.Talk("/bla0123/");
           this.Talk("/bla0124/");
          }
         else
          {
           actor.Talk("/bla0125/");
           this.Talk("/bla0126/");
          }
      }
 
    if(Statehospoda.b==2)
     {
         if(Statehospoda.bb==1)
          {
           actor.Talk("/bla0123/");
           this.Talk("/bla0124/");
          }
         else
          {
           actor.Talk("/bla0125/");
           this.Talk("/bla0126/");
          }
     }
 
  Sleep(100);
  pasDialogue();

  Game.Interactive = true;
}


////////////////////////////////////////////////////////////////////////////////
function pasDialogue()
{
  var Responses;
  var Selected;

  var Loop = true;

  while(Loop)
  {
   if(Stateulice.b=2)
    {
    Responses[1] = "/bla0133/";
    }
    Responses[2] = "/bla0134/";
    Responses[3] = "/bla0135/";


    if(Stateulice.b==2)
    {
    Game.AddResponse(1, Responses[1]);
     }
    Game.AddResponse(2, Responses[2]);
    Game.AddResponse(3, Responses[3]);


    Selected = Game.GetResponse();

    actor.Talk(Responses[Selected]);

    if(Selected==1)
    {
      this.Talk("/bla0136/");
    }

    if(Selected==2)
    {
      this.Talk("/bla0137/");     
      actor.Talk("/bla0138/");
      this.Talk("/bla0139/");
    }
    if(Selected==3)
    {
      this.Talk("/bla0140/");     

      Loop = false;
    }
  }
}


Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Nejde spustit hra
« Reply #10 on: September 05, 2005, 02:20:47 PM »

Aha, problem je v tomhle:

if(Stateulice.b=2)


Melo by tam byt ==
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

B-i-g-b-o-s-s

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
    • View Profile
Re: Nejde spustit hra
« Reply #11 on: September 05, 2005, 02:59:13 PM »

díky toho sem si nevšiml.Proč to nenahlásí normální chybu, ale vypne se to já už jednou podobnou chybu měl a nahlásilo mi ji to normálně.
Logged

djb

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
  • ... dream journey beyond ...
    • View Profile
    • DreamJourneyBeyond.com
Re: Nejde spustit hra
« Reply #12 on: September 05, 2005, 04:17:45 PM »

Proč to nenahlásí normální chybu, ale vypne se to já už jednou podobnou chybu měl a nahlásilo mi ji to normálně.
Pretoze ten riadok vykona priradenie hodnoty a nie komparaciu, tak ako by malo ... to nie je vlastne chyba :)
Ide vlastne len o to, ze kedze je to vykonavane v cykle, tak dojde ku preteceniu interneho zasobnika ;D ... klasicka nepozorna chybka
« Last Edit: September 05, 2005, 04:19:42 PM by djb »
Logged
 

Page created in 0.033 seconds with 20 queries.