Page 1 of 4

Tailbite v1.4.17 for Windows and PB 5.31 + PB 5.40 LTS

Posted: Sun Jan 18, 2015 12:33 am
by mpz
Hello,

Fred hat rewritten the Asm output for PB 5.31/5.40 LTS < and the tailbite 1.4.11 version for windows doesnt work in this version. I need tailbite for my engine and so i have made a new version 1.4.17. I hope this version will work. It is my first try to change the code for the new asm output (and it was very hard and i need a long time ;) Please test it and if you find a problem please make a testfile, i will check it...

Please use the normal Tailbite 1.4.11 installer and change the Tailbite.exe file with my version manually

The exe file for exchange
http://www.flasharts.de/mpz/Tailbite/Tailbite.exe

Here the sourcodes i have changed ( with much debug function for testing)
http://www.flasharts.de/mpz/Tailbite/TailBite.pb -> Only new testfile implemented
http://www.flasharts.de/mpz/Tailbite/Tailbite_Res.pb -> only "_ll_" lib function added
http://www.flasharts.de/mpz/Tailbite/Inc_Tailbite.pb -> some pb5.31 functions implemented with (too) much debug functions
http://www.flasharts.de/mpz/Tailbite/Inc_Prefs.pb -> some pb5.40 and win 10 functions implemented
http://www.flasharts.de/mpz/Tailbite/Inc_OS_Win.pb -> some pb5.40 and win 10 functions implemented

restart compiler integrated (Windows only)

* Addition, i have added some functions for x64, float and double ProcedureDLL are working now

Another solution is to create the lib with 5.24 and use this in the 5.31 version

Greetings Michael

Re: Tailbite v1.4.12 for Windows and PB 5.31

Posted: Sun Jan 18, 2015 1:12 am
by falsam
Hello mpz.

Thanks for this new release but ..... :)

Line58
I:\temp\Tailbite 1.4.11\Inc_Misc.pb
Invalid memory access

I do not drive I

Re: Tailbite v1.4.12 for Windows and PB 5.31

Posted: Sun Jan 18, 2015 1:20 am
by mpz
Hi falsam,

you need the PB 5.31 version (not 5.30 version) and the tailbite windows must show Version 1.4.12. Please check this...

Greetings Michael

Re: Tailbite v1.4.12 for Windows and PB 5.31

Posted: Sun Jan 18, 2015 1:24 am
by falsam
ok mpz, works fine with pb 5.31:)

Re: Tailbite v1.4.12 for Windows and PB 5.31

Posted: Sun Jan 18, 2015 2:22 am
by falsam
This snippet does not work if one parameter is optional. The library is created but you must enter the two parameters.

Code: Select all

ProcedureDLL Increment(Value, Inc = 2)
  ProcedureReturn(Value + inc)
EndProcedure
debug Increment(3) does not work

debug Increment(3,2) works

Re: Tailbite v1.4.12 for Windows and PB 5.31

Posted: Sun Jan 18, 2015 2:38 am
by mpz
Dear falsam,

Tailbite cant make these kind of codes. You must make two (ore more) DLL procedures with numbers

procedureDll Increment(Value), procedureDll Increment2(Value,INC), procedureDll Increment3(Value,INC,test)...

Here a testcode for you:

Code: Select all

Procedure Increment_All(Value,INC) ; My kind of solution
  
  ProcedureReturn (Value + INC)

EndProcedure
   
   
ProcedureDLL Increment(Value)  ; Procedure2
  
  INC = 2
  ProcedureReturn Increment_All(Value, INC)
   
EndProcedure
 
ProcedureDLL Increment2(Value,INC) ; Procedure2
  
  ProcedureReturn Increment_All(Value, INC)
   
EndProcedure
Greetings Michael

Re: Tailbite v1.4.12 for Windows and PB 5.31

Posted: Sun Jan 18, 2015 12:29 pm
by falsam
Strange but this is the best solution. Thanks mpz :)

Re: Tailbite v1.4.13 for Windows and PB 5.31

Posted: Sun Jan 18, 2015 4:26 pm
by mpz
HI,

i have actualiced the version to Tailbite v1.4.13 for Windows and PB 5.31.
ProcedureDLL.f and ProcedureDLL.d are working now with PB5.31 x64

Grettings Michael

Re: Tailbite v1.4.13 for Windows and PB 5.31

Posted: Sun Jan 18, 2015 6:12 pm
by Paul
Whatever I try to TailBite with your version, I receive fasm error..

Example:

Code: Select all

ProcedureDLL TestMe() ;Test Function
  MessageRequester("OK","Done!")
EndProcedure
---------------------------
TailBite Error
---------------------------
FAsm: TestMe.asm

Could not start fasm in standby mode
---------------------------
OK
---------------------------


Using PB5.31x86, TB1.4.13

Re: Tailbite v1.4.13 for Windows and PB 5.31

Posted: Sun Jan 18, 2015 9:04 pm
by mpz
Hi Paul,

i have tested you code with 1.4.13 for Windows and PB 5.31 (x86) and it works fine

Please check the "PB 5.31" version, the Tailbite Massage "1.4.13" and have renamed the testfile to TestMe.pb?

Please try to start Purebasic and Tailbite in Administrator Mode.

I have made a little testlib to show how to use the libfiles

Testlib.pb
compiled:
http://www.flasharts.de/mpz/Tailbite/test_lib

Code: Select all

ProcedureDLL integer_test(angle) ; integer DLL 
  
  answer = angle *  10
  ProcedureReturn answer

EndProcedure


ProcedureDLL.f floatXfloat_test(angle.f) ; float Dll
  
  answer.f = Float_LimitTo360(angle) *  float_test(angle)
  
  ProcedureReturn answer

EndProcedure

ProcedureDLL.d double_test(angle.d) ; double Dll
  
  answer.d = angle * 100
  
  ProcedureReturn answer

EndProcedure

ProcedureDLL.q Quad_test(angle.q) ; quad Dll
  
  answer.q = angle * 1000
  
  ProcedureReturn answer

EndProcedure

Procedure ParameterProc_all(one, two) ; Procedur to use with two paramters
  
  answer = one + two
  ProcedureReturn answer
  
EndProcedure

ProcedureDLL ParameterProc(one) ; DLL procedure with one Parameter
  
  ProcedureReturn ParameterProc_all(one, two)
  
EndProcedure

ProcedureDLL ParameterProc2(one, two) ;  DLL procedure with two Parameter
  
  ProcedureReturn ParameterProc_all(one, two)
  
EndProcedure

ProcedureDLL TestMe() ; Requester DLL
  
  MessageRequester("OK","Done!")
  
EndProcedure
NewCommands.pb

Code: Select all

Debug Chr(10)+"Float_LimitTo360()"
For n = 0 To 9
  Debug Float_LimitTo360(n * 60) 
Next   

Debug Chr(10)+"float_test()"
For n = 0 To 9
  Debug float_test(n) ;
Next   

Debug Chr(10)+"integer_test()"
For n = 0 To 9
  Debug integer_test(n) ;
Next 

Debug Chr(10)+"floatXfloat_test()"
For n = 0 To 9
  Debug floatXfloat_test(n) ;
Next 

Debug Chr(10)+"double_test()"
For n = 0 To 9
  Debug double_test(n) ;
Next 

Debug Chr(10)+"Quad_test()"
For n = 0 To 9
  Debug Quad_test(n) ;
Next 

Debug Chr(10)+"ParameterProc(one, two)"
Debug ParameterProc(1) 
Debug ParameterProc(1,2) 

Debug Chr(10)+"Test_Me()"
TestMe()

Debug Chr(10)+"Done"
Greetings Michael

Re: Tailbite v1.4.13 for Windows and PB 5.31

Posted: Mon Jan 19, 2015 1:39 am
by Bisonte
I have the same problem like Paul.

---------------------------
TailBite Error
---------------------------
FAsm: TestMe.asm

Could not start fasm in standby mode
---------------------------
OK
---------------------------

Equal what I try to "tailbite" and what PB Version.
I try it with 5.24 and 5.31 in both version (x86/x64) on different machines

Re: Tailbite v1.4.13 for Windows and PB 5.31

Posted: Mon Jan 19, 2015 9:27 am
by mpz
Hi to all,

i am sorry, i tested the download file on another PC and the same error appears there. I think i uploaded a wrong or defective file. I have actualized the Tailbite.exe file with a tested tailbite.exe file. Please download again and test this version...

Greetings Michael

Re: Tailbite v1.4.13 for Windows and PB 5.31

Posted: Mon Jan 19, 2015 4:25 pm
by Bisonte
thx. Now it seems to work.
I will have more testing ;)

Re: Tailbite v1.4.13 for Windows and PB 5.31

Posted: Wed Mar 04, 2015 2:25 pm
by akee
Thanks mpz

Re: Tailbite v1.4.14 for Windows and PB 5.31

Posted: Thu Jun 04, 2015 11:37 am
by mpz
Hello,

i found a next Float/double Problem with PB 5.31 (x64) and have actualized the Tailbite version to version 1.4.14. You find the actualized download on the beginn of these thread.

....
The exe file for exchange
http://www.flasharts.de/mpz/Tailbite/Tailbite.exe -> version 1.4.14

...
http://www.flasharts.de/mpz/Tailbite/Inc_Tailbite.pb -> solved a new found PB31 x64 problem

Greetings Michael