.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old November 29th, 2007, 08:24 AM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default The scale bug is caused by province neighbors

Summary:
The scale bug occurs when you have more than 6 foreign (indy or hostile) neighbors attached to your home province, and those neighbors have inferior scales to your home.

This includes "ghost" neighbors. "Ghost" neighbors exist in provinces with less than 6 real neighbors, when you create a new game without exiting the dom3 application. They are left over data from the previous game.

If you have less than 7 neighbors attached to your home province, including having no "ghost" neighbors, you will not get the scale bug.

Once your dominion spreads to neighbor #7, this bug will be temporarily squished in the game. If it spreads to neighbor #1 but not #7, you will only see partial scale loss.

If you acquire an additional province which also has more than 6 neighbors, once you have positive dominion in the province, it is also vulnerable to the bug.

There may of course be additional bugs which cause the scales to start vanishing later in the game.



I stepped through the application, specifically the host_scales() function. The scales for the home province are adjusted based first on a comparison with the 7th neighbor (esi register is initially 6, and is used as an index into the geo table, whose neighbor entries are offset from 0). If the home province has any positive scale (which is represented as a negative number) better than the neighbor, that scale is incremented (made worse). Then the process loops up to 19 more times comparing to the first neighbor (esi=0), each time sucking away scales.

It will not compare the scales to provinces under the dominion the nation. I realize this conflicts with reports of scales also disappearing in the late game. I could be misinterpreting offset 0x41 in the land table, I think it's the province owner (nation number) but I'm not sure. Edit Nope, 0x41 is the offset for the id of the nation whose dominion the province is under.

I was able to reproduce no initial scale loss by creating random MA Rlyeh games where the home province had 6 or fewer neighbors. And I was able to reproduce initial scale loss by creating random MA Rlyeh games where the home province had 7 or more neighbors.

But since my assembler is a bit rusty, I'm not entirely sure this is 100% correct.

So I'd appreciate it if people in games where the home province has 7 neighbors and no scale bug, (or 6 or less neighbors and the scale bug) could post their saves to this thread.

Edit: More testing: I created a few more games with O3P3 scales, all nations (all human), random starts. All nations with 6 or less neighbors at their home province did not lose scales. All nations with 7 or more neighbors lost scales.
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
Reply With Quote
  #2  
Old November 29th, 2007, 08:45 AM
Edratman's Avatar

Edratman Edratman is offline
First Lieutenant
 
Join Date: May 2007
Location: Reading, PA
Posts: 724
Thanks: 93
Thanked 37 Times in 27 Posts
Edratman is on a distinguished road
Default Re: New theory about the scale bug: >6 neighbors

I've got one at home I will submit that I started last night. It will be about 10 hours before I can get there. It is a province with 9 (that is correct)neighbors, MA Tien Chin, I put #poptype 30 in it last night and have not had the problem through about 6 turns.
__________________
Men do not quit playing because they grow old; they grow old because they quit playing.
Oliver Wendell Holmes
Reply With Quote
  #3  
Old November 29th, 2007, 08:49 AM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default Re: New theory about the scale bug: >6 neighbors

Edratman: Can you please tell me the map, the province you started in, and the scales you chose? I'd like to run turn 2 in the game. Or I can just wait.

calmon: Can you pelase email me a zip/tgz of your game at turn 1? I can't reproduce the bug on Silent Seas wrap with a land nation.
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
Reply With Quote
  #4  
Old November 29th, 2007, 09:03 AM

calmon calmon is offline
First Lieutenant
 
Join Date: Jan 2004
Location: Berlin, Germany
Posts: 790
Thanks: 7
Thanked 7 Times in 6 Posts
calmon is on a distinguished road
Default Re: New theory about the scale bug: >6 neighbors

Sure i attach my test games to this post.

There 3 testgames.

For "Pretender Test1":
Provinces bugged:
35, 30, 11 and 52

For "Pretender Test2":
Provinces bugged:
30, 49, 11 and 1

For "Pretender Test3":
Provinces bugged:
35, 49, 15, 44 and 28

The bug has a 50-75% occurance chance in this provinces.

Well like i said in the other tread, i also had the feeling that provinces with a lot of neighbors are prefered for the bug but for example province 35 had a 100% bug occurance in all of my tests in "Pretender Test1" + "Pretender Test3". And this one has only 4 neighbours.
Attached Files
File Type: zip 567594-savedgames.zip (303.3 KB, 115 views)
Reply With Quote
  #5  
Old November 29th, 2007, 09:06 AM
Edratman's Avatar

Edratman Edratman is offline
First Lieutenant
 
Join Date: May 2007
Location: Reading, PA
Posts: 724
Thanks: 93
Thanked 37 Times in 27 Posts
Edratman is on a distinguished road
Default Re: New theory about the scale bug: >6 neighbors

It is a randomly created map. I map editted everything to ensure that I started in that 9 neighbor province, so all scales are at the top of the map file. I will send the map files and the save game.
__________________
Men do not quit playing because they grow old; they grow old because they quit playing.
Oliver Wendell Holmes
Reply With Quote
  #6  
Old November 29th, 2007, 09:23 AM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default Re: New theory about the scale bug: >6 neighbors

Thanks calmon. Your map is slightly fuller than the ones I was testing with .

I'll run it through the debugger and see what I can find. 35 and 28 border each other, there could be another bug with that. But I see the bug in 49 too, so I'll have a look.
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
Reply With Quote
  #7  
Old November 29th, 2007, 09:41 AM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default Re: New theory about the scale bug: >6 neighbors

Oh no! The geo table is polluted!

Code:

0xad6bc14 <geo+2356>: 0x002b0001 0x0033002d 0x00000032 0x00390035
0xad6bc24 <geo+2372>: 0x00000000 0x00000000 0x00000000 0x00000000
0xad6bc34 <geo+2388>: 0x00000000 0x00000000 0x00000100 0x03f10331



The above is for Marverni, neighbors:
0x01 = 1
0x2b = 43
0x2d = 45
0x33 = 51
0x32 = 50
0x00 --> no more neighbors
0x35 <-- Ack! This is neighbor #7, the invisible neighbor.

I'll see if I can find where the 0x35 gets inserted into the geo table.

Edit: It's from the save file itself. The getfatherland() function loaded the value into the geo table.
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
Reply With Quote
  #8  
Old November 29th, 2007, 08:47 AM

calmon calmon is offline
First Lieutenant
 
Join Date: Jan 2004
Location: Berlin, Germany
Posts: 790
Thanks: 7
Thanked 7 Times in 6 Posts
calmon is on a distinguished road
Default Re: New theory about the scale bug: >6 neighbors

This morning i had absolute the same thoughts. I tested on orania and found the bug only in provinces with more than 6 neighbours.

Well than i did mass tests on silent sea (wrap) and got the bug in provinces like 35 which has only 4 neighbours!
Reply With Quote
  #9  
Old November 29th, 2007, 12:35 PM

Lord_Bob Lord_Bob is offline
BANNED USER
 
Join Date: Aug 2007
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
Lord_Bob is on a distinguished road
Default Re: The scale bug is caused by province neighbors

Very convincing testing and answer.

As far as I can tell, you have run down 2 seperate bugs.

The Scale Bug and "Ghost Connections" to provinces all over the map.
Reply With Quote
  #10  
Old November 29th, 2007, 02:43 PM

IndyPendant IndyPendant is offline
Second Lieutenant
 
Join Date: Jun 2007
Posts: 483
Thanks: 0
Thanked 6 Times in 3 Posts
IndyPendant is on a distinguished road
Default Re: The scale bug is caused by province neighbors

Heh. Wow. I go away for less than a day and it's (practically) all done! Very cool.

Tip my hat to vfb and Lord_Bob for tracking this down. I got the ball rolling by being able to reliably reproduce the scale bug--but there's no way in *hell* I would have been able to figure out what vfb just did!

(Heck, the first time I read his post I was going "Uh, what? Invisible neighbours? Is this a spoof on all the sudden excitement about the scalebug, like that spoof of the Scorched Earth thread a while back?" *reads on* "Nope, it's serious. Wow, that's...bizarre..." : )

Congratulations!
__________________
MP Guide to MA Ermor
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:35 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.