[ROM] 2.8 Beta Bug Report

Arkatakor

King
Joined
Mar 11, 2006
Messages
621
Location
Stockholm, Sweden
I downloaded the 2.8 Beta a few days ago; played a couple of games without major issues. However in my latest game I have come across this unavoidable runtime error that always happens on the same turn. I have tried changing diplomacy modes, done everything short of deleting Civ's.

I have uploaded the saved game with a screenshot of my comp details, to the extent that its useful - its quite rare that I come across a bug that I can't get around and that can be replicated 100%, hence I decided to upload it. The saved game will always crash on the very next turn - just hit enter.

I am currently running Win XP SP3 for what its worth. Let me know if any further details are required or if I should be posting this in another forum. Thanks.
 

Attachments

  • BUG_AlwaysCrash.CivBeyondSwordSave
    BUG_AlwaysCrash.CivBeyondSwordSave
    995.9 KB · Views: 51
  • CompSpecs.JPG
    CompSpecs.JPG
    69.8 KB · Views: 101
I downloaded the 2.8 Beta a few days ago; played a couple of games without major issues. However in my latest game I have come across this unavoidable runtime error that always happens on the same turn. I have tried changing diplomacy modes, done everything short of deleting Civ's.

I have uploaded the saved game with a screenshot of my comp details, to the extent that its useful - its quite rare that I come across a bug that I can't get around and that can be replicated 100%, hence I decided to upload it. The saved game will always crash on the very next turn - just hit enter.

I am currently running Win XP SP3 for what its worth. Let me know if any further details are required or if I should be posting this in another forum. Thanks.

Try gifting astronomoy to yourself and all the AI's via the worldbuilder. That's a source of one of the major CTD's. It's been fixed for 2.8, but that's a workaround for the beta.
 
Try gifting astronomoy to yourself and all the AI's via the worldbuilder. That's a source of one of the major CTD's. It's been fixed for 2.8, but that's a workaround for the beta.
wow that actually nailed it. I was surprised that it worked considering that no one was even close to researching that tech. Thanks for that!
 
wow that actually nailed it. I was surprised that it worked considering that no one was even close to researching that tech. Thanks for that!

Yeah. I found the code problem for that. It's complicated, but basically, when the AI was evaluating tech strategies, at one point it accidentally divides by 0. Not good. As I said, it's already fixed though.
 
Yeah. I found the code problem for that. It's complicated, but basically, when the AI was evaluating tech strategies, at one point it accidentally divides by 0. Not good. As I said, it's already fixed though.
On second thoughts maybe the inca were gonna go for it; did not check their techs enough; Divide by zero? Being a C++ programmer myself I also say "not good" (!).

It was less likely a memory issue since this problem always occurred, even on a fresh restart. This game was not all that challenging so just as well i give them all astronomy. I will change the XML's to double the cost of observatories but make them buildable without glass but halve the cost for those who have glass. This wont affect the current game though.
 
On second thoughts maybe the inca were gonna go for it; did not check their techs enough; Divide by zero? Being a C++ programmer myself I also say "not good" (!).

You understand C++? Well, that makes two of us here on the RoM forums.

If you want to see the gritty details, I posted them here for the Unofficial Patch forum.
 
You understand C++? Well, that makes two of us here on the RoM forums.

If you want to see the gritty details, I posted them here for the Unofficial Patch forum.
The culprit is iOldCapacity and it is being assigned zero from GC.getUnitInfo(eExistingUnit).getMoves() - I guess the question is why is the latter returning zero in the first place? I guess a simple check for the value would be a short term workaround for this.

Not many other C++ programmers in this forum eh? Ironically I used to be a programmer in the games industry - got tired of being a grunt though working insane hours every week. Playing games is fun. Programming them can also be fun. Debugging them is not and thats what you spend most of your time doing in the industry :(
 
The culprit is iOldCapacity and it is being assigned zero from GC.getUnitInfo(eExistingUnit).getMoves() - I guess the question is why is the latter returning zero in the first place? I guess a simple check for the value would be a short term workaround for this.

You already know more about the cause of the crash than I do know.

Not many other C++ programmers in this forum eh? Ironically I used to be a programmer in the games industry - got tired of being a grunt though working insane hours every week. Playing games is fun. Programming them can also be fun. Debugging them is not and thats what you spend most of your time doing in the industry :(

Nope. And it's a shame too, because knowing C++ unlocks tons of modding. Basically the entire game can be changed any way you like if you have time and C++ knowledge. I'm still a beginner, a 18-year old who got bored and started learning. You, could really do some amazing stuff, if I could convince you to mod. Just look at the whole revolutions concept. Mostly C++.
 
You already know more about the cause of the crash than I do know.
Well I only followed your indication that the divide by zero was the cultprit. Its not like I was actually doing the debugging with a calls stack and watches to verify the variables.

Nope. And it's a shame too, because knowing C++ unlocks tons of modding. Basically the entire game can be changed any way you like if you have time and C++ knowledge. I'm still a beginner, a 18-year old who got bored and started learning. You, could really do some amazing stuff, if I could convince you to mod. Just look at the whole revolutions concept. Mostly C++.
I am rather surprised that firefox gives out their entire source code for this. But thats probably coz its running on an ancient engine. you mentioned at one point that Civ4 lacked AI caching, used CPU power for graphics and does not use more then one core.

I am 33 now and started on C++ when I was around 22 so its never too late to learn :p
 
Well I only followed your indication that the divide by zero was the cultprit. Its not like I was actually doing the debugging with a calls stack and watches to verify the variables.

Basically, that's what I did. With VS 2008 running, and attached to the process, watching to see code break.
I am rather surprised that firefox gives out their entire source code for this. But thats probably coz its running on an ancient engine. you mentioned at one point that Civ4 lacked AI caching, used CPU power for graphics and does not use more then one core.

You mean Firaxis, right? They gave the code out back with Civ4 vanilla, when the engine was new. However, they never gave the code out for thier .exe, just their dll. Fortunately, very little other than the way graphics is shown is in the .exe.
 
Basically, that's what I did. With VS 2008 running, and attached to the process, watching to see code break.


You mean Firaxis, right? They gave the code out back with Civ4 vanilla, when the engine was new. However, they never gave the code out for thier .exe, just their dll. Fortunately, very little other than the way graphics is shown is in the .exe.
Err wups - yes fireaxis; not enough sleep last night :(

Now that we are discussing this, how many people are involved in RoM other then Zappara? Is he a C++ programmer? I am assuming he is (being from Finland!) - lots of programmers in santa land...
 
Err wups - yes fireaxis; not enough sleep last night :(

Now that we are discussing this, how many people are involved in RoM other then Zappara? Is he a C++ programmer? I am assuming he is (being from Finland!) - lots of programmers in santa land...

Nope. That's the thing. He can only program python, and does XML. So RoM uses RevDCM's sources, and CvGameCore. I've got my own modified GameCore, based off of RevDCM.

Oh, and RoM is a one-man project. Of course there are lots of modmoder's, but I am the most active/most skilled.
 
Nope. That's the thing. He can only program python, and does XML. So RoM uses RevDCM's sources, and CvGameCore. I've got my own modified GameCore, based off of RevDCM.

Oh, and RoM is a one-man project. Of course there are lots of modmoder's, but I am the most active/most skilled.
Well surely Zappara did not come up with all the ideas for the techs / units alone? From what I understand he merged ideas / concepts from several scenarios / mods. Either way I have to say am quite amazed at whats been achieved with Python alone; I am stating this coz this is hands down the best mod ever made. I have never tried python myself...

It would be interesting to draw the line as to what can be achieved by python and what can be achieved only thru C++.
 
Well surely Zappara did not come up with all the ideas for the techs / units alone? From what I understand he merged ideas / concepts from several scenarios / mods. Either way I have to say am quite amazed at whats been achieved with Python alone; I am stating this coz this is hands down the best mod ever made. I have never tried python myself...

It would be interesting to draw the line as to what can be achieved by python and what can be achieved only thru C++.

Zappara got many ideas from books/movies. He's a Sci-Fi buff. He also has some other modcomp's merged in, but most of them are from the RevDCM mod, not him. I would say 90-95% of the units and techs that are new are from him.

Yeah, RoM is awesome. That's why I didn't start my own mod, (why reinvent the wheel) I just modmod.
 
Zappara got many ideas from books/movies. He's a Sci-Fi buff. He also has some other modcomp's merged in, but most of them are from the RevDCM mod, not him. I would say 90-95% of the units and techs that are new are from him.
must have taken a lot of research to come up with all this. i guess i don't need to ask him if he is interested in history - quite amazing. would be interesting to discuss with him what he would like to achieve that cannot be done thru python alone.

Yeah, RoM is awesome. That's why I didn't start my own mod, (why reinvent the wheel) I just modmod.
yeah that part makes sense; I would also have done just that.
 
must have taken a lot of research to come up with all this. i guess i don't need to ask him if he is interested in history - quite amazing.

Yep. Zappara's awesome.

would be interesting to discuss with him what he would like to achieve that cannot be done thru python alone.

I don't know that he has any major requests. RoM is actually nearly done. He just needs to clean up the modern and future era's and add a little more there. RoM 3.0 might be a final release, excepting RevDCM updates.

However, a few players had a good idea to redo the power system for BTS, but I really lack the programming skill to do it. If you're interested, it would be nice to have you look.
 
Yep. Zappara's awesome.



I don't know that he has any major requests. RoM is actually nearly done. He just needs to clean up the modern and future era's and add a little more there. RoM 3.0 might be a final release, excepting RevDCM updates.

However, a few players had a good idea to redo the power system for BTS, but I really lack the programming skill to do it. If you're interested, it would be nice to have you look.
Okies - i'll check it out - alpha centauri had a power based currency system which was interesting.
 
As a Looong time player/fan of RoM (way back to version 0.80- early 2007) I want ot say Welcome Arkatakor!

If you have the inclination and want to any help you can give Zappara or Afforess would be Greatly appreciated by many longtime player like me.

What wonders can be achieved with a great team. And you sound like you could be a substantial foundation member.

Again Welcome!

JosEPh :D
 
As a Looong time player/fan of RoM (way back to version 0.80- early 2007) I want ot say Welcome Arkatakor!

If you have the inclination and want to any help you can give Zappara or Afforess would be Greatly appreciated by many longtime player like me.

What wonders can be achieved with a great team. And you sound like you could be a substantial foundation member.

Again Welcome!

JosEPh :D
Thanks Joseph - I have resigned so in a months time i'll have more time to ponder on this and see where I go from there.
 
Dear friends,

I played the game well till the moment I build the St.Johns Capter house. When the city finished the building it crashed...
Retry had the same result.

regards
Gwydion
 
Back
Top Bottom