Single Player bugs and crashes v36 plus (SVN) - After the 24th of October 2015

Status
Not open for further replies.
Did you try without SM?
lol... no. Perhaps I should. I would imagine it could also have something to do with Fight or Flight being off as well. Ugh.
 
lol... no. Perhaps I should. I would imagine it could also have something to do with Fight or Flight being off as well. Ugh.

I dunno if you saw the last part of this post: Link

I replaced "completely harmless" promotion with -100% damage in UnitCombat for all waterfowls and penguins.
The promo was only used for 3-4 animals.
 
I dunno if you saw the last part of this post: Link

I replaced "completely harmless" promotion with -100% damage in UnitCombat for all waterfowls and penguins.
The promo was only used for 3-4 animals.

Well... its still oddly difficult to calculate.

I'm looking at a combat odds right now of a stone thrower vs a Wild Turkey. Being a Gamebird (you added the -100% damage to them too), the attacking unit has a 100% survival odds (and then 2% chance of withdrawal). This is without size matters and fight or flight.

I'm not sure what would cause the 20% bit for ducks unless perhaps the chance of retreat was factoring in there much higher?

The odds calculator clearly needs to do a better job of indicating damage modifiers at least... I was initially confused as to why I was looking at 100% chance of survival when the turkey out-strengths my unit.

It's also a new thing to be looking at terrain defense modifiers for units. I'm not sure if I made that possible where it wasn't before, if units have changed or what and I'm not sure if I dislike it anyhow. Makes sense imo.

BTW: -100 Damage modifier can list as such but total damage modifier still caps out at -95% so you might be creating a little confusion for players with this. I'd suggest -95% since it'll cap out at that anyhow.



Also... I'm wondering if the guy who said he couldn't attack animals in his borders might've been working with the Amnesty option...
 
Also... I'm wondering if the guy who said he couldn't attack animals in his borders might've been working with the Amnesty option...

I am fairly sure I have the Amnesty option on and I have had no problem attacking animals in my cultural borders. But they only get there when my borders expand to the plot they are on.

BTW with options, I think it is the wrong way round to expect people to turn on options to keep things the way they were. I think it would have been better to have options to select the new way instead, just like Usable Mountains allowed people to try out the new way rather than suddenly be forced into new stuff without notice. Remember you don't get to see the options it you "Play Now" and you would expect when selecting that that you would get a game just like you did before. Alternately the options should have defaulted to selected.
 
I am fairly sure I have the Amnesty option on and I have had no problem attacking animals in my cultural borders. But they only get there when my borders expand to the plot they are on.

BTW with options, I think it is the wrong way round to expect people to turn on options to keep things the way they were. I think it would have been better to have options to select the new way instead, just like Usable Mountains allowed people to try out the new way rather than suddenly be forced into new stuff without notice. Remember you don't get to see the options it you "Play Now" and you would expect when selecting that that you would get a game just like you did before. Alternately the options should have defaulted to selected.

Is not the default the 'suggested way to play' by the team? I would want to suggest to play according to the changes that I've ONLY made optional because I knew you wouldn't like them. Whether they should've even been made options at all was questioned but I knew where you would stand on those things.
 
Latest SVN python errors:

Spoiler :
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'
Traceback (most recent call last):
File "BugEventManager", line 363, in _handleDefaultEvent
File "The_JMods", line 146, in onCombatResult
AttributeError: PyPlayer instance has no attribute 'isNPC'


this is how many times it was (what)?

also still have this:

605623.828] info type 'MISSION_SELL_CAPTIVE' not found, Current XML file is: modules\Custom_World_Views\Slavery\Slavery_CIV4UnitInfos.xml
 
Well.. that's the error I was trying to hunt down. Why were my logs not catching this?

Ok... I can resolve THAT.

Actually... I don't get it. Previously the call in question was:
Code:
	if not (playerY.isBarbarian()):
And now it's
Code:
	if not (playerY.isNPC()):
isNPC() is fully exposed to python for CvPlayer sooooo... I'm not sure how its missing it. HOWEVER, there IS a PyHelper file that I couldn't figure out how to add isNPC() to without causing a bug I didn't understand. Maybe that's where isBarbarian() is being pulled from in this case? And thus why isBarbarian() works but isNPC() doesn't even though both are perfectly exposed to python from the code?
 
Well.. that's the error I was trying to hunt down. Why were my logs not catching this?

Ok... I can resolve THAT.

In BUG you don't just need to turn logging on but you also need to set the level of the error being reported. I would have thought that the default level would have been fine though.
 
In BUG you don't just need to turn logging on but you also need to set the level of the error being reported. I would have thought that the default level would have been fine though.

See my edit above btw.

Even after setting to the 3rd level I wasn't getting this. What tab in Bug options are you specifically on for that?
 
See my edit above btw.

Even after setting to the 3rd level I wasn't getting this. What tab in Bug options are you specifically on for that?

Under BUG Options Tab Logging turn Logging and Start Automatically on.

On the System tab I have screen level set to Error and File Logging to Debug.
 
Under BUG Options Tab Logging turn Logging and Start Automatically on.

On the System tab I have screen level set to Error and File Logging to Debug.

Ok.

So do you have any idea why a fully exposed function to python for PyPlayer isn't referenceable in the J's python file?
 
PyHelper.py contains a Python class that interfaces between the Python and the dll. It does not have an isNPC() defined in it. The point of this class and its methods is to speed some things up and do some of the stuff normally used simplifying the resultant Python.
 
PyHelper.py contains a Python class that interfaces between the Python and the dll. It does not have an isNPC() defined in it. The point of this class and its methods is to speed some things up and do some of the stuff normally used simplifying the resultant Python.

Ok... I wondered about that. I just couldn't see where it was getting isBarbarian from PyHelper. I'll try to get isNPC and isHominid in there as well. That may do the trick.
 
OK after the latest SVN commit, everything is looking waaaaay better and working waaaay better, back to the LESS than 10 second start again in the Ancient Era, nice!!!! So thx everyone for making this work again, "Way To Go!!!":)

only error is in the World View area . .
 
OK after the latest SVN commit, everything is looking waaaaay better and working waaaay better, back to the LESS than 10 second start again in the Ancient Era, nice!!!! So thx everyone for making this work again, "Way To Go!!!":)

only error is in the World View area . .

What's the World View area error?
 
The automate missions need to be updated, I don't think they see the now spilt animals and barbs as valid targets.
 
The automate missions need to be updated, I don't think they see the now spilt animals and barbs as valid targets.

I think hunting automation has always considered any units as a target...
That automation has always had some problems though. ^^
In bug options you can change the lowest odds for winning a battle that allows the automated unit to attack; maybe it's too high for you?

As this is basically AI work I'm guessing it will be looked at when the big AI code reviews commences. that might be after v37 is released, or even later.
 
Status
Not open for further replies.
Back
Top Bottom