c++ programming?

For questions about using Classic.

Post » Sat Sep 06, 2014 7:14 pm

I heard construct classic was integrated with c++ programming? how does that work? IF I put some C++ programming code in the python scripter will it work?
B
22
S
9
G
6
Posts: 72
Reputation: 4,750

Post » Sat Sep 06, 2014 8:12 pm

You can use c++ to make plugins. You can download the sdk from here:
http://sourceforge.net/p/construct/code/HEAD/tree/

Youll need to use visual studio since the sdk uses CString. Their was a wiki with a guide, but it seems to have disappeared. You can look at the source for other plugins as examples, also you can find a lot of info here:
construct-engineering_f168

You could use c++ from python but it would require a python lib that allows you to use c++, or you could compile a dll and access it from python with ctypes. You'd have to use python to interface with anything in the engine though.

I have done some expiriments with accessing sprites from c in a dll, but its tricky and still needs python to call the dll.
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959

Post » Tue Feb 17, 2015 5:17 am

i'm new to c++ can you tell me which to file to download?http://sourceforge.net/p/construct/code/HEAD/tree/ in here?
B
22
S
9
G
6
Posts: 72
Reputation: 4,750

Post » Tue Feb 17, 2015 6:41 am

all the tutorials seem to be deleted can you upload a new one?
B
22
S
9
G
6
Posts: 72
Reputation: 4,750

Post » Tue Feb 17, 2015 9:32 am

I think you just need the common and sdk folders and everything in them. Visual studio is then needed to compile the templates in the sdk folder. Open the *.sln files with visual studio. I've used visual studio 2008 successfully, but I don't know if newer ones will work.

Once the project is open there is a dropdown to select between:
Release, runtime, debug release, and debug runtime.
Release is the edittime portion of the plugin and runtime is the one added to cc games.

I don't recall off hand where the built ctx files are put but you can find out where by poking around the settings. You can also set it to build directly in the plugins folder of construct. Just be sure to change the filename used.

You probably will want to download the other folders as well to get the source for other plugins since most of the info you'll need about the sdk will be learned by example.

Also in order to build any plugin that uses graphics or sound such as caudio2 you'll also need the directx sdk.
In short it can be done, but if you've never used visual studio or c++ before it will be a rough start.

What do you plan on doing? Python is probably much easier to work with.
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests