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.

DarkBASIC Professional Discussion / Can't compile after patch 3

Author
Message
ZomBfied
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 27th Nov 2002 00:10
Failed to AddVariable:Type==Null.
What's that? It seemed to only happen after I installed patch 3.
ZomBfied
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 27th Nov 2002 00:14
That emoticon is a p with 2 colons after it. I didn't mean for it to be p::

ZomBfied
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 27th Nov 2002 00:32
OK well back to patch 2...

Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 27th Nov 2002 02:24
Can't compile what - anything or just your own code?

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
ZomBfied
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 27th Nov 2002 02:51
My code that compiled under patch 2. It seems like there's a problem with UDTs inside functions --which is pretty much throughout my program.

ZomBfied
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 27th Nov 2002 03:01
For example this code should just make a cube and rotate it using a defined data type called "thing" containing the object number and angle. It gives me that same Failed to AddVariable error...




ZomBfied
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 27th Nov 2002 03:03
--oh and I forgot the brackets in the above function, but with them I still get the same error.

indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 27th Nov 2002 04:52
make it an array mate

Monster(1).HPs

this is what i do in DT

indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 27th Nov 2002 17:44


ZomBfied
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 27th Nov 2002 18:30
It doesn't matter if it's an array or not. The problem happens when it occurs inside a function --and the problem didn't happen in patch 2, so it must be a bug.

MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 28th Nov 2002 17:05
Any news on the type problem ?

Good news everybody! I really am THAT good...
ChipOne
21
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Canada
Posted: 28th Nov 2002 19:18
not a word from anyone at DBS yet, not here nor in DBDN that i can find, nor have i seen them awknowledge it.

-= i only do what my rice krispies tell me to do =-
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 28th Nov 2002 19:59
Sounds like they are running around like lunatics trying to solve the problem.

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 28th Nov 2002 20:05
...or better still, ther're taking there beta testers (if they have any!) lining them up against a wall and shooting them

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 28th Nov 2002 22:04
That would be controversial...

...I'm sure they'll get a solution out soon..

Good news everybody! I really am THAT good...
Viktor
21
Years of Service
User Offline
Joined: 7th Oct 2002
Location: Austria
Posted: 28th Nov 2002 22:08
I think I found another bug (my fault in first place)
SYNC RATE 0
SYNC ON
...do some complex 2D things on screen ...
SYNC

The SYNC does not refresh the screen, only after SYNC OFF I was again able to see anything refreshed on screen. Hope, I d not need to send a 5 Meg compilat (EXE=Compilat) again to Lee and this bug can be reproduced easy.
Okay, now after I know why my prog freezes, I can again make a workaround.
Patch 3 is still much better bug-wise than Patch 2, thanks to Lee for the efforts, and for fixing this array-Memory bug.

-----------------------------------------------------
PC: Amd Athlon 1200/512 Mb SDRam/GeForce2MX Dual Display Video/Win2000, 19" Monitor
ZX: ZX Spectrum 128+ Customized version.
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 28th Nov 2002 22:47
Have you re-read the help file on the INC and DEC commands since installing patch 3?

It says either: "You cannot INC an array or type variable." or "You cannot DEC an array or type variable."

Oh realy? then explain this!



Should display 3 and 8.

Note however, considering patch 3's problems this will not work inside a function!

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 28th Nov 2002 23:06
....I realy hope they don't intend to drop the ability to use UDT variable and arrays this way in future because it's a very flexable way of using them.

"Earth is the cradle of humanity,
but one cannot live in a cradle forever"
Konstantin E. Tsiolkovsky (1911)
ZomBfied
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 29th Nov 2002 01:08
I have udts inside my udts. I got udts commin' out my... well my whole program is freakin' udts.

Login to post a reply

Server time is: 2024-05-04 01:02:34
Your offset time is: 2024-05-04 01:02:34