aliens

Author Topic: [COMMENDATIONS] UFOPedia Mod 3.2 (Updated by hellrazor)  (Read 67102 times)

Offline SteamXCOM

  • Colonel
  • ****
  • Posts: 150
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #30 on: July 22, 2017, 11:23:31 pm »
The instructions seem clear enough from the first post on the install, putting in each mod resource in the following order (except does "commendationsUfopedia2_0" supersede "CommendationUFOPedia.zip?"

 1  * Commendations_v2.1.zip
2  * CommendationUFOPedia.zip +* commendationsUfopedia2_0.
3 * CommendationsAdded_ID.zip

The big hangup seems to be finding the correct Shoes' mod "Stat Tracking/Soldier Diaries" which should be the link
site (https://openxcom.org/forum/index.php/topic,1718.0.html)
 --for the nightly version  leads to a file not found.
--Version for OpenXCOM 1.0 file link gives a warning about a crash if used
--Github link appears to be  source files with no metadata.yml or .rul file indicating it is an actual working mod
--and another forum linked has "unofficial extra builds" (https://openxcom.org/forum/index.php/topic,1718.msg45954.html#msg45954)
--and links to updated rul files (https://pastebin.com/thCz8GW6   again without a clear idea of where the install of the mod is at which itself needs pieces that are posted in the forum).

Yes, where to get all the files and how to correctly install (using the Nightly)?
Thanks

EDIT Jest occured to me I should be posting this in the other forum since you did not set up the Shoes mod(just the supporting files for it here) however the   commendationsUfopedia2_0 does it superceed the earlier version or are both needed?
« Last Edit: July 22, 2017, 11:47:51 pm by SteamXCOM »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #31 on: July 22, 2017, 11:33:13 pm »
You need only latest nightly + hellrazor's latest posted mod (Commendations_v2.1.zip), nothing else.

You definitely don't need Shoes' stuff, it's already included in the nightly.

Offline SteamXCOM

  • Colonel
  • ****
  • Posts: 150
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #32 on: July 22, 2017, 11:49:28 pm »
You need only latest nightly + hellrazor's latest posted mod (Commendations_v2.1.zip), nothing else.

You definitely don't need Shoes' stuff, it's already included in the nightly.

THAT makes it totally simple, thank you very much

Offline hatchery

  • Squaddie
  • *
  • Posts: 1
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #33 on: September 16, 2017, 01:38:38 am »
Android OXCE+ v3.9a, Jule nightly built. Final mod pack 1.9.7. Game crashing after going into a soldier awards menu. The soldier just got the Purple heart. Didn't test other medals, but First to serve works well. Watching Purple heart in a ufopedia doesn't cause crash.
Have tried to overwrite the mod merged with FMP by Commendations v2.1, didn't work.
I have installed only music pack and modified SoldierPlus (purchase more experienced soldiers).
« Last Edit: September 16, 2017, 01:44:38 am by hatchery »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #34 on: April 02, 2018, 11:37:57 am »
For people who would like to use the Commendations mod in TFTD, I am attaching a fix.
All it does is import the required UFO palette, so that it's not just all black.
OXCE+ required.

PS: of course don't forget to change the metadata.yml in Commendations mod... and change master from xcom1 to xcom2, if you want to see it in TFTD mod list

Offline BlackStaff

  • Colonel
  • ****
  • Posts: 336
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #35 on: April 02, 2018, 12:07:11 pm »
Thank you very much !  :)

Offline LFM

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #36 on: April 05, 2018, 01:40:09 am »
After finishing a hybrid mission and receiving the xenocide award im getting a crash if i scroll past Defenders Of Earth on the award menu of soldiers with a lot of other awards, for example Gerrit van der Meer and Tomas Jelinek.While on other soldiers like Bilal Karim i can't even check their awards without crashing.

Playing with FMP and the Retaliator mod attached.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #37 on: April 05, 2018, 11:13:34 am »
I can't find Gerrit van der Meer, Tomas Jelinek or Bilal Karim in your save... please upload the correct save.

Offline LFM

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #38 on: April 06, 2018, 01:32:53 am »
I can't find Gerrit van der Meer, Tomas Jelinek or Bilal Karim in your save... please upload the correct save.
I'm sorry about that, must have gotten the saves confused.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #39 on: April 07, 2018, 01:01:30 am »
It's crashing because you are using both FMP and the standalone Commendations mod.

Since FMP contains (an older version of) Commendations mod already... you get conflicts!

Turn off Commendations mod and restart your campaign... or remove all commendations from your save if you know how to do it (ctrl+C in debug mode on geoscape).

Offline LFM

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #40 on: April 07, 2018, 06:25:32 am »
Removed all earned commendations from the save and commendations from the FMP rulesets and now it works flawlessly, thanks Meridian

Offline DoxaLogos (JG)

  • Colonel
  • ****
  • Posts: 358
  • Squaddie cautiously peering through the breach
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #41 on: April 08, 2018, 08:40:47 pm »
This is now available on Github.  I made new files to reflect the changes for Github markdown.  Nothing biggie... same stuff basically.

https://github.com/jgatkinsn/Commendations

https://github.com/jgatkinsn/Commendations/releases

Offline DoxaLogos (JG)

  • Colonel
  • ****
  • Posts: 358
  • Squaddie cautiously peering through the breach
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #42 on: April 11, 2018, 01:15:03 am »
I've been looking at the Angel's Cross after Meridian's LP showed a soldier was awarded this from reviving an alien.  The description of the medal that it is for reviving a fellow soldier.

I looked in the code (MedikitState.cpp) and saw this:

Code: [Select]
if (!_revivedTarget)
{
_targetUnit->setTimeUnits(0);
_action->actor->getStatistics()->revivedSoldier++;
_revivedTarget = true;
}

This makes sense with what we saw. It's just keeping track of revives of anything even though the variable says revivedSoldier

Now, I could do it this way:

Code: [Select]
if (!_revivedTarget)
{
_targetUnit->setTimeUnits(0);
        if(_targetUnit->getOriginalFaction() == FACTION_PLAYER)
        {
        _action->actor->getStatistics()->revivedSoldier++;
}
        _revivedTarget = true;
}

But I ran into a problem, when I saw the comments around "revivedSoldier".

Code: [Select]
int revivedSoldier; ///< Tracks how many times this soldier revived another unit

Sounds like this variable should be called "revivedUnit" instead of "revivedSoldier". Which is stored in a save file under revivedUnitTotal:
Code: [Select]
_revivedUnitTotal += unitStatistics->revivedSoldier
Confusing right?

I'm not sure how to proceed with fixing this issue with Angel's Cross.

I could add a new stat that really is for reviving soldiers and renamed revivedSoldier to revivedUnit.  I'm not sure how open the devs will be to adding more statistics.

Then the code becomes this:

Code: [Select]
if (!_revivedTarget)
{
_targetUnit->setTimeUnits(0);
        if(_targetUnit->getOriginalFaction() == FACTION_PLAYER)
        {
       _action->actor->getStatistics()->revivedSoldier++;
}
        _action->actor->getStatiistics()->revivedUnit++;
        _revivedTarget = true;
}


While I'm at, I could add reviving citizens and aliens to boot, but that might be going overboard :)

Or the award could be renamed to just include anybody and no code changes?

Thoughts? Suggestions?
« Last Edit: April 11, 2018, 01:24:41 am by jgatkinsn »

Offline Shoes

  • Commander
  • *****
  • Posts: 502
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #43 on: April 11, 2018, 07:19:07 pm »
The description for the medal reads "Given to a soldier who returned from the brink a fellow soldier." I suppose it doesn't technically say soldier of the same race! But I do think it's meant for human soldiers only. Adding commendations for reviving other faction's unit could be fun though ;p

The naming conventions used throughout the code are all out of whack. Fixing them would break saves though.

Offline DoxaLogos (JG)

  • Colonel
  • ****
  • Posts: 358
  • Squaddie cautiously peering through the breach
    • View Profile
Re: [COMMENDATIONS] UFOPedia Mod 2.1 (Updated by hellrazor)
« Reply #44 on: April 11, 2018, 09:57:37 pm »
The description for the medal reads "Given to a soldier who returned from the brink a fellow soldier." I suppose it doesn't technically say soldier of the same race! But I do think it's meant for human soldiers only. Adding commendations for reviving other faction's unit could be fun though ;p

The naming conventions used throughout the code are all out of whack. Fixing them would break saves though.

Shoes! You're around! :)

So, would it be better to tweak the text in the award to reflect the current state of the code?

Example:

"Given to soldier who returned from the brink a  fellow being"