1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Single Player bugs and crashes v37 plus (SVN) - After the 24th of December 2016

Discussion in 'Bugs and Crashes' started by Dancing Hoskuld, Dec 26, 2016.

  1. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,058
    Gender:
    Male
    Location:
    Las Vegas
    Not sure about the first 2. The third looks to be an incorrect way to reference the player in the Greed event. @Toffer90

    In the last 3
    1) Undoubtedly an issue with my gold overflow fix. I'll have to take a look at that. Apparently getEffectiveGold() is not working as planned.
    2) Might have to take a look at mountain mines. Perhaps its not enabled for those Donkey workers?
    3) Are you saying there are supposed to be roads in those plots but there aren't now and you can't see why?
     
  2. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    7,201
    Location:
    Norway
    I probably did something wrong with the quest event in my last event, I'll have a closer look.
     
  3. JosEPh_II

    JosEPh_II TBS WarLord

    Joined:
    Jun 20, 2007
    Messages:
    16,273
    Gender:
    Male
    Location:
    Western IL. cornfields
    1. Have you met the requirements for these upgrades?
    2. regular worker not allowed to build mountain mine. Has been this way forever.
     
  4. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,058
    Gender:
    Male
    Location:
    Las Vegas
    This is a bug. Regular workers should be just as capable as any other of building a mountain mine. Might've been around for a long time but if that's been the case it hasn't been right.
     
  5. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,599
    Gender:
    Male
    Location:
    MN
    Correct / / /


    yeah will be hard to re-test without a proper dll, will have to wait till TB gets a newer one correcting the interface screen stuff . .
     
  6. AIAndy

    AIAndy Deity

    Joined:
    Jun 8, 2011
    Messages:
    3,421
    The schema is wrong, TargetCondition is not text only. It is a BoolExpr tag so it can have any of the sub tags that can appear in BoolExpr tags like And/Or/... . BoolExpr tags are the same as an expression that evaluates to bool in C++ (like what you could write in an if). In this specific case the plot is considered a valid target if it is either water or a city or has the improvement farm. TargetCondition is by far not the only place in the C2C XML that can handle a BoolExpr tag. One other example is ConstructCondition (at least I think that was the name), that allows you to restrict when a building can be built. So e.g. you could only allow a building to be built if there is no building of its kind or there is one already built within 20 plots.
     
  7. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,599
    Gender:
    Male
    Location:
    MN
    yeah, and right now cant upgrade to any unit from the looks of it??
     

    Attached Files:

    • ip.JPG
      ip.JPG
      File size:
      381.5 KB
      Views:
      31
  8. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,058
    Gender:
    Male
    Location:
    Las Vegas
    Yeah, it's thinking you don't have any gold for the upgrade. I did something incorrect with the logic on that evaluation.
     
  9. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,058
    Gender:
    Male
    Location:
    Las Vegas
    That's what I thought... that the schema was wrong, not the syntax of the xml that was applied. Thanks for commenting AIAndy! Nice to see you around.
     
  10. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,599
    Gender:
    Male
    Location:
    MN
    ahhh ok, i went back to an earlier dll and it's fine now . .plus the roads are back . .

    EDIT: OK, the roads, the mines on the mountains the upgrades are all working now with the OLD dll . .

    EDIT EDIT: Also looking at the animal spawn also, every time i kill an animal it is replaced with another one on the same plot again next turn, so i have to keep kill the animals every turn, at least this is how it is working on "NORMAL" speed . .
     
    Last edited: Oct 23, 2017
  11. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,542
    Gender:
    Male
    Location:
    Canberra, Australia
    The XML Validator works off the schema so if the schema is wrong then we will get validation errors.:lol:
     
  12. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,058
    Gender:
    Male
    Location:
    Las Vegas
    The roads must have some interaction with needed gold as well. It should be an easy fix soon as I can clear up my code enough to compile a dll.

    I've been finding on normal speed in the MP game we're playing, the conservative one, that animals are spawning at a breakneck pace. You have peace among NPCs on so it would really be an issue. Somehow the scaling factor is working too hard here on gamespeed and I have to figure out why and how to curtail it. Sure, some, fine, but this is too much and I figured it would lead to crashes and it sure seems to be.

    Yep. Makes sense. As I said, I was thinking that might've had something to do with it. So the text only part of that tag in the schema can simply be removed and it should be right.
     
  13. JosEPh_II

    JosEPh_II TBS WarLord

    Joined:
    Jun 20, 2007
    Messages:
    16,273
    Gender:
    Male
    Location:
    Western IL. cornfields
    Trade routes and Gold have always been connected to roads. And the different forms of roads. At least that is what Afforess told me .........a long time ago.....in a land far far away (RoM)...........under a different king.......called Zappara.......
     
  14. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,542
    Gender:
    Male
    Location:
    Canberra, Australia
    The affects of road types on stuff is already mostly done in the XML. Most often it is a boost in plot yield to plot improvements and sometimes to resources as well.
     
  15. Septimius

    Septimius Warlord

    Joined:
    Jun 11, 2008
    Messages:
    221
    Location:
    Copenhagen, Denmark
    With the latest update my save fully loads and doesn't ctd as it did with the version before.
     
  16. Septimius

    Septimius Warlord

    Joined:
    Jun 11, 2008
    Messages:
    221
    Location:
    Copenhagen, Denmark
    So I've been playing with the latest SVN (9730) and got a ctd. Can't say what caused it, but I've included my autosave and the minidump file.

    I'm giving the game a go again to see if the ctd repeats.


    Later edit: The ctd didn't repeat at the included save, but the game did ctd a few turns later, after a reload. I've included the autosave and minidump if you want to have a look at it.
     

    Attached Files:

    Last edited: Oct 24, 2017
  17. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,058
    Gender:
    Male
    Location:
    Las Vegas
    Ok. I'll look into it as soon as time permits. Thank you!
     
  18. Septimius

    Septimius Warlord

    Joined:
    Jun 11, 2008
    Messages:
    221
    Location:
    Copenhagen, Denmark
    Cool.

    Just to add some more info - the ctds both happened while moving the map around in my turn, either shifting from unit to unit or just moving it around.

    Also I just noticed that there's also a PythonErr.log for the 2nd ctd- so I've included it as an attached files.
     

    Attached Files:

  19. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,542
    Gender:
    Male
    Location:
    Canberra, Australia
    There is always a PythonErr2.log:lol: and that one looks normal.
     
  20. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,599
    Gender:
    Male
    Location:
    MN
    non-repeat CTD mini only . . . new game, only half way thru PreH era . .
     

    Attached Files:

Share This Page