PBSource-Converter(v394 to v400) Released!

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

New version 1.0.8 available!


V1.0.8
------
- Conversions can now start also with the ENTER-Key.
- The last used Plugin will now also saved in ConfigFile.
- Added an own Icon for the Converter.
- Some Fixes.

Download from PureArea.net

Download from CodersWorkshop.com

Download from the Project Homepage
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Hi AL90,

Had this for a time, but never really needed to use it, just did some manual changes from time to time.

However it has just proved extremely useful for a bulk (many files) conversion of something I decided would be usefully "4-ed".

It was so easy to use that I bulk converted everything in my 3.94 release folders, so now have a 4.00 version of everything live.


Thank you very very much! :D
Dare2 cut down to size
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

Thanks for using and the report. :wink:
tomijan
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Dec 11, 2005 1:32 pm

Post by tomijan »

@al90
great, its nice, that source converter is living code!

regards
tom
registered user
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

@tomijan

Thanks. :wink:
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

New version 1.0.9 available!


V1.0.9
------
- Some Fixes in recognize of commands. So will now e.g. "_ReadFile()" no longer converted but recognize as function.

Download from PureArea.net

Download from CodersWorkshop.com

Download from the Project Homepage
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

A great tool! Thank you very much :)

Any ambitious plans for other plug-in's, like C++ or VB to PB? ;)

Any guidelines for writing our own plug-in's?

Thank You
User avatar
Azul
Enthusiast
Enthusiast
Posts: 109
Joined: Fri Dec 29, 2006 9:50 pm
Location: Finland

Post by Azul »

I would be interested about plugins for other basics from history :P

Like C64 native "Basic v2" and "Simons' Basic" :P

I still have my programs written to those languages but too much time has passed to rewrite those from memory.

I know than everything can't be ported without emulation of hardware.

ah .. those "line numbers are mandatory" basics :P
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

SFSxOI wrote:A great tool! Thank you very much :)
Thanks. :wink:
Any ambitious plans for other plug-in's, like C++ or VB to PB? ;)
No. Sorry, but I can't developing C++, and a VBtoPB Converter is currently not planed.
Any guidelines for writing our own plug-in's?
Perhaps later. currently I work an other Project.
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

Azul wrote:Like C64 native "Basic v2" and "Simons' Basic" :P
A Converter for 8Bit Computer-Sources? No, Sorry. Do you plans developing which ? :lol:
I know than everything can't be ported without emulation of hardware.
If I have some time, I use a Emulator to feel the good old times. :D
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

New version available.
V1.1.0

- Fixed: The 1MB limitation for sourcecodes was now removed.
- Some small optimizations.
- Compiled under PB4.10 for Vista compatibility. (Not tested)
PB Source-Converter v.1.1.0
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Post by yrreti »

Thank you very much AL90 :D :D :D :D :D :D :D

Your program has been very useful and helpful to me in the past, and
even now, when ever I run across some older code that I want to check
out. And it does a good job.
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

I've tried to create a plugin to convert from V4.20 to V4.30:

Code: Select all

; PBSourceConverter Version 1.1.0

[BEGIN JOB]
OriginalName = CountList
ReplacedName = ListSize
[END JOB]

[BEGIN JOB]
OriginalName = ClearGadgetItemList
ReplacedName = ClearGadgetItems
[END JOB]

[BEGIN JOB]
OriginalName = CameraProjection
ReplacedName = CameraProjectionMode
[END JOB]

[BEGIN JOB]
OriginalName = ComboBoxGadget
ReplacedName = ComboBoxGadget
[REMOVE PARAMETER]
Position = 5
[END JOB]

[BEGIN JOB]
OriginalName = ComboBoxGadget
ReplacedName = ComboBoxGadget
[ADD PARAMETER]
Position = 5
[CONSTANT VALUE]
Value = 21
[END JOB]

[BEGIN JOB]
OriginalName = #Byte
ReplacedName = #PB_Byte
[END JOB]

[BEGIN JOB]
OriginalName = #Word
ReplacedName = #PB_Word
[END JOB]

[BEGIN JOB]
OriginalName = #Character
ReplacedName = #PB_Character
[END JOB]

[BEGIN JOB]
OriginalName = #Long
ReplacedName = #PB_Long
[END JOB]

[BEGIN JOB]
OriginalName = #Float
ReplacedName = #PB_Float
[END JOB]

[BEGIN JOB]
OriginalName = #Double
ReplacedName = #PB_Double
[END JOB]

[BEGIN JOB]
OriginalName = #Quad
ReplacedName = #PB_Quad
[END JOB]

[BEGIN JOB]
OriginalName = #String
ReplacedName = #PB_String
[END JOB]

[BEGIN JOB]
OriginalName = StrQ
ReplacedName = Str
[END JOB]

[BEGIN JOB]
OriginalName = HexQ
ReplacedName = Hex
[END JOB]

[BEGIN JOB]
OriginalName = BinQ
ReplacedName = Bin
[END JOB]

[BEGIN JOB]
OriginalName = ValQ
ReplacedName = Val
[END JOB]

[BEGIN JOB]
OriginalName = ChangeListIconDisplay
ReplacedName = SetGadgetAttribute
[ADD PARAMETER]
Position = 2
[CONSTANT VALUE]
Value = #PB_ListIcon_DisplayMode
[END JOB]
Same changes can't be converted automaticly. E.g.:
- 'Read' keyword now requiers a type (Read.l, Read.q etc.)
- CameraFOV() angle from radian to degree
- Array and list parameter now requiers the 'List' or 'Array' keyword
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Post Reply