• Welcome to Valhalla Legends Archive.
 

need help porting to vb

Started by Killa, December 06, 2003, 11:39 AM

Previous topic - Next topic

l)ragon

#15
just because you did a whole hell of alot of typeing there User +1
*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*ˆ¨¯¯¨ˆ*^~·.,l)ragon,.-·~^*ˆ¨¯¯¨ˆ*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*

Stealth

Hell, I would have written a little program to convert the tables for me.. nobody would actually go through those tables converting them to VB by hand, right?
- Stealth
Author of StealthBot

Spht

#17
Quote from: Stealth on December 09, 2003, 04:06 PM
Hell, I would have written a little program to convert the tables for me.. nobody would actually go through those tables converting them to VB by hand, right?

I'd hope not. I suggest declaring a global array for each table (CharIndex, CharTable, BitMasks) then write a function to fill the array which can be called like this:

FillArray CharIndex, _
&H0247, &H0236, &H0225, &H0214, &H0203, &H01F2, &H01E1, &H01D0, _
&H01BF, &H01AE, &H019D, &H018C, &H017B, &H016A, &H0161, &H0158, _
...


The arguments for the function would look something like, FillArray(TheArray(), ParamArray paElements()). I did not save the example I sent UL because I assumed he'd keep it...

Etheran

#18
Quote from: Stealth on December 09, 2003, 04:06 PM
Hell, I would have written a little program to convert the tables for me.. nobody would actually go through those tables converting them to VB by hand, right?
That's what I did the last time I tried to port this.

Etheran

Quote from: TheMinistered on December 07, 2003, 09:35 AM
Adron, how do you plan on doing the bitwise shifts without a c++ dll? in pure vb? haha?

HINT:
x << y
x * (2^y) (note: ^ is power of and not xor)

x >> y
x / (2^y)

Adron

Yes, but you have to mask off bits so VB won't puke on an overflow.

Killa

im wondering if anyone can tell me how far off from accurate this is or if anyone can correct any errors i made in porting this.

http://www.geocities.com/clan_darknexus/Module1.bas

Spht

Quote from: Killa on December 13, 2003, 09:53 AM
if anyone can correct any errors i made in porting this.

Yes, you went with UserLoser's horrible coding after asking me how I told him to do it, then ignoring my post (just like UserLoser did...)?

I guess people don't care for optimizations.

Killa

well after i actually get it working ill proboly use your suggestion for the tables,i just want to get it working right now.