Dawn of Civilization - an RFC modmod by Leoreth

Status
Not open for further replies.
Been playing DoC (pretty heavily modified to be more to my liking...) for along time, probably should have jumped in this forum sooner.

Not sure about all the bugs that were listed a bit further up, I haven't experienced a lot of them, but I hardly get to play anymore.

Anyways, I have played a few dozen games since the latest version came out, crash free; mind you I pretty consistantly play as Byzantium and haven't tested as any asian or american civ.

The offending bit of code, or at least what fixed the respawn crash for me was in CvPlayer.cpp at line 5342:

Code:
				case PERSIA:
                    if (!GET_PLAYER((PlayerTypes)ROME).isReborn())
                        startingEra = 1;
                    else
                        startingEra = 3;    //Leoreth: Safavid Persia
					break;

Changed the Rome to Persia, recompiled, and no crash. Now mind you I made a few dozen other changes as well; none of which had anything to do with the respawns (some changes to spawns for Byz and Arabs though, nothing that would impact the crash.)

So, if anyone wants to make the change, build, and try feel free. Unfortunately I do not really have the time to either undo the other changes I've made or wait for the download as the internet is a bit crappy off my phone on the train. If it turns out not to have been the fix I can take a closer look at the changes I've made and see what else might have fixed it.

Welcome to the forum :cool:. thank you for helping us with the fix, if i have time i will try it later.
 
Hey, first time poster. Anyway, I just wanted to ask why Byzantium isn't spawning in 3000 BC starts. I have played a couple of games as the Romans and they won't spawn there, even though I control Greece. For what it's worth, I usually have a good stability rating. Also, does Constantinopolis have to exist?

I've also let the game autoplay as the Vikings and then entered the world builder, but the Byzantines won't spawn either.

They will spawn if I play as them, but obviously I don't always want to play as them or even play as them and switch to another civ.
 
@Bocator The exact same thing happens to me around the same turn!!!
 
@Bocator The exact same thing happens to me around the same turn!!!
If you look at the thread you will find several fixes for this already.


Hey, first time poster. Anyway, I just wanted to ask why Byzantium isn't spawning in 3000 BC starts. I have played a couple of games as the Romans and they won't spawn there, even though I control Greece. For what it's worth, I usually have a good stability rating. Also, does Constantinopolis have to exist?

I've also let the game autoplay as the Vikings and then entered the world builder, but the Byzantines won't spawn either.

They will spawn if I play as them, but obviously I don't always want to play as them or even play as them and switch to another civ.
A belated welcome [party] perhaps it is due to the fact you are Rome and control Greece. do the spawn when you play as India?
Sorry for the late response.
 
Played a game as India. Rome died early on (to the Celts, actually) but they did destroy Greece which was controlled by independents/barbarians at the Byzantine spawn date.

Still no spawn. FYI I am playing on Marathon speed.
 
You can't switch to the Byzantines. The only way to play as the Byzantines is to choose them from the start :(
 
I've tried changing the word ROME into PERSIA..
But it still crashing (?)

Anybody have the example of the fixed CvPlayer.cpp ?
Or robf32, will you upload your version of CvPlayer.cpp ? It's okay kok with the Byzantine etc spawn you edited :)
 
afaik there's no new version, it's been around 1 to 2 months Leoreth didn't show up here, because he's got a project to be focused first ;)
 
I have informed Leoreth that there is a fix for the respawn crashes (which definitely work woohooo) and he said he would add them to the SVN but hasn't yet. He is very busy. This mod is not going anywhere any time soon.

However with Algor Mortis's fix we do have a stable version

Take it for what it is
 
Hi Leoreth,
Your mod is great and i really enjoy it. However, every file i start end up crashing. No matter what civ i choose, the game crashes in the year 1510AD. I have tried uninstalling and reinstalling, and different civs, but it always crashes at the same point. Will this be fixed in the next update? And when do you plan on releasing the next update?
Thanks,
Josh

***Update***
I kinda figured out that Netherlands and Persia Span right before this. It there a way to edit that so that Persia doesnt spawn???
 
there's currently some bugs on Italy or Persia spawn..
And since Leoreth is currently hibernating, no official solutions available at the moment :)
But you can try using Algor Mortis works or robf32 CvPlayer.cpp trick etc for a while..

and..

WELCOME TO THE FORUM :D
 
can anyone help me with this?

I wanted to spawn as Italy, but they di not appear on the Civ Choosing Menu. I decided I wanted to play as Egypt, but when I accept the War Chariots quest (or any quest) I get a CTD. Is there a fix for this.

ALSO: maybe bug, maybe not, but India always succumbs to Barbs at the beginning of the Bronze Age
 
can anyone help me with this?

I wanted to spawn as Italy, but they di not appear on the Civ Choosing Menu. I decided I wanted to play as Egypt, but when I accept the War Chariots quest (or any quest) I get a CTD. Is there a fix for this.
You can only play as Itay by waiting for them to spawn.
As for the Egypt thing is have no idea :D
 
Haven't had much free time, but I have managed to put enough together to completely rewrite the scripted re-spawn; merging it back in with the original spawn methods.

I have tested this with several of the posted saved games that seem to have the bug and experienced 0 crashes.

There are some other changes to this file that I use for my games, some may like them, some wont, I honestly am not sure what they are at this point. If everything works without crashing, but something is weird or off, let me know; shouldn't be too hard to change back.

I have also included my cvPlayer.cpp since it was asked for.

Update 07/28/2011: Found a bug where you wouldn't be asked if you wanted to take over a conditional spawn Civ... bug fixed.

View attachment RiseAndFall - 072811.rar
 
Thanks Rob

Btw: is it just me or would anyone else also like to see an HRE Germany split. Something like this.
HRE spawns in 840 in Vienna. They get a Uhv that goes something like(this is on top of my head; you can suggest as u like) control Germany, Austria and Italy (maybe vassalize Spain too), built x amount of cathedrals and win the Apoltalic election 2-3 times.

Then in 1600 Germany spawns as Prussia in Berlin; they have the same goals except this time Frankfurt doesnt flip to them but to componsate that they have strong military (like historically).
In case ur wondering the name of HRE would change to Austria in or Austria Hungary in 1700 (i think thats correct).

I think adding HRE could be a great addition to the game and it could also stop Germany's unhistorical eastwards expansion.
 
IIRC J. pride, that was Leoreth's plan in the long term, but unfortunately he can't continue DoC for some time.
 
Yeah, Leoreth already intended to split HRE to Prussia and Austria when fire nation suddenly attacked :P

And about the India succumbs to barbs in Bronze Age, it's indeed historical and that's what I expect of :D
 
Status
Not open for further replies.
Back
Top Bottom