[Religion and Revolution]: Bugs and Todos

I'm fairly sure that something is off with AI parameters for building priorities. The most glaring example I have is in what shape were the French cities I took in my gigantic game. To only name the capital, Quebec, health was at -25 and no health building were present (not even the well) with a population of 44. All cities suffered from that too.
There is a parameter in buildings which is ai build weight, it is set to 0 for all health building, so I'm wondering if setting them at 100, as many others buildings, would have the AI build at last these important improvements.

Hi guys,

to make this clear again:

AI does not need to build health buildings.

Considering that feature AI plays by its own rules and will never suffer by negative effects of that feature.
(I thoroughly explained that by the way, when I introduced that feature. And I tested it uncounted times !)

It is a total different situation of course if you as a human Player will take over such an AI City with very low health.
The negative health AI has accumulated can hit you like a hammer.

But that is ok in my opinion.
You will simply have to cope with all the injured Population.

Having AI prioritize health buildings would negatively impact its overall strategy.

I know it is fun to speculate about "wrong balancing".
But without deeply knowing the code, it is nothing more than speculations ...

Don't go crazy and ruin AI balancing because you did not read the code !
(Good XML balancing is impossible without knowing the details of the DLL logic)
 
That's good to know, thanks Ray. Nothing to do here, so fine for me :)

You can't expect us to read the entirety of the code base though. If RaR has a manual or some doc stating that AI don't use health system, then I'll gladly chastise myself with stinging nettle though ;)
Now, as you are still regularly reading the forum, no harm done, right, you enlightened us and that's enough to settle the non-issue!
 
... stating that AI don't use health system, ...

That is not completely correct either. :)

AI can profit from positive effects of Health. <-- Same Rules as Human Player
AI can never suffer from the negative effects of that feature though. <-- Special AI Rules

Most of the time AI will simply ignore the feature but could theoretically build the Buildings and use the Professions. <-- Balancing
(I have seen AI use the feature, when I gave one of its bigger cities the Buidling and Specialist with World Builder.)

Generally, AI will profit a lot more by focussing on other features, Units, Buildings and Professions.
(AI is simply not capable of using situational and adaptive strategies like a Human Player.)

If RaR has a manual or some doc stating that AI don't use health system, ...

First of all, I would write myself to death, if I would try to explain again all the logic I wrote and my reasons for doing so.
I already tried to do that in the forum, when introducing specific features. I admit though, it is a lot of information im many posts.

Secondly, I don't think players should know all the things that are going on behind the scenes.
It would destroy the illusion.

(Mod-)modders however that want to improve AI or simply do a better balancing need to read the code.
Thus I tried to write my code in a good fashion and also give some commenting.

And of course, there is always a chance that my code is bugged.
I did try to do thorough testing though.

Messing with balancing without reading DLL code might work 50% of the time, when things are very simple.
In all other cases, it will make things worse.

... you enlightened us and that's enough to settle the non-issue!

Did not want to be rude, sorry.
But I simply want to prevent that players will jump on false "Bugs and Balancing Problems".

If potential players don't play RaR because they read "Health completely ruined AI", that is an issue for me.
If mod-modders negatively impact their AI balancing because they read "I need to have AI Focus on Health" that is an issue for me.

I know, you did not formulate it that way.
But you never know what people are interpreting from such a post.

Just so you understand why I jump on such posts like a bear mother defending its baby bear. :)
(And there might be weeks between my sporadic visits in the forum. So I don't really visit regularly.)
 
Dear modders!

I would like to ask you what is the current development state of the mod. Is RaRE 2.5.1 our only hope? How many are you at the moment, and do you work together? Do you plan or expect to start working together on further development? RaR is awesome at its current state, still many of us would like to dream there is more future for this great project. Hugs to you all!
 
I recently started a new game of RAR v2.4. I'm experiencing an annoying systematic crash in 1630AD when I press enter to end the turn. I can't get rid of it.

Is there a folder with crash report files for Civ4Col? I can't find it. You can download my savegame from this post.

I have no clue from where it could come from. The game uses RAR standard rules.
 

Attachments

  • Samuel de Champlain 1630 ap. J.C-Avril.ColonizationSave
    1.6 MB · Views: 167
Thanks Nightingale!
That's very welcomed! :goodjob:

I'm sorry but I can't provide any better information. I've tried many things like coming back earlier in the game by many turns, doing things differently, and even though it can slightly change the exact turn at which it crashes, the crash still comes back.

Everything seems normal. I'm not even doing something particularly new at this stage of this game. Of course I'll come back on the thread if I eventually find anything relevant.
 
A crash or freeze after pressing end turn is usually due to something the AI does. This makes it near impossible to identify the cause for human players. I had one freeze in RaRE which turned out to be triggered when the AI tried to load tools onto a ship. I have absolutely no idea how anybody could figure out that cause without using external tools to examine what the dll is doing.

Don't be sorry for not providing more info. Once there is enough info to recreate the problem inside the debugger, any other info would likely be useless. It's only when the computer think the code is ok and just carries on that lots of info is really needed, like if you suddenly gained 432465 gold from one turn to anther for no reason. A crash is when the computer says this is very wrong and should never happen.
 
Thanks a lot Nightinggale for this advice.

I've done some testing erasing AI opponents and checking what was going on. It turns out the bug is linked to Dutch Royal Light Infantrymen located in Nieuw Amsterdam that I've given to the Dutch through WorldBuilder because they were struggling against the Incas. Alright I confess, to make my games more interesting, I help the AI opponents once in a while. :blush:

I don't exactly know what the bug is about. Those units have been given a long time ago without any problem. Maybe is it about XP and promotions?

Anyway, erasing the units have cleared the issue. I don't have the crash anymore. :)
 
I will still examine the savegame. First of all we don't know if WB is required to trigger the crash. Secondly even if WB is needed, no function should be able to crash the game. The trade offer from natives crash is a good example of this. If the natives unit/settlement moved or died between making the offer and you answering, then the game crashed. I changed the function to not assume anything and it should now not be able to crash at all, regardless of what the game comes up with. It might cancel the deal if too much of the input data is lost, but that's minor compared to a crash.

It's good you could avoid the crash and keep playing. It's more enjoyable for you and it makes the fix less urgent :)
 
Okay, so I have declared independence and have killed all the Kings troops and recaptured all my towns and there is no more unrest. The King only has one MOW left which floating out there somewhere.

However, after 3 turns I still get no notice I've won the game - do I have to scour the oceans and sink that one ship to win or what???? :crazyeye:
 
I've encountered a graphical bug with the selection radius of the Continental Guard. It overlaps the adjacent plots completely, so that I cannot select the unit directly adjacent to it. I can select units three plots away though. You can see what I mean in the screenshots; I can only select the Town Guard on the far right, not the other two.

BTW, this bug appears in RaR 2.4, without any modifications. I have noticed someone else encountered this bug as well, but I don't think it was solved back then:
http://forums.civfanatics.com/showthread.php?p=14059514&highlight=continental#post14059514

It is very similar to a bug in an earlier version where this happened to the heavy artilleries. That was one was solved (http://forums.civfanatics.com/showthread.php?p=13616354#post13616354), but this required some work on the .nif files.

Has anyone corrected this yet, and if not, is this something an inexperienced modder can solve?
 

Attachments

  • Civ4ScreenShot4461.JPG
    Civ4ScreenShot4461.JPG
    145.6 KB · Views: 181
  • Civ4ScreenShot4462.JPG
    Civ4ScreenShot4462.JPG
    146.9 KB · Views: 134
Has anyone corrected this yet, and if not, is this something an inexperienced modder can solve?
The bug wasn't there in version 1.9 and I've kept a copy of it.

An easy solution is simply to use the unit from that version. Here's what you need to do for this.

  • Go to the folder Religion_and_Revolution/Assets/Art/units/Special_Military and rename the folder "Continental_guard" as "Continental_guard - ORIGINAL". Renaming the folder means it won't be found by the game anymore, but it's always safer to keep a copy rather than deleting it.
  • Then, copy paste this folder at the same location:
    continental_guard.zip
  • Then go to the folder Religion_and_Revolution/Assets/XML/Art and rename the file "CIV4ArtDefines_Unit.xml" as "CIV4ArtDefines_Unit - ORIGINAL.xml".
  • Then, copy paste this file at the same location:
    CIV4ArtDefines_Unit.zip

This will only change the graphics used by the Continental guard unit (replacing them with those used in version 1.9). It won't have any impact at all on the rest of version 2.4 and the bug would be cleared (that's what I did for my copy).


You can order the unit to wait and that way get the other units.
There's a better workaround. Press ctrl+left arrow or ctrl+right arrow and you can rotate 360°. You just need to find an angle at which the unit you want to select is in front of the continental guard, then you can select it. Then press ctrl+Home to restore the original view.
 
The bug wasn't there in version 1.9 and I've kept a copy of it.
I can do better than that. I imported the entire RaR svn into git, complete with commit history and everything. The computer spent hours downloading every single revision, but it mean the RaRE git server can tell when each file was changed. Even better, RaRE use a public git server, meaning everybody can read the file history, providing they can figure out how to use git.

Looks like the only candidate are two commits made within minutes on 23-08-2014. Sadly the log entries call them "Improvements" and "Update 2" with no further explanation.

This will only change the graphics used by the Continental guard unit (replacing them with those used in version 1.9). It won't have any impact at all on the rest of version 2.4 and the bug would be cleared (that's what I did for my copy).
Sadly this is not entirely true. It breaks the governor and the bugfix to Dutch royal artillery.

I better look into this. Looks like there are 3 versions to investigate (current, between the commits and before). I should fetch all 3 from git and try replacing one file at a time to see when it works as intended. According to names of the changed files, it would appear that it is the man holding the flag, which cause the issue as it doesn't look like the others were changed.

I see there are files for each country. It would be interesting to know if this is country specific or something, which affects all of them.
 
Sadly this is not entirely true. It breaks the governor and the bugfix to Dutch royal artillery.
No it doesn't.

The folder "continent_guard.zip" strictly contains graphical files for the continental guards. As for the "CIV4ArtDefines_Unit.xml". It is exactly the one of version 2.4, I've only corrected the path to make it find the Continental guards graphics.

The correction I've made for Agnat86 has absolutely no reason to do anything else than to use the past not-bugged version of continental guard graphics.

There is absolutely no reason why it would affect Dutch artillery, governor or whatever other units as absolutely nothing else is changed.
 
In my current game the achievement window for my first Westindiaman came up.

The last sentence reads: "We should not sink the profit of the" and ends seemingly midsentence.
I scrolled the messagewindow up and down but the text ended there.

I found the text in CIV4GameText_Achievements and there it´s longer:
Code:
  <Tag>TXT_KEY_ACHIEVE_WESTINDIANMAN_TEXT</Tag>
  <English>"Hopefully we will reach the colony before the astern approaching storm. [NEWLINE][NEWLINE]Bosun, give order for setting the topsails immediately. Our hold is tightly filled with goods from Europe, We should not sink the profit of the lords into the sea."</English>

Is that a problem in the file, in my game settings or is that text cut off ingame for everyone?
 
Top Bottom