X2D - eXtended 2D

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

...

Post by NoahPhense »

Emmm updates... tasty... 8)

- np
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Do I need to have v3.91b installed or should it also work with 3.81?
I've decided to support TailBite only for official PB releases. I think this makes sense. and gives me time to experiment with the new linker, for example.

So, last version of TailBite is for PB 3.90. But may work with 3.81, why not.

Regards,
El_Choni
Effigy
User
User
Posts: 35
Joined: Fri Apr 25, 2003 5:40 pm
Location: Canada
Contact:

Post by Effigy »

I am having problem Compiling the examples for this lib...

I copied the Resident and the Lib files, but all I get is a window with a big red X icon on it when I compile.

No text error message???

What am I doing worng?
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

Take a look here: viewtopic.php?t=11749

Sorry, but I still have no clue as to what's going wrong :oops:
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Try inserting the proper !EXTRN inside each procedure. Code outside the procedure is ignored.

Shouldn't have worked before, BTW :mrgreen:

Regards,
El_Choni
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

But it did, or have I gone stupid right now ;-)
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

After watching the source more carefully, I've found out that pbcompiler complains about these variables missing because the 2DDrawing library -which exports these variables- is not used in it, therefore not linked.

If you put a StartDrawing() command in your code -anywhere- and, for example, FontID() -so the Font library is also linked-, your source code is tailbiten correctly. But, of course, this is an ugly patch.

I'm not sure how to workaround this, maybe with a pseudocommand like Include2DDrawing(), IncludeFont(), etc., from a dummy lib that ensures those libs are linked. What do you think?

But, again, it shouldn't have worked before icon_eek.gif
Last edited by El_Choni on Wed Jul 21, 2004 5:50 pm, edited 1 time in total.
El_Choni
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

El_Choni wrote:After watching the source more carefully, I've found out that pbcompiler complains about these variables missing because the 2DDrawing library -which exports these variables- is not used in it, therefore not linked.

If you put a StartDrawing() command in your code -anywhere- and, for example, FontID() -so the Font library is also linked-, your source code is tailbited correctly. But, of course, this is an ugly patch.

I'm not sure how to workaround this, maybe with a pseudocommand like Include2DDrawing(), IncludeFont(), etc., from a dummy lib that ensures those libs are linked. What do you think?

But, again, it shouldn't have worked before icon_eek.gif
@all: fyi, I talked with El_Choni about this and he thinks he will have a new version of TailBite pretty soon, including this new command. I hope that the new compilation will be successful after this *crossingfingers*
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Looks like it's done, update. At the beginning of your X2D source -outside the procedures-, you must include the following functions:

Code: Select all

TB_Include2DDrawing()
TB_IncludeFont()
Should solve the problem (you must include the !EXTRN anyway!)

At this moment only those two purelibs can be included. As soon as you confirm it works, i'll make all the purelibs 'includable' this way.

Regards,
El_Choni
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

cool, thank you very much.

looks like i will toy with that on the weekend. Can you wait for that long?
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Of course, but I'll be away then (two thousand Km away, to be precise). Can you wait til September? :D
El_Choni
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

El_Choni wrote:Of course, but I'll be away then (two thousand Km away, to be precise)
hmm, argentina, bolivia?
Can you wait til September? :D
I can, I will and I have to. Don't know what's about all the other people waiting for a good update of the lib *g*. I'm still running the old PB version for that.
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

No, not Bolivia nor Argentina. That would be ten thousand Km or more. I'll travel to (just can't help telling everyone else ;) Bretagne, Paris, Berlin, Prague, Viena, Budapest, Ljubiana, Zagreb, Zadar, Dubrovnik, Venezia and Spain again. We only have one month to do this, but I can assure you we'll take the most out of it :D Man, I'm so willing to do this trip!!! :P :D 8)

Regards,
El_Choni
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Oh, and, BTW...
El_Choni
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

El_Choni wrote:No, not Bolivia nor Argentina. That would be ten thousand Km or more. I'll travel to (just can't help telling everyone else ;) Bretagne, Paris, Berlin, Prague, Viena, Budapest, Ljubiana, Zagreb, Zadar, Dubrovnik, Venezia and Spain again. We only have one month to do this, but I can assure you we'll take the most out of it :D Man, I'm so willing to do this trip!!! :P :D 8)

Regards,
That sounds really cool. :D Enjoy. :lol: Then get here and bite tail!
@}--`--,-- A rose by any other name ..
Post Reply