Author Topic: Ti Basic Editor  (Read 19081 times)

0 Members and 1 Guest are viewing this topic.

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Ti Basic Editor
« Reply #15 on: August 15, 2009, 06:11:13 pm »
This is in VB 2008.  If you want to help geekboy, I have a very important job you could do, as long as you don't mind doing something more tedious then the hex to token converter: The token to hex converter.
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline Tribal

  • The Fallen
  • LV5 Advanced (Next: 300)
  • *
  • Posts: 218
  • Rating: +15/-1
    • View Profile
Re: Ti Basic Editor
« Reply #16 on: August 19, 2009, 12:10:37 am »
dude i cant wait if i knew eirlier i would have pushed sooner lol     
if you need a hand or tester or somthin dont be afraid to ask ill gladly help
is this in visual basic and if so what version?

I am also willing to help with anything that you may need, in my spare time of course.

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Ti Basic Editor
« Reply #17 on: August 19, 2009, 08:29:18 pm »
Umm, help... hmm... I'd love help, except I don't really know anything you guys could help with except the function that converts a TI token toa hex value.  And I might ask for help from any vb programmers if I get stuck on hoe I might do something, but other than that, I really don't know...
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline Tribal

  • The Fallen
  • LV5 Advanced (Next: 300)
  • *
  • Posts: 218
  • Rating: +15/-1
    • View Profile
Re: Ti Basic Editor
« Reply #18 on: August 20, 2009, 12:50:39 am »
Hmm, if I remember correctly there was a program called detokenizer floating around on one of the TI websites, it was written in C/C++ though, but if I remember correctly the source code contained the hex values of all of the TI characters.  I could convert this portion to VB but I'm not to sure if this is the kind of thing you were looking for.

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Ti Basic Editor
« Reply #19 on: August 20, 2009, 04:49:09 pm »
Yeah, thats not really what I was talking about.  I already know all the tokens and their hex values.  What
i was saying is that I have a function that looks like:
Public Function Convert(Hexvalue as string, Hexvalue2 as string, ByRef Secondbyte as boolean)  //This allows the caller to see if the token was two bytes or not
     Secondbyte = false
     If HexValue = "1" Then Return "A"
     If Hexvalue = "2" Then
          Secondbyte = True
          If Hexvalue2 = "1" then Return "B"
     End
etc.
End Function  //Note, those are not the actual tokens, I just did this off the top of my head

So, I can use this to read files with a seperate procedure that uses this as a "library" of codes

Now what I need is one that does the opposite.  Sadly, I am very lazy and have been putting off writing this one for as long as possible because the other one is over 700 lines, and this one will easily be twice the size, so...
I was saying I would love if someone would write this for me like this:

Public Function UnConvert(ConversionString as String, ByRef SecondByte as string)
     Secondbyte = ""
     If Conversionstring(1) = "A" Then
          If Conversionstring(2) = "B" Then Return "1F"
          Return "1"
     End
End Function

I think you'll get how that works, and If you want to work on that for me...
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline necro

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1295
  • Rating: +17/-2
  • +3 vaporal mustache
    • View Profile
Re: Ti Basic Editor
« Reply #20 on: August 21, 2009, 05:25:05 am »
Hmm...is your source somewhere?  I am far better at c# and java than vb, but would you mind me taking a look?  Your code showed you using a if then else tree instead of just looping through some arrays, which would probably be easier to code and more effecient.
« Last Edit: August 21, 2009, 05:29:02 am by necro »
I'm like a woot burger with awesome fries


VB.Net, C#, C++, Java, Game Maker

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Ti Basic Editor
« Reply #21 on: August 21, 2009, 11:22:49 pm »
I don't know how I could do it with an array, but if you give me enough information, I might try it if it seems better.
I attached my current file to the post.
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline necro

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1295
  • Rating: +17/-2
  • +3 vaporal mustache
    • View Profile
Re: Ti Basic Editor
« Reply #22 on: August 22, 2009, 04:51:34 am »
Well, the code makes sense so I should be able to convert it to an array based function.  The way I think it would work is to fill in a 4 dimmension array with the string data, then for the hex to token, make a for loop to go through the array until it gets a match, check the second byte if its needed, then if thats a match, return the token.  The opposite procedure would be loop for the token, return the byte, return the second byte if there is one.

I'll work on this more tommorow, I got the basics of it coded , and assuming I didn't miss something...

 :P What does the revert function do?
« Last Edit: August 22, 2009, 06:16:11 am by necro »
I'm like a woot burger with awesome fries


VB.Net, C#, C++, Java, Game Maker

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Ti Basic Editor
« Reply #23 on: August 22, 2009, 02:17:46 pm »
Wow that code brings back memories, altough I had very limited vb knowledge since I didn't use it a lot. I think the farthest I went to in VB6 (1998 edition of Visual Studio) is a string tilemapper (see The Reign Of Legends 0 in the download section)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline necro

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1295
  • Rating: +17/-2
  • +3 vaporal mustache
    • View Profile
Re: Ti Basic Editor
« Reply #24 on: August 22, 2009, 04:04:29 pm »
Array loading: check
Array checking loop: check
second byte: check
return token: check

This is close to good.  I still need to test a few things, then put the rest of the tokens into the array before I can make the reverse script.  All in all, its nearly there,   ;D
« Last Edit: August 22, 2009, 04:14:17 pm by necro »
I'm like a woot burger with awesome fries


VB.Net, C#, C++, Java, Game Maker

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Ti Basic Editor
« Reply #25 on: August 22, 2009, 08:12:52 pm »
awsome sry bboy but im not awsoMe at vb so yeah


way to go necro cant wait to se you guys finish

Offline necro

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1295
  • Rating: +17/-2
  • +3 vaporal mustache
    • View Profile
Re: Ti Basic Editor
« Reply #26 on: August 22, 2009, 08:27:43 pm »
Well, the reverse function "works" though I am not sure how its supposed to be formatted.  Right now it returns the byte strings smashed together (so 5C and 1 would be 5C1)...

subsequently, the number of tokens in there is just ridiculous
« Last Edit: August 22, 2009, 08:55:01 pm by necro »
I'm like a woot burger with awesome fries


VB.Net, C#, C++, Java, Game Maker

Offline necro

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1295
  • Rating: +17/-2
  • +3 vaporal mustache
    • View Profile
Re: Ti Basic Editor
« Reply #27 on: August 25, 2009, 03:05:40 pm »
erm...have you had any problem with the change in the script?

 ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???
« Last Edit: August 29, 2009, 05:29:10 am by necro »
I'm like a woot burger with awesome fries


VB.Net, C#, C++, Java, Game Maker

Offline miotatsu

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 332
  • Rating: +11/-1
    • View Profile
Re: Ti Basic Editor
« Reply #28 on: August 30, 2009, 07:07:33 pm »
i hope this project hasn't died, a ti-basic editor would be very useful...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Ti Basic Editor
« Reply #29 on: August 30, 2009, 07:21:19 pm »
same here, I hope it stays alive.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)