Bug Reports and Technical Issues

Okay, I'll try to reproduce that.
 
Okay, I'm actually in the process of drawing up plans for religions there right now. There'll be a thread on the topic soon, I basically only need the time to write it.

I also think the "more advanced barbs/indies" bug also needs to be addressed, though I still do not have any idea right now as to what exactly causes it. The weird religion founding bug was merely a consequence of that bug, and when inspecting the barbarian (and also independent) techs, they've already acquired almost all classical techs and a few column 7 (medieval) techs. Recently played a marathon game as China and I got that bug at turn 300-301.
 
I also think the "more advanced barbs/indies" bug also needs to be addressed, though I still do not have any idea right now as to what exactly causes it. The weird religion founding bug was merely a consequence of that bug, and when inspecting the barbarian (and also independent) techs, they've already acquired almost all classical techs and a few column 7 (medieval) techs. Recently played a marathon game as China and I got that bug at turn 300-301.
Have you tried the more recent updates? I recently discovered and fixed a bug that had the Seljuks start with all their techs in 3000 BC. Since independents and barbarians receive their techs based on the overall tech level, that might have played into it.

Another broken spawn, this time as the Persians.
I also noticed that the catapult spawns happen more often now, I'm on it.
 
Have you tried the more recent updates? I recently discovered and fixed a bug that had the Seljuks start with all their techs in 3000 BC. Since independents and barbarians receive their techs based on the overall tech level, that might have played into it.

Oh, that one! Okay. I thought that was another entirely different fix. Gonna try it out soon. Thanks! :)
 
Until you asked I didn't realise that it might fix that problem too, so I didn't mention that explicitly.
 
Tried it out today, it's fixed just as expected (and as what we all wanted). Thanks a lot, Leoreth!
 
Great to hear, that must have been annoying.
 
Function pCity.isHasReligion(iOrthodoxy) isn't working properly.
Sometimes (when function pCity.getName() returns no string) it returns false even if city has orthodoxy.
Is there a workaround? I would like not to touch c code.
 
What situations are you in where getName() returns no string? Are you sure the pCity instance actually points to a still existing city?
 
What situations are you in where getName() returns no string? Are you sure the pCity instance actually points to a still existing city?
This is the code I use:

Code:
for iPlayer in range(iNumTotalPlayersB):
            if iPlayer != iFounder and (iPlayer not in lOrthodoxCivs):
                pPlayer = gc.getPlayer(iPlayer)
                if pPlayer.isAlive():
                    for i in range(pPlayer.getNumCities()):
                        pCity=pPlayer.getCity(i)
                        TechLog.techlog(str(pCity.getName()))
                        TechLog.techlog(str(pCity.isHasReligion(iOrthodoxy)))
                        #citis: Use of Manhattan distance
                        DistanceOrthodox = abs(pOrthodoxCapital.getX() - pCity.getX()) + abs(pOrthodoxCapital.getY() - pCity.getY())
                        DistanceCatholic = abs(pCatholicCapital.getX() - pCity.getX()) + abs(pCatholicCapital.getY() - pCity.getY())
                        TechLog.techlog(str(DistanceOrthodox))
                        TechLog.techlog(str(DistanceCatholic))
                        if pCity.isHasReligion(iOrthodoxy):
                             if DistanceCatholic < DistanceOrthodox:
                                 lCatholicCities.append(pCity)

And this is the techlog output on French cities:

Code:
[695462.500] Paris
[695462.500] True
[695462.500] 30
[695462.500] 11
[695462.500] Bordeaux
[695462.500] False
[695462.500] 30
[695462.500] 11
[695462.500] Marseille
[695462.500] False
[695462.500] 25
[695462.500] 6
[695462.500]
[695462.500] False
[695462.500] 113
[695462.500] 106
[695462.500]
[695462.500] False
[695462.500] 113
[695462.500] 106

The two cities missing their name are Brest and Aux-Chappelies. These two cities are orthodox at the turn before the function is called.

I try to modify the schism() python function.
 
What happens if you use utils.getCityList(iPlayer) to get all cities instead?

By the way, you don't need to use TechLog for generic log output, simply use print "some string". It will end up in PythonDbg.
 
Latest old tech tree Git version: The Argentine UP doesn't seem to be working, there is no option to trigger a Golden Age with a Great General. Also, respawned Inca (Kingdom of La Paz) always has literally zero techs. No Fishing, no Agriculture, literally nothing.

Both verified (as in something I noticed while playing my modmod and checking if it also happens in the main mod) by starting a 1700AD scenario as Argentina and giving myself a bunch of Great People via Worldbuilder.
 
What happens if you use utils.getCityList(iPlayer) to get all cities instead?

By the way, you don't need to use TechLog for generic log output, simply use print "some string". It will end up in PythonDbg.

Problem fixed! Maybe the proble was the cities a player founds.
For the records this is the output for all cities (formula has been slightly changed):
Code:
Dunhuang

True

17.655544281

19.5973758698

Xi'an

True

18.1595726013

19.1270503998

Guiyang

True

17.1965293884

22.2966060638

Kaifeng

True

19.3878326416

20.2663135529

Guangzhou

True

17.0

24.6408634186

Nanjing

True

19.6238975525

22.0169658661

Hangzhou

True

19.8265533447

23.502073288

Beijing

True

20.5878505707

22.2966060638

Pataliputra

True

13.1639766693

19.8265533447

Kolkata

True

12.8559989929

21.93242836

Pyongyang

True

23.4987239838

25.1620235443

Hanseong

True

22.8589687347

24.2397727966

Kyouto

True

23.8703269958

24.9563522339

Matsuyama

True

22.7509479523

24.9563522339

Edo

True

26.0658607483

27.4433879852

Sapporo

True

27.2917804718

29.0605564117

Oslo

True

19.2060127258

8.72716140747

Roskilde

True

17.88073349

7.30037212372

Kalmar

True

16.8535118103

10.1913614273

Sankt-Peterburg

True

14.0170383453

14.0580701828

Makkah

True

5.36499929428

15.5366449356

Al-Iskandariya

True

5.93406391144

10.0213079453

Al-Qahirah

True

5.43965768814

11.5990924835

Al-Quds

True

0.0

11.976099968

Dimashq

True

2.74110102654

11.2899570465

Salalah

True

8.93623924255

18.2859783173

Baghdad

True

4.77253437042

12.6776971817

Al-Uqsur

True

7.24779653549

12.0875148773

Al-Qatif

True

5.36499929428

15.3756275177

Bangazi

True

7.54064702988

8.30946445465

Tarabulus

True

8.78313732147

4.74327659607

Masqat

True

8.83097934723

18.1655731201

Aspadana

True

7.68625640869

13.8310995102

Gao

True

15.3756275177

11.8824224472

Rasa

True

15.9090995789

18.5809364319

Angkor

True

18.4122028351

26.6978645325

Hanoi

True

15.3789253235

24.2519207001

Trowulan

True

15.2872152328

11.976099968

Borobudur

True

14.7369012833

12.5264139175

Chaiya

True

14.1678371429

13.0611686707

Prambanan

True

12.5264139175

8.93623924255

Kota Gede

True

11.976099968

9.48655319214

Malang

True

11.4070358276

10.0213079453

Qurtubah

True

14.2642230988

8.2077703476

Marrakus

True

12.8559989929

10.5428228378

Barshiluna

True

14.290558815

3.62389826775

Qartaj

True

9.72716140747

5.36499929428

Wahran

True

11.5439386368

7.81686115265

Agad&#237;r

True

16.1640720367

13.6099452972

Paris

True

17.3979682922

7.81686115265

Bordeaux

True

17.2951793671

7.77470970154

Marseille

True

14.9242954254

4.77253437042

Aix-la-Chapelle

True

16.9727249146

7.15150117874

Brest

True

19.156370163

9.99250888824

London

True

20.1751918793

11.0528497696

Plymouth

True

21.0123615265

12.1091194153

Edinburgh

True

22.4084815979

13.5365552902

Frankfurt

True

16.0416603088

5.74327659607

Hamburg

True

17.4481105804

7.30957365036

Wien

True

13.6189661026

5.36499929428

Venedig

True

13.0999183655

3.40822458267

Rom

True

11.976099968

0.0

Neapel

True

9.84091663361

3.48220229149

Moskva

True

9.1895866394

14.092710495

Ekaterinoslav

True

9.52423858643

11.5527591705

Saratov

True

11.5978116989

15.4991598129

Timbuktu

True

15.7288818359

12.5264139175

Djenne

True

17.655544281

14.5267076492

Krak&#243;w

True

13.0611686707

8.36717510223

Kr&#243;lewiec

True

14.4676189423

9.93347167969

Bhopal

True

10.6462640762

19.9381465912

Kanchipuram

True

14.7369012833

23.30037117

&#193;th Cliath

True

22.8082828522

14.1098556519

Dilli

True

11.3873653412

18.2263031006

Aksum

True

6.79954624176

16.0275325775

Golkonda

True

13.129029274

21.9083080292

Lahore

True

9.99962520599

16.9980430603

Kyiv

True

11.2899570465

11.0775775909

Sana'a

True

7.68625640869

17.4481105804

Nidaros

True

20.4330120087

11.5439386368

Vijayanagara

True

14.3895406723

22.9780082703

Mumbai

True

11.7585945129

20.6884994507

Le&#243;n

True

17.0284767151

7.30957365036

Pagan

True

14.8737401962

23.636095047

Madurai

True

15.8971424103

24.3258953094

Tiwanaku

True

30.363910675

27.9055557251

Chich'en Itz&#225;

True

23.8652534485

22.7138271332

Tucume

True

29.7990436554

27.6785335541

Chan Chan

True

30.8577518463

28.6120262146

Yax Mutal

True

25.6385955811

24.1576099396

Quelimane

True

13.1639766693

20.7760925293

Siraz

True

5.79954624176

16.0489616394

Herat

True

9.21770763397

15.1189107895

Kashgar

True

14.4676189423

16.5294055939

Samarqand

True

13.0999183655

15.5408639908

Merv

True

11.0528497696

13.2852010727
 
Latest old tech tree Git version: The Argentine UP doesn't seem to be working, there is no option to trigger a Golden Age with a Great General. Also, respawned Inca (Kingdom of La Paz) always has literally zero techs. No Fishing, no Agriculture, literally nothing.

Both verified (as in something I noticed while playing my modmod and checking if it also happens in the main mod) by starting a 1700AD scenario as Argentina and giving myself a bunch of Great People via Worldbuilder.
Noted.

Problem fixed! Maybe the proble was the cities a player founds.
Great!
 
What I noticed is that it would not properly disable the first choice if not applicable city/tile exists (and zero cities always cost 0 gold), which I fixed. Not sure if that was your actual problem though. Do you know which cities were available to you?

I'm seeing this only now..
It's always Manila. The island is unsettled, and I'm given the opportunity to settle it (and only it) for 0 gold, after which nothing happens. It's not always the case though, I've played the Spanish dozens of times and it happens in like 50-60 percent of the cases..
 
Alright, so it's something else. Did you have enough gold to select the settle option (I mean for the intended price) when it showed 0 gold?
 
Alright, so it's something else. Did you have enough gold to select the settle option (I mean for the intended price) when it showed 0 gold?

The least I had was 600+:

Has this issue been addressed or solved? I've browsed through the following ten or so pages and found nothing, and it's happening to me virtually always playing as Spain. I complete the Trading company as soon as possible, make sure I have enough surplus gold (600+, last time I had 2000+ from conducting a trading mission the turn before) and I'm given the possibility to choose between offering 0 gold for settling and "this is none of our concern". When I reload, same thing, no matter what I do. I tried postponing it - nothing, lowering research to 0 to get more gold - nothing. :confused: It's very frustrating. Finally I have to worldbuilder my Trading Company (I've earned it! :D ).

I think that should be enough, 200 is the usual price AFAIK..
 
Yeah, so that's not the reason either. I'll give the code another look soon.
 
Leoreth, Can you tell me the exact standard of 'control' in UHV?

I thought it was to control three cities in some area (ex) three cities in italy)

or Control more cities than the other civilization does

BUT, when I played the phoenician civlization, although I had three cities in Italy and Iberia (and Rome had only one city in Italy), I failed UHV

Since I can't see icons in my computer, I cannot know whether I 'control' a region

I want to know exact meaning of Control in Greeks, Iranians, Prussians, Tamils and Turks which UHVs are described as Control RegionA,B,C.....
 
Back
Top Bottom