NetStringTable IDs out of range

Author Topic: NetStringTable IDs out of range  (Read 1311 times)

Hello, all. I've been having a few issues with any games I try to play recently and I've finally been fed up enough to post it online for all of you smart chaps to help me with. I've attached my console.log file, but I'm afraid you'll have to wade through a lot of debugging messages and my failure scripting. I apologise in advance for the extreme length of this post, but hope you can assist me wherever possible.

I'll quote some of the major points for reference, and have included a list of major line numbers for you.

Lines 740-751 Connect request from Pnobio, standard headers
Code: [Select]
Auth Init Successfull: Pnobio
CADD: 7856 IP:
 +- bl_id = 208
 +- no auto admin

Lines 833-834 But later ... (This was using the correct admin password)
Code: [Select]
Admin attempt by Pnobio BL_ID: IP:66.58.222.218
--Failure - Demo players cannot be admin

Lines 890-1066 I run listClients();, then .dump(); Pnobio's client. I examine the results and determine that there is a distinct lack of bl_id attribute.

Lines 1074-1121, 1270-1282, 1309-1332, 1682-1762 My console is spammed with messages similar to the following
Quote
Error: NetStringTable::incStringRef() - id "1523" out of range (size = 256)
Error: NetStringTable::removeString() - id "1523" out of range (size = 256)
Error: NetStringTable::lookupString() - id "1523" out of range (size = 256)

Lines 1389-1396 I run listClients(); then try to echo my client's bl_id property. Echo is empty.
Lines 1422-1429 I try to echo Pnobio's client's bl_id property. Echo is empty.

Later, player "trifleX" joins my server. Similar to Pnobio, he successfully auths and his bl_id is printed to the console.

I decide to check all the players' bl_ids. I use a for loop in the console to loop through each member of ClientGroup and print up the results. Results are inconclusive based on previous tests.
Code: [Select]
==>listClients();
  3 Clients
------------------------------------------------------------
4716    Sticky                   local^114
7856    Pnobio                   IP:66.58.222.218:61091^
13463   trifleX                  IP:83.109.79.60:27472^
------------------------------------------------------------
Posting to master server
==>for($cg=0; $cg<ClientGroup.getCount(); $cg++) { echo(ClientGroup.getObject($cg).netName @ " : " @ ClientGroup.getObject($cg).bl_id); }
Sticky : 114
Pnobio :
trifleX :
keyboard0 input device acquired.

Finally, once I close the server to output to the console.log file, this error reveals itself
Code: [Select]
ERROR: GameConnection::onClientLeaveGame() - Client "Sticky" has no brick group.
I've had similar errors before in regards to trust invitations from players on my server. If you have any information that may be of use to please, please do not hesitate to post.

Sticky

Apologies for double posting but I've just realised how horribly inaccurate this thread title is now. I guess that's the main issue though, though whether that's as a result of something else I'm not sure.

Bump for assistance with problem.

Additionally, was asked about any methods overloading onConnect or onConnectRequest: I found four occurences, two aren't execed, one was in Wrench Events, and one was completely unrelated.

*bump*

Code: [Select]
==>warn("lol");
lol
==>error("lol");
lol
==>debug("lol");

lolWUT

I know bumping is irritating but the sooner I can get an answer or fix for this the better.

Sticky

I've been looking through your logs, and I'm going to just throw a bone here. Try removing your gun AI and botting scripts, and then attempt to see if the problems persist. It may be a flaw in the coding for the scripts that's causing the issue.

Looks like a datablock overflow from your ai gun.  If you're working with objects, make sure you check for possible leaks.  As far as torque script goes, I don't know how advanced object oriented is, but are you deconstructing the objects...or constructing them correctly.

I'm just trying to brainstorm a bit



See this comic for comedic relief.



I've been looking through your logs, and I'm going to just throw a bone here. Try removing your gun AI and botting scripts, and then attempt to see if the problems persist. It may be a flaw in the coding for the scripts that's causing the issue.

Well this worked, but I've been unable to find any errors with the AIGun that might cause this to happen. So, I guess I'll just leave it off for the time being then.

Sticky

Badspot

  • Administrator
String stack corruption caused by you having hundreds of stuffty add-ons installed, some of which even have syntax errors.

It boggles my mind how someone could release an add-on that does not even execute properly. 

I'm guessing you're referring to the brick message mod and\or door tool as part of the stuffty add-ons.

Assuming the AI Gun is the one causing the issues, if I disable the mods above, how do I avoid the string stack corruption? As it currently stands, the AI Gun really doesn't do much apart from make bots, move them around and kill them.

Sticky