Author Topic: Help With Nymless!  (Read 10036 times)

0 Members and 1 Guest are viewing this topic.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Help With Nymless!
« on: August 19, 2011, 09:00:46 pm »
This code crashes the calc. The code not working is all that's holding back Nymless.

E15->{L1}r
ClrHome
input->p
Copy(P,L1+1,length(P)+1)
ClrHome
If GetCalc(L1)->A
Disp "AN APPVAR EXISTS WITH THAT NAME"
Return
End
GetCalc("appvNYMSCAPE")->U
!If U
Disp "NO NYMLEVEL!"
Else
10->X
"appvNYMLIST"->Str1
UnArchive Str1
!If GetCalc(Str1)
GetCalc(Str1,0)->Q
Else
GetCalc(Str1)->Q
End
{Q-2}r->W
"appvNYMTEMP"->Str2
GetCalc(Str2,W)->V
Copy(Q,V,W)
Copy(P,V+W,length(P))
GetCalc(Str1,W+8)->T
Copy(V,T,{V-2}r)
DelVar Str2
GetCalc("appvNYMINE")->V
X+{U-2}r->X
If V
X+{V-2}r+2->X
End
GetCalc("appvNYMSHIM")->W
If W
X+{W-2}r+2->X
End
Copy(oX,{T-2}r-2,2)
Archive Str1
GetCalc(L1,X)->X
If B
Disp "APPVAR SUCCESSFULLY CREATED"
Else
Disp "APPVAR CREATION FAILED"
End
Copy(P,B,length(P))
{U-2}r->Y
Copy(U,B+9,Y)
0->C

It hasn't made it this far yet.
There's more code though.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Help With Nymless!
« Reply #1 on: August 19, 2011, 11:29:17 pm »
How far does it get before it crashes?

Also the input command is really buggy, I've put it in test programs and got crashes as well.  I think there's an input alternative somewhere, in the routines thread or something...
Vy'o'us pleorsdti thl'e gjaemue

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Help With Nymless!
« Reply #2 on: August 19, 2011, 11:31:14 pm »
Can you explain any more? Also, it's a pain, but it might be helpful to write your own input function. I think I have one somewhere I can dig up...
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Help With Nymless!
« Reply #3 on: August 19, 2011, 11:57:16 pm »
I don't know how far it gets. All I know is that it doesn't get to "APPVAR SUCCESSFULLY CREATED"
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Help With Nymless!
« Reply #4 on: August 20, 2011, 12:16:18 am »
Assuming you're experiencing this problem with Axe 1.0.0 or above, see: http://ourl.ca/4072/236963
« Last Edit: August 20, 2011, 12:17:03 am by Runer112 »

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Help With Nymless!
« Reply #5 on: August 20, 2011, 12:18:33 am »
Nah, this is 0.5.3
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Help With Nymless!
« Reply #6 on: August 20, 2011, 12:32:16 am »
In that case, this portion looks suspicious:

Code: [Select]
{Q-2}ʳ→W
"appvNYMTEMP"→Str2
GetCalc(Str2,W)→V
Copy(Q,V,W)
Copy(P,V+W,length(P))

You create an appvar pointed to by V of size W, and then copy data to V+W. This would be copying data outside of the appvar you created, overwriting other data. I'm guessing you wanted to make the appvar larger, perhaps length(P)+W bytes?


Also, this problem probably hasn't cropped up yet for you, but when making these new/temp appvars, you should really check that the creation was successful and throw an error if it wasn't.
« Last Edit: August 20, 2011, 12:33:00 am by Runer112 »

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Help With Nymless!
« Reply #7 on: August 20, 2011, 12:58:29 am »
I changed the line as you suggested, and it still crashed.
I wish there were code analysis tools for Axe, because I often look at my own code and wonder what the hell I was doing.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Help With Nymless!
« Reply #8 on: August 20, 2011, 01:14:33 am »
Maybe you could run it in wabbit, and see what its debugger says?

Also, some input routines.
http://ourl.ca/6581
http://ourl.ca/4129/170416
http://ourl.ca/4129/80803
http://ourl.ca/4129/125194
http://ourl.ca/4129/122465
Vy'o'us pleorsdti thl'e gjaemue

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Help With Nymless!
« Reply #9 on: August 20, 2011, 01:17:59 am »
I don't know how to use Wabbit's debugger though. I know where to find it, but I don't know how to use it.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Help With Nymless!
« Reply #10 on: August 20, 2011, 01:22:58 am »
Hmm.
A way that might help determine: have it display chars to the homescreen at points.  Like, just before the first part you suspect, put a
Disp 1►Dec
Pause 200

before it, and for the second part a Disp 2, etc.


btw I'm guessing there'll be someone on IRC who knows how to use the debugger :)
Vy'o'us pleorsdti thl'e gjaemue

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Help With Nymless!
« Reply #11 on: August 20, 2011, 02:28:09 pm »
Watch out for code sections like this:


If GetCalc(L1)->A
Disp "AN APPVAR EXISTS WITH THAT NAME"
Return
End


Because what it will do is display AN APPVAR EXISTS WITH THAT NAME really fast and then exit the program without you ever knowing. You can change that by adding this:

Code: [Select]

If GetCalc(L1)->A
Disp "AN APPVAR EXISTS WITH THAT NAME"
Repeat getkey(15)
End
Return
End


So it waits until they press clear, then returns.
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Help With Nymless!
« Reply #12 on: August 20, 2011, 04:22:54 pm »
Oh. Right.
* Freyaday facepalms
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Help With Nymless!
« Reply #13 on: August 20, 2011, 05:36:01 pm »
Was that the problem?
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Help With Nymless!
« Reply #14 on: August 20, 2011, 06:03:46 pm »
Unfortunatly, no.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!