Updating Old Apps? WZCK, Pie Slicer, et al.

Discuss the future of Warzone 2100 with us.
Post Reply
User avatar
Rman Virgil
Professional
Professional
Posts: 3812
Joined: 25 Sep 2006, 01:06
Location: USA

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Rman Virgil » 11 Jun 2012, 05:10

.

@Goth: Neat. :) Qt looks like fun to work with. :3

.

User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Goth Zagog-Thou » 11 Jun 2012, 05:15

It's not bad, once you get used to how Designer does things compared to, say, VS 2010.

User avatar
Stratadrake
Trained
Trained
Posts: 197
Joined: 07 Sep 2008, 09:43
Location: Pacific NW
Contact:

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Stratadrake » 11 Jun 2012, 05:18

Rman Virgil wrote:And here I been thinking the original ref to a date with a fox was about a babe encounter. O_o
Yes, that implication was deliberate on my part. ;)

I can say I've never even heard of Qt before, but if it's basically the C equivalent to VB's IDE then that is several steps up from bare code editing, blind compiling and black-box debugging, which are difficult things to get used to. For example, the PCX crash that old versions of Pie Slicer suffered from took forever to figure out why. Seriously, if your IDE crashes th

That screenshot is awesome for 20 minutes' work or so, but I probably don't need to tell you that that duplicating all of the UI behavior (even without the internal data structures) is not so easy a task.
Last edited by Stratadrake on 11 Jun 2012, 05:25, edited 1 time in total.
Strata @dA, @FAC

Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Lord Apocalypse » 11 Jun 2012, 05:23

Qt is easier to use and learn than Visual C++. You still ahve to learn C/C++ but it is a lot easier to wing it in Qt than VC. Just using the examples/tutorials you can put together an application just by cut n paste. The tutorials are even easy to follow and learn from.

User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Goth Zagog-Thou » 11 Jun 2012, 05:24

I believe that the cross-platform tools (QT Creator and Mono Develop) offer the same or even slightly more useful debugging output compared to Visual Studio. That's my opinion, of course.

And you're definitely not flying blind on the 'nix tools, as you can see. :)

User avatar
Rman Virgil
Professional
Professional
Posts: 3812
Joined: 25 Sep 2006, 01:06
Location: USA

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Rman Virgil » 11 Jun 2012, 05:30

.

Honestly, the only thing I knew about Qt was the Nokia connection.
.

User avatar
Stratadrake
Trained
Trained
Posts: 197
Joined: 07 Sep 2008, 09:43
Location: Pacific NW
Contact:

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Stratadrake » 11 Jun 2012, 05:34

For now I would like to continue working in VB until I can get the build actually functioning. VB.Net language constructs (and, so I hear, actual performance) are apparently closer to C than VB6 was

Apparently it's easy enough to grab a Graphics surface for a control and start drawing on it with GDI+ methods, the hitch is not having some of the old DrawMode blendings (like bitwise AND and OR blending - which PieSlicer made extensive use of - can't seem to find 'em) which is kinda bummer. And converting my popup menus from the Menu class to the ContexMenu class was a pain in the ... it required diving into the .designer.vb files, which is the auto-generated source code that the UI designer itself uses to display your form's Design view. As in, make one mistake and VB can't display the form in the WYSIWYG editor. One of the errors I got was specifically "please do not make changes to Designer files in the Code Editor."

I can also "wing" C if I have to - I have some decent PHP experience under my belt, which is the main reason I can read C at all.
Strata @dA, @FAC

User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by NoQ » 11 Jun 2012, 15:52

Rman Virgil wrote:Honestly, the only thing I knew about Qt was the Nokia connection.
Nokia has bought them relatively recently.

User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland
Contact:

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Emdek » 11 Jun 2012, 19:30

Goth Zagog-Thou, unless you want to use QML then waiting for Qt5 to be released doesn't make sense, best time to start porting Qt4 based applications (here is list of source incompatible changes, probably incomplete) would be after 5.1 or even 5.2. ;-)

NoQ, Qt - Nokia relations are a bit more complex now, commercial support was sold to Digia and Qt itself went to open governance.

Stratadrake, I would suggest to abandon VB ASAP, you should check out Qt documentation. ;-)
For example low level drawing API:
http://qt-project.org/doc/qt-4.8/QPainter.html
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.

User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Goth Zagog-Thou » 11 Jun 2012, 19:58

I'm not waiting. Of course, it's just to see if I can actually do it. ;)

RBL-4NiK8r
Trained
Trained
Posts: 132
Joined: 24 Oct 2007, 22:04

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by RBL-4NiK8r » 15 Jun 2012, 09:11

Wow good to see you back Strata missed you alot over the years even if we did fight a lot back in the day you were a WZGOD and reading about your PC that you made PIESlicer on brought a tear to my eye or was that some dirt in it.

Oh and I didn't forget about you LA just not sure what to say at this time.

User avatar
Rman Virgil
Professional
Professional
Posts: 3812
Joined: 25 Sep 2006, 01:06
Location: USA

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Rman Virgil » 15 Jun 2012, 10:04

.

@ 4nE: I hear ya. :3 Way I see it, we all make mistakes. But I do believe in the value of redemption...if you truly learn and steer a better course going foward, there is... grace. As the saying goes: "To err is human. To forgive, divine."

.

User avatar
Stratadrake
Trained
Trained
Posts: 197
Joined: 07 Sep 2008, 09:43
Location: Pacific NW
Contact:

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Stratadrake » 15 Jun 2012, 16:21

It looks like I'm going to have to disable Pie Slicer's DirectX support for now - the DrawPrimitive call it uses for rendering polygons is fundamentally incompatible with VB.Net architecture. In VB6 to draw a primitive you just passed the first element of your vertex array by reference (meaning, the function actually receives a 32-bit pointer to it) and a constant indicating the size (in memory bytes) of the item and DirectX handled things from there - but .Net classifies the parameter as a by-value IntPtr32 and won't let you pun it.

There are other DrawPrimitive calls I may be able to use - but it's probably better to simply upgrade PS to DirectX9 or so.

But at least I'm using a compiler directive to handle it, so I can enable it again with the flip of a switch.
Strata @dA, @FAC

User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Goth Zagog-Thou » 15 Jun 2012, 22:12

Glad you're getting your "sea legs" back under ya, Strata.

My services for UI development are at your disposal. VS10, VS11, GTK and QT. I triple boot. :D

Lord Apocalypse
Regular
Regular
Posts: 678
Joined: 29 Jul 2009, 18:01

Re: Updating Old Apps? WZCK, Pie Slicer, et al.

Post by Lord Apocalypse » 16 Jun 2012, 01:14

I triple boot too.. XP, 7, and kubuntu. You?

Post Reply