User avatar
loki100
AGEod Guard of Honor
Posts: 2399
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Hang up on turn processing

Tue Sep 17, 2013 11:17 am

Hi

I am getting a consistent hang up in my game in the turn processing - at the stage when it is generating the overall AI file. I've gone back a couple of turns and run the sequence again but it fails at the same turn each time. Put PoN on a seperate machine with the same problem and done a fresh download, still the same problem. All the relevant files are attached.

Have attached turn that crashes (current), previous turn (which runs fine in all the situations above) and the scripts that have been generated).

[ATTACH]24574[/ATTACH]
[ATTACH]24575[/ATTACH]
[ATTACH]24576[/ATTACH]

ta
Attachments
Scripts.zip
(1.23 MiB) Downloaded 211 times
previous turn.zip
(4.67 MiB) Downloaded 190 times
current turn.zip
(4.58 MiB) Downloaded 198 times
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

User avatar
Jim-NC
Posts: 2981
Joined: Wed Feb 25, 2009 4:21 pm
Location: Near Region 209, North Carolina

Tue Sep 17, 2013 5:27 pm

We had this hapen in the CIE multiplayer game just a few days ago. Did you look at that thread recently?

We saw the problem in the logs.
Remember - The beatings will continue until morale improves.
[SIGPIC][/SIGPIC]

User avatar
loki100
AGEod Guard of Honor
Posts: 2399
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Wed Sep 18, 2013 12:04 am

I hadn't but found this thread - http://www.ageod-forum.com/showthread.php?30046-Hosting-Crash-on-AAR-Game

problem is my .hst file has a lot of instances of the #aifg# routine and none of the numbers that Kensai mentions.

I'm a bit loath to play around to this degree in a file I don't really understand ...

the log file ends with:

19:18:40 (Reporting) Host: AI files done. 193535 ms
19:18:40 (Reporting) THost.ProcessTurn Host file loaded, # of entries: 1405508
19:18:40 (Reporting) THost.ProcessTurn Starting hosting of turn 3501 - 1895, Early Nov.


which matches what I am seeing, it loads up all the individual AI files but hangs up when producing the composite to run the turn
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

User avatar
loki100
AGEod Guard of Honor
Posts: 2399
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Thu Sep 19, 2013 12:03 pm

Jim-NC wrote:We had this hapen in the CIE multiplayer game just a few days ago. Did you look at that thread recently?

We saw the problem in the logs.


Ok, done some more looking and am utterly stuck.

For a start, the last entry in my log is as above, so its the line before the ones reported in that thread.

I found this text string in every country file in the .hst file (it was one of about 4 instances of the #aifg# routine, but the only one with nulls etc):

#Aifg#0&NULL&NULL&NULL&#Aifg#NULL#Aifg#NULL#Aifg#50|50#Aifg#NULL#Aifg#


I found and deleted each instance (about 80) from the .hst - remember I don't have a clue what I am doing here.

The result when I ran the turn was a message about multiple errors, it then generated all the individual AI files and hung up again when generating the composite file. The only difference was a new final line to the log file:

11:48:52 AM (Reporting) Host: Starting AIs.
11:48:52 AM (Reporting) Host: AI files done. 152875 ms
11:48:52 AM (Reporting) THost.ProcessTurn Host file loaded, # of entries: 1420893
11:48:52 AM (Reporting) THost.ProcessTurn Starting hosting of turn 3501 - 1895, Early Nov.
11:48:52 AM (Reporting) Main unexpected exception TMain , Indice de liste hors limites (0) try: -16


So I don't have a clue what to look for, it maybe a variant of the problem in the other thread but I don't have the same error reporting. So stuck, and without some help, end of game ... a wee bit frustrating.

I do have a very old save from April 1893 (ie a year and a half back) that I am going to test if that works as a clean uncorrupted save. Just to stress, I've done a clean download, even put PoN on a different computer and no difference


Edit - the 1893 save runs fine, but its not the cheeriest of ideas to redo 18 or so months, even if they are peaceful turns.
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

User avatar
Jim-NC
Posts: 2981
Joined: Wed Feb 25, 2009 4:21 pm
Location: Near Region 209, North Carolina

Fri Sep 20, 2013 2:58 am

You'll have to send to Pocus then. Hopefully, he can see something you missed.
Remember - The beatings will continue until morale improves.

[SIGPIC][/SIGPIC]

User avatar
loki100
AGEod Guard of Honor
Posts: 2399
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Fri Sep 20, 2013 12:59 pm

Jim-NC wrote:You'll have to send to Pocus then. Hopefully, he can see something you missed.


seem to have some good news. Went back to the earliest turn in my saved sequence (ie -3) and restarted from there. Had notes as to what I'd done and have got past the turn it was failing at. The #aifg# code is still in the history (its in it back to 1893 ie 36 turns back), but, touch wood, back to making progress
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

User avatar
Pocus
Posts: 25662
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Fri Sep 20, 2013 3:03 pm

I had this thread stickied in my browser since the start and wanted to help you asap, but you know how it goes... CW2 gets priority.

AiFg is definitively an artefact from a particular PON patch, that had a bug in AI agents... Since then it is working fine, but it seems a few saved games are still with that.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
loki100
AGEod Guard of Honor
Posts: 2399
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Fri Sep 20, 2013 5:01 pm

Pocus wrote:I had this thread stickied in my browser since the start and wanted to help you asap, but you know how it goes... CW2 gets priority.

AiFg is definitively an artefact from a particular PON patch, that had a bug in AI agents... Since then it is working fine, but it seems a few saved games are still with that.


Like everyone, I really appreciate the degree of interaction by yourselves to the players of these brilliant games. Can understand that CW2 has to be top of the list at the moment.

Unfortunately I was too optimistic too soon. I got two turns further and then it stopped at generating the master file.

New set of saves and scripts are attached:

[ATTACH]24651[/ATTACH]
[ATTACH]24652[/ATTACH]
[ATTACH]24653[/ATTACH]
Attachments
previous turn.zip
(4.56 MiB) Downloaded 196 times
logs_scripts.zip
(1.21 MiB) Downloaded 200 times
current turn.zip
(4.6 MiB) Downloaded 201 times
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

User avatar
Pocus
Posts: 25662
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Tue Sep 24, 2013 4:27 pm

I checked your turn, I got no suspicious data regarding the AI agent bug, but I'm halted in turn processing because there seems to be twice the same war between Spain and Cuba. Did you change anything about that, like adding manually an event?

For the record, not all AiFg data should be deleted in the host file, most are perfectly valid. The part to delete is the one dealing with Ai agents, and only in PON.

check that

#Aifg#0&NULL&NULL&NULL&#Aifg#NULL#Aifg#NULL#Aifg#50|50#Aifg#NULL#Aifg#|1|10|6|10|300|100|300|5|3|75|2|4|5|8|150|10|25|2|5|5|2|125|66|50|6|11|16|16|11|3|5|150|100|250|75|100|75|7|8|90|60|1|#Aifg#100|WAL|70|PAP|80|SIC|90|PAR|90|TOS|100|RUS|100|GER|100|FRA|60|AUS|110|GBR|100|USA|100|JAP|80|TUR|90|CHI|100|SWE|100|DAN|100|HOL|100|BEL|110|SPA|110|POR|100|SWI|90|SER|90|GRE|90|MON|100|RUM|90|BUL|#Aifg#0|RUS *Commerce*|200|PAP *War*|200|PAP *CB*|150|PAP *Commerce*|0|PAP *Military*|0|PAP *Supply*|0|PAP *Passage*|200|SIC *War*|200|SIC *CB*|150|SIC *Commerce*|0|SIC *Military*|0|SIC *Supply*|0|SIC *Passage*|200|PAR *War*|200|PAR *CB*|100|PAR *Commerce*|0|PAR *Military*|0|PAR *Supply*|0|PAR *Passage*|200|TOS *War*|200|TOS *CB*|100|TOS *Commerce*|100|TOS *Military*|100|TOS *Supply*|100|TOS *Passage*|50|SWI *War*|0|SWI *CB*|150|SWI *Commerce*|0|SWI *Military*|0|SWI *Supply*|0|SWI *Passage*|50|RUS *War*|0|RUS *CB*|50|RUS *Military*|0|RUS *Supply*|0|RUS *Passage*|50|JAP *War*|0|JAP *CB*|0|JAP *Commerce*|0|JAP *Military*|0|JAP *Supply*|0|JAP *Passage*|150|CHI *War*|150|CHI *CB*|100|CHI *Commerce*|0|CHI *Military*|0|CHI *Supply*|0|CHI *Passage*|50|USA *War*|0|USA *CB*|100|USA *Commerce*|100|USA *Military*|0|USA *Supply*|0|USA *Passage*|200|AUS *War*|200|AUS *CB*|100|AUS *Commerce*|100|AUS *Military*|0|AUS *Supply*|0|AUS *Passage*|100|FRA *War*|10|FRA *CB*|50|FRA *Commerce*|100|FRA *Military*|0|FRA *Supply*|0|FRA *Passage*|100|GER *War*|0|GER *CB*|50|GER *Commerce*|100|GER *Military*|0|GER *Supply*|0|GER *Passage*|50|GBR *War*|0|GBR *CB*|50|GBR *Commerce*|200|GBR *Military*|100|GBR *Supply*|0|GBR *Passage*|100|GRE *War*|50|GRE *CB*|150|GRE *Commerce*|100|GRE *Military*|0|GRE *Supply*|0|GRE *Passage*|100|ALB *War*|100|ALB *CB*|0|ALB *Commerce*|50|ALB *Military*|0|ALB *Supply*|0|ALB *Passage*|200|TUR *War*|150|TUR *CB*|150|TUR *Commerce*|0|TUR *Military*|0|TUR *Supply*|0|TUR *Passage*|#Aifg#NULL#Aifg#

the last part, #Aifg#NULL#Aifg# is the section regarding Ai agent. NULL is good :)

if there are data in PON here, that's abnormal, you should then delete #Aifg#NULL from #Aifg#NULL#Aifg#, leaving a tag at the end: Aifg#

I checked all your factions in the host file, and they all seem to be correct. Now if you tell me you crash because of AI agents, I need to see why you get two wars first because checking that.

You sure you started the game in latest version of PON btw?
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
loki100
AGEod Guard of Honor
Posts: 2399
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Tue Sep 24, 2013 5:35 pm

Thanks for looking.

There was an in-game event about a new war between Spain and Cuba in early 1894 - I just assumed it was the historic war of 1898 (?) starting early. I can do a script to end that easily.
I think some time back (in game before 1890) I ran a set of scripts to end all the small wars that were not ending - I'm sure one was between Cuba and Spain. So it maybe that by just forcing an end, I've created a situation where it has restarted and then become rather confused?

I fear this started under 1.02, so that is two major patches and a few quick fix/betas I'm afraid.

This sounds like good news, I'll try and do some scripts tomorrow and report back.

Roger
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

Asher413
Corporal
Posts: 50
Joined: Thu May 05, 2011 7:59 pm

Tue Sep 24, 2013 7:06 pm

Locus- this sounds like the same hang up that I had on the war between Spain and Cuba- and I know I didn't modify the scripts to cause it.

I'm not sure if this is something that lingers from starting a game on an old patch, or a bug rarely hit as it's not often someone has gone from 1850 to the late 1890's. Thanks as always for what you do, I just wanted to point out that this was the same as my issue further down the message board.

(On mobile- and autocorrect seems to have won this round...)

User avatar
loki100
AGEod Guard of Honor
Posts: 2399
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Tue Sep 24, 2013 11:00 pm

Looks like writing a script to end one of the Spanish-Cuban wars has solved the problem. Managed to play 3 turns beyond where I was stuck, so it all looks fine

many thanks for sparing the time to have a look at this problem
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

User avatar
Pocus
Posts: 25662
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Wed Sep 25, 2013 8:59 am

you welcome :)
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “PON Technical Support / Aide Technique”

Who is online

Users browsing this forum: No registered users and 1 guest