Alpha Centauri 2

Sid Meier's Alpha Centauri & Alien Crossfire => Modding => Bug/Patch Discussion => Topic started by: PlotinusRedux on December 26, 2014, 05:42:55 AM

Title: Pracx v1.08+ Source Code
Post by: PlotinusRedux on December 26, 2014, 05:42:55 AM
I don't want to add this to GIT as I intend to rewrite it from scratch on an entirely different foundation in the next couple of months--hopefully the foundation of direct changes to compileable C++\assembly source code for terranx at least.  But for anyone interested in it as it exists, here it is.

Yitzi, the InstallScript directory has the NSIS script that installs all my files if you want to incorporation them into your patch.  Even if you don't have NSIS installed, it's just a text file you can open with anything to see exactly what my install was doing.

I make no copyright claims to this code, and give everyone full permission to use, modify, and distribute it in any way they see fit.

The solution and project files are in Visual Studio Express 2013 format, which can be downloaded for free from MS.

The meat of the code is in Shared.  It is very sparsely commented and not particularly organized--I was going to clean it up before releasing it, but since I intend to completely redo it, I didn't see much point in that.

You'll probably need to change the Output directory--I had it set to my SMACX install directory rather than Bin for quick testing of changes.

Edit: v1.07 source code (http://alphacentauri2.info/index.php?topic=14811.msg92128#msg92128) --Draz
Edit 2: Future source code releases on github: https://github.com/DrazharLn/pracx (https://github.com/DrazharLn/pracx)
Title: Re: Pracx v1.04 Source Code
Post by: DrazharLn on December 26, 2014, 11:04:27 AM
Thanks very much, Plotinus.

I'll have a go at this once I get back to a windows computer (if you don't release an updated version before then!)

Cheers,
Title: Re: Pracx v1.04 Source Code
Post by: PlotinusRedux on December 26, 2014, 11:18:45 AM
I emailed you the 1.03 source a while back, Draz, did you not get the email?
Title: Re: Pracx v1.04 Source Code
Post by: DrazharLn on December 27, 2014, 12:53:29 PM
I did not, I assumed you decided to defer a little first. I definitely entered my email address correctly in the PM (just checked) and I checked my spam folders too.

No worries, though, I can work off this code instead.
Title: Re: Pracx v1.04 Source Code
Post by: DrazharLn on January 24, 2015, 12:07:59 PM
I have some time to mess around with this soon. Could you post the v1.06 source?

Thanks,
Title: Re: Pracx v1.06 Source Code
Post by: PlotinusRedux on January 29, 2015, 06:57:45 AM
Sorry, Draz, I was down with a nasty flu, it's updated to 1.06 now.
Title: Re: Pracx v1.06 Source Code
Post by: DrazharLn on January 29, 2015, 11:42:23 AM
Thanks! Get well soon.
Title: Re: Pracx v1.06 Source Code
Post by: DrazharLn on April 22, 2016, 11:50:53 PM
v1.07 source code attached.

Quote
v1.07 (04/21/2016)
==================
* Change: No longer becomes windowed when window loses focus.
* Change: TAB no longer toggles windowed/full-screen.
* Change: ALT+ENTER now toggles windowed/full-screen mode.
* Fix: May fix colour calibration problems.
--DrazharLn
Title: Re: Pracx v1.07 Source Code
Post by: DrazharLn on May 04, 2016, 03:15:07 AM
I've spent a few hours going through the code and commenting it to explain how I think things work.

I wouldn't describe it as well documented, but it's a start.

Hopefully this will help new people get started with it.
Title: Re: Pracx v1.07 Source Code
Post by: DrazharLn on May 07, 2016, 01:41:00 AM
More people seemed interested in the code, so I've put it up on github. If anyone is watching this thread and would like me to continue bumping it for new releases, let me know.

Future source code releases on github: https://github.com/DrazharLn/pracx
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 31 - 840KB. (show)
Queries used: 15.

[Show Queries]