Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BlakPilar

Pages: 1 ... 26 27 [28] 29 30 ... 49
406
Axe / Re: I need help with a code!
« on: October 30, 2011, 01:06:34 pm »
Why not make a game with sound? It's entirely possible. And why not put headphones into a calculator?

407
Miscellaneous / Re: So what is everyone up to?
« on: October 27, 2011, 07:05:03 pm »
Getting BexIDE ready for public beta has pretty much been my schedule the last two weeks. Oh, and homework, music, life; the usual.

408
Miscellaneous / Re: Post your desktop
« on: October 24, 2011, 10:38:07 pm »
I've changed my background since the last time I posted here; many a time, actually. Here it is. (I hid the clutter of files ;))

409
Computer Programming / Re: Regex (regular expressions)
« on: October 23, 2011, 03:51:12 pm »
Oops, didn't see that part lol. I'll look at it and see what I can do, thanks again.

410
Computer Programming / Re: Regex (regular expressions)
« on: October 23, 2011, 03:39:52 pm »
Ahh, yes, that works. The only thing is it highlights '->' too... Oh well, good enough for now! Thank you!

411
Computer Programming / Regex (regular expressions)
« on: October 23, 2011, 02:19:00 pm »
Does anyone know regex well? I need to be able to select everything between a double quote and either another double quote, the end of a line, or a two character sequence ("->" for example). What I have now kind of works, except the highlighting only stops after the '>' and sometimes it selects everything for a while after the '>'.

Here's what it is now: (by the way, for the '->' part, I completely guessed lol)
Code: [Select]
@"""[^>]+""|""[^>]+|""[^>]+'->'"

412
Computer Programming / Re: 8xp File Header generation
« on: October 19, 2011, 07:43:07 pm »
Huh... Alright, well, I fixed the "mystery" byte thing (by doing j += 2 and changing the array to 74 instead of 73), and I checked the array and everything matches up perfectly, it seems. Visual Studio makes integers into byte arrays by making them 4 long, so in my getDataLength method, I do that, reverse the order (originally it would be something like {0, 0, 10, 12}), then cut off the two zeroes at the end. I'll change the version to $01 and see what happens. As for the "mystery" value, I had something like "header[j] = Prgm.IsArchived ? (byte)0x0D : (byte)0x0B; j++;" but I thought that might've been the problem, so I removed it temporarily. And yeah, I have the checksum part (and data section part) all done, I just needed to work on the header.

As for the spoilers, it doesn't make any difference to me lol.

EDIT: Ok, so, I fixed it and it still doesn't work. Granted, it may not be the header. I checked my ASCII parsing, and everything works, except for Ans, which registers as 'A', 'n', '?' so I need to work on that, but that *shouldn't* be the problem. It seems to be the checksum, but would that throw an error in Wabbit?

413
Computer Programming / 8xp File Header generation
« on: October 19, 2011, 05:27:21 pm »
I'm completely rewriting my 8xp library for TBEXE (now called BexIDE), and everything works fine (as far as I can tell) except for the header generation. I think the problem is somewhere in the part having to do with the "mystery" byte or the Type ID part, but I can't be exactly sure. I'm definitely going to be investigating further tonight (unless someone beats me to it), but I have to go out for my birthday dinner right now ;)

So yeah, I guess I'm just asking for theories on what's going wrong, if there are any, or what I'm doing wrong.

Code: (le code) [Select]
int i, j = 0;                                                               //i: loops, j: current pos
byte[] len = getDataLength(false);                                          //The length of the data section
byte[] header = new byte[73];                                               //To be returned
//Copy bytes from the file header
for (i = 0; i < FILEHEADER.Length; i++) {                                   //FILEHEADER is the "**TI83F*" stuff as a byte array
    header[j] = FILEHEADER[i]; j++;
}
//Copy bytes from the sub-header
for (i = 0; i < FILESUBHEADER.Length; i++) {                                //FILESUBHEADER is $1A, $0A, $00
    header[j] = FILESUBHEADER[i]; j++;
}
//Copy the comment
for (i = 0; i < Prgm.Comment.Length; i++) {                                 //The comment is a byte array whose length is 42
    header[j] = Prgm.Comment[i]; j++;
}
//Copy data length
for (i = 0; i < len.Length; i++) {
    header[j] = len[i]; j++;
}
header[j] = (byte)0x0B; j++;                                                //Add the "mystery" byte (maybe $0D?)
//Copy data length (again)
for (i = 0; i < len.Length; i++) {
    header[j] = len[i]; j++;
}
header[j] = Prgm.IsProtected ? (byte)0x06 : (byte)0x05; j++;                //Add protection flag
//Copy the program name
for (i = 0; i < Prgm.Name.Length; i++) {                                    //The name is a byte array whose length is 8
    header[j] = Prgm.Name[i]; j++;
}
j++;                                                                        //Skip the version (makes it $00)
header[j] = Prgm.IsArchived ? (byte)0x80 : (byte)0x00; j++;                 //Add the archive flag
//Copy data length (again)
for (i = 0; i < len.Length; i++) {
    header[j] = len[i]; j++;
}
len = getDataLength(true);                                                  //Get the length of the data / 2
//Copy the data length / 2
for (i = 0; i < len.Length; i++) {
    header[j] = len[i]; j++;
}
return header;                                                              //Return the full header

414
Miscellaneous / Re: Birthday Posts
« on: October 19, 2011, 04:28:11 pm »
Thanks :)

415
Miscellaneous / Re: Birthday Posts
« on: October 19, 2011, 03:44:45 pm »
Thanks guys :D lol

416
Miscellaneous / Re: Birthday Posts
« on: October 19, 2011, 07:25:20 am »
This is said topic, and today is mah birthday :3

417
Miscellaneous / Re: Birthday Posts
« on: October 19, 2011, 07:20:00 am »
'ello chaps! Guess who! :D

418
Minecraft Discussion / Re: Minecraft Custom Skins
« on: October 18, 2011, 07:53:41 pm »
I attempted to make an Altair one by myself in Gimp one boring day. It's not perfect by any standards, but it's good enough for me.

419
Computer Programming / Re: [Tutorial] Snow in XNA 4.0 (C#)
« on: October 17, 2011, 07:08:00 am »
I haven't tried it, but AFAIK, no. If you make a Windows game, you can have Visual Studio make a copy for the 360 for you (and Windows Phone).

But thanks! :D

420
Other Calculators / Re: How much stuff is on YOUR calc?
« on: October 15, 2011, 10:06:52 am »
60 total items: 9 apps, 29 programs (all (BASIC) but 1 made by me), 1 picture, 9 appvars, 12 groups.

Pages: 1 ... 26 27 [28] 29 30 ... 49