Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Raven Function Libraries

Author
Message
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 5th Mar 2003 17:29
i'll be posting up a good few of these over the comming week for DarkBasic Standard/Enhanced/Professional, you can basically think of these as premade shortcuts for caluclations that normally you'd have to figure out yourself.

RavenStd.h.dba


DarkBasic Professional users can drop the .dba at the end, this is only for back compatibility

as i'm plugging these out i won't actually be testing them as i build them - so feel free to post up bugs you get
Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Fluffy Paul
21
Years of Service
User Offline
Joined: 16th Dec 2002
Location: United Kingdom
Posted: 5th Mar 2003 18:23
So how about... you *do* test them.
I hope your contribution to C&C generals was checked properly. :-p
Or I might resent paying money for it.

Ending a sentence with a French word is so passé
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 5th Mar 2003 18:29
lmao... my contributions to C&C Generals was mostly art based

these i'm not testing what so ever, if they don't work i wanna know - cause in the past 30mins i've coded around 15functions, and i've got alot more to go ... i have literally 3 days to finish a fully library, after that test them, etc...

i mean they should be oki, but just incase lemme know if they're not

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Fluffy Paul
21
Years of Service
User Offline
Joined: 16th Dec 2002
Location: United Kingdom
Posted: 5th Mar 2003 19:00
Fair do's.
What are you better at: art or programming?
Or are you multitalented?

Ending a sentence with a French word is so passé
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 5th Mar 2003 20:10
far far far better at art... the only programming i ever do with any proficency is artwork based (like Shaders)

i've found an odd bug with the above code, might just be my DarkEdit playing up (oftenly does) - but unless i put the BitShifting within the main file they don't like to be recognised and DarkEdit keeps telling me that the array isn't initilised when trying to use it.

anyone else get this, because i'm sure it used to work - and i have a feeling that because i've taken all of the values and given them designations might be the reason.

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 5th Mar 2003 21:26
Well, your functions will not work in DBpro cause there are no global directives for the variables you assigned outside the functions. Your functions will not work in DBclassic for pretty much the same reasons. Plus if you use DarkEdit's pre-processor, the Global directive will only affect the main source code and not the included libraries.

Ogres have layers.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 5th Mar 2003 21:39
so in other yes, its because the blasted change from variables - but even so ... that would mean it'd return 0^dwStep, but it doesn't even recognise the function - that is the weird part

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 8th Mar 2003 00:04
To make the variable global in DBv1, turn them into 1 value arrays e.g

dim iBool(1)
iBool(1)=2

Also, your while file exist( dwIndex )= TRUe
is wrong, because file exist() checks for a string$ value of a file, not a file number, and I think DB refuses to compile when there's any error in the library file.

Whatever I did I didn't do it!

Login to post a reply

Server time is: 2024-04-25 05:38:11
Your offset time is: 2024-04-25 05:38:11