aliens

Author Topic: Changelog + Old OXCE+ discussion thread  (Read 438033 times)

Offline Bloax

  • Colonel
  • ****
  • Posts: 325
  • do you want to be any of those things
    • View Profile
Re: Meridian's resources and mods for X-PirateZ
« Reply #345 on: March 14, 2016, 12:17:12 am »
Because Microsoft is a bag of dicks and introduced a neat feature into MSVC2015/2016 that makes the compiled executables unrunnable in WinXP.

There's a fix for it, but I can't find it at the moment.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 10213
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Meridian's resources and mods for X-PirateZ
« Reply #346 on: March 14, 2016, 01:43:13 am »
Can't run the new version - no MSCCP140.dll found. It's an old Win7 64-bit system, impossible that something like .NET is missing.

Offline Bloax

  • Colonel
  • ****
  • Posts: 325
  • do you want to be any of those things
    • View Profile
Re: Meridian's resources and mods for X-PirateZ
« Reply #347 on: March 14, 2016, 02:03:15 am »
There's no mention of MSCCP140.dll in the many dependencies of OpenXcomExPlus29.exe in Dependency Walker, but there are of MSVCP140.dll.

Which is part of the 2015 Visual C++ Redistributable.
« Last Edit: March 14, 2016, 02:05:17 am by Bloax »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 10213
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Meridian's resources and mods for X-PirateZ
« Reply #348 on: March 14, 2016, 02:37:18 am »
There's no mention of MSCCP140.dll in the many dependencies of OpenXcomExPlus29.exe in Dependency Walker, but there are of MSVCP140.dll.

Which is part of the 2015 Visual C++ Redistributable.

Yep, you are correct. It was my typo.

Offline ivandogovich

  • Commander
  • *****
  • Posts: 2376
  • X-Com Afficionado
    • View Profile
    • Ivan Dogovich Youtube
Re: Meridian's resources and mods for X-PirateZ
« Reply #349 on: March 14, 2016, 02:12:02 pm »
Can't run the new version - no MSCCP140.dll found. It's an old Win7 64-bit system, impossible that something like .NET is missing.

Here is the link to get the missing .dlls.  I had to use the x86 version to get it working.
https://www.microsoft.com/en-us/download/details.aspx?id=48145

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 10213
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Meridian's resources and mods for X-PirateZ
« Reply #350 on: March 14, 2016, 03:00:31 pm »
Here is the link to get the missing .dlls.  I had to use the x86 version to get it working.
https://www.microsoft.com/en-us/download/details.aspx?id=48145

Thanks, I'll try it when I'm back home.

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6959
  • OXCE developer
    • View Profile
    • My Wiki
Re: Meridian's resources and mods for X-PirateZ
« Reply #351 on: March 14, 2016, 03:02:36 pm »
That's odd, my compiler never seemed to be more picky except with oxce+.. Anyhow.

I tried to define a variable, and failed pathetically.. it wouldn't store the value in anything but a "const OpenXcom::LocalizedText", which the addRow function wouldn't accept any ways... I expect addRow wants a normal string, but I couldn't use a std::string to store the output.

I ended up commenting out the line and writing:
Code: [Select]
                https://_lstRequiredItems->addRow(1, tr("STR_UNITS_PRODUCED"));
                _lstRequiredItems->addRow(1,"Units Produced");

which went through compilation. It's still compiling (takes forever...), hopefully it works. If you could address that in a better way, I'd be happy to get a proper fix ;)

Try this and let me know if it helped please.

Code: [Select]
std::wstring temp = tr("STR_UNITS_PRODUCED");
_lstRequiredItems->addRow(1, temp);

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 2518
    • View Profile
Re: Meridian's resources and mods for X-PirateZ
« Reply #352 on: March 14, 2016, 06:48:59 pm »
Probably only right solution is (copy paste from another file):
Code: [Select]
_lstFacilities->addRow(1, tr((*i)->getType()).c_str());This is because `addRow` have C variadic arguments: https://en.wikipedia.org/wiki/Variadic_function

Only `wchar_t*` can be pass because `addRow` reads only this type:
Code: [Select]
txt->setText(va_arg(args, wchar_t*));

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 10213
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Meridian's resources and mods for X-PirateZ
« Reply #353 on: March 14, 2016, 07:22:05 pm »
Here is the link to get the missing .dlls.  I had to use the x86 version to get it working.
https://www.microsoft.com/en-us/download/details.aspx?id=48145

Sadly, it didn't help. (I had it installed already.)

I guess I'll just wait for another compilation. If only my current version didn't crash when 10+ enemies are visible. :P

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 2518
    • View Profile
Re: Meridian's resources and mods for X-PirateZ
« Reply #354 on: March 14, 2016, 07:34:13 pm »

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6959
  • OXCE developer
    • View Profile
    • My Wiki
Re: Meridian's resources and mods for X-PirateZ
« Reply #355 on: March 14, 2016, 11:11:44 pm »
Meridian, I think that could be helpful for you: https://msdn.microsoft.com/en-us/library/jj851139.aspx?f=255&MSPPError=-2147217396

OK, I tried that... let's see if it helps.

New version is up (2.9-based only).

v2016-03-14
  + Compiled using XP-compatibility settings? -- thanks Yankes
  + Fixed linux compilation issue reported by Arthanor (hopefully) -- thanks Yankes
  + Changed unit facing indicator hotkey (ALT instead of SHIFT)
  + Added custom physical training factor (percentage between 0 and 100)
    - default 100 % (customTrainingFactor: 100)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 10213
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Meridian's resources and mods for X-PirateZ
« Reply #356 on: March 14, 2016, 11:32:07 pm »
Sorry, but I still have the error I mentioned before. Installing the MS distributable doesn't help.

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6959
  • OXCE developer
    • View Profile
    • My Wiki
Re: Meridian's resources and mods for X-PirateZ
« Reply #357 on: March 14, 2016, 11:37:12 pm »
Sorry, but I still have the error I mentioned before. Installing the MS distributable doesn't help.

What operating system do you have?
Are you using all files from the package? (a couple versions ago one DLL has changed too, not only EXE)
Did you install 32-bit version of C++ redistributable as Ivan suggested?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 10213
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Meridian's resources and mods for X-PirateZ
« Reply #358 on: March 14, 2016, 11:43:52 pm »
What operating system do you have?

Windows 7, 64 bit.

Are you using all files from the package? (a couple versions ago one DLL has changed too, not only EXE)

Yes, everything.

Did you install 32-bit version of C++ redistributable as Ivan suggested?

He did? He mentioned that he had to get the x86 version, but I figured he simply had a 32-bit system...

Anyway, tried this now, it works. :) Thanks, guys!

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6959
  • OXCE developer
    • View Profile
    • My Wiki
Re: Meridian's resources and mods for X-PirateZ
« Reply #359 on: March 14, 2016, 11:51:29 pm »
Anyway, tried this now, it works. :) Thanks, guys!

Happy to hear that.
And please... be extra careful with custom training factor... less than 50-60% is as good as nothing.