Author Topic: PRACX v1.10 Release  (Read 240607 times)

0 Members and 6 Guests are viewing this topic.

Offline Lord Avalon

Re: PRACX v1.03 Release
« Reply #75 on: December 26, 2014, 01:07:45 AM »
I built the Supercollider, and the video had no sound. (I don't know about other videos, as I usually close them right away.) Back to the game, and it has sounds.
Your agonizer, please.

Offline Yitzi

Re: PRACX v1.03 Release
« Reply #76 on: December 26, 2014, 01:08:24 AM »
Ok, here it is.

Offline PlotinusRedux

Re: PRACX v1.03 Release
« Reply #77 on: December 26, 2014, 01:17:10 AM »
Here's the patched version.  Hopefully whatever was making pracxpatch.exe crash doesn't also crash prax.dll.  I hate MS compilers with all the hidden dll links--I might switch to GNU C to avoid them.

Offline Yitzi

Re: PRACX v1.03 Release
« Reply #78 on: December 26, 2014, 02:04:25 AM »
It seems to be working.

Offline Lord Avalon

Re: PRACX v1.03 Release
« Reply #79 on: December 26, 2014, 04:12:58 AM »
I built the Supercollider, and the video had no sound. (I don't know about other videos, as I usually close them right away.) Back to the game, and it has sounds.
OK, maybe never mind. I built Pholus Mutagen, started a new game and built Human Genome Project - no sounds. But then I restarted my PC. Got HGP sound. Just one of those things?
Your agonizer, please.

Offline PlotinusRedux

Re: PRACX v1.03 Release
« Reply #80 on: December 26, 2014, 04:20:55 AM »
Yitzi--antivirus maybe?  Or not running pracxpatch with admin rights?  What antivirus are you running, if any?

Lord Avalon--could be, my sound gets corrupt playing this old games from time to time--it doesn't go away completely, but gets very distorted.  If you want to test more and know how to use the command shell, you can go to the "movies" directory under your SMACX directory and run:

playuv15 -software supercollider.wve

That's what I have it shelling to to play in game movies now to avoid the movies+alt tab issues.


Offline Yitzi

Re: PRACX v1.03 Release
« Reply #81 on: December 26, 2014, 04:24:50 AM »
Yitzi--antivirus maybe?  Or not running pracxpatch with admin rights?  What antivirus are you running, if any?

I ran with admin rights, antivirus was both Windows Defender (which I had been running on the old computer where it worked properly) and AVG (which IIRC I had not).

Offline PlotinusRedux

Re: PRACX v1.03 Release
« Reply #82 on: December 26, 2014, 04:38:36 AM »
Yitzi--if you get time sometime, you might try running the patch program with AVG off to see if that's the issue.

If AVG is the issue, the solution would be to just distribute patched versions of terranx.exe and terran.exe.  I don't want to distribute terranx.exe at least myself, though, because I don't want someone installing my patch to overwrite yours.

So, we could either have you do the distribution of both patches together, with me only releasing test versions with a renamed terranx.exe in the interims, and/or we could add a version resource to terranx.exe--when they installed mine, I'd check the terranx.exe version, and if it was above--well, anything, since it doesn't exist now--I would assume they had your patch and not overwrite it.

Fortunately, I don't expect my patch to terranx.exe to ever need to be changed--all I need from it is to load prax.dll if it exists, and the dll can do everything from there.  So as long as your terranx.exe contains the changes I sent tonight, it should always be enough to work with anything I do in the future.

Well, unless, of course, I am able to make a fully re-compilable version of terranx using Scient's IDA database--in which case we can all start modifying that source code in git and any compilation from it will have all our changes.

Offline PlotinusRedux

Re: PRACX v1.03 Release
« Reply #83 on: December 26, 2014, 05:05:17 AM »
Actually, adding a version resource to terranx.exe wouldn't be a bad idea in general, so people could easily verify they have the right version of your patch, etc.

http://stackoverflow.com/questions/284258/how-do-i-set-the-version-information-for-an-existing-exe-dll lists a few free ways to add a version resource if you don't have a version of Visual Studio that will do it (the free Express version I'm using won't, I've been adding them to my dll's manually).

Offline Yitzi

Re: PRACX v1.03 Release
« Reply #84 on: December 26, 2014, 05:14:23 AM »
I've just been editing the hardcoded text referenced by "show version number".

Offline PlotinusRedux

Re: PRACX v1.04 Release
« Reply #85 on: December 26, 2014, 05:31:08 AM »
I've been sitting on 1.04 for a while--the only significant change is the zoom level calculations, but it is a pretty big improvement.

This is probably the last version of a while--I'm going to switch focus to more foundational work for a month or two (especially when Scient releases his IDA work) that will greatly increase the ease of making changes, so I wanted to go ahead and release this.

Offline Mart

Re: PRACX v1.04 Release
« Reply #86 on: December 26, 2014, 05:35:30 AM »
I will have more detailed reports on PRACX working soon, but one thing, that seem to be connected to the patch is, that sometimes left-click generates like 2 events, both left-clicks subsequent. So for example:
I select a "button/window"? in unit workshop for some field (armour, engine, etc.) then instead of the usual window with options, one of these options gets selected, armour type, engine type, etc. And the window with options appears to blink in a fraction of a second. It looks like my left click generated two the same events (left-click).
Any idea, why this happens?

Offline Lord Avalon

Re: PRACX v1.04 Release
« Reply #87 on: December 26, 2014, 07:19:00 AM »
... Lord Avalon--could be, my sound gets corrupt playing this old games from time to time--it doesn't go away completely, but gets very distorted.  If you want to test more and know how to use the command shell, you can go to the "movies" directory under your SMACX directory and run:

playuv15 -software supercollider.wve

That's what I have it shelling to to play in game movies now to avoid the movies+alt tab issues.

It works now. I don't remember having any sound problems before your patch (but of course, I could be wrong).
Your agonizer, please.

Offline PlotinusRedux

Re: PRACX v1.04 Release
« Reply #88 on: December 26, 2014, 07:55:26 AM »
Mart--I'm not able to reproduce that, and offhand I can't think of anything I changed that might cause that.  If you find a pattern that seems to make it happen or can think of anything that might help me reproduce it, please let me know--that's the kind of thing I have to be able to reproduce to track down.

Lord Avalon--it's possible one of my "if (0==strcmp(player_name, EVIL_SPOCK))UseBadLuckRandomNumberGenerator();" might be interfering with the sound system.  (It's the internet, so I have to explicitly state that was a joke--you wouldn't believe some of the things I've had people take seriously.  If it is related to patch, the only thing I can think of is maybe since SMAX is already using DirectSound, sometimes that interferes with playuv15.exe accessing DirectSound?  That's just a wild guess, though.)


Offline Lord Avalon

Re: PRACX v1.04 Release
« Reply #89 on: December 26, 2014, 08:40:09 AM »
You are mistaken. I am Good Spock, aka Cool Spock. ^_^
Your agonizer, please.

 

* User

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

* Community poll

SMAC v.4 SMAX v.2 (or previous versions)
-=-
24 (7%)
XP Compatibility patch
-=-
9 (2%)
Gog version for Windows
-=-
103 (32%)
Scient (unofficial) patch
-=-
40 (12%)
Kyrub's latest patch
-=-
14 (4%)
Yitzi's latest patch
-=-
89 (28%)
AC for Mac
-=-
3 (0%)
AC for Linux
-=-
6 (1%)
Gog version for Mac
-=-
10 (3%)
No patch
-=-
16 (5%)
Total Members Voted: 314
AC2 Wiki Logo
-click pic for wik-

* Random quote

Against such abominations, we organize our defenses on the principle that one strong and able mind can shield the many.
~Spartan Battle Manual

* Select your theme

*
Templates: 5: index (default), PortaMx/Mainindex (default), PortaMx/Frames (default), Display (default), GenericControls (default).
Sub templates: 8: init, html_above, body_above, portamx_above, main, portamx_below, body_below, html_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 45 - 1228KB. (show)
Queries used: 38.

[Show Queries]