Author Topic: [OLD] Old OXCE+ discussion thread  (Read 720143 times)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1335 on: August 07, 2017, 04:18:23 pm »
It's not obvious at all... how should the game let you know if you're missing for example 5000 items of 200 types?

Same as after a mission, if you don't have replacements.

Otherwise it would be a pain tracking it down manually...

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 8597
    • View Profile
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1336 on: August 08, 2017, 05:34:30 pm »
New OXCE+ version is up.

2017-08-08
 - Ability to reopen mission briefing during the mission (Ctrl+B)
 - StatStrings per soldier type: https://openxcom.org/forum/index.php/topic,5638.0.html
 - Added craft equipment loadout save/load GUI (accessible via quicksave/quickload hotkeys): https://openxcom.org/forum/index.php/topic,5637.0.html
 - More debug/testing options in geoscape (CTRL+1 to CTRL+6): https://openxcom.org/forum/index.php/topic,5636.0.html
 - RESEARCH RULESET:
   - Ability to block (or even revoke) research topics/paths: https://openxcom.org/forum/index.php/topic,5482.msg86298.html#msg86298
   - Support for "getOneFree" with dependencies: https://openxcom.org/forum/index.php/topic,4830.msg86238.html#msg86238
   - Flag to give GetOneFree topics in sequential order: https://openxcom.org/forum/index.php/topic,5624.0.html
 - Added "Training Finished" GUI: https://openxcom.org/forum/index.php/topic,5561.0.html
 - EXPERIMENTAL: Added isLeeroyJenkins flag for units and made the AI act on it (by Stoddard): https://openxcom.org/forum/index.php/topic,5628.0.html
 - Ability to give a bounty item after a successful mission: https://openxcom.org/forum/index.php/topic,5625.0.html
 - Damage preview cannot go into minus anymore (was caused by range-based damage reduction)
 - Armor flags that disable running/strafing/kneeling: https://openxcom.org/forum/index.php/topic,5623.0.html
 - Considering perf. bonus for end-of-month economy warning
 - Removed Ctrl+W hotkey (show number of wounded soldiers)
 - Support for primed and hidden items on the minimap: https://openxcom.org/forum/index.php/topic,5620.0.html
 - Redesigned the auto-assign pilots functionality: https://openxcom.org/forum/index.php/topic,5574.0.html
 - Inventory::arrangeGround now sorts items by 'list order' (by karadoc)
 - Fixed living space check for personnel production projects (by karadoc)
 - Psi training no longer reduces stats to match the cap (by karadoc)
 - Fixed 2 ammo display glitches

Download: https://drive.google.com/open?id=0B8itkFQbhj-YVnhnaW8wSjBSbHM
« Last Edit: August 08, 2017, 05:38:52 pm by Meridian »

Offline AngelicJoker

  • Sergeant
  • **
  • Posts: 46
  • Why not?
    • View Profile
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1337 on: August 09, 2017, 08:42:53 am »
All of these new features look awesome and I can't wait for the next release of X-PirateZ to try it out.  Thanks so much for all the hard work you put in!

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 672
    • View Profile
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1338 on: August 09, 2017, 03:42:24 pm »
I have to say, very nice touch with the minimap & grenades. Currently playing area 51 v0.94 with your exe of 08/08/17 and I'm wondering how do you get the damage preview to show on the carouser as well as the percentage chance to hit?

Offline Dioxine

  • Commander
  • *****
  • Posts: 5412
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1339 on: August 10, 2017, 06:01:40 am »
Another great update, with many new features! Congratulations!

Offline Stoddard

  • Colonel
  • ****
  • Posts: 485
  • in a fey mood
    • View Profile
    • Linux builds & stuff
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1340 on: August 11, 2017, 07:01:37 pm »
Hi Meridian,

Commit 7fdf8f951 broke builds on Ubuntu Trusty.

I think it's due to gcc and thus libstdc++ version (which is 4.8.4 there), since other builds are fine, starting with the Debian Jessie, where gcc is 4.9.2.


The nightmare of a C++ error is:
Spoiler:
Code: [Select]
g++ -O3 -Wall -rdynamic -std=gnu++11  -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include -I/usr/include/SDL   -c -o ../obj/SavedGame.o Savegame/SavedGame.cpp
Savegame/SavedGame.cpp: In member function ‘bool OpenXcom::SavedGame::isResearched(const std::vector<std::basic_string<char> >&, bool, bool) const’:
Savegame/SavedGame.cpp:1844:24: error: no matching function for call to ‘std::vector<std::basic_string<char> >::erase(std::vector<std::basic_string<char> >::const_iterator&)’
     j = matches.erase(j);
                        ^
Savegame/SavedGame.cpp:1844:24: note: candidates are:
In file included from /usr/include/c++/4.8/vector:69:0,
                 from Savegame/SavedGame.h:21,
                 from Savegame/SavedGame.cpp:19:
/usr/include/c++/4.8/bits/vector.tcc:134:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = std::basic_string<char>; _Alloc = std::allocator<std::basic_string<char> >; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<std::basic_string<char>*, std::vector<std::basic_string<char> > >; typename std::_Vector_base<_Tp, _Alloc>::pointer = std::basic_string<char>*]
     vector<_Tp, _Alloc>::
     ^
/usr/include/c++/4.8/bits/vector.tcc:134:5: note:   no known conversion for argument 1 from ‘std::vector<std::basic_string<char> >::const_iterator {aka __gnu_cxx::__normal_iterator<const std::basic_string<char>*, std::vector<std::basic_string<char> > >}’ to ‘std::vector<std::basic_string<char> >::iterator {aka __gnu_cxx::__normal_iterator<std::basic_string<char>*, std::vector<std::basic_string<char> > >}’
/usr/include/c++/4.8/bits/vector.tcc:146:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = std::basic_string<char>; _Alloc = std::allocator<std::basic_string<char> >; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<std::basic_string<char>*, std::vector<std::basic_string<char> > >; typename std::_Vector_base<_Tp, _Alloc>::pointer = std::basic_string<char>*]
     vector<_Tp, _Alloc>::
     ^
/usr/include/c++/4.8/bits/vector.tcc:146:5: note:   candidate expects 2 arguments, 1 provided

I can't make any sense of it :-\

Okay, this diff fixes the above error.
Spoiler:
Code: [Select]
diff --git a/src/Savegame/SavedGame.cpp b/src/Savegame/SavedGame.cpp
index bd098de..9a3b369 100644
--- a/src/Savegame/SavedGame.cpp
+++ b/src/Savegame/SavedGame.cpp
@@ -1837,7 +1837,7 @@ bool SavedGame::isResearched(const std::vector<std::string> &research, bool cons
        if (skipDisabled)
        {
                // ignore all disabled topics (as if they didn't exist)
-               for (std::vector<std::string>::const_iterator j = matches.begin(); j != matches.end();)
+               for (std::vector<std::string>::iterator j = matches.begin(); j != matches.end();)
                {
                        if (isResearchRuleStatusDisabled(*j))
                        {

« Last Edit: August 11, 2017, 07:16:55 pm by Stoddard »

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 3194
    • View Profile
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1341 on: August 11, 2017, 07:24:43 pm »
http://en.cppreference.com/w/cpp/container/vector/erase C++11 allow const iterators to be used for erase. gcc 4.8 probably did not implements this yet.

Offline Stoddard

  • Colonel
  • ****
  • Posts: 485
  • in a fey mood
    • View Profile
    • Linux builds & stuff
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1342 on: August 11, 2017, 07:28:52 pm »
http://en.cppreference.com/w/cpp/container/vector/erase C++11 allow const iterators to be used for erase. gcc 4.8 probably did not implements this yet.

Yep, most likely the case.

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 8597
    • View Profile
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1343 on: August 11, 2017, 08:32:31 pm »
Okay, this diff fixes the above error.

Fixed.

Offline Stoddard

  • Colonel
  • ****
  • Posts: 485
  • in a fey mood
    • View Profile
    • Linux builds & stuff
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1344 on: August 12, 2017, 03:08:21 pm »

Offline Nord

  • Commander
  • *****
  • Posts: 1625
  • The Gate is open.
    • View Profile
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1345 on: August 13, 2017, 12:13:35 pm »
Meridian, you said one day, that any armor with size 2 can have inventory. But when i make such thing, pressing the inventory button does nothing. I can still go to this unit inventory through other units, but...

Other thing: is it possible to unload fixed weapon's ammo?
« Last Edit: August 13, 2017, 12:16:28 pm by Nord »

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 8597
    • View Profile
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1346 on: August 13, 2017, 02:52:00 pm »
Meridian, you said one day, that any armor with size 2 can have inventory. But when i make such thing, pressing the inventory button does nothing. I can still go to this unit inventory through other units, but...

Other thing: is it possible to unload fixed weapon's ammo?

Inventory thing was fixed in nightly few days ago by supsuper I think... will be in the next OXCE version 3.9b or 4.0.

No, you cannot unload fixed weapon.

Offline Nord

  • Commander
  • *****
  • Posts: 1625
  • The Gate is open.
    • View Profile
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1347 on: August 13, 2017, 03:37:43 pm »
It is nice, thanks.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1348 on: August 13, 2017, 04:31:43 pm »
The inventory is still available in the meantime either at the before-mission inventory screen or by opening the inventory on another soldier and using the scroll arrows.

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 8597
    • View Profile
Re: [OXCE+] Meridian's resources and mods for (not only) X-PirateZ
« Reply #1349 on: August 16, 2017, 10:30:00 pm »
New OXCE+ version is up.

2017-08-16
 - Cleanup: integrated OXCE+ missing translations into data files
 - Better tooltips for blue and purple indicators
 - Night vision colors 1 and 10 banned for TFTD
 - Fix night vision (vanilla compatibility)
 - Cleanup: unhardcoded OXCE+ color codes (TFTD support!)
 - Palette preview GUI: https://openxcom.org/forum/index.php/topic,5652.0.html
 - Cleanup: unique interface ruleset codes: https://openxcom.org/forum/index.php/topic,5647.msg86719.html#msg86719
 - Removed "Predict UFO trajectory" user option
 - Option to play briefing music longer: https://openxcom.org/forum/index.php/topic,5647.msg86647.html#msg86647
 - Ufopedia article type 3 (for HWPs) can have a background now: https://openxcom.org/forum/index.php/topic,5647.msg86641.html#msg86641
 - Custom sound effects for geoscape events: https://openxcom.org/forum/index.php/topic,5647.msg86603.html#msg86603
 - Facility moving feature hidden behind the most useless options ever: https://openxcom.org/forum/index.php/topic,5647.msg86643.html#msg86643
 - New craft status "pilot missing": https://openxcom.org/forum/index.php/topic,5541.msg86567.html#msg86567
 - Smarter algorithm to assign crew when starting new game: https://openxcom.org/forum/index.php/topic,5541.msg86510.html#msg86510

Download: https://drive.google.com/open?id=0B8itkFQbhj-Yd1RrRFRqNjV1RjA

Important:
Starting with this version, OXCE+ comes with a full package (executable + data files)... similar to nightlies.
You MUST update the data files each time too, updating just the executable is NOT enough.