PBSource-Converter(v394 to v400) Released!

Developed or developing a new product in PureBasic? Tell the world about it.
tomijan
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Dec 11, 2005 1:32 pm

Post by tomijan »

Hi al90
maybe you can add an checkbox to tourning off converting include files?
I would sometimes do this separately!

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

Post by AL90 »

@tomijan

Ok its also added in ToDo-List.
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.5 available!

V1.0.5
------
- The Extension for Includes is now selectable.
- Convert of Includes can now enable or disable.
- A InfoText (;Converted on DD:MM:YY) can now insert in converted Sourcecode.
- Some Fixes.

Download from PureArea.net

Download from CodersWorkshop.com

Download from the Project Homepage
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Cool, thanks
User avatar
aszid
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 01, 2003 8:38 pm
Location: California, USA
Contact:

Post by aszid »

very nice!

I've converted one of my sources (about 23k w/ includes) and i had only 1 issue with the conversion.

The original line of code was:

Code: Select all

If OpenWindow(#Window_0, 216, 0, #SCREEN_WIDTH, #SCREEN_HEIGHT,  #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered , Title$)
And it was converted into:

Code: Select all

If OpenWindow(#Window_0, 216, 0, #SCREEN_WIDTH, #SCREEN_HEIGHT, Title$,  #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered )

Other than that, it worked flawlessly! This was a graphical application as well, including sprite, sprite3d, particles, etc.. And worked great!


*edit*
I've only got beta3 installed where i tested this... so it may very well be that the one line of code is fine
--Aszid--

Making crazy people sane, starting tomorrow.
User avatar
aszid
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 01, 2003 8:38 pm
Location: California, USA
Contact:

Post by aszid »

nevermind that one line of code i mentioned :)

updated to beta11, and that line seems to be the correct way.
--Aszid--

Making crazy people sane, starting tomorrow.
tomijan
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Dec 11, 2005 1:32 pm

Post by tomijan »

@al90
i try to use your converter as plugin in pb4.b11, but nothing happend, when i call that (by menu). i use command line parameters as follow:

PB394toPB400 "%FILE" "%TEMPFILE"

is that correct? maybe some options should be turned on?

tom
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

Code: Select all

Global Dim ...
...will be translated into...

Code: Select all

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

Post by AL90 »

@tomijan

Here my entry from the pb4.b11 IDE. It works fine to me.

Code: Select all

;  PureBasic IDE ToolsMenu Configuration
; 
[ToolsInfo]
ToolCount = 1
; 
; 
[Tool_0]
Command = C:\Programme\PBSourceConverter\PBSourceConverter.exe
Arguments = PB394toPB400 "%FILE" "%TEMPFILE"
WorkingDir = 
MenuItemName = PB3.94 to PB4.00
Shortcut = 0
ConfigLine = 
Trigger = 0
Flags = 1
ReloadSource = 1
HideEditor = 0
HideFromMenu = 0
Deactivate = 0
@Michael Vogel

Global Dim is not valid in PB3.94
tomijan
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Dec 11, 2005 1:32 pm

Post by tomijan »

@al90
thx, now it's working fine

tom
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.6 available!


V1.0.6
------
- Added support for DoubleClick in Edit-Jobs Panel.
- A Bug was fixed in recognize of parameters.
- Some Fixes.

Download from PureArea.net

Download from CodersWorkshop.com

Download from the Project Homepage
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

thankx for the update!
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.7 available!

V1.0.7
-------
- The Number of ConvertingJobs will now displayed in PluginEditor.
- Conversion over CommandLine will now shown also a Processbar.
- Some changes in GUI-Text.
- Some Fixes.

Download from PureArea.net

Download from CodersWorkshop.com

Download from the Project Homepage
eJan
Enthusiast
Enthusiast
Posts: 366
Joined: Sun May 21, 2006 11:22 pm
Location: Sankt Veit am Flaum

Post by eJan »

Thanks AL90 - very useful tool.
Maybe some suggestions:
Drag & drop for "Original Sourcecode" StringGadget + auto insert filename to "Save Sourcecode as" = filename + _.ext.
At startup "PB394to400" Plugin loaded - default selected.
"Converting" ButtonGadget default button to accept "ENTER" HotKey. :wink:
Last edited by eJan on Wed Jun 14, 2006 10:16 pm, edited 1 time in total.
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

Added in ToDo-List.
Post Reply