www.ClassicTW.com
http://classictw.com/

Momboat Stats
http://classictw.com/viewtopic.php?f=15&t=33971
Page 1 of 2

Author:  Micro [ Sun May 12, 2013 12:46 am ]
Post subject:  Momboat Stats

I'm getting the following error when I press [TAB][~][>]:

Script run-time error in 'MOM_BOT3_1042.TS': 'True' is not a number, line 10042

Script terminated: C:\TW2002\TWXP3000\Scripts\@MomBot.cts

Anyone know how to fix this?

Author:  Helix [ Sun May 12, 2013 2:49 am ]
Post subject:  Re: Momboat Stats

Micro wrote:
I'm getting the following error when I press [TAB][~][>]:

Script run-time error in 'MOM_BOT3_1042.TS': 'True' is not a number, line 10042

Script terminated: C:\TW2002\TWXP3000\Scripts\@MomBot.cts

Anyone know how to fix this?

What exactly is it?

Lines 10041 - 10049
if ($PHOTONS_ENABLED)
if ($MULTIPLE_PHOTONS)
setVar $qss[21] "Yes"
else
setVar $qss[21] "No"
end
else
setVar $qss[21] "Disabled"
end

Author:  T0yman [ Sun May 12, 2013 7:07 am ]
Post subject:  Re: Momboat Stats

Check your qss(21) variable to see if it is yes or no....my guess is it is 0. Probably just missing a variable input.

Either way need more info...twgs 1.03 or 2.20?

Probably removing mom files and restarting will fix the problem unless it happens in every game.

Author:  Micro [ Sun May 12, 2013 8:00 am ]
Post subject:  Re: Momboat Stats

It is v1.03, but I think it has happened with v2.20 before.

In data\game.cfg I changed:
$MULTIPLE_PHOTONS=True

To:
$MULTIPLE_PHOTONS=1

...and now it works.

Author:  T0yman [ Sun May 12, 2013 3:30 pm ]
Post subject:  Re: Momboat Stats

Was this a new game or one you have been playing for a while? I am curious if this is the known issue with MOM not grabbing the game stats at the beginning of the game. If this is a new game there are 2 options:
1. Once in the game kill mom and restart and it will log out of the game grab game stats and relog.
2. Run gamestats from mom command prompt and it will force the logout and relog to correct the issue.

There are a number of issues that you will see if it never grabs the game settings. It is typically not an issue in 1.03 but happens quite regularly in 2.20. Lot's of people never see it since they tend to close the connection and restart TWX/Mom daily so the issue fixes itself the next time they log in to the game.

Author:  Micro [ Sun May 12, 2013 3:59 pm ]
Post subject:  Re: Momboat Stats

It's a new game. Mombot failed to get stats on the first run (seems to always do that to me), so I killed it and restarted. Mombot exited and collected stats, came back in and got the ship catalog, etc...

Then I killed mombot, deleted the files, restarted and it collected game stats again. It still didn't work. Then I changed the TWX cfg file manually from "True" to "1" and it worked.

Author:  T0yman [ Sun May 12, 2013 5:04 pm ]
Post subject:  Re: Momboat Stats

What server and port please? I am curious if there is another script changing it. I will just log in to test some settings.

Author:  Helix [ Sun May 12, 2013 5:51 pm ]
Post subject:  Re: Momboat Stats

T0yman wrote:
What server and port please? I am curious if there is another script changing it. I will just log in to test some settings.


www.thesprawl.ca:2002

10k sectors 2.5k turns

Game X - PokerRun

Author:  T0yman [ Sun May 12, 2013 8:05 pm ]
Post subject:  Re: Momboat Stats

I logged in the game, restarted mombot and it saved the variable:

"$MULTIPLE_PHOTONS" = "True"

Then I executed the Tab ~ > with no issues, I checked in the .cfg file and it had the word True instead of "1".

The gamestats script I referenced earlier apparently DOES NOT work on 1.03. I guess I either wrote or modified it during the 2+ version and never changed it to grab regardless of version.

Author:  Helix [ Sun May 12, 2013 10:37 pm ]
Post subject:  Re: Momboat Stats

T0yman wrote:
I logged in the game, restarted mombot and it saved the variable:

"$MULTIPLE_PHOTONS" = "True"

Then I executed the Tab ~ > with no issues, I checked in the .cfg file and it had the word True instead of "1".

The gamestats script I referenced earlier apparently DOES NOT work on 1.03. I guess I either wrote or modified it during the 2+ version and never changed it to grab regardless of version.

LS's server is v1.03

Author:  T0yman [ Mon May 13, 2013 5:27 pm ]
Post subject:  Re: Momboat Stats

Helix wrote:
T0yman wrote:
I logged in the game, restarted mombot and it saved the variable:

"$MULTIPLE_PHOTONS" = "True"

Then I executed the Tab ~ > with no issues, I checked in the .cfg file and it had the word True instead of "1".

The gamestats script I referenced earlier apparently DOES NOT work on 1.03. I guess I either wrote or modified it during the 2+ version and never changed it to grab regardless of version.

LS's server is v1.03

Correct, mombot grabs the data correctly on both 1.03 and 2+. The addon script named gamestats only works for ver 2+. I never went back and rewrote it to work with both since at the time it looked like 1.03 would have been a faint memory. Since I don't play anymore and if I did it would not be on 1.03 I had no interest in fixing. I was just clarifying that mombot works for me as advertised, the addon still has a problem for 1.03 only.

Author:  Astrochimp [ Mon Sep 30, 2013 11:31 am ]
Post subject:  Re: Momboat Stats

Helix wrote:
Micro wrote:
I'm getting the following error when I press [TAB][~][>]:

Script run-time error in 'MOM_BOT3_1042.TS': 'True' is not a number, line 10042

Script terminated: C:\TW2002\TWXP3000\Scripts\@MomBot.cts

Anyone know how to fix this?

What exactly is it?

Lines 10041 - 10049
if ($PHOTONS_ENABLED)
if ($MULTIPLE_PHOTONS)
setVar $qss[21] "Yes"
else
setVar $qss[21] "No"
end
else
setVar $qss[21] "Disabled"
end


Micro, is this still an issue? I ran into something very similar yesterday with a different script... out of curiosity what version of twx were you using?

Also, where'd you guys get the .ts? Latest mombot ts I have is 1036. If someone can post a link I'd appreciate it.

Author:  Cruncher [ Mon Sep 30, 2013 10:33 pm ]
Post subject:  Re: Momboat Stats

Astrochimp wrote:
Helix wrote:
Micro wrote:
I'm getting the following error when I press [TAB][~][>]:

Script run-time error in 'MOM_BOT3_1042.TS': 'True' is not a number, line 10042

Script terminated: C:\TW2002\TWXP3000\Scripts\@MomBot.cts

Anyone know how to fix this?

What exactly is it?

Lines 10041 - 10049
if ($PHOTONS_ENABLED)
if ($MULTIPLE_PHOTONS)
setVar $qss[21] "Yes"
else
setVar $qss[21] "No"
end
else
setVar $qss[21] "Disabled"
end


Micro, is this still an issue? I ran into something very similar yesterday with a different script... out of curiosity what version of twx were you using?

Also, where'd you guys get the .ts? Latest mombot ts I have is 1036. If someone can post a link I'd appreciate it.


3.1045

viewtopic.php?f=15&t=32905

Author:  Astrochimp [ Tue Oct 01, 2013 10:14 am ]
Post subject:  Re: Momboat Stats



Thanks, but it looks like tbh is not releasing the source for that version yet (unless I'm not seeing something).

What I'm looking for is the latest release that includes source code. In one of Micro's posts it looks like he has access to 'MOM_BOT3_1042.TS', which is more recent than what I have. Could be he received it privately, or it might be posted somewhere...

Author:  Micro [ Fri Oct 04, 2013 10:44 am ]
Post subject:  Re: Momboat Stats

Astrochimp wrote:
Micro, is this still an issue? I ran into something very similar yesterday with a different script... out of curiosity what version of twx were you using?

Also, where'd you guys get the .ts? Latest mombot ts I have is 1036. If someone can post a link I'd appreciate it.

I don't have internet right now, but the last time I played it was still an issue. The source I had was from Helix's started kit. I tried several versions of TWX, and mombot on several different servers, and it always saved "$MULTIPLE_PHOTONS" = "1" instead of "$MULTIPLE_PHOTONS" = "True" in the twx config file. If I changed this manually, it worked fine.

Page 1 of 2 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/