Author Topic: What's wrong with my code? There's any "Errors.txt" file!  (Read 1426 times)

ciuffolo

  • Guest
What's wrong with my code? There's any "Errors.txt" file!
« on: March 17, 2013, 12:49:38 pm »
Agh...I've got a problem:
I can't install my application because...I don't know.
They said me that I have to check for the "Error.txt" file, but there isn't that file in the zip folder...
I tried to change the name of all my variables, like I did in my first application (that worked) but in this application this seems to not work...

I can post the code, may is there some lines that are not supported
Code: [Select]


#include "DragonFireSDK.h"
//location
int tx,ty,idz;int imgcb,imgcbp,centralbutton;
//suoni
int ndo,nre,nsi,nmi;
//boolean
bool PlayAnotherSound=true;

void idzrev(int tiltx,int tilty)
{
if (tilty<0&&tiltx<0)
idz=1;
if (tilty>0&&tiltx>0)
idz=2;
if (tilty>0&&tiltx<0)
idz=3;
if (tilty<0&&tiltx>0)
idz=4;
}
void soundload()
{
ndo=SoundAdd("Suoni/do.snd");
nsi=SoundAdd("Suoni/si.snd");
nre=SoundAdd("Suoni/re.snd");
nmi=SoundAdd("Suoni/mi.snd");
}
void soundstop()
{
    SoundStop(ndo);
    SoundStop(nsi);
SoundStop(nre);
    SoundStop(nmi);
}
void play(int soundtoplay)
{
SoundPlay(soundtoplay);
}
void Letmusic()
{
if (PlayAnotherSound==true)
{
if (idz==1)
play(ndo);
if (idz==2)
play(nsi);
if (idz==3)
play(nre);
    if (idz==4)
play(nmi);
PlayAnotherSound=false;
}
}
void IfChangeZoneControl(int firstcontrolzone,int secondcontrolzone)
{
if (firstcontrolzone!=secondcontrolzone)
{
soundstop();
PlayAnotherSound=true;
}
else
{
PlayAnotherSound=false;
}
}
int Touchcentralbutton(int id, int event, int x, int y)
{
  if (event==1)
  {
  soundstop();
  PlayAnotherSound=false;
  ViewSetImage(centralbutton,imgcbp);
  }
  if (event==2)
  {
  soundstop();
  PlayAnotherSound=false;
  ViewSetImage(centralbutton,imgcbp);
  }
  if (event==3)
  {
  PlayAnotherSound=true;
  ViewSetImage(centralbutton,imgcb);
  }
  return 0;
}

void LoadScreen()
{
int background=ViewAdd("Immagini/background.jpg",0,0);
imgcb=ImageAdd("Immagini/centralbutton.png");
imgcbp=ImageAdd("Immagini/centralbuttonpressed.png");
centralbutton=ViewAdd(imgcb,240-28+5,160-28+5+2);
int TouchHandle = TouchAdd(0, 0, 100, 100, Touchcentralbutton, 0);
ViewSetTouch(centralbutton, TouchHandle);

}
void AppMain()
{
LandscapeMode();
soundload();
LoadScreen();
}
void AppExit()
{

}
void OnTimer()
{
tx=TiltGetx();
ty=TiltGety();
int idzonaprev=idz;
idzrev(tx,ty);
IfChangeZoneControl(idzonaprev,idz);
Letmusic();

}

Thankyou in advance...

glina126

  • Guest
Re: What's wrong with my code? There's any "Errors.txt" file!
« Reply #1 on: March 17, 2013, 03:54:55 pm »
when you try building your app, what is the name you use? Because if you use "illegal" characters the build will fail just like you described it. Try naming the app something simple like "Try1" (note: no space!) and etc

hope this helps

ciuffolo

  • Guest
Re: What's wrong with my code? There's any "Errors.txt" file!
« Reply #2 on: March 18, 2013, 12:14:56 pm »
Nope sorry, because I call my app "test"...
Thanyou

ciuffolo

  • Guest
Re: What's wrong with my code? There's any "Errors.txt" file!
« Reply #3 on: March 18, 2013, 02:29:54 pm »
I reneamed the Images folder in Immagini (Italian) to make it easier, but I think that this is the problem...
Now I'm going to try with correct name.

No, that's no the problem to solve.
« Last Edit: March 18, 2013, 02:41:38 pm by ciuffolo »